:root{--bg-page: #f1f5f9;--bg-surface: #ffffff;--bg-subtle: #f8fafc;--bg-muted: #e2e8f0;--border-color: #e2e8f0;--border-strong: #cbd5e1;--text-main: #0f172a;--text-secondary: #475569;--text-muted: #64748b;--teal-600: #0d9488;--teal-700: #0f766e;--teal-800: #115e59;--teal-soft: #f0fdfa;--teal-border: #99f6e4;--emerald-600: #059669;--amber-500: #f59e0b;--rose-600: #e11d48;--radius-lg: 16px;--radius-md: 12px;--radius-sm: 8px;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow-lg: 0 18px 40px rgba(15, 23, 42, .18)}html.dark{--bg-page: #020617;--bg-surface: #0f172a;--bg-subtle: #1e293b;--bg-muted: #334155;--border-color: #1e293b;--border-strong: #334155;--text-main: #f8fafc;--text-secondary: #cbd5e1;--text-muted: #94a3b8;--teal-soft: rgba(13, 148, 136, .14);--teal-border: rgba(20, 184, 166, .35)}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--bg-page);color:var(--text-main);min-height:100vh;-webkit-font-smoothing:antialiased}.hidden{display:none!important}.flex-1{flex:1}.muted{color:var(--text-muted)}.text-teal{color:var(--teal-700)}html.dark .text-teal{color:#5eead4}.app-shell{max-width:1280px;margin:0 auto;padding:18px 16px;min-height:100vh;display:flex;flex-direction:column}.main-frame{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;flex:1;display:flex;flex-direction:column}.app-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--border-color)}.brand-group{display:flex;align-items:center;gap:12px;min-width:0}.brand-icon{width:42px;height:42px;border-radius:12px;background:var(--teal-700);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.brand-icon svg{width:22px;height:22px}.brand-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brand-meta h1{margin:0;font-size:1.2rem;font-weight:800;letter-spacing:-.02em}.brand-subtitle{margin:2px 0 0;font-size:.82rem;color:var(--text-muted)}.header-actions{display:flex;align-items:center;gap:8px}.status-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 22px;background:var(--bg-subtle);border-bottom:1px solid var(--border-color)}.status-cluster{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.app-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 6px 0;font-size:.72rem;color:var(--text-muted)}.pill{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:.7rem;font-weight:700}.pill-teal{background:var(--teal-soft);color:var(--teal-700);border:1px solid var(--teal-border)}.pill-secure{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}html.dark .pill-secure{background:#065f4659;color:#6ee7b7;border-color:#10b98166}.status-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:10px;background:var(--bg-surface);border:1px solid var(--border-color);font-size:.8rem}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex-shrink:0}.dot-amber{background:var(--amber-500)}.dot-emerald{background:#10b981}.dot-rose{background:var(--rose-600)}.dot-teal{background:var(--teal-600)}.pulse{animation:pulseAnim 1.8s infinite}@keyframes pulseAnim{0%,to{opacity:1}50%{opacity:.35}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:10px;font-family:inherit;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.btn-sm{padding:7px 13px;font-size:.8rem}.btn-xs{padding:6px 10px;font-size:.74rem}.btn-full{width:100%;padding:11px 16px;font-size:.86rem}.btn-primary{background:var(--teal-700);color:#fff}.btn-primary:hover{background:var(--teal-800)}.btn-emerald{background:var(--emerald-600);color:#fff}.btn-emerald:hover{background:#047857}.btn-secondary{background:var(--bg-surface);color:var(--text-main);border-color:var(--border-strong)}.btn-secondary:hover{background:var(--bg-subtle)}.btn-soft-teal{background:var(--teal-soft);color:var(--teal-700);border-color:var(--teal-border)}html.dark .btn-soft-teal{color:#5eead4}.btn-outline-teal{background:var(--bg-surface);color:var(--teal-700);border-color:var(--teal-border)}html.dark .btn-outline-teal{color:#5eead4}.btn-danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}html.dark .btn-danger{background:#be123c40;color:#fda4af;border-color:#f43f5e66}.btn-icon{width:36px;height:36px;background:var(--bg-subtle);border-color:var(--border-color);color:var(--text-main)}.icon-mini{background:transparent;border:none;color:var(--text-muted);cursor:pointer;padding:2px 5px;border-radius:6px}.icon-mini:hover{background:var(--bg-subtle);color:var(--teal-700)}.input-field{width:100%;padding:9px 12px;border-radius:10px;border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--text-main);font-family:inherit;font-size:.84rem}.input-field:focus{outline:2px solid rgba(13,148,136,.35);border-color:var(--teal-600)}.input-sm{padding:7px 10px;font-size:.78rem}.input-pin{font-family:ui-monospace,SFMono-Regular,monospace;font-weight:800;letter-spacing:.04em}.mode-tabs{display:inline-flex;padding:3px;border-radius:10px;background:var(--bg-muted);border:1px solid var(--border-color)}.tab-btn{border:none;background:transparent;color:var(--text-secondary);padding:6px 12px;border-radius:8px;font-size:.78rem;font-weight:700;cursor:pointer}.tab-btn.active{background:var(--teal-700);color:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0f172ab8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px}.modal-card{width:100%;max-width:440px;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:16px;padding:20px;box-shadow:var(--shadow-lg)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-head h3{margin:0;font-size:1rem}.modal-close{border:none;background:transparent;color:var(--text-muted);font-size:1.4rem;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.toast-root{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;flex-direction:column;gap:8px;max-width:340px;width:calc(100% - 32px);pointer-events:none}.toast-item{pointer-events:auto;padding:10px 14px;border-radius:12px;font-size:.78rem;font-weight:600;border:1px solid var(--border-color);background:var(--bg-surface);color:var(--text-main);box-shadow:var(--shadow-lg)}.toast-success{border-color:#6ee7b7;background:#ecfdf5;color:#065f46}.toast-error{border-color:#fda4af;background:#fff1f2;color:#9f1239}.toast-warning{border-color:#fcd34d;background:#fffbeb;color:#92400e}.landing-view{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 20px}.landing-inner{max-width:780px;width:100%;text-align:center}.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--teal-soft);border:1px solid var(--teal-border);color:var(--teal-700);font-size:.72rem;font-weight:800;letter-spacing:.05em;margin-bottom:16px}html.dark .hero-badge{color:#5eead4}.landing-inner h2{margin:0 0 10px;font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800}.hero-desc{margin:0 auto 30px;max-width:560px;font-size:.92rem;color:var(--text-secondary);line-height:1.6}.mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;text-align:left}.mode-card{background:var(--bg-subtle);border:1px solid var(--border-color);border-radius:16px;padding:22px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;cursor:pointer;transition:border-color .18s ease,transform .18s ease}.mode-card-primary{border:2px solid rgba(15,118,110,.35)}.mode-card:hover{border-color:var(--teal-600);transform:translateY(-2px)}.mode-icon{width:46px;height:46px;border-radius:12px;background:var(--bg-surface);border:1px solid var(--border-color);color:var(--teal-700);display:flex;align-items:center;justify-content:center;font-size:1.3rem;font-weight:800;margin-bottom:12px}.mode-card h3{margin:0 0 6px;font-size:1.08rem}.mode-card p{margin:0;font-size:.84rem;color:var(--text-secondary);line-height:1.5}.format-strip{margin-top:28px;padding-top:18px;border-top:1px solid var(--border-color);display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:.74rem}.format-label{font-weight:700;color:var(--text-secondary);align-self:center}.fmt-tag{padding:4px 10px;border-radius:8px;font-weight:700}.fmt-pdf{background:#ffe4e6;color:#be123c}.fmt-docx{background:#dbeafe;color:#1d4ed8}.fmt-xlsx{background:#d1fae5;color:#047857}.fmt-pptx{background:#ffedd5;color:#c2410c}.fmt-photo{background:#f3e8ff;color:#7e22ce}.fmt-folder{background:#fef3c7;color:#b45309}.fmt-any{background:var(--bg-muted);color:var(--text-main)}.workspace-view{flex:1;padding:18px 20px;background:var(--bg-subtle)}.workspace-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px;align-items:start}@media(max-width:960px){.workspace-grid{grid-template-columns:1fr}}.panel{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:14px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.eyebrow{display:block;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-700)}html.dark .eyebrow{color:#5eead4}.panel-head h3{margin:2px 0 0;font-size:1rem}.panel-status{font-size:.75rem;font-weight:600;color:var(--text-muted)}.connection-banner{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;border:1px solid var(--border-color);background:var(--bg-subtle)}.connection-banner.connected{border-color:#6ee7b7;background:#10b9811a}.banner-icon{width:36px;height:36px;border-radius:10px;background:var(--bg-surface);display:flex;align-items:center;justify-content:center;font-size:1.1rem}.banner-body p{margin:2px 0 0;font-size:.75rem;color:var(--text-muted)}.security-passphrase-box{padding:10px 12px;border-radius:12px;background:var(--teal-soft);border:1px solid var(--teal-border);display:flex;flex-direction:column;gap:6px}.passphrase-label{font-size:.72rem;font-weight:700;color:var(--teal-800)}html.dark .passphrase-label{color:#99f6e4}.pair-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.sub-card{border:1px solid var(--border-color);border-radius:12px;background:var(--bg-subtle);padding:12px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.pin-qr-row{display:flex;gap:10px;align-items:flex-start}.qr-thumb-btn{background:#fff;border:1px solid var(--border-strong);border-radius:10px;padding:5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.62rem;font-weight:700;color:var(--teal-700)}.micro-label{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.pin-value{font-family:ui-monospace,monospace;font-size:1.45rem;font-weight:800;color:var(--teal-700);margin:4px 0}html.dark .pin-value{color:#5eead4}.countdown-text{font-size:.7rem;color:var(--text-muted)}.helper-copy{font-size:.74rem;color:var(--text-muted);margin:6px 0 0;line-height:1.4}.btn-row{display:flex;gap:6px;flex-wrap:wrap}.connect-controls{display:flex;flex-direction:column;gap:8px}.pin-input-row{display:flex;gap:6px}.nearby-section,.session-section{padding-top:12px;border-top:1px solid var(--border-color);display:flex;flex-direction:column;gap:10px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.nearby-right{display:flex;align-items:center;gap:6px}.count-badge{display:inline-flex;align-items:center;gap:6px;font-size:.7rem;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--bg-subtle);border:1px solid var(--border-color)}.nearby-list,.transfer-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.empty-box{border:1px dashed var(--border-strong);border-radius:12px;padding:16px;text-align:center;font-size:.78rem;color:var(--text-muted)}.toggle-pill{display:inline-flex;align-items:center;gap:8px;font-size:.76rem;font-weight:700;padding:6px 11px;border-radius:10px;border:1px solid var(--border-color);background:var(--bg-subtle);cursor:pointer}.toggle-pill input{accent-color:var(--teal-700);width:15px;height:15px;cursor:pointer}.drop-zone{border:2px dashed var(--border-strong);border-radius:14px;background:var(--bg-subtle);padding:24px 16px;text-align:center;transition:border-color .15s ease,background-color .15s ease}.drop-zone.drag-active{border-color:var(--teal-600);background:var(--teal-soft)}.drop-icon{font-size:1.6rem;color:var(--teal-700);margin-bottom:6px}.drop-zone h4{margin:0 0 4px;font-size:.96rem}.drop-zone p{margin:0 0 16px;font-size:.78rem;color:var(--text-muted)}.drop-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.quick-text-form{display:flex;gap:8px}.receive-hint,.zip-banner{padding:12px;border-radius:12px;background:var(--teal-soft);border:1px solid var(--teal-border);font-size:.78rem}.zip-banner-head{display:flex;justify-content:space-between;margin-bottom:6px;font-size:.76rem}.progress-track{height:7px;border-radius:999px;background:var(--bg-muted);overflow:hidden}.progress-fill{height:100%;background:var(--teal-600);transition:width .12s linear}.transfer-row,.offer-row,.nearby-item{border:1px solid var(--border-color);border-radius:12px;background:var(--bg-subtle);padding:10px 12px;display:flex;flex-direction:column;gap:8px}.offer-row{border-color:var(--teal-600);background:var(--teal-soft)}.offer-row.risk-high{border-color:#f59e0b;background:#fffbeb}html.dark .offer-row.risk-high{background:#f59e0b26}.row-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.row-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.file-badge{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:800;flex-shrink:0;background:var(--bg-muted)}.file-thumb{width:40px;height:40px;border-radius:10px;object-fit:cover;border:1px solid var(--border-color);flex-shrink:0}.row-title{font-size:.8rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-meta{font-size:.71rem;color:var(--text-muted)}.sha-badge{display:inline-flex;align-items:center;gap:4px;font-size:.66rem;font-weight:700;color:#047857;background:#d1fae5;padding:2px 7px;border-radius:6px}.pill-count{display:inline-block;padding:1px 7px;border-radius:999px;background:var(--bg-muted);margin-left:4px}
