:root {
  color-scheme: light;
  --ink: #202a28;
  --ink-soft: #35413e;
  --muted: #78827e;
  --muted-light: #a0a9a5;
  --line: #e7ebe7;
  --line-strong: #dbe2dd;
  --paper: #fbfcfa;
  --canvas: #f2f5f2;
  --white: #fff;
  --accent: #3d7968;
  --accent-dark: #2e6657;
  --accent-soft: #eaf3ef;
  --accent-pale: #f2f7f4;
  --warn: #b86947;
  --warn-soft: #fbf0ea;
  --shadow-sm: 0 1px 2px rgb(22 37 31 / 4%), 0 5px 16px rgb(22 37 31 / 3%);
  --shadow-md: 0 16px 48px rgb(22 37 31 / 12%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2,.75,.25,1);
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgb(61 121 104 / 24%); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.icon { display: block; flex: 0 0 auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); border: 0; }

/* A quiet, paper-like workspace with a compact navigation rail. */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 248px; padding: 27px 18px 16px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; margin: 0 0 54px 4px; color: var(--ink); font-size: 19px; font-weight: 720; letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--accent); background: var(--accent-soft); border-radius: 11px; }
.nav-caption { display: flex; align-items: center; justify-content: space-between; margin: 0 11px 11px; color: var(--muted-light); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.nav-caption span { font-size: 9px; letter-spacing: .16em; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; color: #65716d; background: transparent; border: 0; border-radius: 10px; text-align: left; cursor: pointer; transition: color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.nav-item:hover { color: var(--ink); background: #f5f7f5; }
.nav-item:active { transform: scale(.985); }
.nav-item.active { color: var(--accent-dark); background: var(--accent-soft); font-weight: 650; }
.nav-icon { display: grid; place-items: center; width: 24px; color: currentColor; }
.sidebar-spacer { flex: 1; min-height: 28px; }
.storage-peek { margin: 0 2px 20px; padding: 14px 13px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.storage-peek-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.storage-peek-top .icon { color: var(--muted); }
.storage-track { height: 5px; overflow: hidden; background: #e9eeea; border-radius: 20px; }
.storage-track i { display: block; height: 100%; min-width: 3px; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.storage-peek .storage-track { margin: 12px 0 8px; }
.storage-peek small { color: var(--muted); font-size: 11px; }
.sidebar-bottom { display: grid; gap: 9px; }
.server-state { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.server-state i, .online-label i, .service-status i, .online-badge i { width: 7px; height: 7px; background: #58a783; border-radius: 50%; box-shadow: 0 0 0 3px rgb(88 167 131 / 11%); }
.server-label { margin-left: auto; color: var(--muted-light); font-size: 10px; letter-spacing: .08em; }
.settings-nav { height: 40px; }
.profile { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 13px 3px 1px; border-top: 1px solid var(--line); }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 50%; font-size: 13px; font-weight: 700; }
.profile-meta { display: grid; min-width: 0; gap: 1px; }
.profile-meta strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta small { color: var(--muted); font-size: 10px; }
.logout-button { display: grid; place-items: center; width: 33px; height: 33px; margin-left: auto; color: var(--muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; transition: background .18s, color .18s; }
.logout-button:hover { color: var(--warn); background: var(--warn-soft); }
.shell-main { width: calc(100% - 248px); min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 clamp(24px, 4.3vw, 64px); background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumbs i { color: #c5ccc7; font-style: normal; }
.breadcrumbs strong { color: var(--ink-soft); font-weight: 650; }
.topbar-tools { display: flex; align-items: center; gap: 15px; }
.top-search { display: flex; align-items: center; gap: 9px; min-width: 165px; height: 35px; padding: 0 10px; color: #84908b; background: #f7f9f7; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 11px; transition: border .18s, background .18s; }
.top-search:hover { background: #fff; border-color: var(--line-strong); }
.top-search kbd, .search-field kbd { margin-left: auto; color: #99a29e; font-family: inherit; font-size: 10px; }
.top-divider { width: 1px; height: 18px; background: var(--line-strong); }
.online-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.main-content { width: min(100%, 1520px); margin: 0 auto; padding: 39px clamp(24px, 4.3vw, 64px) 22px; }
.page-view { animation: page-arrive .34s var(--ease) both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 25px; }
.eyebrow { margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.055em; line-height: 1.24; }
.page-heading h1 span { color: var(--accent); }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-footer { display: flex; justify-content: space-between; padding: 20px 1px 4px; color: #9aa49f; font-size: 10px; }
.app-footer i { margin: 0 4px; color: #c3cbc6; font-style: normal; }
.app-footer a { display: inline-flex; align-items: center; gap: 5px; transition: color .18s; }
.app-footer a:hover { color: var(--accent); }
.mobile-menu { display: none; }
.mobile-scrim { display: none; }

/* Controls, cards and forms */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgb(61 121 104 / 14%); }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 7px 16px rgb(61 121 104 / 21%); }
.button-primary.is-busy { animation: button-breathe 1.1s ease-in-out infinite; }
.button-outline { color: var(--ink-soft); background: #fff; border-color: var(--line-strong); }
.button-outline:hover { color: var(--accent-dark); border-color: #abc8bb; }
.button-quiet { color: var(--accent-dark); background: transparent; }
.button-quiet:hover, .button-soft:hover { background: #e1eee8; }
.button-soft { color: var(--accent-dark); background: var(--accent-soft); }
.button-danger-soft { color: #a45437; background: var(--warn-soft); border-color: #f4e1d7; }
.button-danger-soft:hover { background: #f8e5da; }
.button-danger { color: #fff; background: #b95d3d; }
.button-danger:hover { background: #a54d31; }
.button-danger-ghost { color: #a45437; background: transparent; border-color: transparent; }
.button-danger-ghost:hover { background: var(--warn-soft); }
.button-small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.full-button { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 2px; color: var(--accent); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 650; transition: color .18s; }
.text-link:hover { color: var(--accent-dark); }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-title { display: grid; gap: 2px; }
.card-title strong { color: var(--ink); font-size: 14px; font-weight: 690; }
.card-title span { color: var(--muted); font-size: 11px; }
.card-heading, .section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.field-label input, .field-label select, .role-select-label select { width: 100%; height: 43px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
.field-label input::placeholder { color: #a9b1ad; }
.field-label input:hover, .field-label select:hover { border-color: #bdcbc2; }
.field-label input:focus, .field-label select:focus, .role-select-label select:focus { border-color: #79a797; box-shadow: 0 0 0 3px rgb(61 121 104 / 10%); }
.input-wrap { position: relative; display: flex; }
.input-wrap input { padding-right: 44px; }
.input-affordance { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.input-affordance:hover { color: var(--accent); background: var(--accent-pale); }
.inline-error { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; color: #a24d34; background: var(--warn-soft); border: 1px solid #f0ded3; border-radius: 10px; font-size: 12px; }

/* Dashboard */
.dropzone { position: relative; display: flex; align-items: center; gap: 17px; min-height: 96px; margin-bottom: 13px; padding: 18px 20px; overflow: hidden; background: #f9fbf9; border: 1px dashed #b8cec3; border-radius: var(--radius); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.dropzone.dragging { background: #f1f7f3; border-color: var(--accent); transform: translateY(-1px); }
.drop-icon, .metric-mark, .service-mark, .section-icon, .empty-icon, .tile-icon, .file-kind, .share-icon, .queue-file-icon { display: grid; flex: 0 0 auto; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 11px; }
.drop-icon { width: 48px; height: 48px; }
.drop-copy { display: grid; gap: 2px; min-width: 0; }
.drop-copy strong { color: var(--ink); font-size: 13px; font-weight: 680; }
.drop-copy span { color: var(--muted); font-size: 11px; }
.dropzone > .button { margin-left: auto; }
.drop-orbit { position: absolute; right: 22%; width: 130px; height: 130px; border: 1px solid rgb(61 121 104 / 8%); border-radius: 50%; pointer-events: none; }
.service-strip { display: flex; align-items: center; gap: 13px; min-height: 65px; margin-bottom: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.service-mark { width: 39px; height: 39px; color: var(--accent); background: #eaf5ef; }
.service-strip > div { display: grid; gap: 1px; }
.service-strip > div strong { color: var(--ink); font-size: 12px; }
.service-strip > div span { color: var(--muted); font-size: 10px; }
.service-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 9px; color: #408469; background: #edf7f1; border-radius: 8px; font-size: 10px; }
.service-status i { width: 6px; height: 6px; box-shadow: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-grid.three-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; min-height: 120px; padding: 16px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.metric-card:hover { transform: translateY(-2px); border-color: #d6e2da; box-shadow: 0 9px 22px rgb(22 37 31 / 7%); }
.metric-mark { grid-column: 1; grid-row: 1; width: 32px; height: 32px; }
.metric-value { grid-column: 2; grid-row: 1; align-self: center; color: var(--ink); font-size: clamp(18px, 1.8vw, 25px); font-weight: 710; letter-spacing: -.045em; text-align: right; }
.metric-label { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 630; }
.metric-card small { grid-column: 1 / -1; align-self: end; margin-top: 8px; color: var(--muted-light); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.queue-card, .recent-card { min-height: 250px; padding: 19px; }
.recent-list, .queue-list { display: grid; }
.recent-list { margin-top: 15px; }
.recent-row { display: flex; align-items: center; gap: 11px; min-height: 59px; border-top: 1px solid #f0f2f0; }
.recent-file, .share-main { display: grid; flex: 1; min-width: 0; gap: 2px; }
.recent-file strong, .share-main strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.recent-file small, .share-main small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.recent-file small i, .share-main small i { color: #c7cfca; font-style: normal; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #74807b; background: #f6f8f6; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.icon-button:hover, .icon-button.selected { color: var(--accent-dark); background: var(--accent-soft); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 185px; padding: 20px; text-align: center; }
.empty-icon { width: 46px; height: 46px; margin-bottom: 12px; color: #789286; background: #f0f5f1; border-radius: 14px; }
.empty-state strong { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.empty-state p { max-width: 390px; margin: 5px 0 13px; color: var(--muted); font-size: 11px; }
.empty-state .button { min-height: 34px; }
.queue-row { display: flex; align-items: center; gap: 10px; min-height: 61px; border-top: 1px solid #f0f2f0; }
.queue-file-icon { width: 31px; height: 31px; color: #637c70; background: #f0f4f0; border-radius: 9px; }
.queue-file-name { display: grid; flex: 1; min-width: 0; gap: 5px; }
.queue-file-name strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { display: block; height: 4px; overflow: hidden; background: #edf0ed; border-radius: 10px; }
.progress-track i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s var(--ease); }
.queue-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: var(--muted); font-size: 9px; line-height: 1.2; }
.queue-progress-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-progress-meta .queue-speed { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.progress-indeterminate i { width: 28% !important; transform: translateX(-110%); animation: progress-sweep 1.2s var(--ease) infinite alternate; }
.progress-error i { background: var(--warn); }
.queue-status { width: 45px; color: var(--muted); font-size: 10px; text-align: right; }
.queue-status.done { color: var(--accent); }
.queue-status.failed { color: var(--warn); }

/* File browser, trash and shares */
.file-browser { margin-top: 4px; padding: 16px 18px 12px; }
.file-browser.dragging { border-color: #86ad9a; background: #fbfdfb; box-shadow: 0 0 0 3px rgb(61 121 104 / 9%); }
.file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.search-field { display: flex; align-items: center; gap: 9px; width: min(380px, 100%); height: 39px; padding: 0 11px; color: #83908a; background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; transition: border-color .18s, box-shadow .18s; }
.search-field:focus-within { border-color: #8bb1a1; box-shadow: 0 0 0 3px rgb(61 121 104 / 8%); }
.search-field input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-field input::placeholder { color: #a2aba6; }
.toolbar-actions { display: flex; align-items: center; gap: 5px; }
.toolbar-actions .button { min-height: 35px; padding: 0 10px; }
.breadcrumbs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 7px; padding: 0 2px 12px; color: #aab2ad; border-bottom: 1px solid var(--line); font-size: 11px; }
.breadcrumbs-line button { padding: 2px 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: inherit; }
.breadcrumbs-line button:hover { color: var(--accent); }
.bulk-actions { display: flex; align-items: center; gap: 10px; padding: 9px 4px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.file-content { min-height: 148px; }
.file-content .empty-state { min-height: 220px; }
.table-scroll { width: 100%; overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; white-space: nowrap; }
.file-table th { height: 37px; color: #8b9690; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.file-table td { height: 56px; color: #6e7a75; border-bottom: 1px solid #f0f2f0; }
.file-table tbody tr { transition: background .16s; }
.file-table tbody tr:hover { background: #fafcf9; }
.file-table tbody tr:last-child td { border-bottom: 0; }
.file-table th:first-child, .file-table td:first-child { padding-left: 7px; }
.file-table input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); vertical-align: middle; }
.check-col { width: 38px; }
.row-action-heading { text-align: right; padding-right: 7px; }
.name-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; color: var(--ink-soft); }
.name-cell > span:last-child { display: grid; min-width: 0; gap: 1px; }
.name-cell strong { max-width: min(390px, 35vw); overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.name-cell small { color: #a2aaa6; font-size: 10px; }
.file-kind { width: 34px; height: 34px; color: #617a6e; background: #f0f4f0; border-radius: 10px; }
.kind-folder, .folder-tile .tile-icon { color: #a08145; background: #f7f3e9; }
.kind-image { color: #457a69; background: #eaf4ee; }
.kind-video { color: #7a6d51; background: #f5f0e7; }
.kind-audio { color: #796b92; background: #f0edf5; }
.folder-name { padding: 0; background: transparent; border: 0; cursor: pointer; text-align: left; }
.folder-name strong { color: var(--accent-dark); }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.row-actions button, .tile-actions button { display: grid; place-items: center; width: 31px; height: 31px; color: #7d8882; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transition: color .16s, background .16s; }
.row-actions button:hover, .tile-actions button:hover { color: var(--accent-dark); background: var(--accent-soft); }
.row-actions button.danger-action:hover { color: #a45437; background: var(--warn-soft); }
.file-browser-footer { display: flex; align-items: center; justify-content: space-between; min-height: 37px; margin-top: 5px; padding: 4px 2px 0; color: #98a29d; border-top: 1px solid var(--line); font-size: 10px; }
.subtle-count { color: var(--muted); font-size: 11px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 11px; padding: 13px 0; }
.file-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 148px; padding: 14px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
button.file-tile { cursor: pointer; }
.file-tile:hover { z-index: 1; border-color: #c8d8ce; box-shadow: 0 7px 17px rgb(22 37 31 / 6%); transform: translateY(-2px); }
.tile-icon { width: 40px; height: 40px; margin-bottom: 14px; color: #617a6e; background: #f0f4f0; border-radius: 11px; }
.file-tile > strong { max-width: 100%; overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 630; text-overflow: ellipsis; white-space: nowrap; }
.file-tile > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.tile-actions { display: flex; gap: 1px; margin: auto -6px -5px; padding-top: 8px; opacity: 0; transition: opacity .16s; }
.file-tile:hover .tile-actions, .file-tile:focus-within .tile-actions { opacity: 1; }
.upload-panel, .below-queue { margin-top: 14px; padding: 18px; }
.share-list { margin-top: 14px; }
.share-row { display: flex; align-items: center; gap: 12px; min-height: 69px; padding: 9px 2px; border-top: 1px solid #f0f2f0; }
.share-icon { width: 36px; height: 36px; color: #697c71; background: #f0f4f0; border-radius: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #58a783; border-radius: 50%; }
.status-dot.dot-muted { background: #c0c8c3; }
.share-search { margin: 15px 0 3px; }
.page-footnote { margin: 13px 2px; color: var(--muted); font-size: 10px; }

/* Runtime and settings detail */
.service-large { min-height: 73px; margin: 0 0 14px; padding: 15px 18px; }
.stats-card { margin-top: 14px; padding: 18px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 10px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 43px; border-top: 1px solid var(--line); font-size: 11px; }
.stat-row span { color: var(--muted); }
.stat-row strong { color: var(--ink-soft); font-size: 11px; font-weight: 640; text-align: right; }
.disk-meter { display: grid; grid-template-columns: 120px 1fr 38px; align-items: center; gap: 13px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.disk-meter strong { color: var(--ink-soft); text-align: right; }
.skeleton-card { min-height: 118px; background: linear-gradient(100deg,#fff 20%,#f5f7f5 37%,#fff 54%); background-size: 300% 100%; border: 1px solid var(--line); border-radius: var(--radius); animation: shimmer 1.6s ease infinite; }
.skeleton-wide { min-height: 210px; margin-top: 14px; }
.settings-card { margin: 0 0 13px; padding: 18px 20px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.section-icon { width: 34px; height: 34px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.account-current, .server-info { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.account-current > span:nth-child(2), .server-info > span:first-child { display: grid; gap: 2px; }
.account-current strong, .server-info strong { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.account-current small, .server-info small { color: var(--muted); font-size: 10px; }
.online-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 9px; color: #428469; background: #edf7f1; border-radius: 8px; font-size: 10px; }
.online-badge i { width: 6px; height: 6px; box-shadow: none; }
.security-note, .device-note { display: flex; align-items: center; gap: 8px; padding-top: 11px; color: var(--muted); font-size: 10px; }
.security-note .icon, .device-note .icon { color: var(--accent); }
.settings-stats { margin-top: 5px; }
.device-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; align-items: end; gap: 10px; margin-top: 15px; }
.device-form .button { min-height: 43px; }
.device-note { padding-top: 12px; }
.accounts-card { padding-bottom: 8px; }
.account-list { margin-top: 14px; }
.account-list-header, .account-row { display: grid; grid-template-columns: minmax(170px, 1.15fr) minmax(145px, .78fr) minmax(170px, 1fr) 68px minmax(250px, auto); align-items: center; gap: 14px; }
.account-list-header { min-height: 34px; padding: 0 1px 8px; color: #8b9690; border-bottom: 1px solid var(--line); font-size: 10px; }
.account-row { min-height: 67px; padding: 9px 1px; border-bottom: 1px solid var(--line); transition: background .16s; }
.account-row:hover { background: #fbfcfb; }
.account-row:last-child { border-bottom: 0; }
.account-identity { display: grid; gap: 2px; min-width: 0; }
.account-identity strong { overflow: hidden; color: var(--ink-soft); font-size: 12px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { color: var(--muted); font-size: 10px; }
.role-select-label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }
.role-select-label > span { display: none; }
.role-select-label select { height: 32px; padding: 0 8px; font-size: 10px; }
.role-select-label select:disabled { color: #75827b; background: #f6f8f6; cursor: default; }
.workspace-kind { width: fit-content; padding: 7px 10px; color: #536b5f; background: #f2f6f3; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.account-status { padding: 5px 8px; color: #41846a; background: #edf7f1; border-radius: 20px; font-size: 9px; text-align: center; white-space: nowrap; }
.account-status.inactive { color: #a45437; background: var(--warn-soft); }
.account-actions { display: flex; justify-content: flex-end; gap: 4px; }
.account-empty, .settings-help { padding: 17px 0; color: var(--muted); font-size: 11px; }
.settings-footer-link { display: flex; justify-content: space-between; margin: 16px 2px 0; color: var(--muted); font-size: 10px; }
.settings-footer-link button { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); background: transparent; border: 0; cursor: pointer; font: inherit; }

/* First-run and login share a new dark-green / warm-paper composition. */
.auth-screen { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(500px, 1.08fr); min-height: 100vh; background: #fff; }
.auth-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 32px clamp(34px, 6vw, 88px); overflow: hidden; color: #eff5f1; background: #233a34; }
.brand-light { position: relative; z-index: 2; margin: 0; color: #f4f8f5; }
.brand-light .brand-mark { color: #c7e0d4; background: rgb(255 255 255 / 10%); }
.story-orbit { position: absolute; top: 50%; left: 78%; width: min(50vw, 580px); aspect-ratio: 1; border: 1px solid rgb(205 228 215 / 11%); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.orbit-two { width: min(37vw, 420px); border-color: rgb(205 228 215 / 9%); }
.story-copy { position: relative; z-index: 1; width: min(490px, 100%); margin: auto 0; padding: 70px 0 45px; }
.story-kicker { color: #9ab5a8; font-size: 10px; font-weight: 650; letter-spacing: .19em; }
.story-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 28px 0 24px; color: #c9e5d7; background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 9%); border-radius: 17px; }
.story-copy h1 { margin: 0; color: #f3f6f3; font-size: clamp(39px, 4.7vw, 61px); font-weight: 620; letter-spacing: -.065em; line-height: 1.16; }
.story-copy h1 em { color: #b5d5c7; font-style: normal; }
.story-copy p { max-width: 395px; margin: 17px 0 0; color: #afc1b8; font-size: 13px; line-height: 1.9; }
.story-rules { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: #c5d4cc; font-size: 10px; }
.story-rules span { display: inline-flex; align-items: center; gap: 7px; }
.story-rules i { width: 5px; height: 5px; background: #92bea9; border-radius: 50%; }
.story-footer { position: relative; z-index: 1; color: #8ea79b; font-size: 9px; letter-spacing: .1em; }
.story-footer i { padding: 0 4px; color: #607c6f; font-style: normal; }
.auth-form-side { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 70px 35px 90px; background: var(--paper); }
.auth-form-wrap { width: min(100%, 410px); animation: page-arrive .42s var(--ease) both; }
.auth-mobile-brand { display: none; }
.auth-eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.auth-form-wrap h2 { margin: 0; color: var(--ink); font-size: 30px; font-weight: 690; letter-spacing: -.055em; line-height: 1.25; }
.auth-form-wrap h2 span { color: var(--accent); }
.auth-intro { margin: 9px 0 25px; color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 17px; }
.auth-submit { justify-content: space-between; min-height: 48px; margin-top: 3px; padding: 0 16px; }
.auth-submit .icon { margin-left: auto; }
.auth-assurance { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 19px; color: #929c97; font-size: 10px; }
.auth-assurance .icon { color: var(--accent); }
.auth-assurance i { margin: 0 3px; color: #c3cbc6; font-style: normal; }
.auth-footer { position: absolute; right: 35px; bottom: 24px; left: 35px; color: #9ca7a1; font-size: 10px; text-align: center; }
.password-hint { display: flex; align-items: center; gap: 9px; margin-top: -9px; color: #9aa49e; font-size: 10px; }
.hint-meter { display: flex; gap: 3px; }
.hint-meter i { width: 18px; height: 3px; background: #dfe6e1; border-radius: 4px; }
.hint-meter i:first-child { background: #9fc0af; }

/* Dialogs, previews and toast feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgb(24 38 32 / 38%); backdrop-filter: blur(5px); animation: backdrop-in .18s ease both; }
.dialog { position: relative; width: min(100%, 475px); max-height: min(90vh, 800px); overflow: auto; background: var(--paper); border: 1px solid rgb(255 255 255 / 70%); border-radius: 19px; box-shadow: var(--shadow-md); animation: dialog-in .24s var(--ease) both; }
.dialog-preview { width: min(100%, 940px); background: #15201c; border-color: #26352f; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); background: #f0f3f0; border: 0; border-radius: 9px; cursor: pointer; }
.dialog-close:hover { color: var(--ink); background: #e5ebe6; }
.dialog-preview .dialog-close { color: #d4dfd8; background: rgb(255 255 255 / 10%); }
.dialog-heading { padding: 27px 29px 7px; }
.dialog-kicker { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.dialog-heading h2 { margin: 5px 38px 0 0; color: var(--ink); font-size: 21px; font-weight: 680; letter-spacing: -.04em; }
.dialog-heading p { margin: 5px 38px 0 0; color: var(--muted); font-size: 11px; }
.dialog-body { padding: 14px 29px 27px; }
.modal-form { display: grid; gap: 15px; }
.modal-note { margin: 0; color: var(--muted); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.confirm-copy { margin: 4px 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.credential-card { display: grid; gap: 10px; padding: 14px; background: var(--accent-pale); border: 1px solid #dce9e1; border-radius: 12px; }
.credential-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #e1ebe4; }
.credential-row:last-child { padding-bottom: 0; border-bottom: 0; }
.credential-row span { color: var(--muted); font-size: 10px; }
.credential-row strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.share-result { display: grid; gap: 10px; }
.share-target { width: 100%; padding: 11px; overflow-wrap: anywhere; color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 11px; }
.preview-stage { display: grid; place-items: center; min-height: 270px; max-height: 68vh; padding: 28px; background: #101714; }
.preview-stage img, .preview-stage video { display: block; max-width: 100%; max-height: 62vh; object-fit: contain; }
.preview-stage audio { width: min(520px, 100%); }
.dialog-preview .dialog-body { padding: 0; }
.modal-backdrop-video { padding: 24px; background: rgb(8 13 11 / 76%); }
.dialog-preview-video { display: grid; grid-template-rows: minmax(0, 1fr); width: min(960px, calc(100vw - 48px)); height: min(640px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; box-shadow: 0 24px 80px rgb(0 0 0 / 35%); }
.dialog-preview-video .dialog-body { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.dialog-preview-video .preview-stage-video { width: 100%; height: 100%; min-height: 0; max-height: none; padding: 0; }
.preview-stage-video video { width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain; background: #080d0b; }
.preview-stage-pdf { height: min(78vh, 900px); min-height: 420px; padding: 0; background: #252d29; }
.preview-stage-pdf iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.preview-stage-ebook { display: block; width: min(100%, 900px); min-height: 0; max-height: min(76vh, 900px); margin: 0 auto; padding: 0; overflow: auto; color: var(--ink); background: #f7f8f5; }
.ebook-reader { display: grid; min-height: 500px; grid-template-rows: auto 1fr auto; background: #f7f8f5; }
.ebook-reader > header { display: flex; align-items: center; gap: 13px; padding: 18px 26px; border-bottom: 1px solid #e4e9e3; }
.ebook-reader > header > span { padding: 6px 8px; color: var(--accent); background: var(--accent-pale); border-radius: 6px; font-size: 10px; font-weight: 700; }
.ebook-reader > header h2 { min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ebook-reader > header small { margin-left: auto; color: var(--muted); font-size: 10px; }
.ebook-page { width: min(100%, 680px); margin: 0 auto; padding: 42px 34px 56px; color: #39483f; font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif; line-height: 1.95; }
.ebook-page h3 { margin: 0 0 24px; color: var(--ink); font-size: 22px; font-weight: 650; }
.ebook-page p { margin: 0 0 1.15em; white-space: normal; }
.ebook-chapter-count { margin-bottom: 12px; color: var(--muted); font-family: inherit; font-size: 10px; }
.ebook-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 20px; color: var(--muted); background: rgb(247 248 245 / 94%); border-top: 1px solid #e4e9e3; backdrop-filter: blur(12px); font-size: 10px; }
.ebook-nav .button { min-width: 82px; }
.ebook-nav .button:disabled { opacity: .45; cursor: not-allowed; }
.text-reader { width: 100%; max-height: 68vh; padding: 22px; overflow: auto; color: #34443a; background: #f7f8f5; }
.text-reader pre { margin: 0; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.preview-loading { display: grid; justify-items: center; gap: 10px; color: #e1ebe4; font-size: 12px; }
.preview-loading small { color: #aab8b0; font-size: 10px; }
.preview-spinner { width: 26px; height: 26px; border: 2px solid rgb(255 255 255 / 20%); border-top-color: #a8d1ba; border-radius: 50%; animation: preview-spin .8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; color: #fff; background: #1e2b25; }
.preview-meta > span { display: grid; min-width: 0; gap: 3px; }
.preview-meta strong { overflow: hidden; color: #f0f5f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta small { color: #a9b8af; font-size: 10px; }
.preview-meta .button { color: #eaf3ef; background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 12%); }
.preview-unavailable { display: grid; justify-items: center; gap: 12px; color: #dfe9e2; font-size: 12px; }
.preview-unavailable > .icon { color: #abcbbb; }
@media (max-width: 640px) {
  .modal-backdrop-video { padding: 12px; }
  .dialog-preview-video { width: calc(100vw - 24px); height: min(560px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border-radius: 13px; }
  .dialog-preview-video .preview-meta { padding: 11px 12px; }
  .preview-stage-ebook { max-height: calc(100dvh - 72px); }
  .ebook-reader > header { padding: 14px 16px; }
  .ebook-page { padding: 28px 20px 38px; }
  .preview-stage-pdf { min-height: 55vh; height: 72vh; }
}
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 14px; color: #f4f7f4; background: #263b33; border: 1px solid rgb(255 255 255 / 8%); border-radius: 11px; box-shadow: 0 9px 28px rgb(15 31 24 / 20%); font-size: 11px; animation: toast-in .22s var(--ease) both; }
.toast-error { background: #8d513c; }
.toast-dot { width: 7px; height: 7px; flex: 0 0 auto; background: #9ed1b6; border-radius: 50%; }
.toast-error .toast-dot { background: #f2b59b; }
.toast-leave { opacity: 0; transform: translateY(7px); transition: opacity .2s, transform .2s; }
.error-card { display: flex; align-items: center; gap: 10px; min-height: 70px; margin-top: 12px; padding: 14px 17px; color: var(--warn); font-size: 12px; }
.error-card span { flex: 1; color: var(--ink-soft); }
.boot-screen { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 100vh; color: var(--muted); background: var(--canvas); font-size: 12px; }
.boot-mark { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #bfd4c8; border-radius: 9px; }
.boot-mark span { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 50%; animation: boot-orbit 1.1s linear infinite; }
.boot-mark span + span { width: 17px; height: 17px; opacity: .5; animation-direction: reverse; }

/* Public share pages use the same materials without loading the app shell. */
.share-page { min-height: 100vh; padding: 30px; background: var(--canvas); }
.share-topline { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; }
.share-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; font-weight: 720; letter-spacing: -.04em; }
.share-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
.share-topline > span { color: var(--muted); font-size: 11px; }
.share-card { width: min(100%, 760px); margin: 10vh auto 0; padding: 28px; }
.share-file-head { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.share-file-head .file-kind { width: 48px; height: 48px; }
.share-file-info { display: grid; min-width: 0; gap: 5px; }
.share-file-info h1 { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 21px; font-weight: 680; letter-spacing: -.04em; }
.share-file-info p { margin: 0; color: var(--muted); font-size: 11px; }
.share-preview { display: grid; place-items: center; min-height: 180px; max-height: 54vh; margin: 20px 0; padding: 16px; overflow: hidden; background: #f1f4f1; border: 1px solid var(--line); border-radius: 12px; }
.share-preview img, .share-preview video { max-width: 100%; max-height: 50vh; object-fit: contain; }
.share-preview audio { width: min(560px, 100%); }
.share-preview-placeholder { display: grid; justify-items: center; gap: 9px; padding: 25px; color: var(--muted); font-size: 11px; text-align: center; }
.share-preview-placeholder .icon { color: #82958a; }
.share-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 19px 0 23px; color: var(--muted); font-size: 10px; }
.share-meta span { display: inline-flex; align-items: center; gap: 6px; }
.share-meta strong { color: var(--ink-soft); font-weight: 620; }
.share-actions { display: flex; justify-content: flex-end; gap: 9px; }
.share-expired { display: grid; justify-items: center; width: min(100%, 440px); margin: 18vh auto 0; padding: 38px 28px; text-align: center; }
.share-expired .empty-icon { margin: 0 0 14px; }
.share-expired h1 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.share-expired p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

@keyframes page-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes progress-sweep { to { transform: translateX(360%); } }
@keyframes boot-orbit { to { transform: rotate(360deg); } }
@keyframes button-breathe { 50% { box-shadow: 0 0 0 5px rgb(61 121 104 / 12%); } }

@media (min-width: 1600px) { .main-content { padding-right: 70px; padding-left: 70px; } }
@media (max-width: 1180px) {
  .sidebar { width: 220px; padding-right: 14px; padding-left: 14px; }
  .shell-main { width: calc(100% - 220px); margin-left: 220px; }
  .account-list-header { grid-template-columns: minmax(130px, 1fr) minmax(130px, .8fr) 68px; }
  .account-list-header span:nth-child(3), .account-list-header span:nth-child(5) { display: none; }
  .account-list-header span:nth-child(4) { grid-column: 3; }
  .account-row { grid-template-columns: minmax(130px, 1fr) minmax(130px, .8fr) 68px; row-gap: 7px; }
  .workspace-kind { display: none; }
  .account-actions { grid-column: 1 / -1; justify-content: flex-start; padding: 2px 0 5px; }
}
@media (max-width: 900px) {
  .main-content { padding-top: 29px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .queue-card, .recent-card { min-height: 200px; }
  .auth-screen { grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); }
  .auth-story { padding-right: 35px; padding-left: 35px; }
}
@media (max-width: 700px) {
  .share-page { padding: 18px 14px; }
  .share-card { margin-top: 8vh; padding: 19px; }
  .share-file-info h1 { font-size: 18px; }
  .share-actions { display: grid; grid-template-columns: 1fr; }
  .sidebar { width: min(290px, 82vw); transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: none; }
  .nav-open .sidebar { transform: translateX(0); box-shadow: 15px 0 45px rgb(20 35 28 / 13%); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 19; display: block; visibility: hidden; background: rgb(26 39 33 / 30%); opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav-open .mobile-scrim { visibility: visible; opacity: 1; }
  .shell-main { width: 100%; margin-left: 0; }
  .topbar { height: 58px; padding: 0 17px; }
  .mobile-menu { display: grid; place-items: center; width: 35px; height: 35px; margin-right: 10px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 9px; }
  .breadcrumbs { margin-right: auto; }
  .breadcrumbs span:first-child, .breadcrumbs i, .top-search span, .top-search kbd, .top-divider { display: none; }
  .top-search { min-width: 36px; width: 36px; padding: 0; justify-content: center; background: transparent; }
  .topbar-tools { gap: 8px; }
  .main-content { padding: 25px 16px 18px; }
  .page-heading { display: block; margin-bottom: 19px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 11px; }
  .heading-actions { margin-top: 14px; }
  .heading-actions .button { flex: 1; }
  .dropzone { min-height: 83px; gap: 11px; padding: 13px; }
  .drop-icon { width: 40px; height: 40px; }
  .drop-copy { flex: 1; }
  .drop-copy span { max-width: 210px; font-size: 10px; }
  .dropzone > .button { display: none; }
  .drop-orbit { display: none; }
  .service-strip { min-height: 60px; padding: 10px 12px; }
  .service-strip > div span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .service-status { padding: 5px 7px; }
  .metric-card { min-height: 111px; padding: 13px; }
  .metric-value { font-size: 20px; }
  .file-browser { padding: 12px 11px 9px; }
  .file-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: flex-end; }
  .search-field { width: 100%; }
  .name-cell strong { max-width: 48vw; }
  .file-table { min-width: 630px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .file-tile { min-height: 135px; padding: 11px; }
  .tile-actions { opacity: 1; }
  .stats-grid { column-gap: 15px; }
  .device-form { grid-template-columns: 1fr; }
  .account-list-header { display: none; }
  .account-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
  .account-row .account-identity { grid-column: 1; grid-row: 1; }
  .account-row .role-select-label { grid-column: 1; grid-row: 2; width: min(190px, 100%); }
  .role-select-label > span { display: block; }
  .account-row .account-status { grid-column: 2; grid-row: 1; }
  .account-row .workspace-kind { display: inline-flex; grid-column: 2; grid-row: 2; align-self: end; }
  .account-actions { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; padding-bottom: 2px; }
  .auth-screen { display: block; background: var(--paper); }
  .auth-story { display: none; }
  .auth-form-side { min-height: 100vh; padding: 35px 23px 72px; }
  .auth-form-wrap { width: min(100%, 420px); }
  .auth-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 55px; color: var(--ink); font-size: 16px; }
  .auth-mobile-brand .brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
  .auth-form-wrap h2 { font-size: 28px; }
  .auth-footer { bottom: 20px; }
  .disk-meter { grid-template-columns: 100px 1fr 35px; }
  .toast-root { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 12px; }
  .online-label { font-size: 10px; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { padding: 0 9px; font-size: 10px; }
  .metric-grid { gap: 8px; }
  .metric-card small { font-size: 9px; }
  .dashboard-grid { gap: 10px; }
  .queue-card, .recent-card, .settings-card, .stats-card { padding-right: 13px; padding-left: 13px; }
  .toolbar-actions .button { padding: 0 8px; font-size: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
