:root { color-scheme: light; --bg: #f4f7fb; --panel: #ffffff; --ink: #172033; --muted: #687589; --line: #dce3ee; --primary: #0f766e; --primary-dark: #115e59; --danger: #c2410c; --danger-bg: #fff7ed; --ok-bg: #ecfdf5; --ok: #047857; --shadow: 0 14px 34px rgba(15, 23, 42, .08); --radius: 12px; --gap: 10px; }
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
form { margin: 0; }
.shell { width: 100%; max-width: 980px; margin: 0 auto; padding: 12px 10px 128px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand > div:last-child { min-width: 0; }
.logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: #0f172a; font-weight: 800; flex: 0 0 auto; }
.brand h1 { font-size: 16px; line-height: 1.15; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.topbar form { flex: 0 0 auto; }
.topbar .btn { min-height: 38px; padding: 0 12px; white-space: nowrap; }
.workspace-switch { display: flex; align-items: center; gap: 6px; }
.workspace-switch label { font-size: 11px; white-space: nowrap; }
.workspace-switch select { width: 150px; min-height: 38px; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.grid, .list, .auth-grid, .desktop-grid, .landing-grid, .security-grid, .benefit-grid { display: grid; gap: var(--gap); min-width: 0; }
.auth-grid { max-width: 460px; margin: 24px auto 0; }
.landing-page { display: grid; gap: 16px; margin-top: 4px; }
.landing-auth-only { max-width: 460px; margin: 24px auto 0; width: 100%; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 4px; }
.landing-nav-text { color: var(--muted); font-size: 12px; font-weight: 750; text-align: right; }
.landing-hero-modern { display: grid; gap: 14px; align-items: center; }
.landing-hero-copy { display: grid; gap: 12px; }
.eyebrow { width: fit-content; color: var(--primary-dark); background: #dff7ef; border: 1px solid #b7e4d2; border-radius: 999px; padding: 7px 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.landing-hero-copy h2 { margin: 0; font-size: clamp(32px, 10vw, 56px); line-height: 1.02; color: #0f172a; letter-spacing: -.045em; }
.landing-hero-copy p, .landing-section-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 680px; }
.landing-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-chip { border: 1px solid var(--line); background: rgba(255,255,255,.72); color: #334155; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.landing-visual { background: linear-gradient(145deg, #0f172a, #115e59); color: #fff; border-radius: 24px; border: 0; box-shadow: 0 24px 70px rgba(15, 23, 42, .22); overflow: hidden; position: relative; padding: 16px; }
.landing-visual::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 999px; right: -90px; top: -110px; background: rgba(45, 212, 191, .24); }
.landing-visual::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 999px; left: -80px; bottom: -80px; background: rgba(56, 189, 248, .16); }
.landing-visual > * { position: relative; z-index: 1; }
.visual-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.visual-top h3 { margin: 0; font-size: 18px; }
.visual-top p { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.visual-badge { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.visual-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.visual-metric, .workflow-card, .security-strip { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.09); border-radius: 16px; padding: 11px; }
.visual-metric b { display: block; font-size: 24px; line-height: 1; }
.visual-metric span, .workflow-card span, .security-strip { color: rgba(255,255,255,.76); font-size: 12px; }
.workflow-card { display: grid; gap: 8px; margin-bottom: 10px; }
.workflow-step { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; }
.step-index { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: rgba(45, 212, 191, .22); color: #ccfbf1; font-size: 12px; }
.security-strip { line-height: 1.45; }
.landing-grid { margin-top: 2px; }
.landing-auth-card { border-radius: 20px; padding: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .1); }
.landing-section-copy { display: grid; gap: 8px; align-content: start; }
.landing-section-copy h2 { margin: 0; font-size: 24px; line-height: 1.12; letter-spacing: -.025em; }
.security-grid, .benefit-grid { grid-template-columns: 1fr; }
.feature-card, .benefit-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 12px 34px rgba(15, 23, 42, .06); }
.feature-card strong, .benefit-card strong { display: block; margin-bottom: 6px; color: #0f172a; }
.feature-card p, .benefit-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.card-kicker { display: inline-flex; margin-bottom: 10px; border-radius: 999px; padding: 5px 8px; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 900; }
.workspace-bar, .workspace-actions, .stats, .actions, .copy-row { display: grid; grid-template-columns: 1fr; gap: var(--gap); min-width: 0; }
.workspace-bar { margin-bottom: 12px; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fbfdff; min-width: 0; }
.stat b { display: block; font-size: 22px; line-height: 1; }
.stat span { color: var(--muted); font-size: 12px; }
.actions form, .item, .result { min-width: 0; }
.quick-action-stack { display: grid; gap: 10px; }
.quick-action-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdff; padding: 12px; display: grid; gap: 8px; }
.quick-action-card h3 { margin: 0; font-size: 15px; }
.quick-action-card p { margin: 0; }
.btn { width: 100%; max-width: 100%; min-height: 46px; border: 0; border-radius: 10px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; cursor: pointer; text-align: center; text-decoration: none; white-space: normal; line-height: 1.2; background: var(--primary); color: #fff; touch-action: manipulation; }
.btn.secondary { background: #e8eef7; color: #172033; border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--line); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.inline-form .muted { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
label { font-size: 13px; color: var(--muted); font-weight: 700; }
input, textarea, select { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 12px; outline: none; min-height: 44px; }
textarea { min-height: 118px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.section-title { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; margin: 8px 0 10px; }
.section-title h2 { font-size: 16px; margin: 0; }
.section-title small { color: var(--muted); text-align: left; }
.result { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); border: 1px solid #b7e4d2; background: var(--ok-bg); margin-top: 12px; }
.copy-value { min-width: 0; overflow: hidden; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: normal; word-break: break-word; background: #fff; border: 1px solid #cfe9dd; border-radius: 10px; padding: 11px 12px; font-weight: 750; }
.notice { border-radius: 10px; padding: 11px 12px; margin-bottom: 10px; font-size: 14px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7e4d2; }
.notice.err { background: var(--danger-bg); color: var(--danger); border: 1px solid #fed7aa; }
.tabs { position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(244, 247, 251, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(15, 23, 42, .08); }
.tab { min-height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-weight: 800; font-size: 12px; padding: 0 6px; }
.tab.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; background: #fff; display: grid; gap: 8px; }
.compact-list { max-height: 360px; overflow: auto; padding-right: 2px; }
.compact-item { padding: 8px 10px; gap: 4px; }
.compact-item .btn { min-height: 34px; padding: 0 10px; font-size: 12px; }
.item-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; min-width: 0; }
.truncate { min-width: 0; overflow: hidden; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: nowrap; }
.pill { border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; background: #eef2ff; color: #3730a3; flex: 0 0 auto; }
.pill.ready { background: #dcfce7; color: #166534; }
.pill.taken { background: #e0f2fe; color: #075985; }
.pill.error { background: #ffedd5; color: #9a3412; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 20px 8px; }
.quick-lock-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at top, rgba(15, 118, 110, .18), transparent 34%), rgba(15, 23, 42, .62); backdrop-filter: blur(12px); }
.quick-lock-card { width: min(100%, 380px); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); padding: 18px; }
.quick-lock-card h2 { margin: 0 0 4px; font-size: 20px; }
.quick-lock-card p { margin: 0 0 14px; }
.quick-lock-card input { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 800; }
.hidden { display: none !important; }
@media (min-width: 560px) {
    :root { --gap: 12px; }
    .shell { padding: 18px 14px 124px; }
    .topbar { align-items: center; gap: 12px; margin-bottom: 16px; }
    .workspace-switch select { width: 180px; }
    .logo { width: 42px; height: 42px; }
    .brand h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand p { font-size: 13px; }
    .panel { padding: 14px; }
    .workspace-actions, .copy-row, .landing-actions { grid-template-columns: minmax(0, 1fr) auto; }
    .landing-page { gap: 20px; }
    .landing-auth-card { padding: 18px; }
    .inline-form { grid-template-columns: 1fr 92px 64px; }
    .inline-form .muted { grid-column: auto; }
    .workspace-actions .btn, .copy-row .btn { width: auto; }
    .section-title { align-items: baseline; flex-direction: row; justify-content: space-between; gap: 10px; }
    .section-title small { text-align: right; }
    .item-head { align-items: center; }
}
@media (min-width: 760px) {
    .shell { padding: 24px 20px 132px; }
    .landing-page { gap: 24px; }
    .landing-hero-modern { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 30px; margin-top: 10px; }
    .landing-grid { grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr); align-items: start; gap: 18px; }
    .security-grid, .benefit-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 12px; }
    .landing-visual { padding: 22px; }
    .desktop-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .workspace-bar { grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 14px; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 12px; }
    .stat b { font-size: 24px; }
    .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 940px) {
    .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .landing-hero-copy h2 { font-size: 58px; }
}
