/* ODAYWEB: quiet public sharing + an action-first private workspace. */
:root {
  --blue: #007bff; --blue-ink: #005cbf; --navy: #16334d; --ink: #202b37;
  --muted: #66717d; --line: #e2e7ed; --soft: #f6f8fa; --white: #fff;
  --danger: #b32932; --success: #23744e; --radius: 7px;
  font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); font-size: 14px;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: var(--white); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { color: inherit; }
button svg, a svg { flex: 0 0 auto; }
:focus-visible { outline: 3px solid #096ee0; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.75px; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
h3 { font-size: 15px; font-weight: 650; }
p { line-height: 1.65; }
small, .microcopy { font-size: 12px; color: var(--muted); line-height: 1.6; }
small { display: block; margin-top: 6px; }
code, pre { font-family: Consolas, "Courier New", monospace; }
pre { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--white); padding: 14px 18px; border: 1px solid var(--line); }
.skip-link:focus { top: 10px; }
.button, .icon-button, .nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 5px; font-weight: 600; line-height: 1.35; border: 1px solid transparent; text-decoration: none; }
.button { padding: 10px 17px; font-size: 13px; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button.primary:hover:not(:disabled) { background: #0069db; border-color: #0069db; }
.button.secondary { background: #fff; border-color: #d8dfe6; color: #354454; }
.button.secondary:hover:not(:disabled) { background: #f3f6f9; }
.button.danger { background: var(--danger); color: #fff; }
.button.danger-outline { border-color: #e6c7ca; color: var(--danger); background: #fff; }
.button.small { padding: 8px 12px; font-size: 12px; }
.icon-button { padding: 0; width: 44px; min-width: 44px; background: none; color: #697583; }
.icon-button:hover { background: #f0f3f7; text-decoration: none; }
.icon-button.bordered { border-color: var(--line); background: #fff; }
.full-width { width: 100%; }
.text-link { background: none; border: 0; padding: 11px 0; min-height: 44px; color: var(--blue-ink); font-size: 13px; display: inline-flex; align-items: center; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #697888; margin-bottom: 12px; }
.site-header { height: 60px; border-bottom: 1px solid #edf0f3; flex-shrink: 0; background: #fff; }
.header-inner { height: 100%; max-width: 1180px; padding: 0 28px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.8px; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.brand span:last-child { color: var(--blue); }
.brand:hover { text-decoration: none; }
.public-nav { display: flex; align-items: center; gap: 25px; }
.nav-link { background: none; border: 0; color: #4a5765; font-size: 12px; font-weight: 400; padding: 0 2px; }
.nav-link:hover { color: #005cbf; text-decoration: none; }
.language { gap: 7px; }
.language svg { width: 16px; height: 16px; }
.country { color: #86919b; margin-left: 3px; }
.account-link { color: #617080; }
.account-link svg { width: 17px; height: 17px; }
.public-page { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 480px; padding: 65px 24px 85px; }
.download-stage { max-width: 560px; width: 100%; text-align: center; }
.public-state { color: #65717f; font-size: 13px; line-height: 1.7; max-width: 490px; margin: 0 auto; }
.public-state h1 { color: #24384b; font-size: 27px; margin-bottom: 15px; }
.public-state .button { margin-top: 9px; }
.public-state.error-message { padding: 22px; }
.preparation-panel { max-width: 490px; margin: 0 auto; padding: 24px; border: 1px solid #dbe3eb; border-radius: 8px; background: #fff; box-shadow: 0 12px 35px rgba(36,56,75,.08); text-align: left; }
.preparation-name { margin: 7px 0 20px; color: #24384b; font-size: 20px; overflow-wrap: anywhere; }
.preparation-progress-row { display: flex; align-items: center; gap: 13px; }
.preparation-progress-track { position: relative; display: block; width: 100%; height: 13px; }
.preparation-progress-row progress { display: block; width: 100%; height: 13px; accent-color: var(--blue); }
.preparation-progress-row strong { min-width: 62px; color: #24384b; font-size: 13px; text-align: right; }
.preparation-activity { position: absolute; inset: 0; overflow: hidden; border-radius: 7px; background: #eef2f7; }
.preparation-activity-bar { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: var(--blue); animation: preparation-activity 1.05s ease-in-out infinite; }
@keyframes preparation-activity { from { transform: translateX(-110%); } to { transform: translateX(440%); } }
@media (prefers-reduced-motion: reduce) { .preparation-activity-bar { animation-duration: 2.5s; } }
.preparation-panel p { margin: 11px 0 0; color: #65717f; font-size: 12px; }
.download-card { width: 490px; max-width: 100%; min-height: 80px; margin: 0 auto; display: flex; background: #282828; color: #fff; text-align: left; border-radius: 4px; }
.download-file { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 9px 12px 0 19px; }
.file-symbol { color: #d8d8d8; display: inline-flex; margin-top: -9px; }
.file-symbol svg { width: 25px; height: 29px; }
.file-summary { min-width: 0; flex: 1; }
.public-filename { font-size: 13px; font-weight: 500; line-height: 18px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.file-actions { display: flex; margin-left: -10px; gap: 1px; }
.card-action { width: 44px; height: 44px; color: #b8b8b8; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.card-action svg { width: 15px; height: 15px; }
.card-action:hover { background: #3c3c3c; color: #fff; }
.card-action:focus-visible { outline-color: #91c6ff; outline-offset: -3px; }
.download-button { flex: 0 0 176px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; align-content: center; padding: 12px; font-weight: 700; font-size: 12px; border-radius: 0 4px 4px 0; min-height: 80px; }
.download-button:hover { background: #006ee5; text-decoration: none; }
#download-size { font-weight: 400; font-size: 11px; }
.archive-password-card { max-width: 660px; box-sizing: border-box; margin: 24px auto 0; overflow: hidden; border: 1px solid #294b68; border-radius: 14px; background: #102b43; color: #fff; text-align: left; }
.archive-password-header { display: flex; align-items: center; gap: 14px; padding: 21px 24px 18px; }
.archive-password-mark { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid #59a9ee; border-radius: 11px; background: #147bd1; color: #fff; font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1px; }
.archive-password-heading { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.archive-password-heading > span { color: #8fb8d8; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.archive-password-heading > strong { color: #fff; font-size: 21px; line-height: 1.2; letter-spacing: .25px; }
.archive-password-value-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 0 24px; padding: 9px; border: 1px solid #bdd9ee; border-radius: 10px; background: #fff; }
.archive-password-value-row code { display: flex; min-width: 0; min-height: 48px; align-items: center; padding: 0 14px; overflow-wrap: anywhere; color: #102f49; font: 800 24px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .4px; user-select: all; }
.copy-password-button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 7px; background: #147bd1; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .7px; cursor: pointer; }
.copy-password-button:hover { background: #086ab9; }
.copy-password-button:focus-visible { outline: 3px solid #91caff; outline-offset: 2px; }
.archive-password-card > p { margin: 0; padding: 15px 24px 19px; color: #a8c4da; font-size: 12px; line-height: 1.55; }
@media (max-width: 560px) { .download-stage { min-width: 0; } .archive-password-card { width: calc(100vw - 38px); max-width: calc(100vw - 38px); } .archive-password-header { padding: 18px; } .archive-password-value-row { grid-template-columns: 1fr; margin: 0 18px; } .copy-password-button { width: 100%; } .archive-password-card > p { padding: 14px 18px 18px; } }
.public-file-information { color: #8a929c; font-size: 11px; margin: 18px auto 0; max-width: 490px; }
.public-file-information p { margin-bottom: 0; }
.checksum-details { margin-top: 3px; }
.checksum-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: #677584; list-style: none; font-size: 11px; }
.checksum-details summary::after { content: "+"; margin-left: 6px; }
.checksum-details[open] summary::after { content: "−"; }
.checksum-details .detail-list { background: var(--soft); border: 1px solid var(--line); text-align: left; padding: 15px; }
#retry-public { margin-top: 16px; }
.site-footer { background: #f5f6f8; border-top: 1px solid #f0f1f3; padding: 34px 28px 0; }
.footer-inner { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.footer-column h2 { font-size: 10px; font-weight: 700; color: #3b4755; letter-spacing: 1.05px; margin: 0 0 5px; }
.footer-column button { display: block; background: none; padding: 0; border: 0; min-height: 44px; color: #73808d; font-size: 12px; text-align: left; }
.footer-column button:hover { color: var(--blue-ink); }
.footer-bottom { max-width: 1124px; margin: 24px auto 0; border-top: 1px solid #e7eaee; display: flex; gap: 17px; align-items: center; min-height: 62px; font-size: 10px; color: #8c959f; }
.footer-wordmark { color: #6e7e8d; font-weight: 700; letter-spacing: .5px; }
.footer-bottom button { background: none; border: 0; margin-left: auto; color: #73808d; font-size: 10px; min-height: 44px; }
.cookie-banner { background: #242830; color: #c6cbd1; position: fixed; inset: auto 0 0; z-index: 20; padding: 14px 28px; }
.cookie-inner { max-width: 1124px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.cookie-inner p { margin: 0; flex: 1; font-size: 12px; line-height: 1.75; }
.inline-link { border: 0; background: transparent; color: #fff; text-decoration: underline; padding: 0; min-height: 44px; }
.cookie-accept { min-width: 108px; background: #fff; color: #242830; border-radius: 3px; }
.cookie-close { color: #b5bdc8; }
.cookie-close:hover { color: #fff; background: #353b46; }
.cookies-visible { padding-bottom: 88px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; max-width: min(560px, calc(100% - 32px)); width: max-content; color: #fff; background: #26384c; padding: 14px 20px; border-radius: 6px; box-shadow: 0 6px 24px #142b4220; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.toast.error { background: #98333a; }
.cookies-visible .toast { bottom: 112px; }
/* Admin shell */
.admin-page { background: #f7f9fb; }
.admin-header .header-inner { max-width: none; padding: 0 26px; }
.workspace-label { border-left: 1px solid var(--line); margin-left: 3px; padding-left: 22px; letter-spacing: 1.5px; font-size: 9px; color: #788593; }
.admin-account { margin-left: auto; display: flex; align-items: center; gap: 18px; }
#session-user { color: #5a6877; font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.admin-account .nav-link { font-size: 11px; }
.admin-account .nav-link svg { width: 16px; height: 16px; }
.auth-view { min-height: calc(100vh - 60px); padding: 70px 24px; display: flex; justify-content: center; align-items: center; }
.auth-card { width: 420px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 36px; box-shadow: 0 7px 25px #26384c05; }
.auth-card h1 { font-size: 25px; margin-bottom: 12px; }
.auth-card p { font-size: 13px; }
.auth-card form { margin-top: 25px; }
.auth-card .full-width { margin-top: 5px; }
.auth-footnote { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 19px; color: #7a8591; font-size: 11px !important; }
.admin-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 28px 13px 16px; display: flex; flex-direction: column; }
.sidebar-heading { font-size: 9px; font-weight: 700; color: #97a1ac; letter-spacing: 1.5px; padding: 0 15px; margin: 0 0 11px; display: block; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 46px; padding: 10px 13px; border: 0; background: transparent; color: #687584; font-size: 12px; line-height: 1.45; border-radius: 6px; }
.sidebar-link svg { width: 18px; height: 18px; }
.sidebar-link:hover { background: #f4f7fa; color: #344454; }
.sidebar-link.active { background: #edf5ff; color: #0064ca; font-weight: 600; }
.activity-heading { margin-top: 31px; margin-bottom: 7px; }
.sidebar-note { font-size: 10px; color: #587565; margin: auto 12px 16px; padding-top: 50px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #36996a; margin-right: 5px; }
.sidebar-note p { color: #8e98a2; font-size: 10px; padding-left: 14px; margin-top: 8px; }
.sidebar-public { border-top: 1px solid var(--line); padding: 15px 14px 0; min-height: 44px; color: #7e8a96; font-size: 11px; display: flex; justify-content: space-between; }
.workspace { padding: 24px 36px 0; min-width: 0; display: flex; flex-direction: column; max-width: 1680px; width: 100%; margin: 0 auto; }
.workspace-topline { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #98a1ac; margin-bottom: 30px; }
.workspace-topline > span > span:first-child { margin: 0 10px; color: #b7bfc8; }
#breadcrumb { color: #526170; }
.connection-status { color: #7a8994; text-align: right; }
.connection-status.error-message { background: transparent; color: var(--danger); border: 0; padding: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-heading h1 { margin: 0 0 9px; }
.page-heading p { color: #85909b; font-size: 12px; margin-bottom: 0; }
.page-heading .eyebrow { font-size: 9px; margin-bottom: 10px; }
.page-heading > .button { flex-shrink: 0; }
.upload-password-bar { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(240px, 1fr) auto; align-items: end; gap: 14px; padding: 16px 18px; margin: -8px 0 22px; border: 1px solid #dce6ef; background: #f7fbff; border-radius: 7px; }
.upload-password-bar .field { margin: 0; }
.upload-password-bar .form-message { grid-column: 1 / -1; margin: 0; }
.panel-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; }
.search-field { position: relative; min-width: 0; flex: 1; max-width: 350px; }
.search-field > span { position: absolute; top: 13px; left: 12px; pointer-events: none; color: #93a0ad; height: 18px; }
.search-field svg { width: 17px; height: 17px; }
.search-field .text-input { padding-left: 38px; }
.compact-select { width: 145px !important; margin-left: auto; }
.text-input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dce2e8; border-radius: 5px; background: #fff; color: #2f3d4c; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.text-input::placeholder { color: #9ba4af; }
.text-input:disabled { color: #8c98a5; background: #f4f6f8; cursor: not-allowed; }
textarea.text-input { resize: vertical; min-height: 130px; }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { background: #edf4fc; color: #24567f; border: 0; border-radius: 3px; padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.field { margin-bottom: 19px; }
.field > label, .field-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-label { display: flex !important; align-items: center; gap: 9px; min-height: 44px; line-height: 1.5; font-size: 12px; }
input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--blue); margin: 0; cursor: pointer; }
.form-message { font-size: 12px; line-height: 1.7; margin: 12px 0; color: #586e83; overflow-wrap: anywhere; }
.error-message { color: #a4333d; background: #fff4f4; border: 1px solid #f0d9dc; border-radius: 5px; padding: 12px 14px; }
.global-message { margin: -10px 0 20px; }
.section-status { color: #85909a; font-size: 12px; margin-bottom: 15px; }
.data-surface { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.data-surface:empty { display: none; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.data-table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.data-table th { font-weight: 500; font-size: 10px; letter-spacing: .3px; color: #87939f; padding: 14px 19px; background: #fcfdfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 19px; border-bottom: 1px solid #edf0f3; vertical-align: middle; color: #637383; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdff; }
.data-table .name-cell { min-width: 200px; max-width: 360px; }
.file-name-cell { display: flex; gap: 12px; align-items: center; min-width: 0; }
.file-glyph { width: 34px; height: 40px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #e6ebf1; border-radius: 4px; color: #8da2b5; }
.file-title-wrap { min-width: 0; }
.file-title { color: #34495b; font-size: 12px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; display: block; }
.file-subtitle { font-size: 10px; color: #9aa4af; margin-top: 5px; display: block; overflow-wrap: anywhere; }
.actions-cell { white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.badge { display: inline-flex; align-items: center; font-size: 10px; line-height: 1.3; font-weight: 500; border-radius: 4px; padding: 5px 8px; background: #f0f3f6; color: #75808c; text-transform: capitalize; white-space: nowrap; }
.badge.published, .badge.completed, .badge.enabled, .badge.ready, .badge.success { background: #edf7f0; color: #317b52; }
.badge.failed { background: #fceff0; color: #b34852; }
.badge.pending, .badge.extracting, .badge.processing_metadata, .badge.recompressing, .badge.verifying { background: #edf4ff; color: #3f77bd; }
.table-caption { font-size: 10px; color: #99a2ac; margin: 12px 2px; }
.empty-state { text-align: center; padding: 62px 24px; background: #fff; }
.empty-state > svg { width: 27px; height: 27px; color: #a0b2c2; margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 7px; color: #435466; }
.empty-state p { margin: 0 auto; max-width: 340px; font-size: 12px; color: #96a0aa; }
.empty-state .button { margin-top: 19px; }
.workspace-panel { flex: 1; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e5eaf0; margin-top: 48px; padding: 15px 0; font-size: 10px; color: #9ca6b1; }
.workspace-footer span > span { margin: 0 8px; }
.workspace-footer .text-link { font-size: 10px; color: #8291a0; }
/* Processing console */
.operation-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.surface-heading { padding: 19px 21px; border-bottom: 1px solid #edf0f3; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.surface-heading h2 { margin: 0; font-size: 14px; }
.small-label { font-size: 9px; color: #95a1ae; letter-spacing: .5px; white-space: nowrap; }
.settings-card form { padding: 21px; }
.settings-card .check-label { font-weight: 400; }
.settings-card .field { margin-bottom: 17px; }
.settings-card .field:has(#apply-timestamp) { margin-bottom: 5px; }
.fixed-setting { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #7f8b97; border-bottom: 1px solid #edf0f3; padding: 14px 0; }
.fixed-setting strong { font-weight: 500; color: #536779; }
.backup-label { font-size: 11px; margin-top: 14px; flex-wrap: wrap; }
.backup-label .small-label { font-size: 8px; margin-left: 3px; }
.setting-note { font-size: 10px; color: #8b97a3; line-height: 1.7; margin: 8px 0 20px; }
.microcopy { text-align: center; margin: 11px 0 0; font-size: 10px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 2px; margin-bottom: 12px; }
.queue-heading h2 { margin: 0; font-size: 14px; }
.job-list { display: grid; gap: 13px; }
.job-list > .empty-state { border: 1px dashed #dce3eb; border-radius: var(--radius); background: transparent; padding: 64px 24px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; min-width: 0; }
.job-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.job-title { margin: 0 0 5px; overflow-wrap: anywhere; font-size: 12px; }
.job-meta { color: #9aa5af; font-size: 10px; line-height: 1.6; }
.job-progress-line { display: flex; align-items: center; gap: 15px; margin: 18px 0 13px; }
.job-progress-line progress { flex: 1; width: 0; height: 5px; border: 0; border-radius: 2px; overflow: hidden; background: #eef2f7; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #eef2f7; border-radius: 2px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 2px; }
.progress-value { font-size: 10px; color: #7f8d9a; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.job-actionbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
.job-details { border-top: 1px solid #edf0f3; margin-top: 15px; }
.job-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 11px; color: #60788e; list-style: none; }
.job-details summary::before { content: "+"; margin-right: 8px; }
.job-details[open] summary::before { content: "−"; }
.job-error { font-size: 12px; margin: 10px 0; overflow-wrap: anywhere; }
.detail-list { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 10px 20px; margin: 0; font-size: 11px; line-height: 1.65; }
.detail-list dt { color: #8c98a4; }
.detail-list dd { margin: 0; color: #52677a; overflow-wrap: anywhere; white-space: pre-wrap; }
.job-details .detail-list { padding: 4px 0 14px; }
/* Filename pools and records */
.toolbar-note { color: #8d98a3; font-size: 12px; flex: 1; margin: 0; }
.pools-list { display: grid; gap: 14px; }
.pool-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pool-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pool-heading h2 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.pool-description { font-size: 11px; color: #91a0ad; margin: 8px 0 15px; }
.pool-preview { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.pool-preview span { background: #f5f7fa; padding: 6px 9px; border-radius: 4px; color: #7c8a97; font-size: 10px; overflow-wrap: anywhere; max-width: 100%; }
.pool-actions { display: flex; gap: 8px; }
.audit-detail summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #4f6f8a; }
.audit-detail pre { min-width: 180px; max-width: 390px; max-height: 260px; overflow: auto; background: var(--soft); padding: 12px; }
/* Native dialogs keep focus, support Escape, and use text-only dynamic content. */
.modal { border: 1px solid #dfe5eb; border-radius: 9px; padding: 0; max-width: min(480px, calc(100vw - 32px)); width: 480px; max-height: calc(100dvh - 40px); color: var(--ink); background: #fff; box-shadow: 0 18px 70px #12293f24; }
.modal.wide { width: 800px; max-width: min(800px, calc(100vw - 32px)); }
.modal::backdrop { background: #15263866; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px 14px 25px; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.modal-body { padding: 25px; }
.dialog-copy { font-size: 13px; color: #718191; margin-bottom: 16px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }
.modal-section { padding-top: 23px; margin-top: 23px; border-top: 1px solid var(--line); }
.modal-section h3 { font-size: 13px; margin-bottom: 15px; }
.inspector-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.inspector-title { overflow-wrap: anywhere; color: #344e63; font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.inspector-form { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.archive-table { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.archive-table .data-table th { position: sticky; top: 0; }
.archive-table td:first-child { min-width: 160px; overflow-wrap: anywhere; }
.archive-table td { font-size: 11px; }
.noscript { text-align: center; padding: 20px; font-size: 13px; color: var(--danger); }
@media (min-width: 1440px) {
  .public-main { min-height: 540px; }
  .workspace { padding-left: 45px; padding-right: 45px; }
}
.analytics-toolbar { justify-content: flex-start; align-items: end; }
.inline-field { margin: 0; min-width: 220px; }
.inline-field label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.metric-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.metric-label, .metric-note { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.metric-label { font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.metric-value { display: block; margin: 8px 0 5px; font-size: 23px; color: var(--navy); overflow-wrap: anywhere; }
.analytics-funnel { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.analytics-funnel h2 { margin-bottom: 16px; }
.funnel-row + .funnel-row { margin-top: 11px; }
.funnel-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 5px; font-size: 11px; }
.funnel-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dfe6ed; }
.funnel-fill { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.analytics-table { min-width: 1120px; }
.coverage-cell { display: grid; grid-template-columns: 48px minmax(90px, 1fr); align-items: center; gap: 6px 9px; min-width: 180px; }
.coverage-cell progress { width: 100%; height: 8px; }
.coverage-cell .file-subtitle { grid-column: 1 / -1; }
.analytics-detail { min-width: 90px; }
.analytics-detail summary { color: var(--blue-ink); font-weight: 600; cursor: pointer; }
.analytics-detail .detail-list { min-width: 350px; margin-top: 12px; }
@media (max-width: 1120px) {
  .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 202px minmax(0, 1fr); }
  .workspace { padding: 24px 24px 0; }
  .operation-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 17px; }
  .data-table th, .data-table td { padding-left: 13px; padding-right: 13px; }
  .file-table .uploaded-col { display: none; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .sidebar-heading, .sidebar-note, .sidebar-public, .activity-heading { display: none; }
  .admin-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding: 4px 0; }
  .sidebar-link { width: auto; flex-shrink: 0; font-size: 11px; min-height: 44px; padding: 9px 12px; }
  .sidebar-link svg { width: 16px; height: 16px; }
  .workspace-topline { margin-bottom: 24px; }
  .operation-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .workspace { min-height: calc(100vh - 145px); }
}
@media (max-width: 650px) {
  .header-inner { padding: 0 18px; gap: 12px; }
  .brand { font-size: 21px; }
  .public-nav { gap: 14px; }
  .public-nav .language span, .public-nav .help-link, .country { display: none; }
  .public-nav .language { min-width: 28px; }
  .public-nav .nav-link { font-size: 11px; }
  .account-link { width: 30px; min-width: 30px; }
  .public-main { min-height: 400px; padding: 55px 19px 65px; }
  .download-card { min-height: 80px; }
  .download-file { padding-left: 13px; gap: 10px; }
  .file-symbol { display: none; }
  .download-button { flex-basis: 142px; font-size: 11px; gap: 3px; }
  .public-filename { font-size: 12px; }
  .public-state h1 { font-size: 25px; }
  .desktop-break { display: none; }
  .site-footer { padding: 28px 28px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 25px 32px; }
  .footer-bottom { gap: 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .cookie-banner { padding: 16px 18px; }
  .cookie-inner { flex-wrap: wrap; gap: 5px 14px; }
  .cookie-inner p { flex-basis: calc(100% - 44px); font-size: 11px; padding-right: 20px; }
  .cookie-close { position: absolute; top: 12px; right: 8px; }
  .cookie-accept { min-height: 44px; min-width: 104px; padding: 8px 14px; font-size: 12px; }
  .cookies-visible { padding-bottom: 170px; }
  .cookies-visible .toast { bottom: 185px; }
  .admin-header .header-inner { padding: 0 16px; }
  .workspace-label { display: none; }
  .admin-account { gap: 9px; }
  #session-user { display: none; }
  .admin-account > .icon-button { display: none; }
  .auth-view { padding: 36px 20px; align-items: flex-start; width: 100%; min-width: 0; }
  .auth-card { width: calc(100vw - 40px); max-width: 420px; min-width: 0; padding: 27px 23px; overflow-wrap: anywhere; }
  .sidebar { padding: 8px 16px; }
  .workspace { padding: 21px 18px 0; }
  .workspace-topline { font-size: 9px; gap: 8px; margin-bottom: 24px; }
  .connection-status { max-width: 145px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 11px; }
  .page-heading > .button { align-self: stretch; }
  .upload-password-bar { grid-template-columns: 1fr; align-items: stretch; gap: 9px; margin-top: -5px; }
  .panel-toolbar { flex-wrap: wrap; gap: 9px; }
  .analytics-summary { grid-template-columns: 1fr; }
  .analytics-toolbar .inline-field { width: 100%; min-width: 0; }
  .search-field { flex-basis: 100%; max-width: none; }
  .compact-select { flex: 1; margin-left: 0; }
  .operation-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .settings-card form { padding: 20px; }
  .workspace-footer { font-size: 9px; margin-top: 30px; gap: 10px; }
  .workspace-footer span > span { margin: 0 4px; }
  .file-table, .file-table tbody, .file-table tr, .file-table td { display: block; width: 100%; }
  .file-table thead { display: none; }
  .file-table tbody tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .file-table tbody tr:last-child { border-bottom: 0; }
  .file-table td { border: 0; padding: 5px 0; }
  .file-table td.name-cell { min-width: 0; max-width: none; margin-bottom: 12px; }
  .file-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 11px; }
  .file-table td[data-label]::before { content: attr(data-label); color: #91a0ae; font-size: 10px; }
  .file-table td.actions-cell { margin-top: 10px; }
  .file-table .row-actions { justify-content: flex-end; }
  .file-title { font-size: 13px; }
  .file-table .uploaded-col { display: none !important; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal-body { padding: 21px; }
  .modal-header { padding-left: 21px; }
  .detail-list { grid-template-columns: 100px minmax(0, 1fr); gap: 10px 12px; font-size: 10px; }
  .inspector-actions .button { flex: 1 1 42%; }
  .dialog-actions .button { flex: 1; }
  .job-card { padding: 17px; }
  .job-header { flex-wrap: wrap; }
  .job-meta { font-size: 9px; }
  .toolbar-note { font-size: 11px; }
  .empty-state { padding: 43px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
