/* =====================================================================
   Where's My Drive — app V2 visual system (from redesign-v2 prototype)
   Loaded after app.css. Legacy components pick up the palette through
   the same CSS variables; the new shell/library/detail/search are styled
   below. Font sizes are bumped from the prototype for real-world reading.
   ===================================================================== */
:root, :root[data-theme="tech"] {
  --bg:#0b0e0c; --bg-rgb:11,14,12; --bg2:#0e120f; --surface:#121713; --surface2:#171c18;
  --border:#252b26; --border2:#343c35;
  --accent:#d8ff3e; --accent-hi:#e4ff72; --accent-dim:rgba(216,255,62,.10); --accent2:#ff7a2f;
  --green:#62d88a; --green-dim:rgba(98,216,138,.12); --yellow:#f2cb61; --yellow-dim:rgba(242,203,97,.12);
  --red:#ff5a52; --red-dim:rgba(255,90,82,.12); --blue:#66a8ff;
  --text:#f5f6f1; --text2:#aab2ab; --text3:#7b857d;
  --mono:'DM Mono', ui-monospace, monospace; --display:'Manrope', system-ui, sans-serif;
  --r:10px; --shadow:0 28px 70px rgba(0,0,0,.45); --grid-opacity:0;
  --side:240px;
  color-scheme: dark;
}
html { font-size:16px; }
body { font-family:'Manrope', system-ui, sans-serif; letter-spacing:-.005em; background:var(--bg); }
body::after, body::before { display:none; }
.theme-switch { display:none !important; }
.icon { width:1.1em; height:1.1em; display:inline-block; vertical-align:-.16em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.view.active { animation:appIn .2s ease; }
@keyframes appIn { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:none } }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
mark { background:rgba(216,255,62,.18); color:var(--accent); border-radius:3px; padding:0 2px; }

