:root {
  color-scheme: light;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #233449;
  background: #f5f6f8;
  font-synthesis: none;
  --ink: #1c2d42;
  --muted: #627187;
  --border: #e4e8ef;
  --blue: #315ce7;
  --blue-hover: #244bc7;
  --sidebar: #152433;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; }
button:disabled { opacity: .46; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; }
button { border: 0; }
input, select { min-width: 0; }
h1, h2, h3, p { margin: 0; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
:focus-visible { outline: 3px solid #7194ff; outline-offset: 4px; }
::selection { background: #dce6ff; color: #142e75; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 20px; color: #fff; background: var(--blue); border-radius: 6px; }

/* The workspace frame stays quiet so filenames and measured values lead. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 224px; padding: 30px 18px 20px; color: #c5d0db; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; color: #fff; font-size: 23px; font-weight: 650; letter-spacing: -.75px; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 11px); grid-template-rows: repeat(2, 11px); gap: 3px; transform: rotate(-7deg); }
.brand-mark i { border-radius: 3px; background: #7296ff; }
.brand-mark i:nth-child(2) { background: #e2eaff; }
.brand-mark i:nth-child(3) { background: #436bee; }
.brand-mark i:nth-child(4) { background: #96b0ff; }
.brand-subtitle { display: block; margin-top: 1px; color: #899aab; font-size: 8px; font-weight: 600; letter-spacing: 1.65px; }
.workspace-label { display: flex; align-items: center; gap: 10px; margin-top: 38px; padding: 14px 10px; border-top: 1px solid #2b3947; border-bottom: 1px solid #2b3947; color: #e2e8ee; font-size: 12px; font-weight: 600; }
.workspace-avatar { display: grid; place-items: center; width: 29px; height: 31px; border: 1px solid #485468; border-radius: 7px; background: #2b3b4e; color: #c7d7f6; font-size: 13px; font-weight: 600; }
.workspace-label small { display: block; margin-top: 1px; color: #899aab; font-size: 11px; font-weight: 400; }
.nav-label { margin: 29px 12px 11px; color: #8294a7; font-size: 9px; font-weight: 650; letter-spacing: 1.6px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 10px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.nav-item.active { color: #edf2ff; background: #2b4059; box-shadow: inset 3px 0 #82a1ff; }
.nav-item svg { width: 18px; height: 18px; color: #a1b8f5; }
.nav-count { margin-left: auto; min-width: 23px; padding: 0 5px; border-radius: 4px; background: #405775; color: #d5e1f9; text-align: center; font-size: 10px; line-height: 20px; font-variant-numeric: tabular-nums; }
.sidebar-bottom { margin-top: auto; padding-top: 70px; }
.local-note { padding: 17px 12px; }
.local-note > [data-icon] { margin-bottom: 12px; color: #90a8c2; }
.local-note strong { display: block; color: #bfcbd6; font-size: 12px; font-weight: 600; }
.local-note p { margin-top: 6px; color: #899aab; font-size: 12px; line-height: 1.7; }
.tools-link { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 15px 12px; border-top: 1px solid #2b3947; color: #a2b1c0; font-size: 12px; }
.tools-link:hover { color: #fff; }
.tools-link svg { width: 16px; height: 16px; }
.tools-link > span:last-child { margin-left: auto; font-size: 15px; }
.build-label { padding: 11px 12px 0; color: #899aab; font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.build-label > span { padding: 0 5px; }
.workspace { min-height: 100vh; margin-left: 224px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; padding: 0 40px; border-bottom: 1px solid var(--border); background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; }
.breadcrumb > span { color: #bcc4ce; }
.breadcrumb strong { color: #546175; font-weight: 500; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 0; background: transparent; color: var(--muted); font-size: 12px; }
.quiet-button:hover:not(:disabled) { color: var(--blue); }
.local-status { gap: 8px; color: #5e6e80; white-space: nowrap; }
.local-status svg { width: 14px; height: 14px; color: #8d9aab; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #4a9677; box-shadow: 0 0 0 3px #edf7f1; }
main { max-width: 1620px; margin: 0 auto; padding: 42px 40px 24px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: var(--muted); font-size: 9px; line-height: 1.5; font-weight: 650; letter-spacing: 1.65px; }
h1 { margin-top: 9px; color: var(--ink); font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -1.25px; }
.title-dot { color: var(--blue); }
.page-description { margin-top: 10px; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 41px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 2px 3px #244ac719; }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 3px 8px #244ac730; }
.button.secondary { background: #fff; border-color: #dce2eb; color: #536176; }
.button.secondary:hover:not(:disabled) { background: #f5f7fc; border-color: #c5d0e2; }
.page-heading > .button { margin-top: 19px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; padding: 5px; border-radius: 6px; background: transparent; color: #7f8a9b; }
.icon-button:hover:not(:disabled) { background: #eef2fb; color: var(--blue); }
.icon-button svg { width: 17px; height: 17px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 14px 17px; border: 1px solid #d5e2f8; border-radius: 8px; color: #415e88; background: #eff5ff; font-size: 13px; overflow-wrap: anywhere; }
.notice strong { color: #314a6f; font-weight: 600; }
.notice p { margin-top: 3px; }
.error-notice { background: #fff4f2; border-color: #f0d4ce; color: #925a52; }
.error-notice strong { color: #88473e; }
.notice .button { flex: 0 0 auto; }
.library-summary { display: grid; grid-template-columns: 1fr 1fr 1fr 1.05fr; align-items: center; gap: 20px; margin: 31px 0 29px; padding: 23px 0; border-top: 1px solid #e1e6ed; border-bottom: 1px solid #e1e6ed; }
.library-summary > div + div { border-left: 1px solid #e1e6ed; padding-left: 25px; }
.library-summary > div > span { display: block; color: var(--muted); font-size: 12px; }
.library-summary > div > strong { display: block; margin-top: 5px; color: #2c3d53; font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.library-summary .summary-note { display: flex; align-items: center; gap: 13px; color: #8190a3; }
.library-summary .summary-note > [data-icon] { display: inline-flex; color: #899bb5; }
.summary-note svg { width: 27px; height: 27px; }
.summary-note p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.summary-note strong { color: #53647d; font-weight: 500; }

/* Library content. The table scrolls within its panel on small screens. */
.library-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 10px #21365203; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; }
.panel-heading h2 { display: flex; align-items: center; gap: 9px; color: #2d3b50; font-size: 15px; font-weight: 650; }
.count-pill { min-width: 23px; padding: 1px 7px; border-radius: 5px; color: #5f6f84; background: #f0f3f8; font-size: 11px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.panel-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 25px 19px; }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 0; width: 264px; height: 35px; padding: 0 10px; border: 1px solid #e4e8ef; border-radius: 6px; background: #fff; color: #93a0b2; }
.search-field:focus-within { border-color: #86a3ff; box-shadow: 0 0 0 3px #315ce70d; }
.search-field svg { width: 15px; height: 15px; }
.search-field input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #3e4f65; font-size: 13px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.sort-field { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.sort-field select { max-width: 170px; padding: 6px 5px; border: 0; border-radius: 4px; background: transparent; color: #58687f; font-size: 12px; cursor: pointer; }
.table-scroll { width: 100%; overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; table-layout: auto; text-align: left; }
.file-table th { position: relative; padding: 12px 12px; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; background: #fafbfd; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.file-table th:first-child, .file-table td:first-child { padding-left: 25px; }
.file-table th:last-child, .file-table td:last-child { padding-right: 20px; }
.file-table th:nth-child(2), .file-table th:nth-child(3) { text-align: right; }
.file-table td { height: 76px; padding: 14px 12px; border-bottom: 1px solid #edf0f5; color: #5f6f84; font-size: 13px; }
.file-table tbody tr:last-child td { border-bottom: 0; }
.file-table tbody tr:hover { background: #fafcff; }
.file-cell { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.file-cell > div { min-width: 0; }
.file-glyph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 40px; flex: 0 0 auto; border: 1px solid #e3e9f5; border-radius: 7px; background: #f4f7ff; color: #6583ce; }
.file-glyph svg { width: 18px; height: 18px; }
.file-name { display: block; max-width: clamp(140px, 23vw, 410px); padding: 0; overflow: hidden; border-radius: 3px; background: transparent; color: #34465e; font-size: 13px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover { color: var(--blue); }
.file-meta { display: block; max-width: clamp(140px, 23vw, 410px); margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.number-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-cell { white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #e0eee6; border-radius: 5px; background: #f2f8f4; color: #386c50; font-size: 11px; font-weight: 500; white-space: nowrap; }
.status-pill::before { width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.unavailable { background: #fff7ed; border-color: #f2e0c9; color: #855e2a; }
.row-open { width: 26px; height: 30px; }
.row-open svg { width: 15px; height: 15px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 25px; border-top: 1px solid #edf0f5; color: var(--muted); font-size: 11px; }
.pagination > div { display: flex; gap: 4px; }
.pagination .icon-button { border: 1px solid #e6eaf0; width: 28px; height: 28px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 42px 20px 50px; border-top: 1px solid #f0f2f6; text-align: center; }
.empty-state h3 { margin-top: 9px; color: #34455e; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.5px; }
.empty-state > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.empty-state .button { margin-top: 22px; }
.empty-state > small { margin-top: 13px; color: var(--muted); font-size: 11px; }
.empty-illustration { position: relative; display: grid; place-items: center; width: 135px; height: 115px; margin-bottom: 24px; border-radius: 50%; background: radial-gradient(ellipse at center, #edf2fc 0, #f7f9ff 64%, #fff 65%); }
.empty-illustration::before, .empty-illustration::after { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #bacbf2; content: ""; }
.empty-illustration::before { left: 14px; top: 30px; }
.empty-illustration::after { right: 10px; bottom: 24px; width: 3px; height: 3px; }
.file-illustration { position: relative; width: 58px; height: 75px; padding: 13px 12px; transform: rotate(-9deg); border: 1px solid #c6d6f5; border-radius: 7px; background: #fff; box-shadow: 6px 8px 0 -2px #e6edfc, 0 6px 10px #3652930a; }
.file-illustration > [data-icon] { position: absolute; right: 7px; top: 7px; color: #c6d6f5; }
.file-illustration svg { width: 12px; height: 12px; }
.file-illustration b { display: block; margin-top: 5px; color: #6c89c5; font-size: 9px; letter-spacing: 1px; }
.file-illustration i { display: block; width: 30px; height: 2px; margin-top: 6px; border-radius: 2px; background: #dde6f8; }
.file-illustration i:last-child { width: 19px; }
.illustration-plus { position: absolute; right: 22px; bottom: 17px; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; background: #315ce7; color: #fff; font-size: 19px; font-weight: 300; line-height: 1; }
.empty-state.compact { padding: 55px 20px; }
.empty-state.compact > [data-icon] { color: #9caac2; margin-bottom: 9px; }
.empty-state.compact > [data-icon] svg { width: 27px; height: 27px; }
.empty-state.compact h3 { font-size: 18px; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 275px; border-top: 1px solid #edf0f5; color: var(--muted); font-size: 13px; }
.spinner { width: 17px; height: 17px; border: 2px solid #e0e7f7; border-top-color: #6885d9; border-radius: 50%; animation: spin .8s linear infinite; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px 0; color: var(--muted); font-size: 11px; }
.workspace-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.workspace-footer svg { width: 12px; height: 12px; }
.workspace-footer .quiet-button { font-size: 11px; color: var(--muted); }

/* Native dialogs retain browser focus and Escape handling. */
dialog { color: var(--ink); border: 1px solid #e0e6ef; box-shadow: 0 24px 90px #14253b30; }
dialog::backdrop { background: #11213766; backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-enter .18s ease-out; }
.modal { width: min(540px, calc(100% - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 29px; overflow-y: auto; border-radius: 15px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading .icon-button { margin: -4px -4px 0 0; }
.dialog-heading h2 { margin-top: 8px; color: #273b55; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; }
.dialog-intro { margin-top: 11px; color: var(--muted); font-size: 13px; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 208px; margin-top: 25px; padding: 25px 16px; border: 1px dashed #b6c7ec; border-radius: 10px; background: #f8faff; cursor: pointer; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.is-dragging, .drop-zone:focus-within { border-color: #6589f1; background: #f0f5ff; }
.drop-zone:focus-within { outline: 3px solid #7194ff; outline-offset: 3px; }
.drop-icon { width: 42px; height: 42px; margin-bottom: 12px; border: 1px solid #dfe7fc; border-radius: 11px; background: #fff; color: #557add; box-shadow: 0 2px 4px #2c50930a; }
.drop-icon svg { width: 21px; height: 21px; }
.drop-zone > strong { color: #536784; font-size: 14px; font-weight: 600; }
.drop-zone > span:not(.drop-icon) { margin-top: 5px; color: var(--muted); font-size: 12px; }
.drop-zone b { color: #5774c4; font-weight: 500; }
.drop-zone > small { margin-top: 16px; color: var(--muted); font-size: 11px; }
.selected-file { display: flex; align-items: center; gap: 12px; margin-top: 17px; padding: 13px 14px; border: 1px solid #dfe6f3; border-radius: 8px; background: #f8faff; }
.selected-file > [data-icon] { color: #6f88c7; }
.selected-file > div { min-width: 0; }
.selected-file strong { display: block; overflow-wrap: anywhere; color: #4b5f7c; font-size: 13px; font-weight: 600; }
.selected-file small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.import-progress { margin-top: 24px; }
.phase-list { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: phase; }
.phase-list li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; counter-increment: phase; }
.phase-list li::before { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #e3e8f0; border-radius: 50%; color: var(--muted); font-size: 10px; content: counter(phase); }
.phase-list li.active { color: #3e61bd; font-weight: 600; }
.phase-list li.active::before { border-color: #7192ec; background: #eaf0ff; color: #446acb; }
.phase-list li.complete { color: #477560; }
.phase-list li.complete::before { border-color: #d7e8de; background: #eef7f1; color: #477560; content: "✓"; }
.import-outcomes { max-height: 200px; overflow: auto; padding-left: 18px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.import-outcomes:empty { display: none; }
progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 6px; background: #edf1f7; accent-color: #4c75e5; }
progress::-webkit-progress-bar { background: #edf1f7; border-radius: 6px; }
progress::-webkit-progress-value { background: #4c75e5; border-radius: 6px; transition: width .15s; }
progress::-moz-progress-bar { background: #4c75e5; border-radius: 6px; }
progress:indeterminate { background: linear-gradient(90deg, #edf1f7 0 25%, #81a0f0 40% 60%, #edf1f7 75%); background-size: 200% 100%; animation: progress-slide 1.4s linear infinite; }
progress:indeterminate::-webkit-progress-bar { background: transparent; }
.import-progress > p { margin-top: 9px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.import-status { margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.import-status.success { padding: 11px 13px; border-radius: 7px; background: #eef7f1; color: #416f55; }
.import-status.error { padding: 11px 13px; border-radius: 7px; background: #fff2ef; color: #a15d50; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e9edf3; }
.atdf-import-modal form > label { display: grid; gap: 7px; margin-top: 18px; font-size: 13px; }
.atdf-import-modal input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.atdf-import-modal progress { width: 100%; margin-top: 18px; }
.atdf-import-result { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.authoring-sources { margin: 12px 0; padding: 12px; min-width: 0; border: 1px solid var(--border); border-radius: 6px; }
.authoring-sources .export-option { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; overflow-wrap: anywhere; }
.authoring-sources input { flex: 0 0 auto; }
.privacy-note { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 12px; height: 12px; }
.detail-modal { position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 28px 30px 35px; overflow-y: auto; border: 0; border-left: 1px solid #e0e6ef; border-radius: 0; }
.detail-modal[open] { animation-name: drawer-enter; }
.detail-modal > .dialog-heading { align-items: center; }
.detail-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 54px; margin-top: 32px; border: 1px solid #dce5fa; border-radius: 10px; background: #f3f6ff; color: #6686d7; }
.detail-file-icon svg { width: 25px; height: 25px; }
.detail-modal > h2 { margin-top: 18px; color: #2e425e; font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.6px; overflow-wrap: anywhere; }
.detail-subtitle { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 27px; }
.detail-grid article { min-width: 0; padding: 15px 16px; border: 1px solid #e5eaf3; border-radius: 8px; background: #fafbfe; }
.detail-grid small { display: block; color: var(--muted); font-size: 11px; }
.detail-grid strong { display: block; margin-top: 7px; color: #3c5374; font-size: 21px; font-weight: 600; letter-spacing: -.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.detail-section { margin-top: 27px; padding-top: 23px; border-top: 1px solid #e9edf3; }
.detail-section h3 { margin-bottom: 15px; color: #526680; font-size: 13px; font-weight: 600; }
.detail-facts, .storage-facts { margin: 0; }
.detail-facts > div, .storage-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 11px; font-size: 12px; }
.detail-facts dt, .storage-facts dt { color: var(--muted); }
.detail-facts dd, .storage-facts dd { margin: 0; color: #576d8a; text-align: right; overflow-wrap: anywhere; }
.detail-coverage { padding: 14px 15px; border: 1px solid #e2e9f7; border-radius: 8px; background: #f6f9ff; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-coverage p + p { margin-top: 9px; }
.detail-coverage strong { color: #5d7393; font-weight: 600; }
.fingerprint { margin-top: 22px; color: var(--muted); font-size: 12px; }
.fingerprint summary { padding: 5px 0; cursor: pointer; }
.fingerprint summary:hover { color: var(--blue); }
.fingerprint code { display: block; margin-top: 9px; padding: 12px; border: 1px solid #e5eaf4; border-radius: 6px; background: #f8fafe; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.storage-modal > p { margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.storage-modal .storage-facts { margin: 24px 0; padding: 17px 16px; border: 1px solid #e6eaf2; border-radius: 9px; background: #fafbfe; }
.storage-facts > div { grid-template-columns: 1.25fr 1fr; margin-top: 14px; }
.storage-facts > div:first-child { margin-top: 0; }
.storage-modal .muted { font-size: 12px; color: var(--muted); }
#persistence-result:empty { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-enter { from { opacity: .7; transform: translateX(25px); } to { opacity: 1; transform: translateX(0); } }
@keyframes progress-slide { to { background-position: -200% 0; } }

@media (min-width: 1500px) {
  main { padding-top: 50px; padding-right: 56px; padding-left: 56px; }
  .topbar { padding-right: 56px; padding-left: 56px; }
  .file-table td { height: 81px; }
}
@media (max-width: 1120px) {
  .sidebar { width: 212px; padding-right: 14px; padding-left: 14px; }
  .workspace { margin-left: 212px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  main { padding-right: 28px; padding-left: 28px; }
  .library-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-summary .summary-note { display: none; }
  .file-table { min-width: 700px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; width: auto; min-height: 76px; padding: 16px 20px; }
  .brand { gap: 9px; padding: 0; font-size: 21px; }
  .brand-subtitle { font-size: 7px; letter-spacing: 1.2px; }
  .brand-mark { grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); }
  .workspace-label, .nav-label, .sidebar-bottom { display: none; }
  .nav-item { min-height: 36px; padding: 8px 11px; font-size: 12px; gap: 7px; }
  .nav-item.active { box-shadow: none; }
  .nav-item svg { width: 15px; height: 15px; }
  .nav-count { min-width: 18px; padding: 0 4px; font-size: 9px; line-height: 18px; }
  .workspace { min-height: calc(100vh - 76px); margin-left: 0; }
  .topbar { height: 54px; padding: 0 22px; gap: 10px; }
  .breadcrumb { font-size: 11px; gap: 9px; }
  .local-status { font-size: 11px; gap: 6px; }
  main { padding: 30px 22px 22px; }
  .page-heading { gap: 16px; }
  h1 { font-size: 30px; }
  .page-description { font-size: 13px; max-width: 310px; }
  .page-heading > .button { padding: 10px 12px; font-size: 13px; }
  .library-summary { margin-top: 26px; margin-bottom: 23px; gap: 14px; padding: 20px 0; }
  .library-summary > div + div { padding-left: 18px; }
  .library-summary > div > strong { font-size: 22px; }
  .library-summary > div > span { font-size: 11px; }
  .panel-heading { padding: 20px 20px 17px; }
  .library-toolbar { padding: 0 20px 17px; }
  .empty-state { padding-top: 34px; padding-bottom: 38px; }
  .empty-illustration { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .sidebar { gap: 12px; min-height: 71px; padding: 15px 16px; }
  .brand { font-size: 20px; }
  .brand-subtitle { font-size: 6px; letter-spacing: 1px; }
  .nav-item { gap: 6px; padding: 8px; font-size: 11px; }
  .nav-item svg { width: 14px; height: 14px; }
  .nav-count { display: none; }
  .topbar { padding-right: 17px; padding-left: 17px; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .local-status { font-size: 11px; }
  .local-status > [data-icon] { display: none; }
  main { padding: 25px 16px 20px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; }
  .page-heading > div { width: 100%; }
  .page-heading > .button { margin-top: 0; min-height: 38px; }
  h1 { margin-top: 8px; font-size: 29px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .page-description { max-width: none; font-size: 13px; line-height: 1.7; }
  .library-summary { gap: 8px; margin-top: 24px; padding: 18px 0; }
  .library-summary > div + div { padding-left: 11px; }
  .library-summary > div > strong { font-size: 19px; letter-spacing: -.5px; }
  .library-summary > div > span { font-size: 11px; }
  .panel-heading { padding: 19px 16px 16px; gap: 12px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-heading p { max-width: 235px; font-size: 12px; }
  .library-toolbar { flex-wrap: wrap; gap: 10px; padding: 0 16px 14px; }
  .search-field { width: 100%; }
  .sort-field { margin-left: auto; font-size: 11px; }
  .sort-field select { font-size: 12px; }
  .empty-state { padding: 29px 15px 33px; }
  .empty-state h3 { font-size: 19px; }
  .empty-state > p:not(.eyebrow) { font-size: 13px; }
  .empty-state > small { font-size: 11px; }
  .empty-illustration { height: 101px; margin-bottom: 17px; }
  .empty-state .button { font-size: 13px; }
  .workspace-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 16px; font-size: 11px; }
  .workspace-footer .quiet-button { font-size: 11px; }
  .notice { align-items: flex-start; flex-direction: column; padding: 13px; font-size: 12px; }
  .pagination { padding-right: 16px; padding-left: 16px; }
  .modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 23px 20px; border-radius: 12px; }
  .dialog-heading h2 { font-size: 22px; }
  .dialog-intro { font-size: 13px; line-height: 1.8; }
  .drop-zone { min-height: 194px; margin-top: 21px; }
  .dialog-actions { gap: 9px; }
  .dialog-actions .privacy-note { width: 100%; margin-bottom: 5px; }
  .dialog-actions .button { min-height: 39px; padding: 9px 13px; font-size: 12px; }
  .phase-list { gap: 5px; }
  .phase-list li { gap: 4px; font-size: 11px; }
  .phase-list li::before { width: 18px; height: 18px; font-size: 10px; }
  .detail-modal { padding: 24px 22px 30px; }
  .detail-modal > h2 { font-size: 22px; }
  .detail-grid { gap: 10px; }
  .detail-grid article { padding: 13px; }
  .detail-grid strong { font-size: 20px; }
  .detail-facts > div, .storage-facts > div { gap: 13px; font-size: 12px; }
  .storage-modal > p { font-size: 13px; }
  .storage-modal .storage-facts { padding: 15px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Library: files and actions take precedence over dashboard decoration. */
.library-home .workspace { margin-left: 0; }
.library-home .topbar { height: 54px; padding: 0 24px; justify-content: flex-start; gap: 28px; }
.library-home .library-brand { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.5px; }
.library-home .topbar nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.library-home .topbar nav a { padding: 16px 0; color: var(--muted); }
.library-home .topbar nav a[aria-current] { color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.library-home .topbar .local-status { margin-left: auto; }
.library-home main { max-width: 1320px; padding: 28px 24px; }
.library-home h1 { margin: 0; font-size: 25px; letter-spacing: -.6px; }
.library-home .page-heading { gap: 16px; }
.library-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.library-home .library-summary { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 20px; padding: 0; border: 0; }
.library-home .library-summary > div { display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; }
.library-home .library-summary > div > strong { margin: 0; font-size: 13px; letter-spacing: 0; }
.library-home .library-summary > div > span { font-size: 12px; }
.library-home .panel-heading { padding: 14px 20px 10px; }
.library-home .library-toolbar { padding: 0 20px 14px; }
.library-home .file-table td { height: 61px; padding-top: 10px; padding-bottom: 10px; }
.library-home .row-open { width: auto; height: auto; padding: 6px; }
.library-home .workspace-footer .tools-link { margin: 0; padding: 0; border: 0; color: var(--muted); }
.library-home .empty-state { padding: 40px 20px; }
.library-home .detail-coverage summary { cursor: pointer; }
.example-picker { width: min(640px, calc(100% - 24px)); }
.example-picker > .muted { margin: 8px 0 16px; font-size: 13px; }
.example-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.example-row h3 { font-size: 14px; font-weight: 600; }
.example-row p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.example-files { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 11px; color: var(--muted); }
.example-files a:hover { color: var(--blue); text-decoration: underline; }
.example-status:empty { display: none; }
.example-status { margin-top: 12px; font-size: 13px; }
@media (max-width: 760px) {
  .library-home .topbar { gap: 18px; padding: 0 16px; }
  .library-home .topbar nav { gap: 14px; }
  .library-home .topbar .local-status { font-size: 11px; }
  .library-home main { padding: 20px 16px; }
  .library-home .page-heading { align-items: flex-start; }
  .library-home .library-summary { gap: 6px 16px; }
  .library-home .workspace-footer { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .example-picker { padding: 20px; }
  .example-row { gap: 12px; }
}
@media (max-width: 440px) {
  .library-home .topbar .local-status .status-dot { display: none; }
  .library-home .topbar nav .count-pill { display: none; }
  .library-home .topbar { gap: 14px; }
  .library-home .library-brand { font-size: 16px; }
}
