:root {
  color-scheme: light;
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --line: #dce8f5;
  --text: #102033;
  --muted: #6c7f95;
  --blue: #177ddc;
  --blue-dark: #0e62b3;
  --green: #26a65b;
  --danger: #d94d4d;
  --shadow: 0 20px 60px rgba(30, 88, 140, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body { margin: 0; background: radial-gradient(circle at top right, #d9efff, transparent 36rem), var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 19rem 1fr; }

.mobile-nav-scrim, .mobile-menu-button { display: none; }
.sidebar { min-width: 0; background: #0f2238; color: white; padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.brand { display: flex; gap: 1rem; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: linear-gradient(135deg, #22a7f0, #1abc9c); font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.eyebrow { margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); font-weight: 800; }
.sidebar .eyebrow { color: #9cc7ef; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.35rem; }
h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.08; margin-bottom: .8rem; }
.side-nav { display: grid; gap: .5rem; margin-bottom: auto; }
.side-nav button { border: 0; background: transparent; color: #c6dbef; text-align: left; padding: .85rem 1rem; border-radius: .9rem; display: flex; align-items: center; gap: .75rem; }
.side-nav button:hover, .side-nav button.active { background: rgba(255,255,255,.12); color: white; }
.storage-card { min-width: 0; overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 1rem; border-radius: 1.1rem; display: grid; gap: .45rem; }
.storage-card span, .storage-card small { color: #c3d9ec; line-height: 1.5; font-size: .9rem; }
.storage-card code { color: white; }
.workspace { padding: 2rem; display: grid; gap: 1.5rem; align-content: start; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.search-box { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .45rem .35rem 1rem; min-width: min(26rem, 45vw); box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; color: var(--muted); font-weight: 700; }
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--text); padding: .7rem; }
.hero, .panel { background: rgba(255,255,255,.78); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.85); border-radius: 1.6rem; box-shadow: var(--shadow); }
.hero { padding: clamp(1.25rem, 3vw, 2rem); display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; }
.hero p { max-width: 48rem; color: var(--muted); line-height: 1.6; }
.shortcut-hints { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; color: var(--muted); font-weight: 800; }
.shortcut-hints span { display: inline-flex; align-items: center; gap: .35rem; background: rgba(23, 125, 220, .08); border: 1px solid rgba(23, 125, 220, .12); border-radius: 999px; padding: .35rem .65rem; }
kbd { min-width: 1.55rem; display: inline-grid; place-items: center; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: .45rem; background: white; color: var(--blue-dark); padding: .05rem .35rem; font-weight: 900; box-shadow: 0 4px 10px rgba(31, 77, 123, .08); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.primary-button, .secondary-button, .icon-button { border: 0; border-radius: .85rem; padding: .85rem 1rem; font-weight: 800; }
.primary-button { background: linear-gradient(135deg, var(--blue), #18a4ef); color: white; box-shadow: 0 12px 24px rgba(23, 125, 220, .28); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary-button:hover { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.secondary-button { background: #eaf3fc; color: var(--blue-dark); }
.secondary-button.danger { color: var(--danger); }
.icon-button { width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0; background: #eef5fc; color: var(--muted); }
.icon-button.active { background: var(--blue); color: white; }
.insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.insight-card { background: rgba(255,255,255,.78); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.85); border-radius: 1.2rem; box-shadow: var(--shadow); padding: 1rem; display: grid; gap: .25rem; }
.insight-card span { color: var(--muted); font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.insight-card strong { color: var(--text); font-size: clamp(1.35rem, 3vw, 2rem); overflow-wrap: anywhere; }
.panel { min-height: 28rem; padding: 1rem; position: relative; }
.panel.drag-over { outline: 3px dashed var(--blue); outline-offset: .4rem; }
.drop-overlay { position: absolute; inset: 4.5rem 1rem 1rem; z-index: 4; display: none; align-items: center; justify-content: center; border: 2px dashed rgba(23, 125, 220, .45); border-radius: 1.25rem; background: rgba(247, 251, 255, .9); backdrop-filter: blur(12px); text-align: center; color: var(--blue-dark); pointer-events: none; }
.panel.drag-over .drop-overlay { display: flex; }
.drop-overlay div { display: grid; gap: .35rem; padding: 1.25rem 1.5rem; border-radius: 1rem; background: white; box-shadow: var(--shadow); }
.drop-overlay strong { font-size: clamp(1.35rem, 3vw, 2rem); }
.drop-overlay span { color: var(--muted); font-weight: 750; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .5rem 1rem; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.breadcrumbs button { border: 0; background: transparent; color: var(--blue-dark); font-weight: 800; padding: .4rem; border-radius: .5rem; }
.breadcrumbs button:hover { background: #eaf4ff; }
.breadcrumbs span { color: var(--muted); }
.view-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.selection-summary { color: var(--muted); font-size: .85rem; font-weight: 850; padding: 0 .25rem; }
.sort-control { color: var(--muted); font-size: .82rem; font-weight: 800; display: flex; align-items: center; gap: .35rem; }
.sort-control select { border: 1px solid var(--line); border-radius: .65rem; padding: .45rem .7rem; background: white; color: var(--text); font-weight: 700; }
.storage-meter { height: .55rem; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.18); }
.storage-meter span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #26a65b, #73d13d); transition: width .25s ease; }
.storage-meter span[data-tone="warning"] { background: linear-gradient(90deg, #faad14, #ffd666); }
.storage-meter span[data-tone="danger"] { background: linear-gradient(90deg, #d94d4d, #ff7875); }
.storage-meter span[data-tone="owner"] { background: linear-gradient(90deg, #177ddc, #18a4ef); }
.recent-card { gap: .65rem; }
.recent-list { min-width: 0; list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.recent-list li { min-width: 0; color: #c3d9ec; font-size: .85rem; }
.recent-list button { display: block; width: 100%; max-width: 100%; border: 0; background: rgba(255,255,255,.08); color: #e6f2ff; border-radius: .65rem; padding: .55rem .65rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list button:hover { background: rgba(255,255,255,.15); }
.app-version { display: block; margin-top: .6rem; color: #9cc7ef; font-weight: 800; letter-spacing: .04em; }

.status { color: var(--muted); padding: 1rem .5rem 0; min-height: 2.5rem; }
.status[data-tone="success"] { color: var(--green); font-weight: 800; }
.status[data-tone="error"] { color: var(--danger); font-weight: 800; }
.upload-progress { margin: .35rem .5rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: #f8fbff; display: grid; gap: .55rem; }
.upload-progress[hidden] { display: none; }
.upload-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text); font-size: .9rem; }
.upload-progress-heading strong { flex: 1; overflow-wrap: anywhere; }
.upload-progress-heading span { color: var(--blue-dark); font-weight: 850; }
.upload-cancel-button { border: 0; border-radius: 999px; width: 1.75rem; height: 1.75rem; display: inline-grid; place-items: center; background: #ffecec; color: var(--danger); font-size: 1.15rem; font-weight: 900; line-height: 1; cursor: pointer; }
.upload-cancel-button:hover { background: #ffd9d9; }
.upload-progress-track { height: .65rem; overflow: hidden; border-radius: 999px; background: #e2edf9; }
.upload-progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #56c2ff); transition: width .2s ease; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; padding-top: 1rem; }
.empty-state { grid-column: 1 / -1; min-height: 18rem; display: grid; place-items: center; align-content: center; gap: .8rem; padding: 2rem; border: 1px dashed #bfd8f0; border-radius: 1.25rem; background: linear-gradient(135deg, rgba(237, 246, 255, .9), rgba(255, 255, 255, .92)); text-align: center; }
.empty-state strong { font-size: clamp(1.35rem, 3vw, 2rem); }
.empty-state p { max-width: 34rem; color: var(--muted); line-height: 1.6; margin-bottom: .35rem; }
.empty-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 1.35rem; background: #edf6ff; font-size: 2rem; box-shadow: inset 0 0 0 1px #d7e9fb; }
.file-grid.list { grid-template-columns: 1fr; }
.file-card { border: 1px solid var(--line); background: var(--surface); border-radius: 1.1rem; padding: 1rem; display: grid; gap: .85rem; transition: transform .16s ease, box-shadow .16s ease; }
.file-card.selected { border-color: var(--blue); box-shadow: 0 15px 30px rgba(23, 125, 220, .16); }
.selection-check { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); justify-self: end; }
.file-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(31, 77, 123, .12); }
.file-grid.list .file-card { grid-template-columns: auto auto 1fr auto; align-items: center; }
.file-icon { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.45rem; background: #edf6ff; }
.file-icon.folder { background: #fff4d7; }
.file-title { border: 0; background: transparent; padding: 0; color: var(--text); text-align: left; font-weight: 850; overflow-wrap: anywhere; }
.file-title.folder { color: var(--blue-dark); }
.meta { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.actions button, .actions a { border: 1px solid var(--line); background: #f8fbff; color: var(--text); text-decoration: none; border-radius: .65rem; padding: .45rem .6rem; font-size: .82rem; font-weight: 750; }
.actions button:hover, .actions a:hover { border-color: #b9d7f3; background: #edf6ff; }
.actions .favorite-button { color: #8a5a00; background: #fff8e1; border-color: #ffe2a8; }
.actions .favorite-button.active { color: #6f4700; background: linear-gradient(135deg, #fff1b8, #ffd666); border-color: #ffc53d; }
.actions .danger { color: var(--danger); }
dialog { border: 0; border-radius: 1.2rem; padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 22, 35, .45); backdrop-filter: blur(4px); }
.dialog-card { width: min(25rem, calc(100vw - 2rem)); padding: 1.25rem; display: grid; gap: 1rem; }
.dialog-card label { display: grid; gap: .45rem; color: var(--muted); font-weight: 700; }
.dialog-card input { border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem; }
.dialog-card menu { margin: 0; padding: 0; display: flex; justify-content: end; gap: .6rem; }
.share-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.share-card { background: white; border-radius: 1.6rem; box-shadow: var(--shadow); padding: 2rem; text-align: center; width: min(28rem, 100%); }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 2147483647; display: grid; gap: .6rem; width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { padding: .85rem 1rem; border-radius: .95rem; background: #102033; color: white; box-shadow: 0 16px 36px rgba(10, 22, 35, .25); font-weight: 800; line-height: 1.4; animation: toast-in .18s ease-out; }
.toast.success { background: linear-gradient(135deg, #14804a, #26a65b); }
.toast.error { background: linear-gradient(135deg, #b83232, #d94d4d); }
@keyframes toast-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 860px) {
  body.mobile-nav-open { overflow: hidden; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(20rem, 86vw);
    max-width: 86vw;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 18px 0 48px rgba(10, 22, 35, .32);
  }
  .shell.mobile-nav-open .sidebar { transform: translateX(0); }
  .mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: rgba(10, 22, 35, .24);
    backdrop-filter: blur(1px);
  }
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: .9rem;
    padding: .75rem 1rem;
    background: #0f2238;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 34, 56, .18);
  }
  .workspace { padding: 1rem; gap: 1rem; min-width: 100vw; transition: transform .22s ease; }
  .shell.mobile-nav-open .workspace { transform: translateX(min(20rem, 86vw)); }
  .topbar, .hero { flex-direction: column; align-items: stretch; }
  .topbar { gap: .75rem; }
  .search-box { min-width: 100%; border-radius: 1rem; flex-wrap: wrap; }
  .search-box input { min-width: 10rem; }
  .hero-actions .primary-button, .hero-actions .secondary-button { flex: 1 1 10rem; }
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(30rem, 100%); background: white; border-radius: 1.6rem; box-shadow: var(--shadow); padding: 2rem; display: grid; gap: 1rem; }
.auth-card label { display: grid; gap: .45rem; color: var(--muted); font-weight: 800; }
.auth-card input { border: 1px solid var(--line); border-radius: .85rem; padding: .9rem 1rem; }
[hidden] { display: none !important; }

.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-heading h3 { margin-bottom: 0; }
.detail-dialog { width: min(58rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: hidden; }
.detail-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(3px); }
.detail-card { width: 100%; max-height: calc(100vh - 4rem); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
#detailBody, #utilityBody, #billingBody { min-height: 0; overflow: auto; padding-right: .35rem; }
.preview-box { min-height: 12rem; max-height: 55vh; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-soft); display: grid; place-items: center; overflow: hidden; }
.preview-box img, .preview-box video, .preview-box iframe { width: 100%; max-height: 55vh; border: 0; object-fit: contain; }
.preview-box audio { width: min(28rem, calc(100% - 2rem)); }
.preview-box iframe { min-height: 28rem; }
.preview-placeholder { font-size: clamp(3rem, 12vw, 8rem); filter: drop-shadow(0 14px 22px rgba(31, 77, 123, .12)); }
.detail-list { display: grid; gap: .7rem; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.detail-list dt { color: var(--muted); font-weight: 850; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-list code { background: #edf6ff; border-radius: .5rem; padding: .2rem .35rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.archive-panel { border: 1px solid var(--line); border-radius: 1rem; background: #fbfdff; padding: 1rem; display: grid; gap: .75rem; }
.archive-heading { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; color: var(--muted); }
.archive-heading strong { color: var(--text); }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-height: 18rem; overflow: auto; }
.archive-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; border: 1px solid var(--line); border-radius: .75rem; padding: .55rem .7rem; background: #fff; }
.archive-list code { overflow-wrap: anywhere; }
.archive-list span:last-child, .archive-empty { color: var(--muted); }
@media (max-width: 620px) {
  .toolbar { align-items: stretch; flex-direction: column; }
  .view-actions { justify-content: flex-start; }
  .file-grid { grid-template-columns: 1fr; }
  .file-grid.list .file-card { grid-template-columns: 1fr; }
  .detail-list div { grid-template-columns: 1fr; gap: .2rem; }
  .insights { grid-template-columns: 1fr; }
  .panel, .hero { border-radius: 1rem; }
  .dialog-card { width: calc(100vw - 1rem); }
  .detail-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
}

.mini-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .25rem; }
.mini-actions .primary-button, .mini-actions .secondary-button { flex: 1 1 7rem; padding: .65rem .75rem; font-size: .86rem; }
button:disabled, .primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.billing-body { display: grid; gap: 1rem; }
.billing-hero, .ad-reward-panel, .plan-card { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 1rem; padding: 1rem; }
.billing-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.billing-hero strong, .plan-card strong { display: block; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--text); }
.billing-hero span, .plan-card span, .ad-reward-panel p, .billing-note { color: var(--muted); line-height: 1.5; }
.ad-reward-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, #f7fbff, #eef8ff); }
.ad-reward-panel h4 { margin: 0 0 .45rem; font-size: 1.25rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.plan-card { display: grid; gap: .55rem; }
.plan-card.active { border-color: rgba(38, 166, 91, .45); background: #f0fff6; }
.plan-card b { color: var(--blue-dark); }
.billing-note { margin: 0; font-size: .9rem; }
@media (max-width: 760px) {
  .billing-hero, .plan-grid { grid-template-columns: 1fr; }
  .ad-reward-panel { align-items: stretch; flex-direction: column; }
}
.ad-slot { min-height: 5.5rem; margin-top: .75rem; border: 1px dashed #bfd8f0; border-radius: .85rem; background: rgba(255,255,255,.72); color: var(--muted); display: grid; place-items: center; text-align: center; padding: .75rem; font-size: .9rem; }
.ad-slot .adsbygoogle { width: 100%; min-height: 5rem; }
.text-preview { max-height: 22rem; overflow: auto; white-space: pre-wrap; background: #0f172a; color: #e2e8f0; border-radius: .75rem; padding: 1rem; width: 100%; box-sizing: border-box; }
.text-editor { display: grid; gap: .8rem; min-height: min(70vh, 44rem); }
.editor-toolbar { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem; font-weight: 750; }
.text-editor textarea { width: 100%; min-height: min(58vh, 36rem); box-sizing: border-box; resize: vertical; border: 1px solid var(--line); border-radius: .85rem; padding: 1rem; background: #0f172a; color: #e2e8f0; font: .9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.folder-picker-dialog.detail-dialog { width: min(22rem, calc(100vw - 2rem)); background: #171d27; }
.folder-picker-dialog .dialog-card { width: auto; padding: 0; }
.folder-picker-dialog .dialog-heading { display: none; }
.folder-picker { width: min(22rem, 86vw); min-height: 30rem; display: grid; grid-template-rows: auto 1fr auto; background: #171d27; color: #e5edf7; margin: 0; }
.folder-picker-header, .folder-picker-footer { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #1d2330; border-bottom: 1px solid #2c3444; }
.folder-picker-header strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-picker-icon { border: 0; background: transparent; color: #9aa6b8; font-size: 1.75rem; line-height: 1; padding: .15rem .3rem; }
.folder-picker-list { overflow: auto; }
.folder-picker-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; border: 0; border-bottom: 1px solid #2c3444; background: transparent; color: inherit; padding: .7rem 1rem; text-align: left; }
.folder-picker-row:hover { background: #202839; }
.folder-picker-folder { font-size: 1.85rem; line-height: 1; }
.folder-picker-row strong, .folder-picker-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-picker-row small, .folder-picker-new { color: #97a3b6; }
.folder-picker-empty, .folder-picker-loading { color: #97a3b6; padding: 1rem; }
.folder-picker-footer { border-top: 1px solid #2c3444; border-bottom: 0; justify-content: flex-end; }
.folder-picker-new { margin-right: auto; border: 0; background: transparent; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .5rem; }
.folder-picker-new span { font-size: 1rem; }

.search-box select, .search-box input[aria-label="Extension filter"] { border: 0; background: #edf6ff; border-radius: .6rem; padding: .35rem .5rem; max-width: 5rem; }
.media-shelf { grid-column: 1 / -1; }
.media-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0; }
.media-strip button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.media-strip img { width: 6rem; height: 4.5rem; object-fit: cover; border-radius: .6rem; box-shadow: 0 4px 14px rgba(31,77,123,.16); }
.archive-panel textarea, .archive-panel input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: .65rem; padding: .55rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.share-actions a, .share-actions button { border: 0; border-radius: .55rem; padding: .45rem .6rem; background: #edf6ff; color: var(--blue-dark); font-weight: 850; text-decoration: none; cursor: pointer; }
.share-actions .danger, button.danger { background: #ffecec; color: #a12626; }
.archive-list small { display: block; margin-top: .2rem; color: var(--muted); font-family: inherit; font-weight: 750; }
.shortcut-help-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.shortcut-grid { display: grid; gap: .65rem; margin: 0; }
.shortcut-grid div { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: .85rem; padding: .7rem .8rem; background: white; }
.shortcut-grid dt, .shortcut-grid dd { margin: 0; }
.shortcut-grid dt { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.shortcut-grid dd { color: var(--muted); font-weight: 750; line-height: 1.45; }
.check-row { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--text); }
.check-row input[type="checkbox"] { width: auto; }
.share-card form { display: grid; gap: .75rem; }
.share-card input[type="file"] { width: 100%; margin-top: .35rem; }
.share-list li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.download-count { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; background: #eef8ff; color: var(--blue-dark); font-weight: 900; padding: .35rem .65rem; }
@media (max-width: 760px) { .share-list li { grid-template-columns: auto minmax(0, 1fr); } .share-list .download-count, .share-list .share-actions { grid-column: 2; justify-content: flex-start; } }
.export-progress { margin: 0; }
.export-progress small { color: var(--muted); font-weight: 750; }

.file-thumbnail { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.gallery-viewer .preview-box { min-height: 22rem; }
.gallery-viewer .preview-box img, .gallery-viewer .preview-box video { max-height: 70vh; }
.share-qr { align-items: center; text-align: center; }
.share-qr img { width: 11rem; height: 11rem; border-radius: .75rem; border: 1px solid var(--line); background: white; padding: .35rem; justify-self: center; }
.share-quick-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.public-gallery { margin: 1rem 0; }

.account-tools-panel form { display: grid; gap: .75rem; }
.two-factor-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; background: #fff; padding: .9rem; }
.two-factor-card h4, .two-factor-card p { margin: 0; }
.two-factor-card h4 { color: var(--text); }
.two-factor-icon { width: 2.6rem; height: 2.6rem; border-radius: .9rem; display: grid; place-items: center; background: #edf6ff; font-size: 1.25rem; }
.security-badge { border-radius: 999px; background: #f0f2f5; color: var(--muted); font-weight: 900; padding: .35rem .65rem; white-space: nowrap; }
.security-badge.enabled { background: #e7f8ef; color: #14804a; }
.two-factor-panel label { display: grid; gap: .45rem; color: var(--muted); font-weight: 800; }
.two-factor-panel input { border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem; font: inherit; }
.archive-panel textarea { border: 1px solid var(--line); border-radius: .75rem; padding: .85rem 1rem; font: inherit; resize: vertical; }
.two-factor-panel input[name="code"], .two-factor-panel input[name="twoFactorCode"] { font-size: 1.15rem; font-weight: 900; letter-spacing: .18em; text-align: center; }
.two-factor-steps { display: grid; gap: .75rem; }
.two-factor-steps > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .7rem; align-items: center; border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: .8rem; }
.two-factor-steps > div > span { grid-row: span 2; width: 1.75rem; height: 1.75rem; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 900; }
.two-factor-steps code { overflow-wrap: anywhere; background: #edf6ff; border-radius: .55rem; padding: .45rem .55rem; }
.two-factor-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.two-factor-qr { display: grid; justify-items: start; gap: .45rem; margin: 0; }
.two-factor-qr img { width: 11rem; height: 11rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: .45rem; }
.two-factor-qr figcaption { color: var(--muted); font-size: .9rem; }
.two-factor-steps label { grid-column: 2; }
@media (max-width: 620px) {
  .two-factor-card { grid-template-columns: auto minmax(0, 1fr); }
  .security-badge { grid-column: 2; justify-self: start; }
}

.file-card { position: relative; }
.file-card:hover { z-index: 2; }
.file-card.menu-open { z-index: 40; }
.actions { justify-content: flex-end; }
.file-action-menu-wrap { position: relative; margin-left: auto; }
.file-action-toggle { width: 2rem; height: 2rem; border: 0; border-radius: .25rem; background: transparent; color: #0f172a; font-size: 1.25rem; font-weight: 900; line-height: 1; display: inline-grid; place-items: center; padding: 0; }
.file-action-toggle:hover, .file-action-toggle[aria-expanded="true"] { background: #f5f5f5; }
.file-action-menu { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 100; display: none; min-width: min(11.25rem, calc(100vw - 1rem)); max-width: calc(100vw - 1rem); padding: 0; background: #fff; border: 1px solid #dfe3ea; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); overflow: auto; }
.file-action-menu.open { display: block; }
.file-action-menu-item { width: 100%; min-height: 2.4rem; display: flex; align-items: center; gap: .8rem; border: 0; border-radius: 0; background: #fff; color: #172b4d; padding: .55rem 1rem; text-decoration: none; font-size: .86rem; font-weight: 500; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.file-action-menu-item:hover { background: #f5f7fb; }
.file-action-menu-item.danger { color: #172b4d; }
.file-action-icon { width: 1.1rem; color: #7d8799; display: inline-grid; place-items: center; font-size: 1rem; line-height: 1; }
.file-action-menu-separator { height: 1px; background: #e6e9ef; margin: .25rem 0; }
.file-grid.list .file-action-menu { right: 0; }
@media (max-width: 860px) {
  .file-card.menu-open { z-index: 90; }
  .file-action-menu {
    max-height: min(70vh, 28rem);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .28);
  }
}

@media (max-width: 720px) {
  .toolbar { align-items: stretch; }
  .view-actions { width: 100%; justify-content: stretch; }
  .view-actions button, .view-actions .sort-control { flex: 1 1 9rem; }
  .folder-picker-dialog.detail-dialog { width: calc(100vw - 1rem); }
  .folder-picker { width: calc(100vw - 1rem); min-height: min(34rem, calc(100vh - 2rem)); }
}

/* DropShare media-first experience */
:root {
  --bg: #f8f7fc;
  --surface-soft: #faf9fd;
  --line: #e9e5f1;
  --text: #211a2d;
  --muted: #81788f;
  --blue: #7452d6;
  --blue-dark: #5939b7;
  --shadow: 0 18px 50px rgba(56, 38, 91, .09);
}

body { background: radial-gradient(circle at 64% -10%, #eee7ff 0, transparent 28rem), var(--bg); }
.shell { grid-template-columns: 17rem 1fr; }
.sidebar { background: #fff; color: var(--text); border-right: 1px solid var(--line); padding: 1.75rem 1.25rem; gap: 1.35rem; }
.brand { padding: 0 .45rem; }
.brand-mark { width: 2.8rem; height: 2.8rem; border-radius: .9rem; background: linear-gradient(145deg, #8b68e8, #6040bd); box-shadow: 0 10px 24px rgba(112, 78, 199, .25); }
.sidebar .eyebrow { color: #a099aa; }
.side-nav { gap: .25rem; }
.side-nav button { color: #746d7e; font-weight: 700; }
.side-nav button:hover, .side-nav button.active { color: #6845c5; background: #f1ecfc; }
.storage-card { color: var(--text); background: #f8f5fd; border-color: #ebe4f8; }
.storage-card span, .storage-card small, .storage-card code { color: #7d718c; }
.storage-card .eyebrow { color: #8064ca; }
.workspace { padding: 2rem clamp(1.25rem, 3vw, 3rem); gap: 1.35rem; max-width: 110rem; width: 100%; margin: 0 auto; }
.topbar h2 { font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
.search-box { box-shadow: none; border-color: var(--line); min-width: min(28rem, 45vw); }
.hero, .panel, .insight-card { box-shadow: var(--shadow); border-color: rgba(234, 229, 242, .9); }
.media-hero { position: relative; min-height: 24rem; padding: clamp(1.5rem, 4vw, 3rem); align-items: center; background: linear-gradient(120deg, #fcfaff 0%, #f7f2ff 55%, #fff 100%); overflow: hidden; }
.media-hero::before, .media-hero::after { content: ''; position: absolute; border-radius: 999px; pointer-events: none; }
.media-hero::before { width: 18rem; height: 18rem; right: 24%; top: -10rem; background: rgba(141, 105, 230, .08); }
.media-hero::after { width: 12rem; height: 12rem; left: 36%; bottom: -9rem; border: 2rem solid rgba(116, 82, 214, .04); }
.hero-copy { position: relative; z-index: 1; flex: 1 1 28rem; }
.hero-badge { display: inline-flex; padding: .45rem .75rem; margin-bottom: 1.1rem; border-radius: 999px; background: #eee7fc; color: #6c49c8; font-size: .78rem; font-weight: 850; letter-spacing: .03em; }
.media-hero h3 { max-width: 32rem; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.055em; line-height: .98; }
.media-hero h3 em { color: #7654d4; font-style: normal; }
.media-hero p { max-width: 31rem; font-size: 1.02rem; }
.share-destinations { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; font-weight: 800; }
.app-dot { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border-radius: 999px; color: white; font-size: .86rem; box-shadow: 0 5px 14px rgba(43, 30, 65, .12); }
.app-dot.whatsapp { background: #25c46a; }.app-dot.instagram { background: linear-gradient(135deg, #8a3ab9, #e95950, #fccc63); }.app-dot.messages { background: #36a9f4; }.app-dot.facebook { background: #2675df; }.app-dot.more { background: #9b94a5; font-size: .7rem; }
.hero-drop { position: relative; z-index: 1; flex: 0 1 27rem; min-height: 18rem; border: 2px dashed #cfc1ed; border-radius: 1.6rem; background: rgba(255, 255, 255, .76); color: var(--text); display: grid; place-items: center; align-content: center; gap: .55rem; padding: 1.5rem; text-align: center; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.hero-drop:hover { transform: translateY(-3px); border-color: #8d6bdb; box-shadow: 0 18px 42px rgba(93, 59, 173, .14); }
.hero-drop strong { font-size: 1.08rem; }.hero-drop small { color: var(--muted); }
.upload-orbit { width: 4.25rem; height: 4.25rem; display: grid; place-items: center; border-radius: 1.4rem; background: #eee8fd; color: #6f4dcc; font-size: 2rem; margin-bottom: .25rem; }
.upload-orbit span { transform: translateY(-.1rem); }
.browse-pill { border-radius: .75rem; padding: .7rem 1.15rem; margin: .25rem 0; background: #7654d4; color: #fff; font-weight: 850; box-shadow: 0 8px 18px rgba(101, 70, 188, .22); }
.media-secondary-actions { position: absolute; left: clamp(1.5rem, 4vw, 3rem); bottom: 1.1rem; z-index: 2; }
.media-secondary-actions .secondary-button { padding: .55rem .75rem; background: transparent; color: #786e85; font-size: .8rem; }
.file-icon { background: #f0ebfc; }.file-icon.folder { background: #fff2cf; }.file-title.folder { color: var(--blue-dark); }
.primary-button { background: linear-gradient(135deg, #7958d8, #9b75e8); box-shadow: 0 12px 24px rgba(99, 67, 183, .22); }
.primary-button:hover { background: linear-gradient(135deg, #6240be, #7958d8); }
.secondary-button { color: #6244b4; background: #f0ebfa; }

@media (max-width: 1020px) {
  .media-hero { flex-direction: column; align-items: stretch; }
  .hero-drop { flex-basis: auto; }
  .media-secondary-actions { position: static; }
}
@media (max-width: 860px) {
  .sidebar { background: #fff; }
  .mobile-menu-button { background: #6846c4; }
  .workspace { min-width: 100vw; }
}

/* DropShare Studio — focused workspace refresh */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e3e8ef;
  --text: #172033;
  --muted: #697386;
  --blue: #5b5ce2;
  --blue-dark: #4546c6;
  --shadow: 0 12px 36px rgba(23, 32, 51, .07);
}

body { background: var(--bg); }
.shell { grid-template-columns: 15.5rem minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  gap: 1.2rem;
  color: #dce3ef;
  background: #151b2b;
  border: 0;
}
.brand { padding: .2rem .5rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .78rem;
  color: #fff;
  background: linear-gradient(145deg, #7c6ff2, #4d5be7);
  box-shadow: 0 10px 24px rgba(75, 86, 223, .3);
  font-size: 1.3rem;
}
.brand h1 { color: #fff; font-size: 1.12rem; letter-spacing: -.02em; }
.sidebar .eyebrow { color: #748096; font-size: .62rem; }
.side-nav { gap: .18rem; }
.side-nav button {
  min-height: 2.65rem;
  padding: .65rem .72rem;
  border-radius: .65rem;
  color: #9da8ba;
  font-size: .86rem;
  font-weight: 650;
}
.side-nav button span { width: 1.35rem; color: #778399; font-size: 1rem; text-align: center; }
.side-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav button.active { color: #fff; background: #5960df; box-shadow: 0 8px 20px rgba(44, 51, 160, .25); }
.side-nav button.active span { color: #fff; }
.storage-card {
  padding: .85rem;
  border-radius: .75rem;
  color: #e5e9f1;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.07);
}
.storage-card span, .storage-card small, .storage-card code { color: #8e99ab; font-size: .76rem; }
.storage-card .eyebrow { color: #7d87a0; }
.storage-card strong { font-size: .82rem; }
.storage-meter { background: rgba(255,255,255,.09); }
.earn-card, .recent-card { display: none; }

.workspace { max-width: 104rem; padding: 1.65rem clamp(1.25rem, 3vw, 2.75rem) 3rem; gap: 1.1rem; }
.topbar { min-height: 3.8rem; }
.topbar h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.topbar .eyebrow { margin-bottom: .15rem; color: #929bad; }
.search-box {
  min-width: min(31rem, 52vw);
  padding: .25rem .35rem .25rem .85rem;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 3px 14px rgba(23,32,51,.04);
}
.search-box > span { font-size: 0; }
.search-box > span::before { content: '⌕'; font-size: 1.15rem; color: #98a2b3; }
.search-box input { padding: .62rem .35rem; font-size: .88rem; }
.search-box select, .search-box input[aria-label="Extension filter"] { background: #f4f6f9; }

.hero, .panel, .insight-card { border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; }
.media-hero {
  min-height: 17rem;
  padding: 2rem clamp(1.5rem, 3vw, 2.6rem);
  border-radius: 1rem;
  background: linear-gradient(125deg, #202844 0%, #293257 52%, #343466 100%);
}
.media-hero::before { width: 24rem; height: 24rem; right: 22%; top: -17rem; background: rgba(144,131,255,.16); }
.media-hero::after { left: 43%; bottom: -10rem; border-color: rgba(134,125,255,.07); }
.hero-badge { margin-bottom: .8rem; padding: .35rem .62rem; color: #c9c8ff; background: rgba(147,139,255,.13); }
.media-hero h3 { max-width: 31rem; margin-bottom: .7rem; color: #fff; font-size: clamp(2.05rem, 4vw, 3.45rem); }
.media-hero h3 em { color: #a9a8ff; }
.media-hero p { margin-bottom: 1rem; color: #abb5ca; font-size: .94rem; }
.share-destinations { color: #8e9bb4; }
.hero-drop {
  flex-basis: 24rem;
  min-height: 13.5rem;
  border: 1px dashed rgba(189,193,255,.48);
  border-radius: .9rem;
  color: #fff;
  background: rgba(255,255,255,.065);
}
.hero-drop:hover { border-color: #b8b6ff; background: rgba(255,255,255,.1); box-shadow: none; }
.hero-drop small { color: #aab4c8; }
.upload-orbit { width: 3.3rem; height: 3.3rem; border-radius: .85rem; color: #fff; background: #6267e4; font-size: 1.55rem; }
.browse-pill { padding: .6rem 1rem; background: #fff; color: #343a65; box-shadow: none; }
.media-secondary-actions { position: static; margin-top: 1rem; }
.media-secondary-actions .secondary-button {
  padding: .52rem .75rem;
  color: #d9def0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.media-secondary-actions .secondary-button:hover { color: #fff; background: rgba(255,255,255,.14); }

.insights { gap: .75rem; }
.insight-card { padding: .85rem 1rem; border-radius: .8rem; background: #fff; }
.insight-card span { font-size: .67rem; color: #929bad; }
.insight-card strong { font-size: 1.35rem; letter-spacing: -.03em; }
.panel { min-height: 30rem; padding: .85rem; border-radius: 1rem; background: #fff; }
.toolbar { padding: .35rem .35rem .8rem; }
.breadcrumbs button { color: var(--text); }
.view-actions { gap: .4rem; }
.sort-control, .secondary-button { border-radius: .6rem; }
.secondary-button { color: #5058c9; background: #f0f1ff; box-shadow: none; }
.icon-button { border-radius: .55rem; }
.file-grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.file-card { padding: .85rem; border-radius: .8rem; box-shadow: none; }
.file-card:hover { transform: translateY(-2px); border-color: #cbd1dc; box-shadow: 0 10px 24px rgba(23,32,51,.08); }
.file-icon { border-radius: .7rem; background: #eef0ff; }
.file-icon.folder { background: #fff4d6; }
.primary-button { background: #5a61df; box-shadow: 0 8px 18px rgba(80,88,207,.2); }
.primary-button:hover { background: #484fca; }
.file-action-menu {
  min-width: 12rem;
  padding: .35rem;
  border-color: #e2e6ed;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(23,32,51,.16);
}
.actions .file-action-menu-item,
.actions a.file-action-menu-item {
  min-height: 2.05rem;
  gap: .62rem;
  padding: .4rem .55rem;
  border: 0;
  border-radius: .42rem;
  color: #30394a;
  background: transparent;
  font-size: .78rem;
  font-weight: 650;
}
.actions .file-action-menu-item:hover,
.actions a.file-action-menu-item:hover { border: 0; color: #222a3a; background: #f2f4f7; }
.actions .file-action-menu-item.danger { color: #c43f4a; }
.actions .file-action-menu-item.danger:hover { background: #fff0f1; }
.file-action-icon { width: 1rem; color: #8993a3; font-size: .85rem; }
.actions .file-action-menu-item.danger .file-action-icon { color: #d55a63; }
.file-action-menu-separator { margin: .25rem .2rem; background: #e8ebf0; }
.auth-screen { background: radial-gradient(circle at 20% 10%, #343e69, transparent 40rem), #151b2b; }
.auth-card { border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; box-shadow: 0 30px 70px rgba(0,0,0,.28); }

@media (max-width: 1020px) {
  .media-hero { min-height: auto; }
  .hero-drop { min-height: 12rem; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; height: 100vh; background: #151b2b; }
  .workspace { min-width: 100vw; padding-top: 1rem; }
  .mobile-menu-button { background: #5960df; }
  .topbar { flex-wrap: wrap; }
  .search-box { width: 100%; min-width: 0; }
}
@media (max-width: 620px) {
  .workspace { padding-inline: .75rem; }
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-hero { padding: 1.35rem; }
  .media-hero h3 { font-size: 2.15rem; }
  .share-destinations { display: none; }
}

/* Clean file-manager layout */
.workspace { gap: .9rem; }
.command-bar {
  min-height: 0;
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 27rem);
  align-items: center;
  gap: 1.25rem;
  overflow: visible;
  color: var(--text);
  background: #fff;
}
.command-bar::before, .command-bar::after { display: none; }
.command-bar .hero-copy { display: grid; grid-template-columns: 1fr; align-content: center; }
.command-bar .hero-badge { margin: 0 0 .2rem; padding: 0; color: #7a8497; background: transparent; font-size: .66rem; }
.command-bar h3 { margin: 0; color: #182033; font-size: 1.28rem; letter-spacing: -.025em; line-height: 1.25; }
.command-bar h3 em { color: inherit; }
.command-bar p { margin: .2rem 0 .75rem; color: #7a8497; font-size: .82rem; }
.command-bar .media-secondary-actions { margin: 0; gap: .45rem; }
.command-bar .media-secondary-actions .secondary-button {
  padding: .48rem .7rem;
  border: 1px solid #e1e6ee;
  color: #485266;
  background: #fff;
  font-size: .76rem;
}
.command-bar .media-secondary-actions .secondary-button:hover { color: #303a4e; border-color: #cbd2dd; background: #f7f8fa; }
.command-bar .hero-drop {
  min-height: 4.8rem;
  width: 100%;
  padding: .75rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  place-items: center start;
  align-content: center;
  gap: .75rem;
  border: 1px dashed #b9c1d0;
  border-radius: .75rem;
  color: #263046;
  background: #f8f9fc;
  text-align: left;
}
.command-bar .hero-drop:hover { transform: none; border-color: #6269dc; background: #f4f4ff; box-shadow: none; }
.command-bar .upload-orbit {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  border-radius: .65rem;
  color: #fff;
  background: #5960df;
  font-size: 1.35rem;
}
.upload-copy { min-width: 0; display: grid; gap: .12rem; }
.upload-copy strong { font-size: .86rem; }
.command-bar .upload-copy small { color: #7a8497; font-size: .72rem; }
.command-bar .browse-pill { margin: 0; padding: .45rem .65rem; border: 1px solid #dce1e9; border-radius: .5rem; color: #485266; background: #fff; box-shadow: none; font-size: .73rem; }

.insights { gap: .55rem; }
.insight-card { padding: .7rem .85rem; border-radius: .65rem; box-shadow: none; }
.insight-card strong { font-size: 1.12rem; }
.panel { border-radius: .75rem; box-shadow: none; }
.file-grid { padding-top: .75rem; }
.file-card { min-height: 11.5rem; align-content: start; gap: .7rem; border-radius: .65rem; }
.file-card:hover { transform: none; border-color: #bfc7d4; box-shadow: 0 6px 16px rgba(23,32,51,.06); }
.file-title { font-size: .88rem; line-height: 1.35; }
.meta { gap: .3rem; color: #7f899a; font-size: .74rem; }
.file-action-toggle { border: 1px solid transparent; border-radius: .45rem; color: #687387; }
.file-action-toggle:hover, .file-action-toggle[aria-expanded="true"] { border-color: #dfe4eb; background: #f4f6f8; }

@media (max-width: 1020px) {
  .command-bar { display: grid; grid-template-columns: 1fr; }
  .command-bar .hero-drop { min-height: 4.8rem; }
}
@media (max-width: 620px) {
  .command-bar { padding: 1rem; }
  .command-bar h3 { font-size: 1.15rem; }
  .command-bar .hero-drop { grid-template-columns: auto minmax(0, 1fr); }
  .command-bar .browse-pill { display: none; }
}

/* Single-row folder command bar */
.command-bar {
  grid-template-columns: minmax(12rem, 1fr) auto;
  min-height: 5.25rem;
  padding: .9rem 1rem;
}
.command-bar .hero-copy { display: block; }
.command-bar h3 { margin: 0; font-size: 1rem; }
.command-bar p { margin: .15rem 0 0; font-size: .76rem; }
.command-actions { justify-content: flex-end; gap: .45rem; }
.command-actions .primary-button,
.command-actions .secondary-button {
  min-height: 2.35rem;
  padding: .5rem .75rem;
  border-radius: .55rem;
  font-size: .76rem;
  white-space: nowrap;
}
.command-actions .primary-button { gap: .4rem; }
.command-actions .secondary-button { border: 1px solid #dfe4eb; color: #465166; background: #fff; }
.command-actions .secondary-button:hover { border-color: #c6cdd8; background: #f7f8fa; }

@media (max-width: 760px) {
  .command-bar { grid-template-columns: 1fr; }
  .command-actions { justify-content: flex-start; }
}
