
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.source-collected-item { flex-wrap: wrap; }
.source-collected-item > label { width: 100%; }
.source-collected-item select { width: 100%; min-height: 32px; padding: 5px 8px; font-size: 12px; }

.source-guided-record > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.source-guided-thumb-slot { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; background: #eef0ed; border-radius: 7px; overflow: hidden; }
.source-guided-thumb { width: 72px; height: 72px; object-fit: contain; }
.source-guided-thumb-error { font-size: 10px; line-height: 1.25; text-align: center; padding: 4px; }
.source-guided-filename { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.source-image-preview { box-sizing: border-box; width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 16px; padding: 18px; overflow: auto; }
.source-image-preview::backdrop { background: #10202ab3; }
.source-image-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
#source-image-preview-image { display: block; width: 100%; max-height: 70vh; object-fit: contain; margin-bottom: 12px; }

#source-quota-sync, .button[data-refresh-pothos] { border: 2px solid #b42332; color: #a51d2d; background: #fff; font-weight: 800; }
#source-quota-sync:hover:not(:disabled), [data-refresh-pothos]:hover:not(:disabled) { background: #fff0f1; border-color: #831221; }
#source-quota-sync:focus-visible, [data-refresh-pothos]:focus-visible { outline: 3px solid #b42332; outline-offset: 3px; }
.source-locale-required { border-left: 4px solid #b42332; border-radius: 6px; padding: 12px 16px; background: #fff3f4; color: #74202b; }
.source-guided-upload.locale-locked input, .source-guided-upload.locale-locked textarea, .source-guided-upload.locale-locked select { cursor: not-allowed; background: #f0f0ed; }
.source-guided-multi-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pothos-help-field { position: relative; }
.pothos-help-field > span:first-child { padding-right: 28px; }
.pothos-help-trigger { position: absolute; right: 2px; top: 0; width: 22px; height: 22px; min-height: 0; padding: 0; border: 1px solid #586b76; border-radius: 50%; background: #fff; color: #304655; font: 800 13px/20px sans-serif; cursor: help; z-index: 1; }
.pothos-help-trigger:focus-visible { outline: 3px solid #507fbb; outline-offset: 2px; }
#pothos-field-tooltip { position: fixed; z-index: 10000; box-sizing: border-box; width: min(340px, calc(100vw - 24px)); padding: 13px 16px; border-radius: 10px; background: #172e3b; color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 6px 24px #0003; }
.source-guided-remove { justify-self: start; grid-column: 1 / -1; }

.pothos-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.pothos-group { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pothos-group > summary { cursor: pointer; font-weight: 700; }
.pothos-format { padding: 14px 0; border-top: 1px solid var(--line); }
.pothos-format h4 { margin: 8px 0; }
.pothos-format details, .pothos-group details { margin: 12px 0; }
.pothos-table-scroll { overflow-x: auto; }
.pothos-table-scroll table { width: 100%; border-collapse: collapse; text-align: left; }
.pothos-table-scroll th, .pothos-table-scroll td { padding: 9px; border-bottom: 1px solid var(--line); }
.pothos-generation-person { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.pothos-generation-person input { width: auto; }
.pothos-preserve-lines { white-space: pre-line; }
#source-quota-refreshed { display: block; max-width: 42em; color: var(--muted); }

:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #657068;
  --line: #dce3de;
  --paper: #f6f8f5;
  --card: #ffffff;
  --accent: #2d6a4f;
  --accent-dark: #1f513d;
  --soft: #e8f2ec;
  --warning: #a45b12;
  --danger: #a13a3a;
  --shadow: 0 16px 50px rgba(24, 34, 29, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.shell { width: min(1440px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 56px) 56px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.045em; }
h2 { margin-bottom: 6px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
h3 { margin-bottom: 0; font-size: 20px; }
.eyebrow { margin-bottom: 5px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.attention-summary { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #efc786; border-radius: 12px; background: #fff4df; color: #7d4a08; padding: 8px 11px; font-size: 13px; font-weight: 700; }
.attention-summary strong { min-width: 24px; border-radius: 999px; background: #f3c878; color: #422500; padding: 3px 7px; text-align: center; }
.attention-flag { font-size: 18px; line-height: 1; }
.language-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 3px; }
.language-switch button { min-width: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 6px 8px; cursor: pointer; font-size: 12px; font-weight: 800; }
.language-switch button[aria-pressed="true"] { background: var(--soft); color: var(--accent-dark); }
.account-block { display: flex; align-items: center; gap: 10px; }
.account-block label { color: var(--muted); font-size: 13px; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); padding: 11px 12px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,79,.12); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 0; border-radius: 11px; padding: 10px 16px; cursor: pointer; text-decoration: none; font-weight: 750; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: var(--soft); color: var(--accent-dark); }
.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.danger { color: var(--danger); }
.button.danger { border: 1px solid #e7aaaa; background: #fde8e8; color: var(--danger); }
.state-card, .login-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); padding: 28px; }
.login-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 760px; margin: 9vh auto; }
.login-card p:not(.eyebrow) { margin-bottom: 0; max-width: 530px; color: var(--muted); line-height: 1.55; }
.workspace { display: grid; gap: 20px; min-width: 0; }
.workspace-tabs { display: flex; justify-content: flex-start; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 8px; box-shadow: var(--shadow); }
.workspace-tab-actions { display: flex; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; overflow-x: auto; }
.section-heading, .project-header, .table-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 18px; }
.icon-button svg { display: block; width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-list { position: relative; flex: 0 0 auto; min-width: 0; }
.project-switcher { position: relative; }
.project-switcher > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 7px 10px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--ink); list-style: none; white-space: nowrap; }
.project-switcher > summary::-webkit-details-marker { display: none; }
.project-switcher > summary::before { content: "›"; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s ease; }
.project-switcher[open] > summary::before { transform: rotate(90deg); }
.project-switcher-menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; display: grid; gap: 10px; width: min(340px, calc(100vw - 44px)); max-height: 430px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 9px; box-shadow: var(--shadow); }
.project-menu-section { display: grid; gap: 5px; }
.project-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.project-menu-items { display: grid; gap: 4px; }
.project-button, .workspace-tab { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: 10px; background: transparent; padding: 8px 12px; text-align: left; cursor: pointer; color: var(--ink); }
.project-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; width: 100%; max-width: none; }
.project-button > strong { grid-column: 1; }
.project-button > span:not(.project-state-badge) { grid-column: 1; color: var(--muted); font-size: 11px; margin-top: 2px; }
.project-button:hover, .project-button.active, .workspace-tab:hover, .workspace-tab.active { background: var(--soft); color: var(--accent-dark); }
.project-state-badge { display: inline-flex !important; grid-column: 2; grid-row: 1 / 3; align-self: center; width: fit-content; margin: 0 !important; padding: 3px 7px; border-radius: 999px; background: #fff3cd; color: #775600 !important; font-weight: 750; font-variant-numeric: tabular-nums; }
.project-state-badge.stopped { background: #fde8e8; color: var(--danger) !important; }
.archived-project-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.archived-project-item > div { display: grid; gap: 2px; min-width: 0; }
.archived-project-item small { color: var(--muted); }
.workspace-tab { display: inline-flex; align-items: center; font-weight: 800; white-space: nowrap; }
.admin-setup { min-width: 0; }
.setup-header { max-width: 820px; margin-bottom: 18px; }
.setup-header > p:last-child, .compact-form > p { color: var(--muted); line-height: 1.5; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.compact-form, .compact-fields { display: grid; gap: 10px; }
.setup-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; box-shadow: var(--shadow); }
.participant-access-card { grid-column: 1 / -1; }
.profile-directory { display: grid; gap: 8px; margin-top: 12px; }
.profile-directory details { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 10px 12px; }
.profile-directory summary { cursor: pointer; font-weight: 750; }
.profile-directory-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-dialog { width: min(520px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); padding: 22px; box-shadow: var(--shadow); }
.profile-dialog::backdrop { background: rgba(20, 29, 24, .42); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.sensitive-dialog p { color: var(--danger); line-height: 1.5; }
.project-control-panel { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(240px, 1.15fr) auto; align-items: center; gap: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.project-control-panel.warning { border-color: #e8c56d; background: #fffaf0; }
.project-control-panel.danger { border-color: #e3a1a1; background: #fff5f5; }
.project-control-identity, .project-control-state { display: grid; gap: 3px; min-width: 0; }
.project-control-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.project-control-title h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); }
.project-control-identity .eyebrow, .project-control-state .eyebrow { margin: 0; }
.project-control-state > span { color: var(--muted); font-size: 13px; }
.project-control-side { display: grid; justify-items: end; gap: 7px; }
.project-control-countdown { min-width: 116px; border-radius: 999px; background: #f3c878; color: #422500; padding: 5px 10px; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.project-control-panel.danger .project-control-countdown { background: #f3c4c4; color: var(--danger); }
.project-control-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 154px; justify-content: end; gap: 8px; }
.project-control-actions .button { width: 100%; white-space: nowrap; }
.project-upload-schedule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-upload-control-dialog small { color: var(--muted); line-height: 1.45; }
.participant-access-card > p { margin: 6px 0 14px; color: var(--muted); line-height: 1.5; }
.setup-purpose { margin-bottom: 16px; }
.setup-purpose-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.setup-purpose-panel > small, .setup-purpose-panel > .button,
.setup-purpose-panel > .invite-mode, .setup-purpose-panel > .invitation-result { grid-column: 1 / -1; }
.setup-purpose-panel > .compact-fields { display: contents; }
.compact-form h3 { font-size: 18px; }
.compact-form > p { margin: -2px 0 2px; font-size: 13px; }
.compact-form label > span:first-child { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.compact-form small { color: var(--muted); line-height: 1.4; }
.invite-mode { margin: 2px 0; }
.readonly-field { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 11px 12px; }
.readonly-field span, .readonly-field strong { display: block; }
.readonly-field span { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.invitation-result { display: grid; gap: 8px; border: 1px solid #cbded2; border-radius: 12px; background: var(--soft); padding: 10px; }
.invitation-result small { color: var(--muted); line-height: 1.4; }
.content { min-width: 0; }
.project-header, .project-page-heading { margin-bottom: 20px; }
.project-contacts { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.feedback-preference { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: -8px 0 20px; border: 1px solid #ead7b8; border-radius: 14px; background: #fff9ef; padding: 12px 14px; }
.feedback-preference label { display: flex; align-items: flex-start; gap: 11px; min-width: 0; cursor: pointer; }
.feedback-preference input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.feedback-preference strong, .feedback-preference small { display: block; }
.feedback-preference strong { color: var(--ink); }
.feedback-preference small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.pill, .counter, .status { border-radius: 999px; background: var(--soft); color: var(--accent-dark); padding: 6px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.upload-panel { border: 1px solid #cbded2; border-radius: 18px; background: linear-gradient(135deg, #fff, #f0f7f2); padding: 20px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-grid label, .classification-fields label { color: var(--muted); font-size: 12px; font-weight: 700; }
.form-grid label > *, .classification-fields label > * { margin-top: 6px; }
.classification-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-column: 1 / -1; gap: 12px; }
.classification-fields.auto-disabled { opacity: .5; }
.classification-fields.auto-disabled select, .classification-fields.auto-disabled input { cursor: not-allowed; background: #eef1ef; }
.auto-classify-asset { display: flex; align-items: center; gap: 9px; align-self: end; min-height: 44px; }
.auto-classify-asset > * { margin-top: 0 !important; }
.auto-classify-asset input { width: auto; }
.file-drop { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 14px 0; border: 1px dashed #96b3a2; border-radius: 13px; background: rgba(255,255,255,.7); padding: 16px; cursor: pointer; }
.source-collection-upload { display: grid; gap: 14px; margin-bottom: 14px; }
.source-upload-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.source-upload-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.source-type-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.source-type-buttons button { flex: 1 1 210px; min-height: 44px; }
.source-type-buttons button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.source-requirements-card { border: 1px solid #cbded2; border-radius: 13px; background: rgba(255,255,255,.72); padding: 13px 15px; }
.source-requirements-card > summary { cursor: pointer; color: var(--ink); font-weight: 850; }
.source-requirements-card > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-quota-card { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; align-items: center; border: 1px solid #cbded2; border-radius: 13px; background: #fff; padding: 13px 15px; }
.source-quota-card > strong { grid-row: 1 / 3; }
.source-quota-card > span { color: var(--accent-dark); font-weight: 850; }
.source-quota-card > small { color: var(--muted); }
.source-quota-card.closed { border-color: #e1bd84; background: #fff8ec; }
.source-collected-details { grid-column: 1 / -1; margin-top: 7px; border-top: 1px solid var(--line); padding-top: 10px; }
.source-collected-details > summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--ink); font-weight: 850; }
.source-collected-details > summary small { color: var(--muted); font-weight: 650; }
.source-collected-list { display: grid; gap: 12px; max-height: 340px; margin-top: 10px; overflow: auto; }
.source-collected-state { margin: 0; color: var(--muted); font-size: 13px; }
.source-collected-group { display: grid; gap: 6px; }
.source-collected-group > strong { font-size: 12px; color: var(--muted); }
.source-collected-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.source-collected-item { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: 7px 9px; }
.source-collected-item strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.source-collected-item small { flex: 0 0 auto; color: var(--muted); }
.source-structure-help { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 13px; }
.source-structure-help .button { margin-left: auto; white-space: nowrap; }
.source-structure-help strong { color: var(--ink); white-space: nowrap; }
.source-upload-mode-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.source-upload-mode { display: grid; gap: 4px; min-height: 68px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); padding: 12px 14px; text-align: left; cursor: pointer; }
.source-upload-mode strong { font-size: 14px; }
.source-upload-mode small { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.source-upload-mode.active { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
#source-locale-slot .classification-fields { grid-template-columns: minmax(240px, 520px); }
.source-guided-upload { display: grid; gap: 14px; border: 1px solid #bad6c5; border-radius: 16px; background: rgba(255,255,255,.72); padding: 16px; }
.source-guided-heading > strong { font-size: 18px; }
.source-guided-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.source-guided-file { margin: 0; }
.source-guided-file input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
#source-guided-file-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-guided-section { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; }
.source-guided-section legend { color: var(--ink); padding: 0 7px; font-size: 14px; font-weight: 850; }
.source-guided-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.source-guided-grid label, .source-guided-record-grid label { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.source-guided-grid label > small { color: var(--muted); font-size: 11px; font-weight: 600; }
.source-guided-notes { grid-column: 1 / -1; }
.source-guided-notes textarea { min-height: 110px; resize: vertical; }
.source-guided-section-help { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.source-guided-records { display: grid; gap: 9px; }
.source-guided-record { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.source-guided-record > summary { cursor: pointer; padding: 11px 13px; color: var(--ink); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.source-guided-record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; border-top: 1px solid var(--line); padding: 13px; }
.source-guided-record-grid .source-guided-qr, .source-guided-record-grid .source-guided-wide { grid-column: span 2; }
.source-guided-record input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(175,45,45,.1); }
.upload-in-progress .source-guided-file { cursor: default; opacity: .65; }
#upload-form.source-collection-mode #classification-fields { grid-template-columns: minmax(240px, 520px); }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.file-drop-title { font-weight: 800; }
.upload-in-progress .archive-selection { cursor: default; }
.upload-in-progress .archive-selection .file-drop-title { color: var(--muted); }
.classification-review { margin: 14px 0; border: 2px solid var(--accent); border-radius: 16px; background: var(--card); box-shadow: 0 14px 34px rgba(45,106,79,.13); padding: 20px; }
.classification-review.warning { border-color: #d9993d; background: #fff9ef; box-shadow: 0 14px 34px rgba(164,91,18,.12); }
.classification-review.warning > strong { color: var(--warning); }
.classification-review > strong { display: block; color: var(--accent-dark); font-size: 19px; }
.classification-review > p { margin: 6px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.classification-review-controls { margin: 16px 0 18px; }
.classification-review-controls .classification-fields { padding: 16px; border-radius: 13px; background: var(--soft); }
.classification-review-controls .auto-classify-asset { display: none; }
.classification-review-controls select { background: #fff; border-color: #8aac98; }
.classification-hint { display: none; color: var(--accent-dark); font-size: 11px; font-weight: 700; line-height: 1.35; }
.classification-review .classification-hint { display: block; }
.classification-hint.medium { color: var(--warning); }
.classification-hint.low, .classification-hint.manual { color: var(--danger); }
.classification-fields label.needs-value select, .classification-fields label.needs-value input { border-color: var(--warning); box-shadow: 0 0 0 3px rgba(164,91,18,.11); }
.classification-review-actions { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.reviewing-classification .classification-extra { display: none !important; }
.upload-in-progress .classification-extra, .upload-in-progress:not(.reviewing-classification) #classification-fields { display: none !important; }
#file-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress { margin-top: 18px; }
.upload-progress-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.upload-progress-actions { display: flex; justify-content: flex-end; min-height: 38px; margin-top: 10px; }
.drive-import-panel { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.drive-import-panel summary { color: var(--accent-dark); font-weight: 800; cursor: pointer; }
.drive-import-panel > p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.drive-import-panel .drive-import-access { color: var(--accent-dark); }
.drive-import-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.drive-import-progress { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.drive-import-path { min-height: 1.4em; margin: 8px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
.table-heading { margin: 2px 0 12px; }
.registry-tools { display: grid; gap: 10px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.preview-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.preview-tools > span { margin-right: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.quick-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.quick-filter-heading { margin-right: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.quick-filter-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--accent-dark); padding: 7px 11px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.quick-filter-button:hover { border-color: #a8c8b5; }
.quick-filter-button.active { border-color: var(--accent); background: var(--accent); color: white; }
.quick-filter-count { min-width: 22px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); padding: 2px 6px; text-align: center; font-size: 11px; }
.quick-filter-button.active .quick-filter-count { background: rgba(255,255,255,.2); color: white; }
.registry-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; align-items: end; }
.registry-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.registry-filters select { min-height: 38px; padding: 7px 10px; background: var(--card); }
.registry-filters > .button { align-self: end; min-height: 38px; }
.bulk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.bulk-action-buttons { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.bulk-select-all { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.bulk-classification-form { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.bulk-classification-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bulk-classification-heading strong { color: var(--accent-dark); }
.bulk-classification-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.bulk-classification-actions { display: flex; justify-content: flex-end; }
.submission-list { display: grid; gap: 10px; }
.dashboard-view { display: grid; gap: 16px; min-width: 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dashboard-header h2 { margin-bottom: 4px; }
.dashboard-header p:last-child { margin: 0; color: var(--muted); }
.dashboard-filter-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 15px; box-shadow: var(--shadow); }
.dashboard-filter-group { min-width: 0; }
.dashboard-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.dashboard-checklist { display: flex; gap: 7px; flex-wrap: wrap; max-height: 150px; overflow-y: auto; }
.dashboard-checklist label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 7px 10px; cursor: pointer; font-size: 12px; }
.dashboard-checklist label:has(input:checked) { border-color: #a8c8b5; background: var(--soft); color: var(--accent-dark); font-weight: 750; }
.dashboard-checklist input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.dashboard-empty-filter { color: var(--muted); font-size: 12px; }
.dashboard-classification-tools { grid-column: 1 / -1; display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.dashboard-classification-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-classification-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-classification-filters select { min-height: 38px; padding: 7px 10px; }
.dashboard-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.dashboard-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.dashboard-table th, .dashboard-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 10px; text-align: center; font-size: 12px; }
.dashboard-table tr > *:last-child { border-right: 0; }
.dashboard-table thead th { position: sticky; top: 0; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 800; }
.dashboard-table thead th:first-child, .dashboard-table tbody th, .dashboard-table tfoot th { position: sticky; left: 0; z-index: 1; min-width: 190px; background: var(--card); text-align: left; }
.dashboard-table thead th:first-child { z-index: 2; background: var(--paper); }
.dashboard-table td.has-assets { background: var(--soft); color: var(--accent-dark); font-weight: 850; }
.dashboard-table .dashboard-total, .dashboard-table tfoot th, .dashboard-table tfoot td { background: #f0f4f1; font-weight: 850; }
.dashboard-table tfoot tr > * { border-bottom: 0; }
.billing-view { display: grid; gap: 18px; min-width: 0; }
.billing-header, .billing-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.billing-header h2, .billing-section-heading h3 { margin: 0; }
.billing-project-name, .billing-section-heading p { margin: 5px 0 0; color: var(--muted); }
.billing-mode-tabs { display: flex; gap: 10px; margin: 14px 0 18px; }
.billing-mode-tabs .active { background: var(--accent); color: white; border-color: var(--accent); }
.billing-admin-terms { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
#billing-admin-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.billing-admin-term { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.billing-admin-term label { max-width: 130px; }
.billing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.billing-summary-card, .billing-rate-card, .billing-ledger-section { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.billing-summary-card { display: grid; gap: 10px; padding: 17px; }
.billing-summary-card > strong { font-size: 14px; }
.billing-summary-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.billing-summary-value { display: grid; gap: 3px; min-width: 0; }
.billing-summary-value span { color: var(--muted); font-size: 11px; font-weight: 700; }
.billing-summary-value strong { font-size: 17px; overflow-wrap: anywhere; }
.billing-rate-card, .billing-ledger-section { padding: 18px; }
.billing-rate-overrides { display: grid; gap: 14px; padding-top: 14px; }
.billing-admin-terms, #billing-admin-terms { display: grid; gap: 10px; }
.billing-admin-term, .billing-manager-terms { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.billing-admin-term > summary, .billing-manager-terms-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: var(--paper); cursor: pointer; list-style: none; }
.billing-admin-term > summary::-webkit-details-marker, .billing-manager-terms-summary::-webkit-details-marker { display: none; }
.billing-admin-term > summary::after, .billing-manager-terms-summary::after { content: "⌄"; color: var(--muted); font-weight: 800; transition: transform .16s ease; }
.billing-admin-term[open] > summary::after, .billing-manager-terms[open] > summary::after { transform: rotate(180deg); }
.billing-admin-term > summary > span, .billing-manager-terms-summary span { color: var(--muted); font-size: 12px; }
.billing-admin-term > label { display: grid; grid-template-columns: minmax(180px, 1fr) 110px; align-items: center; gap: 12px; padding: 14px; color: var(--muted); font-size: 12px; font-weight: 700; border-top: 1px solid var(--line); }
.billing-manager-terms-summary > div { display: grid; gap: 3px; }
.billing-manager-terms-content { border-top: 1px solid var(--line); }
.billing-manager-terms-controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, .8fr); align-items: center; gap: 16px; padding: 14px; }
.billing-plan-buttons { display: flex; gap: 6px; }
.billing-percentage { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 5px 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.billing-percentage small { grid-column: 1 / -1; font-weight: 500; line-height: 1.35; }
.billing-rate-matrix { display: grid; }
.billing-rate-matrix-head, .billing-rate-matrix-row { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(2, minmax(140px, .8fr)); align-items: center; gap: 12px; padding: 9px 14px; }
.billing-rate-matrix-head { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.billing-rate-matrix-row { border-top: 1px solid var(--line); }
.billing-rate-matrix-row > strong { font-size: 13px; }
.billing-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.billing-rate-matrix-row input, .billing-filters input, .billing-filters select { min-height: 40px; }
.billing-rate-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; }
.billing-apply-existing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.billing-apply-existing input { width: auto; }
.billing-filters { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.billing-filters label { min-width: 145px; }
.billing-status-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.billing-ledger { display: grid; gap: 9px; padding-top: 12px; }
.billing-entry { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.billing-entry.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.billing-entry-grid { display: grid; grid-template-columns: auto minmax(220px, 1.7fr) repeat(3, minmax(145px, 1fr)); align-items: start; gap: 13px; }
.billing-entry.no-selector .billing-entry-grid { grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(145px, 1fr)); }
.billing-entry-identity { display: grid; gap: 4px; min-width: 0; }
.billing-entry-identity strong { overflow-wrap: anywhere; }
.billing-entry-identity span, .billing-entry-identity code { color: var(--muted); font-size: 12px; }
.billing-amount-block { display: grid; gap: 5px; min-width: 0; }
.billing-amount-block > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.billing-amount-block > strong { font-size: 16px; }
.billing-entry-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); }
.billing-inline-editor { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 10px; grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.billing-inline-editor label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.billing-inline-actions { display: flex; align-items: end; gap: 7px; }
.billing-unpriced { color: var(--warning); }
.submission-card { display: grid; grid-template-columns: 24px minmax(270px, 1.05fr) minmax(520px, 1.8fr); grid-template-areas: "selector main statuses" "selector main actions"; column-gap: 18px; row-gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 15px; background: var(--card); padding: 13px 16px; }
.submission-card.no-selector { grid-template-columns: minmax(270px, 1.05fr) minmax(520px, 1.8fr); grid-template-areas: "main statuses" "main actions"; }
.submission-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(45,106,79,.09); }
.asset-selector { grid-area: selector; margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.inline-asset-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 15px; }
.inline-asset-panel > strong { display: block; margin-bottom: 5px; color: var(--accent-dark); }
.inline-asset-panel > p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.inline-asset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.correction-editor { display: grid; gap: 14px; }
.correction-editor > strong, .correction-editor > p { margin-bottom: 0; }
.correction-file, .correction-comment { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.correction-file input { min-height: 44px; border: 1px dashed #96b3a2; border-radius: 11px; background: var(--paper); padding: 9px 11px; color: var(--ink); }
.correction-comment textarea { min-height: 88px; resize: vertical; }
.correction-message { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.correction-message > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.correction-message.warning { border-color: #e4bd82; background: #fff4df; color: var(--warning); }
.correction-message.danger { border-color: #e7aaaa; background: #fde8e8; color: var(--danger); }
.correction-message.success { border-color: #afd0ba; background: var(--soft); color: var(--accent-dark); }
.correction-upload-progress { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 12px 14px; }
.correction-editor > .inline-asset-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.flag-list { display: grid; gap: 8px; margin-top: 12px; }
.flag-item { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 11px; }
.flag-item.warning { border-color: #e4bd82; background: #fff9ef; }
.flag-item.danger { border-color: #e7aaaa; background: #fde8e8; }
.flag-item.warning strong { color: var(--warning); }
.flag-item.danger strong { color: var(--danger); }
.flag-item strong, .flag-item span { display: block; overflow-wrap: anywhere; }
.flag-item strong { font-size: 14px; line-height: 1.35; }
.flag-item span { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.asset-main { grid-area: main; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-width: 0; align-items: start; }
.asset-main-copy { min-width: 0; }
.asset-main-copy strong, .asset-main-copy > span:not(.status):not(.participant-lines) { display: block; }
.asset-main-copy strong { overflow-wrap: anywhere; line-height: 1.25; }
.asset-main-copy span, .cell-label { color: var(--muted); font-size: 12px; }
.asset-main-copy > span:not(.status) { font-weight: 650; }
.asset-main-copy .status { display: inline-flex; width: max-content; margin-top: 6px; }
.asset-main-copy > .participant-lines { display: grid; gap: 2px; margin-top: 3px; }
.asset-preview { position: relative; display: grid; place-items: center; width: 76px; height: 60px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, #f0f3ef 25%, #fafbf9 25%, #fafbf9 50%, #f0f3ef 50%, #f0f3ef 75%, #fafbf9 75%); background-size: 12px 12px; }
.asset-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: rgba(250,251,249,.92); }
.asset-preview-placeholder { padding: 5px; color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.15; text-align: center; }
.participant-lines > span { display: block; font-weight: 400; }
.asset-meta-value { color: var(--ink); font-weight: 650; }
.asset-uploaded-at { margin-top: 5px; }
.asset-replaced-at { display: block; margin-top: 4px; color: var(--accent-dark) !important; font-size: 12px; font-weight: 750; line-height: 1.35; }
.asset-last-status { display: block; margin-top: 4px; color: var(--accent-dark) !important; line-height: 1.35; }
.status-lines, .payment-lines { display: grid; gap: 6px; }
.status-line, .payment-line { display: grid; grid-template-columns: minmax(76px, auto) auto; justify-content: start; align-items: center; gap: 7px; min-width: 0; }
.status-line > span:first-child, .payment-line > span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; }
.status-line .status, .payment-line .status { justify-self: start; width: max-content; max-width: 100%; }
.asset-main code { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; }
.asset-status-grid { grid-area: statuses; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; align-items: stretch; min-width: 0; }
.asset-status-panel { min-width: 0; border-radius: 11px; background: var(--paper); padding: 9px 11px; }
.payment-substatus { margin-top: 8px; }
.cell-label { margin-bottom: 7px; color: var(--accent-dark); font-weight: 800; }
.actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: center; gap: 7px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.status-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.status-editor-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-editor-grid > div > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.segmented-status { display: flex; gap: 5px; flex-wrap: wrap; }
.segmented-status label { display: inline-flex; cursor: pointer; }
.segmented-status input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-status span { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 7px 10px; color: var(--muted); }
.segmented-status input:checked + span { border-color: var(--accent); background: var(--soft); color: var(--accent-dark); font-weight: 800; }
.change-request-summary { border-left: 4px solid var(--warning); border-radius: 10px; background: #fff8ef; padding: 12px 14px; }
.change-request-summary strong, .change-request-summary span { display: block; }
.change-request-summary span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.change-request-message { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.change-request-editor textarea { width: 100%; min-height: 100px; margin-top: 10px; resize: vertical; }
.creator-assignment-editor { display: grid; gap: 10px; }
.creator-assignment-editor > p { margin: 0; color: var(--muted); font-size: 13px; }
.creator-assignment-editor > label { display: grid; gap: 6px; max-width: 420px; color: var(--muted); font-size: 12px; font-weight: 700; }
.creator-revision-response textarea { width: 100%; min-height: 92px; resize: vertical; }
.creator-revision-response .inline-asset-actions { justify-content: flex-end; }
.customer-review-editor textarea { width: 100%; min-height: 100px; resize: vertical; }
.customer-review-editor .inline-asset-actions { justify-content: flex-end; }
.review-feedback-summary { border-left: 4px solid var(--accent); border-radius: 10px; background: var(--paper); padding: 12px 14px; }
.review-feedback-summary.rejected { border-left-color: var(--danger); background: #fff5f5; }
.review-feedback-summary strong { display: block; }
.review-feedback-summary p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.creator-revision-note { margin-top: 10px; border-top: 1px solid #ebd9bf; padding-top: 10px; }
.creator-revision-note p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-feedback-source { margin: 10px 0; border-radius: 10px; background: var(--paper); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status.warning { background: #fff1dd; color: var(--warning); }
.status.danger { background: #fde8e8; color: var(--danger); }
.empty-list { border: 1px dashed var(--line); border-radius: 15px; padding: 30px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); border-radius: 12px; background: var(--ink); color: white; padding: 13px 16px; box-shadow: var(--shadow); z-index: 5; }
.toast.warning { background: #9a570f; }
.toast.danger { background: var(--danger); }
.refresh-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(246,248,245,.88); backdrop-filter: blur(4px); }
.refresh-overlay-card { display: grid; justify-items: center; gap: 9px; min-width: min(340px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 24px; box-shadow: var(--shadow); }
.refresh-overlay-card > span:last-child { color: var(--muted); font-size: 13px; }
.refresh-spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: refresh-spin .75s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.project-workspace-panel { display: grid; gap: 18px; margin: 18px 0 24px; }
.project-workspace-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-workspace-heading h3, .section-heading h4 { margin: 3px 0 0; }
.project-workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-brief-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.source-passport-card { display: grid; gap: 14px; }
.source-passport-card > p { color: var(--muted); }
.source-passport-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.source-passport-category { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 10px 12px; }
.source-passport-category strong { margin: 0 0 4px; font-size: 13px; }
.source-passport-category p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.source-passport-details { border-top: 1px solid var(--line); padding-top: 11px; }
.source-passport-details > summary { cursor: pointer; color: var(--ink); font-weight: 850; }
.source-passport-detail-list { display: grid; gap: 10px; margin-top: 10px; }
.source-passport-detail-list section { border-left: 3px solid var(--line); padding-left: 10px; }
.source-passport-detail-list strong { margin: 0 0 4px; font-size: 13px; }
.source-passport-detail-list p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.source-passport-locales { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.source-passport-locales span { border-radius: 999px; background: var(--soft); color: var(--accent-dark); padding: 5px 8px; font-size: 11px; font-weight: 750; }
.source-passport-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.source-passport-heading > div { min-width: 0; }
.source-passport-heading p { margin: 0; color: var(--muted); }
.source-passport-column-head, .source-passport-category-details > summary { display: grid; grid-template-columns: 22% 36% 18% 24%; align-items: start; }
.source-passport-column-head { padding: 12px 10px 8px 32px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.source-passport-note { margin: 0; color: var(--muted); font-size: 12px; }
.source-passport-category-list { display: grid; }
.source-passport-category-details { border-top: 1px solid var(--line); background: var(--paper); }
.source-passport-category-details:last-child { border-bottom: 1px solid var(--line); }
.source-passport-category-details > summary { position: relative; padding: 13px 10px 13px 32px; cursor: pointer; list-style: none; }
.source-passport-category-details > summary::-webkit-details-marker { display: none; }
.source-passport-category-details > summary::before { content: "›"; position: absolute; left: 10px; top: 11px; color: var(--accent-dark); font-size: 22px; font-weight: 900; line-height: 1; transition: transform .15s ease; }
.source-passport-category-details[open] > summary::before { transform: rotate(90deg); }
.source-passport-category-details > summary > * { padding-right: 12px; }
.source-passport-category-details > summary strong { font-size: 13px; }
.source-passport-short { color: var(--muted); font-size: 12px; }
.source-passport-volume, .source-passport-rate { font-size: 12px; font-weight: 800; }
.source-passport-rate { color: var(--accent-dark); }
.source-passport-category-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); gap: 14px; padding: 2px 10px 14px 32px; }
.source-passport-requirements h4 { margin: 0 0 6px; }
.source-passport-requirements p { margin: 0 0 8px; color: var(--muted); }
.source-passport-deliveries { display: grid; gap: 8px; margin-top: 12px; }
.source-passport-delivery { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.source-passport-delivery small { color: var(--muted); }
.source-passport-requirements ul { margin: 0; padding-left: 19px; }
.source-passport-requirements li + li { margin-top: 4px; }.source-passport-locales-details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 9px 0 0; }
.source-passport-locales-details > summary { cursor: pointer; font-weight: 800; }
.source-passport-links { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.source-passport-example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.source-passport-category-example { display: block; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.source-passport-category-example img { display: block; width: 100%; height: 180px; object-fit: contain; background: #e8ede9; }
.source-passport-category-example figcaption { padding: 10px; font-size: 12px; font-weight: 750; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.brief-view-card, .summary-card, .project-summary-section, .project-documents-section, .project-brief-form { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.brief-view-card, .summary-card { padding: 16px; }
.brief-view-card.internal { border-left: 4px solid #6f5bd3; background: #f8f6ff; }
.brief-view-card.contractor { border-left: 4px solid var(--accent); }
.brief-view-card strong, .summary-card strong { display: block; margin-bottom: 8px; }
.brief-view-card p, .summary-card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.brief-schedule { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.brief-schedule span { white-space: nowrap; }
.project-brief-form { display: grid; gap: 14px; padding: 18px; }
.project-dates, .bilingual-fields, .document-meta-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brief-scope { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.brief-scope:first-of-type { border-top: 0; }
.brief-scope small { display: block; margin-top: 3px; color: var(--muted); }
.brief-scope textarea { min-height: 110px; resize: vertical; }
.project-summary-section, .project-documents-section { display: grid; gap: 14px; padding: 18px; }
.summary-card p:empty::before { content: "—"; color: var(--muted); }
.document-upload-form { display: grid; gap: 12px; border: 1px dashed var(--accent); border-radius: 14px; background: var(--soft); padding: 14px; }
.document-file-drop { background: var(--card); transition: border-color .15s, background .15s, transform .15s; }
.document-file-drop small { color: var(--muted); font-size: 12px; }
.document-file-drop.dragover { border-color: var(--accent); background: #e4f2e8; transform: translateY(-1px); }
#document-access-field { grid-column: 1 / -1; }
#document-access-select { min-height: 104px; }
.project-document-list { display: grid; gap: 10px; }
.project-document-card { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 14px; }
.project-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-document-title { min-width: 0; }
.project-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.document-visibility-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.document-visibility-form label { margin: 0; }
.document-visibility-form .restricted-access { grid-column: 1 / -1; }
.document-image-preview { display: block; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 5px; }
.document-image-preview img { display: block; width: auto; max-width: min(420px, 100%); max-height: 260px; border-radius: 8px; object-fit: contain; }
.project-document-title strong { display: block; overflow-wrap: anywhere; }
.project-document-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.visibility-badge { border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.visibility-badge.internal { background: #ede8ff; color: #514099; }
.visibility-badge.restricted { background: #fff0d7; color: #8c5700; }
.visibility-badge.shared { background: #dff7ee; color: #17674f; }
.document-summary { border-left: 3px solid var(--line); margin: 0; padding-left: 10px; white-space: pre-wrap; color: var(--muted); }
.document-comments { display: grid; gap: 8px; }
.document-comment { border-radius: 10px; background: var(--card); padding: 9px 11px; }
.document-comment strong, .document-comment time { font-size: 12px; }
.document-comment time { margin-left: 6px; color: var(--muted); }
.document-comment p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-comment-form { display: flex; gap: 8px; }
.document-comment-form input { flex: 1; }
.empty-documents { border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 18px; text-align: center; }
.project-messages-view { display: grid; gap: 18px; }
.project-message-intro { margin: 6px 0 0; color: var(--muted); }
.project-message-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.project-message-channel { display: grid; gap: 14px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; box-shadow: var(--shadow); }
.project-message-channel .section-heading p { margin: 5px 0 0; color: var(--muted); }
.project-message-list { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 3px; }
.project-message { border-radius: 12px; background: var(--paper); padding: 12px 14px; }
.project-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.project-message-meta strong { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.project-message-body { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.project-message-form { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.project-message-form textarea { width: 100%; min-height: 96px; resize: vertical; }
.project-message-form .button { justify-self: end; }
.project-message-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 22px; color: var(--muted); text-align: center; }
.virtual-fitting-workspace { display: grid; gap: 18px; }
.virtual-fitting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.virtual-fitting-heading h3 { margin-bottom: 6px; }
.virtual-fitting-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.virtual-fitting-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.virtual-fitting-list { display: grid; gap: 14px; }
.vf-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px; color: var(--muted); text-align: center; }
.vf-asset-card { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); padding: 18px; }
.vf-asset-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.vf-set-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vf-set-title h4 { margin: 0; font-size: 19px; }
.vf-set-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.vf-set-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vf-asset-common { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.7fr); align-items: start; gap: 14px; border-radius: 14px; background: var(--paper); padding: 14px; }
.vf-asset-form { display: flex; align-items: end; gap: 8px; }
.vf-asset-form label { flex: 1; }
.vf-model-readonly { display: grid; gap: 4px; }
.vf-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.vf-set-stack { display: grid; gap: 9px; }
.vf-set-accordion { border: 1px solid var(--line); border-radius: 14px; overflow: visible; background: #fff; }
.vf-set-accordion.incomplete { border-color: #e5b65e; }
.vf-set-accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 12px 14px; list-style-position: inside; }
.vf-set-accordion > summary::marker { color: var(--accent); }
.vf-set-summary-main, .vf-set-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vf-set-summary-meta { justify-content: flex-end; color: var(--muted); font-size: 12px; }
.vf-set-body { display: grid; gap: 13px; border-top: 1px solid var(--line); padding: 14px; }
.vf-warning { margin: 0; border-radius: 10px; background: #fff5df; padding: 10px 12px; color: var(--warning); font-weight: 700; }
.vf-feedback { margin: 0; border-left: 4px solid #e5b65e; background: #fffaf0; padding: 10px 12px; white-space: pre-wrap; }
.vf-form { display: grid; gap: 14px; }
.vf-instruction-editor { display: grid; gap: 8px; }
.vf-instruction-editor > textarea, .vf-form > label textarea, .vf-translation-panel textarea { min-height: 76px; resize: vertical; }
.vf-metadata-section { display: grid; gap: 13px; border: 1px solid #bad6c5; border-radius: 14px; background: #f8fbf9; padding: 14px; }
.vf-metadata-heading { display: grid; gap: 4px; }
.vf-metadata-heading > strong { font-size: 16px; }
.vf-metadata-heading p, .vf-metadata-upload p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.vf-metadata-upload { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr); align-items: start; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.vf-metadata-upload .vf-file-slot { min-height: 0; }
.vf-metadata-readonly { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.vf-metadata-readonly p { margin: 5px 0 0; white-space: pre-wrap; }
.vf-language-buttons, .vf-inline-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.vf-translation-panel { display: grid; gap: 8px; border: 1px solid #bad6c5; border-radius: 12px; background: #f4faf6; padding: 12px; }
.vf-translation-pending { background: #fff0d5; color: var(--warning); }
.vf-translation-translated { background: #eef2ff; color: #4754a3; }
.vf-translation-approved { background: var(--soft); color: var(--accent); }
.vf-file-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px; }
.vf-asset-files { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.vf-file-slot { display: grid; align-content: start; gap: 8px; min-height: 150px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 10px; }
.vf-field-title { display: flex; align-items: center; gap: 6px; }
.vf-field-title > strong { font-size: 13px; }
.vf-info { position: relative; display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1px solid #aebbb3; border-radius: 50%; background: #fff; color: var(--accent); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: help; padding: 0; }
.vf-info::after { content: attr(data-tip); position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: max-content; max-width: min(320px, 75vw); border: 1px solid #243a2d; border-radius: 9px; background: #17271e; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 9px 11px; font-size: 12px; font-weight: 500; line-height: 1.4; text-align: left; pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity .12s ease, transform .12s ease; }
.vf-info:hover::after, .vf-info:focus-visible::after { opacity: 1; transform: translateY(0); }
.vf-file-slot input[type=file] { width: 100%; font-size: 12px; }
.vf-file-preview { width: 100%; height: 112px; border-radius: 9px; object-fit: cover; background: #e9eeea; }
.vf-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.vf-file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vf-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.vf-upload-status { margin-right: auto; color: var(--muted); font-size: 13px; }
.vf-review-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; margin-top: 4px; }
.vf-review-form textarea { min-height: 64px; resize: vertical; }
.vf-review-actions { display: flex; flex-direction: column; gap: 6px; }
.vf-chip-warning { background: #fff0d5; color: var(--warning); }
@media (max-width: 980px) {
  .project-message-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .classification-fields { grid-template-columns: repeat(3, 1fr); }
  .registry-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-filter-card { grid-template-columns: 1fr; }
  .dashboard-classification-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submission-card { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "selector main" "statuses statuses" "actions actions"; }
  .submission-card.no-selector { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "statuses" "actions"; }
  .actions { justify-content: flex-start; }
  .billing-manager-terms-controls { grid-template-columns: 1fr 1fr; }
  .billing-percentage { grid-column: 1 / -1; }
  .billing-entry-grid, .billing-entry.no-selector .billing-entry-grid { grid-template-columns: auto minmax(220px, 1.7fr) repeat(2, minmax(145px, 1fr)); }
  .project-control-panel { grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.1fr); }
  .project-control-side { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .project-control-actions { justify-self: end; }
  .vf-file-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .vf-asset-common { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .project-workspace-heading, .section-heading { align-items: stretch; flex-direction: column; }
  .project-workspace-actions { justify-content: stretch; }
  .project-workspace-actions .button { flex: 1; }
  .project-dates, .bilingual-fields, .document-meta-fields { grid-template-columns: 1fr; }
  .source-passport-column-head { display: none; }
  .source-passport-category-details > summary { grid-template-columns: 1fr; gap: 4px; }
  .source-passport-category-details > summary > * { padding-right: 0; }
  .source-passport-category-body { grid-template-columns: 1fr; }
  .source-passport-category-example { max-width: 420px; }
  .document-comment-form { flex-direction: column; }
  .project-message-form .button { justify-self: stretch; }
  .shell { padding: 18px 14px 36px; }
  .topbar, .header-actions, .account-block, .login-card { align-items: stretch; flex-direction: column; }
  .language-switch { align-self: flex-end; }
  .feedback-preference { align-items: flex-start; flex-direction: column; }
  .workspace-tabs { align-items: stretch; flex-direction: column; }
  .workspace-tab-actions { align-items: stretch; overflow-x: auto; }
  .project-control-panel { grid-template-columns: 1fr; align-items: stretch; }
  .project-list { overflow: visible; }
  .project-control-side { grid-column: auto; grid-template-columns: 1fr; align-items: stretch; justify-items: stretch; }
  .project-control-countdown { justify-self: end; }
  .project-control-actions { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-self: stretch; justify-content: stretch; }
  .project-control-actions .button { white-space: normal; }
  .project-upload-schedule-fields { grid-template-columns: 1fr; }
  .account-block { gap: 7px; }
  .form-grid, .classification-fields, .registry-filters, .drive-import-form { grid-template-columns: 1fr; }
  .setup-purpose-panel { grid-template-columns: 1fr; }
  .setup-purpose-panel > * { grid-column: 1 !important; }
  .submission-card { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "selector main" "statuses statuses" "actions actions"; }
  .submission-card.no-selector { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "statuses" "actions"; }
  .asset-status-grid { grid-template-columns: 1fr; gap: 10px; }
  .asset-main { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .asset-preview { width: 64px; height: 52px; }
  .bulk-action-buttons { width: 100%; justify-content: flex-start; margin-left: 0; }
  .bulk-classification-heading { align-items: stretch; flex-direction: column; }
  .bulk-classification-actions { justify-content: stretch; }
  .bulk-classification-actions .button { width: 100%; }
  .status-editor-grid { grid-template-columns: 1fr; }
  .file-drop { align-items: flex-start; flex-direction: column; }
  .billing-manager-terms-controls, .billing-rate-matrix-head, .billing-rate-matrix-row, .billing-entry-grid, .billing-entry.no-selector .billing-entry-grid, .billing-inline-editor { grid-template-columns: 1fr; }
  .billing-rate-matrix-head { display: none; }
  .billing-admin-term > label { grid-template-columns: 1fr; }
  .billing-rate-actions, .billing-header, .billing-section-heading { align-items: stretch; flex-direction: column; }
  .billing-entry-actions { justify-content: flex-start; }
  .virtual-fitting-heading, .vf-set-head { align-items: stretch; flex-direction: column; }
  .virtual-fitting-heading-actions, .vf-set-actions { justify-content: flex-start; }
  .vf-metadata-fields, .vf-file-grid, .vf-review-form { grid-template-columns: 1fr; }
  .vf-metadata-upload { grid-template-columns: 1fr; }
  .vf-asset-head, .vf-set-accordion > summary { align-items: stretch; flex-direction: column; }
  .vf-set-summary-meta { justify-content: flex-start; }
  .vf-asset-form { align-items: stretch; flex-direction: column; }
  .vf-metadata-readonly { grid-template-columns: 1fr; }
  .vf-metadata-fields label:last-child { grid-column: auto; }
}
