:root {
  --ink: #010000;
  --paper: #feffff;
  --lagoon: #f4f4ef;
  --blue: #00a3e0;
  --orange: #ff6900;
  --green: #009a01;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--lagoon);
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, input:not([type="checkbox"]) { min-height: 44px; }
button { cursor: pointer; padding: 9px 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 3px; font-weight: 600; }
button:hover:not(:disabled) { background: var(--lagoon); }
button:disabled { cursor: not-allowed; border-style: dashed; background: var(--lagoon); color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, main:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.masthead :focus-visible { outline-color: var(--paper); }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
::selection { color: var(--ink); background: var(--blue); }
input { accent-color: var(--ink); }
input:not([type="checkbox"]) { width: 100%; padding: 8px 10px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); border-radius: 3px; }
input:disabled { background: var(--lagoon); }
input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.button-primary { background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--paper); }
.button-inverse { color: var(--paper); background: var(--ink); border-color: var(--paper); }
.button-inverse:hover:not(:disabled) { color: var(--ink); background: var(--paper); }
.button-text { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.button-wide { width: 100%; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; z-index: 2; background: var(--paper); }
.skip-link:focus { top: 10px; }
.masthead { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(24px, calc((100vw - 1440px) / 2)); color: var(--paper); background: var(--ink); }
.brand { display: flex; min-height: 44px; align-items: center; flex-shrink: 0; text-decoration: none; font-size: 29px; font-weight: 750; letter-spacing: -1px; }
.brand-logo { display: block; width: 264px; height: 44px; object-fit: contain; }
.brand-dot { color: var(--blue); }
.brand-product { font-size: 11px; letter-spacing: 2px; margin-left: 15px; font-weight: 500; }
.account { display: flex; align-items: center; gap: 20px; font-size: 13px; }
main { max-width: 1488px; margin: auto; padding: 32px 24px 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 650; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3; }
.eyebrow, .small-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 650; }
.eyebrow { margin-bottom: 8px; }
.heading-note { font-size: 13px; text-align: right; }
.notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid var(--ink); background: var(--paper); overflow-wrap: anywhere; }
.notice[data-tone="error"] { background: var(--orange); }
.notice[data-tone="success"] { border: 2px solid var(--green); }
.auth-panel { max-width: 480px; margin: 40px auto 72px; padding: 30px; background: var(--paper); border: 1px solid var(--ink); }
.auth-panel h2 { margin-bottom: 18px; }
.auth-panel form { display: grid; gap: 10px; }
.auth-panel label { font-weight: 600; font-size: 14px; }
.auth-panel form button { margin-top: 12px; }
#session-retry { margin-top: 16px; }
#setup-message { margin-bottom: 20px; }
.service-strip { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 24px; padding: 0 0 22px; border-bottom: 1px solid var(--ink); }
.service-strip p { font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.service-strip .refresh-area { text-align: right; }
.refresh-area button { margin-top: 8px; }
.safety-note { font-size: 14px; padding: 16px 0 22px; overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--ink); min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--ink); }
.tag { font-size: 12px; border: 1px solid var(--ink); border-radius: 3px; padding: 5px 9px; white-space: nowrap; background: var(--lagoon); }
.roots { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; }
.roots:empty { display: none; }
.roots button[aria-current="true"] { background: var(--blue); }
.browser-toolbar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--ink); }
.path { overflow-wrap: anywhere; font-size: 13px; font-family: "Cascadia Code", "DejaVu Sans Mono", monospace; }
.empty-message { padding: 26px 24px; font-size: 14px; }
.entries { max-height: 540px; overflow-y: auto; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 20px; border-bottom: 1px solid var(--lagoon); }
.entry .check-row { min-width: 0; }
.entry-name { overflow-wrap: anywhere; }
.entry-meta { font-size: 12px; white-space: nowrap; }
.directory-button { border: 0; background: transparent; padding-left: 0; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.directory-button::before { content: "↳ "; }
.entry-kind { display: block; font-size: 11px; font-weight: 400; }
.fine-print { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#browse-note { padding: 14px 20px; background: var(--lagoon); }
.selected-files { list-style: none; padding: 0; margin: 0; max-height: 280px; overflow-y: auto; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; border-bottom: 1px solid var(--lagoon); }
.selected-file span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.selected-file button { font-size: 12px; }
#clear-selection { margin: 8px 10px; }
#ingest-form { padding: 18px 24px 24px; border-top: 1px solid var(--ink); }
fieldset { padding: 0; border: 0; margin: 0 0 12px; }
legend { font-weight: 650; font-size: 13px; margin-bottom: 10px; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.destination-detail { display: block; font-size: 12px; }
.capacity-note { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--ink); background: var(--lagoon); }
.capacity-note[data-tone="error"] { border-left-color: var(--orange); }
#enqueue { margin-top: 18px; }
#enqueue-reason { margin-top: 10px; }
.jobs-panel { margin-top: 24px; }
.jobs-heading { align-items: center; }
#jobs-summary { margin-top: 8px; }
.queue-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.queue-note { padding: 12px 24px; border-bottom: 1px solid var(--ink); }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { background: var(--lagoon); padding: 12px 18px; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; font-weight: 650; }
td { padding: 18px; border-top: 1px solid var(--ink); vertical-align: top; min-width: 130px; max-width: 440px; overflow-wrap: anywhere; }
td:first-child { min-width: 210px; width: 28%; }
.job-name { font-weight: 650; }
.job-detail { font-size: 12px; margin-top: 5px; }
.job-status { display: inline-block; padding: 3px 8px; background: var(--lagoon); border: 1px solid var(--ink); border-radius: 3px; font-size: 12px; white-space: nowrap; }
.job-status[data-tone="success"] { border: 2px solid var(--green); }
.job-status[data-tone="error"] { background: var(--orange); }
.job-status[data-tone="active"] { background: var(--blue); }
.job-error { margin-top: 8px; white-space: pre-wrap; }
progress { width: 100%; min-width: 110px; height: 12px; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: var(--lagoon); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.job-actions button { font-size: 12px; }
footer { max-width: 1488px; display: flex; justify-content: space-between; gap: 16px; margin: auto; padding: 0 24px 24px; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .service-strip { grid-template-columns: 1fr 1fr; gap: 18px; }
  .service-strip .refresh-area { text-align: left; }
  .workspace { grid-template-columns: minmax(0, 1.3fr) minmax(285px, 1fr); gap: 18px; }
  .section-heading, #ingest-form { padding: 18px; }
}
@media (max-width: 760px) {
  .masthead { padding: 16px; align-items: start; gap: 12px; }
  .brand { font-size: 25px; }
  .brand-logo { width: 180px; height: 30px; }
  .brand-product { display: none; }
  .account { flex-direction: column; align-items: end; gap: 8px; font-size: 11px; }
  .account button { font-size: 12px; }
  main { padding: 24px 16px 36px; }
  .heading-note { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .service-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .jobs-heading { flex-direction: column; align-items: start; }
  .browser-toolbar { align-items: start; flex-direction: column; }
  .entry { padding: 6px 16px; gap: 8px; }
  .auth-panel { margin: 24px auto; padding: 24px; }
  footer { flex-direction: column; padding: 0 16px 24px; gap: 4px; }
}
/* OPERATE: a source tree, a detailed work list, explicit actions. */
.section-nav { display: flex; gap: 28px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.section-nav a { min-height: 44px; padding: 9px 0; font-weight: 650; text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }
.section-nav [role="tab"][aria-selected="true"] { box-shadow: inset 0 -3px var(--blue); }
[role="tabpanel"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h3 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
.workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.source-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.source-browser { min-width: 0; }
.roots { display: block; padding: 8px 12px; border-right: 1px solid var(--ink); background: var(--lagoon); max-height: 770px; overflow-y: auto; }
.roots button { display: block; width: 100%; text-align: left; font-size: 12px; font-weight: 500; line-height: 1.5; margin: 5px 0; padding: 9px; overflow-wrap: anywhere; }
.source-host > summary { font-size: 12px; font-weight: 750; letter-spacing: 1px; }
.source-volume { padding-left: 10px; }
.source-volume > summary { font-size: 12px; font-weight: 650; }
.folder-branches { padding-left: 12px; }
.folder-branches button { border: 0; background: transparent; }
#setup-message code { display: block; margin: 12px 0; overflow-wrap: anywhere; }
.browser-toolbar { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
.browse-actions { display: flex; align-items: center; flex-wrap: wrap; padding: 12px 16px; gap: 8px; border-bottom: 1px solid var(--ink); }
.browse-actions button { font-size: 12px; }
.browse-actions span { flex-basis: 100%; }
.entries { max-height: 620px; }
.entry { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 16px; border-bottom-color: var(--ink); }
.entry-meta { white-space: normal; padding-left: 32px; font-size: 11px; }
.entry-meta summary { padding: 7px 0; font-size: 12px; }
.entry-kind { margin-top: 4px; font-size: 10px; }
.watch-panel { padding: 20px 24px; border-top: 1px solid var(--ink); background: var(--lagoon); }
.compact-form { display: grid; gap: 8px; margin: 14px 0; }
.compact-form > label:not(.check-row), .filter-bar label, .metadata-form label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 5px; }
select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); background: var(--paper); padding: 8px 10px; font: inherit; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
select:disabled, textarea:disabled { background: var(--lagoon); }
textarea { resize: vertical; }
#watch-rules { padding-left: 18px; font-size: 11px; overflow-wrap: anywhere; }
#watch-rules li { margin-bottom: 9px; }
.catalogue-panel { margin-top: 24px; }
.filter-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto; align-items: end; padding: 18px 24px; gap: 12px; border-bottom: 1px solid var(--ink); }
.filter-bar > div { min-width: 0; }
.filter-bar input, .filter-bar select { font-size: 13px; }
.metadata-editor { border-top: 2px solid var(--ink); padding: 24px; background: var(--lagoon); }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.metadata-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.metadata-form > div:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
#media-technical, #media-provenance { overflow-wrap: anywhere; margin-bottom: 10px; }
:target { scroll-margin-top: 20px; }
@media (max-width: 1200px) { .source-layout { grid-template-columns: 180px minmax(0, 1fr); } .workspace { grid-template-columns: minmax(0, 1fr) 290px; } .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 950px) { .workspace { grid-template-columns: minmax(0, 1fr); } .source-layout { grid-template-columns: 230px minmax(0, 1fr); } .selection-panel { display: grid; grid-template-columns: 1fr 1fr; } .selection-panel > .section-heading { grid-column: 1 / -1; } .watch-panel { grid-column: 2; grid-row: 2 / span 5; border-left: 1px solid var(--ink); border-top: 0; } #ingest-form { align-self: end; } }
@media (max-width: 600px) { .source-layout { grid-template-columns: minmax(0, 1fr); } .roots { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--ink); } .selection-panel { display: block; } .watch-panel { border-left: 0; border-top: 1px solid var(--ink); } .filter-bar, .metadata-form { grid-template-columns: minmax(0, 1fr); padding: 16px; } .metadata-form > div:nth-child(2) { grid-column: auto; grid-row: auto; } .editor-heading { align-items: start; flex-direction: column; } .section-heading { flex-wrap: wrap; } }
@media (max-width: 380px) { .brand-logo { width: 144px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print { .masthead, button, .selection-panel, .source-panel { display: none; } body, .panel { background: var(--paper); } main { padding: 0; } }