/* ---------- buttons ---------- */
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:42px; padding:0 16px; border-radius:9px; border:1px solid transparent; font:700 14px 'Manrope', sans-serif; cursor:pointer; white-space:nowrap; transition:background .15s, border-color .15s, color .15s; }
.button .icon { font-size:16px; }
.button.primary { background:var(--accent); color:#10130c; }
.button.primary:hover { background:var(--accent-hi); box-shadow:0 8px 22px rgba(216,255,62,.18); }
.button.app-secondary { background:#1a201b; border-color:#323a33; color:#c7cec7; }
.button.app-secondary:hover { border-color:#5b6650; color:var(--accent); }
.button.small { height:34px; padding:0 12px; font-size:12.5px; }
.button.icon-only { width:42px; padding:0; }
.btn { font-family:'Manrope', sans-serif; border-radius:8px; font-weight:700; letter-spacing:0; }
.btn-primary { background:var(--accent); color:#10130c; }
.btn-primary:hover { background:var(--accent-hi); box-shadow:0 7px 22px rgba(216,255,62,.18); }
.btn-ghost { background:#121713; border-color:#303830; color:var(--text2); }
.btn-ghost:hover { border-color:#77845c; color:var(--accent); }

/* =================== APP SHELL =================== */
.app-shell { min-height:100vh; }
.app-sidebar { position:fixed; left:0; top:0; bottom:0; width:var(--side); border-right:1px solid #232924; background:#0d110e; padding:22px 14px 16px; display:flex; flex-direction:column; z-index:40; overflow-y:auto; }
.brand.compact { display:flex; align-items:center; gap:10px; padding:2px 8px; color:#f7f8f3; font-weight:800; font-size:15px; letter-spacing:-.03em; cursor:pointer; text-decoration:none; }
.brand.compact span { line-height:1; }
.brand.compact img { border-radius:8px; }
.global-search-btn { margin:24px 0 16px; width:100%; height:42px; border:1px solid #2b322c; border-radius:9px; background:#151a16; color:#a8b0a9; text-align:left; padding:0 11px; font:600 13px 'Manrope', sans-serif; cursor:pointer; display:flex; align-items:center; gap:9px; }
.global-search-btn:hover { border-color:#46513f; color:#fff; }
.global-search-btn .icon { font-size:17px; }
.global-search-btn kbd, .app-search-hero kbd, .full-search kbd { margin-left:auto; font:500 10px 'DM Mono', monospace; background:#242a25; color:#8a948b; border-radius:5px; padding:3px 6px; }
.app-nav { display:flex; flex-direction:column; gap:2px; }
.app-nav > small { font:500 10px 'DM Mono', monospace; color:#5f6860; letter-spacing:.14em; padding:20px 10px 7px; }
.app-nav button { height:40px; border:0; border-radius:8px; background:transparent; color:#9aa29b; text-align:left; padding:0 10px; font:600 13.5px 'Manrope', sans-serif; cursor:pointer; display:flex; align-items:center; gap:11px; }
.app-nav button > .icon { width:18px; height:18px; color:#7b857d; }
.app-nav button b { margin-left:auto; background:#242b25; border-radius:10px; padding:2px 8px; font-size:11px; color:#aab2ab; }
.app-nav button:hover, .app-nav button.active { background:#1f2620; color:#fff; }
.app-nav button.active > .icon { color:var(--accent); }
.app-nav .header-trial-chip { font-size:11px; font-weight:700; color:var(--accent); margin-left:5px; opacity:1; }
.team-card { margin-top:auto; border:1px solid #293029; background:#151a16; border-radius:10px; padding:10px; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; text-align:left; color:inherit; cursor:pointer; font-family:inherit; }
.team-card:hover { border-color:#3f4a3f; }
.team-card .avatar { width:32px; height:32px; border-radius:50%; background:#2d372e; color:#e6eae5; display:grid; place-items:center; font-size:12px; font-weight:800; }
.team-card-text { min-width:0; }
.team-card-text strong, .team-card-text small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.team-card-text strong { font-size:13px; }
.team-card-text small { font-size:11.5px; color:#7b857d; margin-top:2px; }
.team-card > .icon { color:#6b756c; }

.app-main { margin-left:var(--side); min-width:0; min-height:100vh; }
.app-topbar.app-header { position:sticky; top:0; height:64px; display:flex; align-items:center; gap:12px; padding:0 30px; border-bottom:1px solid #222922; background:rgba(11,14,12,.88); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); z-index:30; overflow:visible; }
.mobile-brand { display:none; }
.app-context { font-size:13px; color:#6f7870; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app-context b { padding:0 8px; color:#424943; font-weight:400; }
.app-context strong { color:#c3cac3; font-weight:700; }
.viewer-badge { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px; border-radius:999px; border:1px solid rgba(216,255,62,.3); background:var(--accent-dim); color:var(--accent); font:600 12px 'Manrope', sans-serif; cursor:pointer; white-space:nowrap; }
.app-actions { margin-left:auto; display:flex; align-items:center; gap:8px; position:relative; }
.icon-btn { width:38px; height:38px; display:grid; place-items:center; border:1px solid #29302a; background:#161b17; color:#9ba49c; border-radius:9px; cursor:pointer; font-size:16px; }
.icon-btn:hover { color:#fff; border-color:#3f4a3f; }
.only-mobile { display:none !important; }
.header-mobile-menu { position:absolute; right:0; top:48px; min-width:230px; display:none; flex-direction:column; padding:6px; background:#151a16; border:1px solid #333b34; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,.55); z-index:60; }
.header-mobile-menu.open { display:flex; }
.hmm-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-size:13.5px; font-weight:600; color:#c9d0c9; cursor:pointer; }
.hmm-row:hover { background:#1f2620; color:#fff; }
.hmm-row .icon { color:#7b857d; font-size:16px; }
.hmm-danger { color:var(--red); }
.demo-banner, .trial-banner { min-height:44px; justify-content:center; gap:14px; padding:8px 30px; background:#151c11; border-bottom:1px solid #2c3624; color:#dfe9cf; font-size:13px; }
.demo-banner::before { content:'LIVE DEMO'; font:500 10px 'DM Mono', monospace; letter-spacing:.14em; color:var(--accent); }
.trial-banner.urgent { background:#241412; border-color:#4a2622; }
.main-content { padding:44px clamp(24px, 4vw, 60px) 90px; max-width:1480px; }

/* =================== LIBRARY =================== */
.app-page-header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
.app-eyebrow { font:500 11px 'DM Mono', monospace; letter-spacing:.15em; color:#727c73; margin:0; }
.app-page-header h1, .drive-identity h1 { font-size:clamp(30px, 3.4vw, 42px); line-height:1.02; letter-spacing:-.055em; margin:8px 0 0; font-weight:800; }
.app-page-header .page-sub { margin:12px 0 0; font:13px 'DM Mono', monospace; color:#7b857d; }
.app-page-header .page-sub a { color:var(--accent); cursor:pointer; }
.app-header-actions { display:flex; gap:8px; flex-shrink:0; }
.app-search-hero { margin-top:32px; width:100%; height:66px; background:#151a16; border:1px solid #354038; border-radius:13px; color:#8f9890; padding:0 20px; display:flex; align-items:center; gap:14px; text-align:left; cursor:pointer; box-shadow:0 18px 40px rgba(0,0,0,.2); font-family:inherit; }
.app-search-hero:hover { border-color:#5b6a4a; }
.app-search-hero > .icon { font-size:22px; color:#b4bcb5; }
.app-search-hero b { font-size:15.5px; font-weight:500; color:#98a199; }
.app-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:40px 0 16px; flex-wrap:wrap; }
.app-section-head > div:first-child { display:flex; align-items:center; gap:10px; }
.app-section-head h2 { font-size:18px; margin:0; letter-spacing:-.03em; }
.app-section-head > div > span { background:#252c26; border-radius:10px; font-size:11px; padding:3px 8px; color:#9da69e; }
.view-tools { display:flex; gap:6px; flex-wrap:wrap; }
.view-tools button, .sort-select { height:34px; border:1px solid #2a312b; background:#151a16; color:#8f988f; border-radius:8px; padding:0 11px; font:600 12px 'Manrope', sans-serif; cursor:pointer; display:inline-flex; align-items:center; gap:7px; }
.view-tools button:hover, .sort-select:hover { color:#fff; border-color:#3f4a3f; }
.view-tools button.active { background:#29312a; color:#fff; }
.sort-select { appearance:none; -webkit-appearance:none; padding-right:26px; background-image:linear-gradient(45deg, transparent 50%, #8f988f 50%), linear-gradient(135deg, #8f988f 50%, transparent 50%); background-position:calc(100% - 13px) 15px, calc(100% - 9px) 15px; background-size:4px 4px; background-repeat:no-repeat; }

.drive-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:14px; }
.drive-card { position:relative; min-height:262px; border:1px solid #282f29; border-radius:13px; background:#121713; padding:16px; cursor:pointer; transition:transform .2s, border-color .2s, background .2s; overflow:hidden; display:flex; flex-direction:column; text-align:left; color:inherit; font-family:inherit; }
.drive-card:hover, .drive-card:focus-visible { transform:translateY(-2px); border-color:#4a5448; background:#161c17; }
.drive-card .label-state { position:absolute; top:12px; right:12px; display:flex; align-items:center; gap:6px; color:#9da69e; font:500 10.5px 'DM Mono', monospace; z-index:1; }
.drive-card .label-state .icon { color:var(--accent); font-size:14px; }
.drive-card .label-state .dot { width:7px; height:7px; border-radius:50%; background:var(--yellow); }
.drive-card .label-state .dot.full { background:var(--red); }
.drive-art { height:124px; display:grid; place-items:center; margin:6px 0 4px; }
.drive-art img { width:94%; height:124px; object-fit:contain; filter:drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.type-portable-ssd .drive-art img { filter:hue-rotate(185deg) saturate(.5) drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.type-desktop-hdd .drive-art img { filter:grayscale(.55) brightness(1.15) drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.type-usb-flash .drive-art img { filter:hue-rotate(200deg) saturate(1.3) drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.type-nvme .drive-art img { filter:hue-rotate(250deg) saturate(1.2) drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.type-other .drive-art img { filter:saturate(.3) drop-shadow(0 13px 16px rgba(0,0,0,.45)); }
.drive-card-body { margin-top:auto; }
.drive-card-body > strong { display:block; font-size:15px; letter-spacing:-.02em; overflow-wrap:anywhere; }
.drive-card-body > span { display:block; font-size:12px; color:#7f8980; margin-top:5px; }
.drive-card-body > small { display:flex; align-items:center; gap:7px; font-size:12px; color:#a7afa8; margin-top:8px; }
.dc-bar { height:3px; background:#263029; border-radius:3px; margin-top:12px; overflow:hidden; }
.dc-bar i { display:block; height:100%; border-radius:3px; background:var(--green); }
.dc-bar i.fill-warn { background:var(--yellow); }
.dc-bar i.fill-full { background:var(--red); }
.status { width:8px; height:8px; border-radius:50%; flex:none; border:2px solid #6c766d; display:inline-block; }
.status.on { border-color:var(--accent); background:var(--accent); box-shadow:0 0 0 3px rgba(216,255,62,.12); }
.tag-line { display:flex; align-items:center; gap:7px; }
.tag-line i { width:8px; height:8px; border-radius:2px; flex:none; }
.drive-identity .tag-line { font-size:12.5px; color:#aab2ab; margin-top:8px; }
.drive-card-add { align-items:center; justify-content:center; gap:8px; border-style:dashed; background:transparent; color:#8f988f; text-align:center; }
.drive-card-add .icon { font-size:30px; color:var(--accent); }
.drive-card-add strong { font-size:15px; color:#e6eae5; }
.drive-card-add span { font-size:12px; max-width:190px; }
.drive-grid.as-list { grid-template-columns:1fr; gap:8px; }
.drive-grid.as-list .drive-card { min-height:0; flex-direction:row; align-items:center; gap:16px; padding:10px 16px; }
.drive-grid.as-list .drive-art { height:52px; width:80px; margin:0; flex:none; }
.drive-grid.as-list .drive-art img { height:52px; }
.drive-grid.as-list .drive-card-body { margin:0; flex:1; display:grid; grid-template-columns:minmax(160px, 1.3fr) 1.4fr 1.2fr; gap:4px 18px; align-items:center; padding-right:110px; }
.drive-grid.as-list .drive-card-body > * { margin:0; }
.drive-grid.as-list .dc-bar { grid-column:2; grid-row:2; }
.drive-grid.as-list .label-state { top:50%; transform:translateY(-50%); }
.drive-grid.as-list .drive-card-add { flex-direction:row; justify-content:flex-start; padding:16px; }
.archive-summary { display:grid; grid-template-columns:repeat(3, 1fr); margin-top:30px; border:1px solid #262d27; border-radius:12px; }
.archive-summary > div { padding:18px 20px; border-right:1px solid #262d27; min-width:0; }
.archive-summary > div:last-child { border:0; }
.archive-summary small { font:500 10.5px 'DM Mono', monospace; letter-spacing:.12em; color:#687169; display:block; }
.archive-summary strong { font-size:23px; letter-spacing:-.04em; display:block; margin:8px 0 4px; }
.archive-summary span { font-size:12px; color:#7b857d; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* =================== DRIVE DETAIL =================== */
.text-back { display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; color:#8b948c; font:600 13px 'Manrope', sans-serif; padding:0; margin-bottom:22px; cursor:pointer; }
.text-back:hover { color:#fff; }
.drive-identity { border:1px solid #29302a; background:#111612; border-radius:15px; padding:22px; display:grid; grid-template-columns:240px 1fr 260px; gap:26px; align-items:center; }
.drive-identity.is-loading { grid-template-columns:240px 1fr; opacity:.7; }
.identity-visual { height:170px; background:#181e19; border-radius:11px; position:relative; display:grid; place-items:center; overflow:hidden; }
.identity-visual > img { width:96%; height:165px; object-fit:contain; filter:drop-shadow(0 16px 18px rgba(0,0,0,.45)); }
.object-label { position:absolute; left:50%; top:54%; transform:translate(-50%, -50%) rotate(-3deg); width:176px; background:#f1efe6; color:#101310; border-radius:6px; padding:9px 9px 9px 12px; display:flex; align-items:center; gap:8px; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.object-label > div:first-child { min-width:0; flex:1; }
.object-label b { display:block; font-size:11px; line-height:1.15; text-transform:uppercase; overflow-wrap:anywhere; }
.object-label small { display:block; font:9px 'DM Mono', monospace; color:#555c56; margin-top:4px; }
.mini-qr { width:48px; height:48px; flex:none; background:#fff; border-radius:3px; }
.mini-qr svg { width:100%; height:100%; display:block; }
.identity-main { min-width:0; }
.identity-main > p { display:flex; align-items:center; gap:8px; margin:0; font:500 11px 'DM Mono', monospace; letter-spacing:.06em; color:#8b948d; }
.identity-main > span { display:block; font-size:13px; color:#8a948b; margin-top:8px; }
.drive-identity h1 { font-size:clamp(26px, 2.6vw, 34px); overflow-wrap:anywhere; }
.identity-actions { display:flex; gap:8px; margin-top:20px; flex-wrap:wrap; }
.identity-address { border-left:1px solid #2b322c; padding-left:24px; }
.identity-address > * { display:block; }
.identity-address small { font:500 10.5px 'DM Mono', monospace; letter-spacing:.12em; color:#69736a; }
.identity-address strong { font-size:17px; margin-top:10px; }
.identity-address span { font-size:12.5px; line-height:1.55; color:#8a948b; margin-top:6px; }
.identity-address button { margin-top:18px; border:0; background:transparent; color:var(--accent); font:700 13px 'Manrope', sans-serif; padding:0; cursor:pointer; }
.more-menu-wrap { position:relative; }
.more-menu { right:0; left:auto; top:48px; min-width:190px; background:#151a16; border:1px solid #333b34; border-radius:11px; padding:6px; box-shadow:0 20px 60px rgba(0,0,0,.55); }
.more-menu-item { border-radius:7px; font-size:13px; padding:9px 11px; }
.more-menu-item:hover { background:#1f2620; }
.detail-tabs { display:flex; gap:26px; margin-top:30px; border-bottom:1px solid #29302a; overflow-x:auto; }
.detail-tabs button { border:0; background:transparent; color:#7b857d; padding:0 2px 13px; font:700 13.5px 'Manrope', sans-serif; cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.detail-tabs button:hover { color:#d6dcd6; }
.detail-tabs button.active { color:#fff; border-bottom-color:var(--accent); }
.detail-tabs button b { font-size:11px; background:#242b25; border-radius:9px; padding:1px 7px; margin-left:4px; color:#9da69e; }
.tab-panel { padding-top:18px; }
.contents-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.crumbs { display:flex; align-items:center; gap:8px; font-size:13px; color:#6f7970; }
.crumbs b { color:#e3e7e2; }
.file-table { border:1px solid #272e28; border-radius:11px; overflow:hidden; background:#0f1310; }
.file-head { display:flex; align-items:center; min-height:38px; padding:0 18px 0 52px; background:#121713; border-bottom:1px solid #252c26; font:500 10.5px 'DM Mono', monospace; letter-spacing:.1em; text-transform:uppercase; color:#646e65; }
.file-head span:first-child { flex:1; }
.file-head span:nth-child(2) { width:160px; }
.file-head span:nth-child(3) { width:82px; text-align:right; }
.file-table .tree-body { padding:0; }
.file-table .tree-row { min-height:44px; padding:0; border-bottom:1px solid #1d231e; font-size:13.5px; color:#dfe4de; }
.file-table .tree-node:last-child > .tree-row { border-bottom-color:transparent; }
.file-table .tree-row:hover { background:#141a15; }
.tree-toggle { color:#5f6a60; font-size:10px; }
.tree-ico { width:22px; display:grid; place-items:center; margin-right:8px; font-size:16px; color:#4ba0ec; }
.tree-ico .icon { color:inherit; }
.tree-ico.kind-video { color:#b48cff; } .tree-ico.kind-image { color:#ff9a57; } .tree-ico.kind-audio { color:#47d7ac; }
.tree-ico.kind-doc { color:#f2cb61; } .tree-ico.kind-arch, .tree-ico.kind-other { color:#7b857d; }
.file-row .tree-name { color:#c3cac3; }
.tree-count { width:120px; margin-right:0; font:12px 'DM Mono', monospace; color:#6f7970; }
.tree-bar-mini { width:40px; margin-right:0; }
.tree-bar-mini.is-empty { background:transparent; }
.tree-bar-fill { background:var(--accent); opacity:.55; }
.tree-size { width:82px; min-width:0; padding-right:18px; font:12px 'DM Mono', monospace; color:#9aa39b; }
.file-ext-badge { font:500 10.5px 'DM Mono', monospace; border-radius:5px; padding:2px 6px; }
.tree-empty { padding:28px 20px; font-size:13.5px; color:#8a948b; line-height:1.6; }
.notes-card, .stat-card, .usage-card { border-radius:12px; background:#121713; border-color:#293129; }
.notes-title, .stat-label { font:500 10.5px 'DM Mono', monospace; letter-spacing:.12em; }
.notes-header .muted { font-size:12px; color:#7b857d; }
.notes-add { gap:10px; align-items:flex-end; }
.notes-add-fields { flex:1; display:flex; flex-direction:column; gap:8px; }
.notes-add-fields input, .notes-add-fields textarea, .label-form input { width:100%; background:#0c100d; border:1px solid #2a312b; color:var(--text); padding:10px 12px; font:14px 'Manrope', sans-serif; border-radius:8px; outline:none; }
.notes-add-fields input:focus, .notes-add-fields textarea:focus, .label-form input:focus { border-color:var(--accent); }
.stats-row { gap:12px; }
.stat-value { font-size:26px; letter-spacing:-.04em; }
.stat-value.val-ok { color:var(--green); } .stat-value.val-warn { color:var(--yellow); } .stat-value.val-full { color:var(--red); }
.meta-list { margin:18px 0 0; border:1px solid #272e28; border-radius:12px; overflow:hidden; }
.meta-list > div { display:flex; justify-content:space-between; gap:16px; padding:13px 18px; border-bottom:1px solid #1f2520; font-size:13.5px; }
.meta-list > div:last-child { border:0; }
.meta-list dt { color:#7b857d; } .meta-list dd { margin:0; color:#e3e7e2; font-weight:600; text-align:right; }
.label-form { display:flex; flex-wrap:wrap; gap:12px; padding:16px 18px; align-items:flex-end; }
.label-form label { display:flex; flex-direction:column; gap:6px; flex:1; min-width:170px; font:500 10.5px 'DM Mono', monospace; letter-spacing:.1em; text-transform:uppercase; color:#7b857d; }
.label-form label.wide { flex:2; min-width:220px; }
.label-form-actions { display:flex; gap:8px; }

/* =================== SEARCH =================== */
.mobile-search-overlay { position:fixed; top:0; right:0; bottom:0; left:var(--side); z-index:35; background:var(--bg); display:none; overflow-y:auto; }
.mobile-search-overlay.open { display:block; }
.search-page-inner { max-width:1200px; padding:34px clamp(20px, 4vw, 60px) 90px; }
.search-page-head { display:flex; gap:14px; }
.back-btn { width:58px; flex:none; border:1px solid #2c342d; border-radius:12px; background:transparent; color:#8b948c; font-size:20px; cursor:pointer; display:grid; place-items:center; }
.back-btn:hover { color:#fff; border-color:#46513f; }
.full-search { height:62px; flex:1; border:1px solid #435044; border-radius:12px; background:#121713; display:flex; align-items:center; gap:13px; padding:0 18px; }
.full-search:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px rgba(216,255,62,.07); }
.full-search > .icon { font-size:22px; color:#b4bcb5; }
.full-search input { flex:1; min-width:0; border:0; background:transparent; color:#fff; font:600 19px 'Manrope', sans-serif; outline:0; }
.full-search input::placeholder { color:#5f6a60; font-weight:500; }
.search-clear-btn { position:static; transform:none; border:0; background:#232a24; color:#aab2ab; width:26px; height:26px; border-radius:50%; cursor:pointer; font-size:11px; }
.search-scope { margin-top:14px; display:flex; align-items:center; gap:10px; font-size:13px; color:#aab2ab; }
.search-scope[hidden] { display:none; }
.search-scope b { color:#fff; }
.search-scope button { border:1px solid #333b34; background:#161b17; color:#aab2ab; border-radius:999px; padding:5px 11px; font:600 12px 'Manrope', sans-serif; cursor:pointer; }
.search-filter-row { margin-top:16px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips button { height:34px; border:1px solid #2e362f; background:#131814; color:#aab2ab; border-radius:999px; padding:0 14px; font:600 13px 'Manrope', sans-serif; cursor:pointer; }
.chips button b { color:#6f7970; font-weight:600; margin-left:3px; }
.chips button:hover { border-color:#4a5448; color:#fff; }
.chips button.active { background:var(--accent); border-color:var(--accent); color:#10130c; }
.chips button.active b { color:#3a4515; }
.search-page-body { padding:0; overflow:visible; }
.answer-line { display:flex; justify-content:space-between; align-items:baseline; gap:12px; border-bottom:1px solid #272e28; padding:22px 0 12px; }
.answer-line span { font-size:14px; font-weight:800; }
.answer-line small { font-size:12px; color:#6f7970; text-align:right; }
.app-results { display:grid; }
.app-result { display:grid; grid-template-columns:52px minmax(0, 1fr) 280px 22px; gap:16px; align-items:center; padding:13px 10px; border-bottom:1px solid #20261f; cursor:pointer; border-radius:8px; }
.app-result:hover { background:#121713; }
.app-result > .icon { color:#4e584f; }
.result-thumb { height:44px; border-radius:9px; display:grid; place-items:center; background:#1a201b; font-size:20px; color:#7b857d; font-style:normal; }
.result-thumb.kind-video { background:linear-gradient(135deg, #2c2346, #1a1824); color:#b48cff; }
.result-thumb.kind-image { background:linear-gradient(135deg, #3b2718, #1d1712); color:#ff9a57; }
.result-thumb.kind-audio { background:linear-gradient(135deg, #15352c, #111c18); color:#47d7ac; }
.result-thumb.kind-doc { background:linear-gradient(135deg, #3a3217, #1c1a12); color:#f2cb61; }
.result-thumb.kind-folder { background:linear-gradient(135deg, #16304a, #111a24); color:#66a8ff; }
.result-thumb.kind-drive { background:linear-gradient(135deg, #2e3a14, #151a0f); color:var(--accent); }
.result-main { min-width:0; }
.result-main b { display:block; font-size:14.5px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-main span { display:block; font-size:12px; color:#7f8980; margin-top:3px; }
.result-main code { display:block; font:11.5px 'DM Mono', monospace; color:#626c63; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-address { display:grid; grid-template-columns:30px 1fr; gap:10px; align-items:center; border-left:1px solid #252c26; padding-left:16px; min-width:0; }
.result-address small { display:block; font:500 10px 'DM Mono', monospace; letter-spacing:.1em; color:#646e65; }
.result-address b { display:block; font-size:13px; color:#e6eae5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-address span span { display:block; font-size:11.5px; color:#7b857d; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tiny-drive { width:26px; height:32px; background:#5f665f; border:3px solid #2b312c; border-radius:4px; box-shadow:inset 0 0 0 2px #8f968f; }
.search-page-hint, .search-no-results { min-height:48vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px 20px; color:#7b857d; }
.search-page-hint > .icon, .search-no-results > .icon { font-size:46px; color:var(--accent); margin-bottom:10px; }
.search-page-hint h2, .search-no-results h2 { font-size:24px; letter-spacing:-.04em; color:#f5f6f1; margin:8px 0; }
.search-page-hint p, .search-no-results p { max-width:440px; font-size:14px; line-height:1.6; margin:0; }
.search-note { text-align:center; font-size:12.5px; color:#7b857d; padding:16px; }

/* =================== MODALS, FORMS, LOGIN =================== */
.overlay { background:rgba(4,6,5,.78); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); z-index:200; }
.modal { border-radius:16px; background:#151a16; border:1px solid #353e36; box-shadow:0 30px 90px rgba(0,0,0,.7); }
.modal h3 { font-family:'Manrope', sans-serif; font-weight:800; font-size:23px; letter-spacing:-.04em; }
.modal .modal-sub, .field label { font-family:'DM Mono', monospace; }
.field input, .field textarea, .field select, .login-box input { font-family:'Manrope', sans-serif; border-radius:8px; background:#0c100d; }
.login-logo { font-family:'Manrope', sans-serif; font-weight:800; font-size:32px; letter-spacing:-.05em; }
.login-sub { font:500 11px 'DM Mono', monospace; letter-spacing:.14em; }
.login-box, .setup-box { border-radius:16px; background:#121713; border-color:#303830; padding:32px; box-shadow:0 30px 80px rgba(0,0,0,.4); }
.setup-wrap h1 { font-family:'Manrope', sans-serif; font-weight:800; letter-spacing:-.04em; color:var(--text); }
.login-setup-link a { font-weight:700; }
.toast { border-radius:10px; background:#f0f4ec; color:#10130c; font-family:'Manrope', sans-serif; font-weight:600; z-index:300; }
.note { border-left-color:var(--accent); background:#111612; }

/* =================== RESPONSIVE =================== */
@media (max-width:1180px) {
  .drive-identity { grid-template-columns:200px 1fr; }
  .identity-address { grid-column:1 / -1; border-left:0; border-top:1px solid #2b322c; padding:18px 0 0; }
  .app-result { grid-template-columns:52px minmax(0, 1fr) 220px 18px; }
}
@media (max-width:900px) {
  .app-page-header { flex-direction:column; align-items:flex-start; }
  .archive-summary { grid-template-columns:1fr; }
  .archive-summary > div { border-right:0; border-bottom:1px solid #262d27; }
  .drive-grid.as-list .drive-card-body { grid-template-columns:1fr; padding-right:0; }
  .drive-grid.as-list .dc-bar { grid-column:auto; grid-row:auto; }
  .drive-grid.as-list .label-state { display:none; }
}
@media (max-width:760px) {
  .app-sidebar { top:auto; bottom:0; right:0; width:100%; height:calc(64px + env(safe-area-inset-bottom, 0px)); flex-direction:row; padding:6px 6px env(safe-area-inset-bottom, 0px); border-right:0; border-top:1px solid #29302a; overflow:visible; }
  .app-sidebar > .brand, .global-search-btn, .app-nav > small, .team-card, .app-nav .side-only { display:none !important; }
  .app-nav { flex-direction:row; width:100%; gap:2px; }
  .app-nav button { flex:1; height:52px; flex-direction:column; justify-content:center; gap:4px; padding:0 2px; font-size:10.5px; text-align:center; }
  .app-nav button > .icon { width:20px; height:20px; }
  .app-nav button b, .app-nav .header-trial-chip { display:none; }
  .app-main { margin-left:0; padding-bottom:70px; }
  .app-topbar.app-header { padding:0 14px; height:58px; }
  .mobile-brand { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; letter-spacing:-.03em; cursor:pointer; white-space:nowrap; }
  .mobile-brand img { border-radius:6px; }
  .app-context, .only-desktop { display:none !important; }
  .only-mobile { display:grid !important; }
  .viewer-badge { font-size:0; gap:0; width:34px; padding:0; justify-content:center; }
  .viewer-badge .icon { font-size:15px; }
  .demo-banner, .trial-banner { padding:8px 14px; font-size:12px; }
  .demo-banner::before { display:none; }
  .main-content { padding:26px 16px 40px; }
  .app-header-actions { width:100%; }
  .app-header-actions .button { flex:1; }
  .app-search-hero { height:56px; margin-top:22px; }
  .app-search-hero kbd { display:none; }
  .drive-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .drive-card { min-height:226px; padding:12px; }
  .drive-art, .drive-art img { height:96px; }
  .drive-card .label-state { font-size:9.5px; }
  .drive-identity { grid-template-columns:1fr; padding:16px; gap:18px; }
  .identity-visual { height:150px; }
  .identity-address { grid-column:auto; }
  .identity-actions .button { flex:1; }
  .file-head span:nth-child(2), .tree-count, .tree-bar-mini { display:none; }
  .file-head { padding-left:44px; }
  .mobile-search-overlay { left:0; bottom:calc(64px + env(safe-area-inset-bottom, 0px)); }
  .search-page-inner { padding:18px 14px 40px; }
  .back-btn { width:48px; }
  .full-search { height:54px; }
  .full-search input { font-size:16px; }
  .full-search kbd { display:none; }
  .app-result { grid-template-columns:44px minmax(0, 1fr) 16px; gap:12px; padding:12px 4px; }
  .app-result .result-address { grid-column:2; grid-row:2; border-left:0; padding-left:0; grid-template-columns:1fr; }
  .app-result .tiny-drive { display:none; }
  .app-result > .icon { grid-column:3; grid-row:1; }
  .answer-line { flex-direction:column; align-items:flex-start; gap:4px; }
  .answer-line small { text-align:left; }
}
@media (max-width:420px) {
  .drive-grid:not(.as-list) { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
.plan-row.plan-focus { border-color:var(--accent) !important; box-shadow:0 0 0 3px rgba(216,255,62,.16); }

/* Back to website */
.site-link { display:flex; align-items:center; gap:8px; margin:auto 0 10px; padding:9px 10px; border-radius:8px; color:#8f988f; font:600 13px 'Manrope', sans-serif; text-decoration:none; }
.site-link:hover { background:#1f2620; color:#fff; }
.site-link + .team-card { margin-top:0; }
a.hmm-row { text-decoration:none; }

/* QR labels page */
.demo-note { align-self:center; font:12px 'DM Mono', monospace; color:#7b857d; }
.label-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:14px; margin-top:32px; }
.label-card { border:1px solid #282f29; border-radius:13px; background:#121713; padding:16px; display:flex; flex-direction:column; gap:14px; }
.sticker { background:#f1efe6; color:#101310; border-radius:8px; padding:14px 14px 14px 16px; display:flex; gap:12px; align-items:center; box-shadow:0 12px 28px rgba(0,0,0,.35); }
.sticker-text { flex:1; min-width:0; }
.sticker-text b { display:block; font-size:15px; font-weight:800; line-height:1.15; text-transform:uppercase; overflow-wrap:anywhere; }
.sticker-text small { display:block; font:11px 'DM Mono', monospace; color:#555c56; margin-top:5px; }
.sticker-text em { display:block; font-style:normal; font-size:11.5px; color:#3d443e; margin-top:6px; }
.sticker-text span { display:block; font:700 9px 'Manrope', sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#8b938c; margin-top:10px; }
.sticker-qr { width:84px; height:84px; flex:none; background:#fff; border-radius:4px; }
.sticker-qr svg { width:100%; height:100%; display:block; }
.label-card-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.label-card-foot small { font-size:12px; color:#7b857d; }
.label-card-foot > div { display:flex; gap:6px; }
.print-ways { display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; margin-top:28px; border:1px solid #262d27; border-radius:12px; overflow:hidden; background:#262d27; }
.print-ways > div { background:#0f1310; padding:16px 18px; }
.print-ways b { display:block; font-size:13.5px; }
.print-ways span { display:block; font-size:12.5px; line-height:1.55; color:#8a948b; margin-top:6px; }
.empty-block { margin-top:40px; border:1px dashed #343c35; border-radius:14px; padding:48px 20px; text-align:center; color:#8a948b; }
.empty-block > .icon { font-size:40px; color:var(--accent); }
.empty-block h2 { color:#f5f6f1; font-size:22px; margin:10px 0 6px; }
.empty-block .button { margin-top:16px; }
@media (max-width:900px) { .print-ways { grid-template-columns:1fr; } }
@media (max-width:760px) { .site-link { display:none; } .label-grid { grid-template-columns:1fr; } .label-card-foot > div { width:100%; } .label-card-foot .button { flex:1; } }
