@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #203330;
  --muted: #6d7b75;
  --faint: #99a49c;
  --paper: #f6f6f1;
  --surface: #fffefa;
  --line: #dde4dc;
  --soft: #edf1eb;
  --teal: #174a43;
  --teal-hover: #0d3c36;
  --teal-soft: #e5efea;
  --side: #143d37;
  --danger: #a14537;
  --warm: #ad6c29;
  --shadow: 0 18px 58px #203d3020;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, textarea { transition: border-color .15s, background .15s, box-shadow .15s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #73aa9b;
  outline-offset: 3px;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.25; font-weight: 690; }
h2 { font-size: 21px; letter-spacing: -.4px; line-height: 1.35; font-weight: 670; }
h3 { font-size: 16px; line-height: 1.45; font-weight: 670; }
h4 { font-size: 14px; font-weight: 650; }
p + p { margin-top: 10px; }
small, .small { font-size: 12px; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: var(--teal); }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

button { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 9px 14px; min-height: 40px; font-weight: 560; }
button:hover:not(:disabled) { background: var(--soft); border-color: #bbc9be; }
button.primary, .primary { background: var(--teal); border-color: var(--teal); color: #fff; }
button.primary:hover:not(:disabled), .primary:hover:not(:disabled) { background: var(--teal-hover); border-color: var(--teal-hover); }
button.secondary, .secondary { background: var(--surface); }
button.ghost, .ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled), .ghost:hover:not(:disabled) { background: var(--soft); border-color: transparent; color: var(--ink); }
button.danger, .danger { color: var(--danger); border-color: #e6c8bd; background: #fff8f3; }
button.danger:hover:not(:disabled), .danger:hover:not(:disabled) { background: #fcebe1; border-color: #d9a78e; }
button.small { padding: 5px 10px; min-height: 32px; font-size: 12px; }
button svg { width: 17px; height: 17px; vertical-align: -3px; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 42px; border: 1px solid #cdd8ce; border-radius: 8px; padding: 10px 11px;
  background: var(--surface); color: var(--ink); outline: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: #5b8d7e; box-shadow: 0 0 0 3px #5b8d7e15; }
input::placeholder, textarea::placeholder { color: #8c9890; }
input[type="file"] { padding: 8px; font-size: 13px; }
input[type="file"]::file-selector-button { border: 0; border-radius: 5px; background: var(--teal-soft); color: var(--teal); padding: 7px 10px; margin-right: 10px; cursor: pointer; font: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); flex: 0 0 auto; width: 16px; height: 16px; }
textarea { min-height: 105px; resize: vertical; }
label { display: block; font-weight: 580; font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; min-width: 0; }
.field label, label.field { color: #41554b; }
.field small, .field p { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check-group { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.check-group .checkbox { margin: 6px 0; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-weight: 450; cursor: pointer; margin: 12px 0; }
.checkbox input { margin: 3px 0 0; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 222px; flex: 0 0 222px; background: var(--side); color: #e5eee7; min-height: 100vh; padding: 27px 17px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 9px 26px; font-size: 21px; font-weight: 650; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; color: #fffdfa; }
.brand svg { width: 30px; height: 30px; color: #a1c3b3; }
.brand small { display: block; color: #9fb9ac; font-size: 10px; letter-spacing: 1px; font-weight: 450; margin-top: 3px; }
.brand > span { color: #a9c2b4; font-size: 10px; font-weight: 450; letter-spacing: 1px; }
.sidebar label, .sidebar .muted { color: #a8c0b3; }
.project-select { margin-bottom: 22px; }
.sidebar-project { display: grid; gap: 7px; margin-bottom: 23px; }
.sidebar-project > small { font-size: 10px; padding-left: 9px; }
.sidebar-project > button { text-align: left; padding-left: 9px; color: #b9d1c1; }
.sidebar select { background: #204d44; color: #f3f5ed; border-color: #426457; min-height: 42px; font-size: 13px; }
.sidebar select option { color: var(--ink); background: var(--surface); }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; text-align: left; background: transparent; color: #b8cec1; border-radius: 8px; min-height: 43px; padding: 11px 13px; font-weight: 450; }
.nav-item:hover:not(:disabled) { background: #2d574a; border-color: transparent; color: #fff; }
.nav-item.active { background: #e3eee5; color: #153e34; font-weight: 620; }
.nav-item small { margin-left: auto; font-size: 11px; padding: 0 5px; background: #ffffff13; border-radius: 4px; }
.sidebar footer, .sidebar .sidebar-footer { margin-top: auto; padding: 22px 9px 0; font-size: 11px; color: #a8c0b3; }
.sidebar footer button, .sidebar .sidebar-footer button { color: #dbe8df; border-color: #4b6e5b; background: transparent; }
.sidebar-foot { display: grid; gap: 7px; margin-top: auto; padding: 22px 9px 0; font-size: 11px; color: #a8c0b3; }
.sidebar-foot strong { font-weight: 580; font-size: 13px; color: #e2eddf; }
.sidebar-foot span { font-size: 10px; overflow-wrap: anywhere; }
.sidebar-foot > button { justify-self: start; padding-left: 0; color: #c1d6c5; }
.sidebar-foot p { margin-top: 13px; font-size: 10px; line-height: 1.8; }
.workspace { min-width: 0; flex: 1; }
.topbar { height: 74px; border-bottom: 1px solid var(--line); padding: 0 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fffefaed; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(10px); }
.topbar > div:first-child { min-width: 0; }
.topbar strong { font-size: 14px; font-weight: 620; }
.topbar .muted { font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
.top-actions select { width: auto; max-width: 220px; min-height: 36px; padding: 6px 10px; }
.top-project-name { font-weight: 570; font-size: 14px; }
.top-project-name small { font-weight: 400; font-size: 10px; color: var(--muted); padding-left: 9px; }
.sync-state { color: #638066; font-size: 11px; }
.user-chip { font-size: 12px; color: #4e6655; background: #edf1e8; padding: 6px 10px; border-radius: 7px; }
.page { max-width: 1540px; margin: 0 auto; padding: 32px 34px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 25px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.page-heading .inline-actions { flex-shrink: 0; }
.eyebrow { color: #8a9b88; font-size: 10px; letter-spacing: 1px; margin-bottom: 7px; }
.page-footer { margin-top: 26px; font-size: 11px; color: var(--muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading h3 { margin: 0; }
.section-heading > small { color: var(--muted); }
.brief-text { line-height: 1.85; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.view-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.view-tabs button { background: transparent; border: 0; border-radius: 0; padding: 12px 16px; color: var(--muted); min-height: 46px; white-space: nowrap; position: relative; }
.view-tabs button:hover:not(:disabled) { background: transparent; color: var(--teal); }
.view-tabs button.active { color: var(--teal); font-weight: 680; }
.view-tabs button.active::after { content: ""; background: var(--teal); height: 3px; border-radius: 3px 3px 0 0; position: absolute; left: 14px; right: 14px; bottom: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 20px; }
.filters > input { flex: 1; min-width: 180px; max-width: 420px; }
.filters > select { width: auto; min-width: 120px; max-width: 250px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 19px; }
.metric strong { display: block; font-size: 27px; line-height: 1.15; letter-spacing: -.8px; font-weight: 620; margin: 5px 0; }
.metric span, .metric p { color: var(--muted); font-size: 12px; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.shot-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: 0 3px 12px #27413403; text-align: left; padding: 0; width: 100%; display: block; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.shot-card:hover:not(:disabled) { transform: translateY(-2px); background: var(--surface); border-color: #9db9a8; box-shadow: 0 8px 22px #2741340d; }
.shot-preview { aspect-ratio: 16 / 9; background: #dfe7df; position: relative; overflow: hidden; display: grid; place-items: center; color: #8b9d8b; }
.shot-preview img, .shot-preview video { width: 100%; height: 100%; object-fit: cover; }
.shot-script-picture { display: grid; position: relative; width: 100%; height: 100%; min-height: 0; place-items: center; background: #f6f7f1; overflow: hidden; }
.shot-preview .shot-script-picture img { object-fit: contain; }
.shot-script-picture-label { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 7px; border-radius: 4px; background: #fffffff0; color: #375548; font-size: 11px; font-weight: 500; line-height: 1.4; }
.image-preview-trigger.shot-script-picture-large { border: 0; border-radius: 0; padding: 0; cursor: zoom-in; }
.image-preview-trigger.shot-script-picture-large img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.image-preview-trigger.shot-script-picture-large > span { position: absolute; bottom: 8px; right: 8px; padding: 5px 8px; border-radius: 5px; background: #fffffff0; color: #375548; font-size: 11px; }
.shot-script-reference-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.shot-script-reference-heading h4 { color: var(--ink); font-size: 13px; }
.shot-script-reference-heading > span, .shot-script-reference-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.shot-script-reference-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 12px; }
.image-preview-trigger.shot-script-reference-button { display: grid; grid-template-rows: 190px auto; min-width: 0; width: 100%; padding: 0; overflow: hidden; text-align: left; background: #f6f7f1; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.image-preview-trigger.shot-script-reference-button img { width: 100%; height: 190px; object-fit: contain; }
.image-preview-trigger.shot-script-reference-button > span { padding: 8px 10px; color: var(--ink); font-size: 11px; border-top: 1px solid var(--line); }
.shot-script-reference-note { margin: 10px 0 0; }
.shot-preview svg { width: 38px; height: 38px; opacity: .7; }
.no-picture { display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; height: 100%; background: linear-gradient(125deg, #dae5d7, #e9ede1); color: #78907a; }
.no-picture > span { font-size: 36px; font-weight: 450; letter-spacing: -1px; opacity: .65; }
.no-picture > small { font-size: 10px; color: #83927d; }
.shot-number { position: absolute; top: 11px; left: 12px; color: #f6f7ee; background: #214536bd; border-radius: 5px; padding: 3px 7px; font-size: 11px; font-weight: 550; }
.important-tag { position: absolute; right: 11px; top: 11px; background: #f5e6cbe0; color: #8e6333; border-radius: 5px; padding: 3px 6px; font-size: 10px; }
.shot-preview > small { position: absolute; left: 12px; bottom: 10px; background: #173b3180; color: #f6f6ee; border-radius: 4px; padding: 2px 6px; font-size: 10px; }
.shot-meta { padding: 15px 16px 16px; display: grid; gap: 10px; }
.shot-meta h3 { font-size: 15px; }
.shot-meta p { font-size: 12px; color: var(--muted); font-weight: 400; }
.shot-meta > p { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.shot-meta > p > strong { color: #596d59; font-size: 12px; font-weight: 500; }
.card-foot { padding-top: 8px; border-top: 1px solid #e5eadf; font-size: 10px; color: #8a9884; }
.overdue { color: #aa6a37 !important; }
.shot-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shot-meta > .card-stage-credits { display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; justify-content: stretch; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.card-stage-credit { display: grid; grid-template-columns: 3.4em 4.2em minmax(0,1fr); gap: 6px; align-items: baseline; font-size: 11px; line-height: 1.6; text-align: left; }
.card-stage-credit > b { color: var(--ink); font-weight: 600; }
.card-stage-version { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-stage-person { color: var(--ink); overflow-wrap: anywhere; }
.card-stage-credit.is-empty .card-stage-person { color: var(--muted); }
.shot-meta > p > strong { overflow-wrap: anywhere; text-align: right; }
.shot-meta .blocker { color: var(--warm); font-size: 12px; background: #faf1e1; border-radius: 5px; padding: 6px 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; border-radius: 5px; padding: 3px 7px; background: var(--soft); color: #637765; font-size: 11px; font-weight: 570; line-height: 1.45; white-space: nowrap; }
.status-待接单, .status-待接手, .status-草稿 { color: #7c7a66; background: #eeede3; }
.status-制作中, .status-进行中 { color: #356477; background: #e8f0f1; }
.status-待审核, .status-待看结果 { color: #966134; background: #faeddb; }
.status-还要改, .status-卡住, .status-待定 { color: #a45a42; background: #f9e9df; }
.status-已通过, .status-已确认, .status-采用 { color: #336347; background: #e6efe1; }
.status-待准备 { color: #7c7a66; background: #eeede3; }
.status-待审阅 { color: #966134; background: #faeddb; }
.status-需修改 { color: #a45a42; background: #f9e9df; }

.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 21px; min-width: 0; }
.panel + .panel { margin-top: 17px; }
.panel > h3, .panel > h2 { margin-bottom: 14px; }
.panel p { overflow-wrap: anywhere; }
.columns, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.asset-grid, .member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.asset-card, .member-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.asset-card > h3, .member-card > h3 { margin-bottom: 9px; }
.asset-card .file-preview { margin: -20px -20px 16px; border-radius: 12px 12px 0 0; }
.member-card .inline-actions, .asset-card .inline-actions { margin-top: 16px; }
.member-avatar { width: 39px; height: 39px; display: grid; place-items: center; color: #3c6647; background: #e5ede0; border-radius: 50%; font-size: 16px; font-weight: 620; margin-bottom: 13px; }
.member-card > p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.role-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0; }
.deployment-note { margin-top: 26px !important; }
.version-list { display: grid; gap: 10px; margin-top: 12px; }
.version-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fafbf6; }
.version-row > div { min-width: 0; }
.version-row strong { font-size: 13px; }
.version-row p { margin-top: 3px; color: var(--muted); font-size: 12px; word-break: break-word; }
.version-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; font-weight: 400; }
.version-row .inline-actions { margin: 0; flex-shrink: 0; }
.version-row + .version-row { margin-top: 9px; }
.asset-body > .secondary { margin-top: 14px; }
.asset-body .section-heading { gap: 8px; margin-bottom: 8px; }
.file-preview { display: grid; place-items: center; background: #e8ece4; min-height: 100px; overflow: hidden; }
.file-preview img, .file-preview video { width: 100%; max-height: 320px; object-fit: contain; }
.file-preview a { padding: 20px; overflow-wrap: anywhere; }
.empty { display: grid; justify-items: start; gap: 12px; border: 1px dashed #cdd7ca; border-radius: 12px; background: #fffefa70; padding: 35px; color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); }
.empty p { max-width: 490px; font-size: 13px; }
.empty .inline-actions { margin-top: 5px; }
.welcome-empty { padding: 48px; margin-top: 12px; }
.empty-symbol { color: #8baa8c; font-size: 39px; font-weight: 350; }
.workspace-list { display: grid; gap: 14px; }
.workspace-list .panel { margin: 0; }

.notice { padding: 13px 16px; background: var(--teal-soft); border: 1px solid #cadfd2; border-radius: 9px; font-size: 13px; color: #355e46; margin-bottom: 18px; overflow-wrap: anywhere; }
.notice.error { background: #fff0e9; border-color: #ebc7b8; color: var(--danger); }
.notice.success { background: #edf4e8; border-color: #cbdcbc; color: #376b36; }
.notice p + p { margin-top: 5px; }
details { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 15px; }
summary { cursor: pointer; font-size: 13px; font-weight: 570; color: #56735d; }
details[open] summary { margin-bottom: 14px; }
details > .version-list { margin-top: 8px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.data-table th { color: var(--muted); font-weight: 550; background: #f0f3ed; padding: 12px 14px; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:hover { background: #f7f9f3; }
.data-table td.error { background: #fff5ed; }
.data-table input { min-width: 130px; }
.history-list, .notification-list { display: grid; gap: 0; }
.activity-item { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.activity-item:last-child { border-bottom: 0; }
.activity-item p { margin-top: 5px; }
.activity-item time, .activity-item small { color: var(--muted); font-size: 11px; }
.notification-list .activity-item { padding: 18px 0; }
.notification-list .unread { border-left: 3px solid var(--teal); padding-left: 14px; }
.notification-popover { position: absolute; top: 46px; right: 0; width: min(380px, calc(100vw - 30px)); max-height: min(560px, calc(100dvh - 120px)); overflow-y: auto; z-index: 30; box-shadow: var(--shadow); padding: 20px; }
.notification-popover > button.activity-item { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); display: grid; gap: 5px; border-radius: 0; padding: 13px 0; font-weight: 450; }
.notification-popover > button.unread { border-left: 3px solid var(--teal); padding-left: 10px; }
.notification-popover > p { font-size: 11px; margin-top: 16px; }

.drawer-backdrop, .backdrop { position: fixed; inset: 0; z-index: 40; background: #0e281f7a; backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(1120px, 94vw); z-index: 45; background: var(--paper); box-shadow: -20px 0 70px #132e2530; display: flex; flex-direction: column; }
.drawer-header { min-height: 90px; padding: 22px 28px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex: 0 0 auto; }
.drawer-header h2 { font-size: 22px; }
.drawer-header p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.drawer-header .inline-actions { justify-content: flex-end; }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 24px 28px 40px; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: max-content max-content; column-gap: 24px; align-content: start; align-items: start; }
.drawer-grid { display: contents; }
.drawer-grid > * { min-width: 0; }
.drawer-media { grid-column: 1; grid-row: 1; border-radius: 11px; background: #16312a; overflow: hidden; position: relative; margin-bottom: 19px; }
.drawer-main { grid-column: 1; grid-row: 2; }
.drawer-grid > .next-action { grid-column: 2; grid-row: 1 / span 2; }
.drawer-media > img, .drawer-media > video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.drawer-media .empty { border: 0; color: #d0dfd4; background: transparent; border-radius: 0; aspect-ratio: 16 / 9; display: flex; justify-content: center; align-items: center; flex-direction: column; }
.drawer-media .empty h3 { color: #e7eee5; }
.media-caption { padding: 9px 13px; color: #b5ccba; font-size: 10px; }
.media-tools { background: #edf0e7; padding: 10px 12px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.media-tools select { width: auto; flex: 1; min-width: 155px; min-height: 33px; font-size: 12px; padding: 6px 9px; }
.media-tools > a { font-size: 11px; }
.drawer-placeholder { height: 275px; }
.drawer-placeholder .no-picture > span { font-size: 64px; }
.drawer-media > p.muted { color: #b5ccba; padding: 12px 15px; font-size: 11px; }
.drawer-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid #d2ddcf; margin-bottom: 19px; overflow-x: auto; }
.drawer-tabs button { white-space: nowrap; border: 0; border-radius: 0; padding: 11px 13px; color: var(--muted); background: transparent; border-bottom: 3px solid transparent; }
.drawer-tabs button.active { color: var(--teal); font-weight: 650; border-bottom-color: var(--teal); }
.drawer-tabs button:hover:not(:disabled) { background: var(--soft); border-color: transparent; }
.drawer-tabs button.active:hover:not(:disabled) { border-bottom-color: var(--teal); }
.drawer-content { min-width: 0; }
.drawer-content .panel { padding: 19px; }
.drawer-content > p { margin-bottom: 15px; }
.next-action { position: sticky; top: 0; border: 1px solid #cfdbcc; border-radius: 12px; background: #fdfef7; padding: 20px; box-shadow: 0 4px 18px #233d2b05; }
.next-action > h3 { font-size: 15px; margin-bottom: 12px; }
.next-action > p { font-size: 13px; color: var(--muted); margin: 10px 0; }
.next-action > .primary, .next-action > form > .primary { width: 100%; margin: 8px 0; }
.next-action .field { margin: 12px 0; }
.next-action .inline-actions { margin-top: 12px; }
.next-action .inline-actions > button { flex: 1; }
.next-action details { margin-top: 15px; }
.next-action details > button { width: 100%; text-align: left; margin: 4px 0; }
.round-assets { display: grid; gap: 8px; margin: 13px 0 19px; }
.round-asset { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf3; }
.round-asset .checkbox { margin: 0; font-size: 12px; }
.round-asset select { min-height: 36px; font-size: 12px; padding: 7px 9px; }
.round-info { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 13px; }
.next-action > .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; font-size: 12px; }
.opinion-item, .handoff-item, .submission-item { padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--line); }
.opinion-item > p { margin-bottom: 12px; font-size: 13px; white-space: pre-wrap; }
.opinion-item > small { display: block; margin-top: 10px; }
.opinion-item > .section-heading { flex-wrap: wrap; justify-content: flex-start; gap: 7px; }
.opinion-item > .section-heading > span:last-child { margin-left: auto; font-size: 11px; }
.decision-采用 { color: #4f7450; }
.decision-待定 { color: #aa7441; }
.decision-参考 { color: #638077; }
.decision-note { padding: 9px 0; font-size: 13px; }
.decision-note small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.snapshot-inputs { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.submission-item > .inline-actions { margin-top: 12px; }
.handoff-item dl { margin: 15px 0; font-size: 13px; }
.handoff-item dt { color: var(--muted); font-size: 11px; margin-top: 14px; }
.handoff-item dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.secondary:is(a), .ghost:is(a) { display: inline-block; border-radius: 7px; padding: 7px 10px; font-size: 12px; text-decoration: none; }
.secondary:is(a) { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.secondary:is(a):hover, .ghost:is(a):hover { background: var(--soft); }
.video-stage { width: 100%; aspect-ratio: 16 / 9; position: relative; background: #0f211a; overflow: hidden; }
.video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.comment-point { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 27px; height: 27px; min-height: 0; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; padding: 0; background: #b06832; box-shadow: 0 2px 8px #0007; font-size: 11px; font-weight: 700; }
.comment-point:hover:not(:disabled) { background: #995121; border-color: #fff; }
.comment-point.active { outline: 3px solid #f3ce9c80; }

.modal-layer { position: fixed; inset: 0; z-index: 80; background: #14312580; display: flex; align-items: center; justify-content: center; padding: 28px; backdrop-filter: blur(3px); overflow-y: auto; }
.modal { width: min(680px, 100%); max-height: calc(100dvh - 56px); border: 1px solid #cfdbcc; background: var(--surface); border-radius: 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { width: min(930px, 100%); }
.modal-header { flex: 0 0 auto; border-bottom: 1px solid var(--line); padding: 22px 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-header h2 { font-size: 19px; }
.modal-header p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.modal > form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.modal-body { padding: 24px 25px 10px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; }
.modal-body > p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.modal-body .notice { margin-bottom: 18px; }
.modal-footer { border-top: 1px solid var(--line); background: #fafbf6; padding: 16px 25px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex: 0 0 auto; }
.modal-footer .muted { margin-right: auto; font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; max-width: min(650px, calc(100vw - 32px)); color: #fffefa; background: #173d30; border: 1px solid #729384; padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 30px #14312530; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.toast.visible { opacity: 1; }
.toast.error { background: #813f30; border-color: #b07e6e; color: #fffefa; }

.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 36px 20px; background: linear-gradient(120deg, #e7eee4 0%, #f8f7ef 55%, #f0efe4 100%); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid #d6dfd0; border-radius: 18px; padding: 34px; box-shadow: 0 16px 56px #1e3f2910; }
.auth-card .brand { color: var(--teal); padding: 0 0 26px; }
.auth-card .brand small { color: var(--muted); }
.auth-card .brand > span { color: var(--muted); }
.auth-card h1 { font-size: 23px; margin-bottom: 9px; }
.auth-card > p { color: var(--muted); font-size: 13px; margin-bottom: 23px; }
.auth-card button.primary { width: 100%; margin-top: 3px; }
.auth-card .notice { font-size: 12px; margin-top: 17px; margin-bottom: 0; }
.auth-card form { margin-top: 23px; }
.auth-card .view-tabs { margin: 15px 0 22px; }
.auth-note { color: var(--muted); font-size: 11px; line-height: 1.8; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); }
.form-error:not(:empty) { padding: 10px 12px; border-radius: 8px; background: #fff0e9; border: 1px solid #eac9b9; margin: 10px 0; font-size: 12px; }

@media (min-width: 1700px) {
  .shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .sidebar { width: 190px; flex-basis: 190px; padding-left: 13px; padding-right: 13px; }
  .page, .topbar { padding-left: 24px; padding-right: 24px; }
  .drawer { width: min(1050px, 97vw); }
  .drawer-body { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 19px; }
  .shot-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 820px) {
  .layout { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 16px 20px 11px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 15px; }
  .sidebar .brand { padding: 0; font-size: 19px; }
  .sidebar .brand small { display: none; }
  .sidebar .project-select { margin: 0; width: 190px; }
  .sidebar .sidebar-project { margin: 0; width: 205px; display: flex; align-items: center; gap: 5px; }
  .sidebar .sidebar-project select { min-width: 0; flex: 1; }
  .sidebar .sidebar-project > small { display: none; }
  .sidebar .sidebar-project > button { white-space: nowrap; padding: 5px; font-size: 10px; }
  .sidebar .project-select > label { display: none; }
  .sidebar nav { grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; padding-top: 12px; }
  .nav-item { width: auto; white-space: nowrap; min-height: 36px; padding: 8px 11px; font-size: 13px; }
  .sidebar footer, .sidebar .sidebar-footer { display: none; }
  .sidebar .sidebar-foot { display: none; }
  .topbar { height: auto; min-height: 64px; padding: 13px 20px; }
  .top-actions { gap: 6px; }
  .top-actions button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .page { padding: 26px 20px 44px; }
  .page-heading { gap: 14px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .inline-actions { flex-shrink: 1; justify-content: flex-end; }
  .stats { gap: 9px; }
  .metric { padding: 14px; }
  .drawer { width: 100%; }
  .drawer-header { padding: 19px 20px; min-height: 82px; }
  .drawer-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
  .drawer-grid { display: contents; }
  .drawer-grid > * { width: 100%; }
  .drawer-media { width: 100%; order: 0; margin-bottom: 0; flex: 0 0 auto; }
  .drawer-main { order: 1; }
  .drawer-grid > .next-action { order: -1; position: static; }
  .next-action { position: static; padding: 17px; }
  .next-action > .primary { width: auto; min-width: 170px; }
  .next-action > p { margin: 7px 0; }
  .columns, .split { grid-template-columns: 1fr; }
  .modal-layer { padding: 20px; }
  .modal { max-height: calc(100dvh - 40px); }
}
@media (max-width: 520px) {
  :root { font-size: 14px; }
  .sidebar { padding: 15px 14px 10px; gap: 0 10px; }
  .sidebar .brand { font-size: 18px; gap: 5px; letter-spacing: 0; }
  .sidebar .brand svg { width: 25px; height: 25px; }
  .sidebar .project-select { width: 168px; }
  .sidebar .sidebar-project { width: 192px; }
  .sidebar .brand > span { display: none; }
  .sidebar select { min-height: 35px; padding: 6px 9px; font-size: 12px; }
  .sidebar nav { gap: 2px; padding-top: 10px; }
  .nav-item { padding: 8px 9px; font-size: 12px; }
  .topbar { padding: 10px 15px; min-height: 60px; gap: 8px; }
  .topbar > div:first-child .muted { font-size: 10px; }
  .top-project-name small, .sync-state { display: none; }
  .top-project-name { max-width: 140px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip { padding: 5px 7px; font-size: 10px; max-width: 75px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar strong { font-size: 12px; }
  .top-actions .muted { display: none; }
  .top-actions select { max-width: 120px; }
  .page { padding: 22px 15px 35px; }
  .page-heading { flex-direction: column; gap: 15px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .inline-actions { justify-content: flex-start; width: 100%; gap: 7px; }
  .page-heading button { font-size: 12px; padding: 8px 11px; }
  .view-tabs button { padding: 10px 13px; min-height: 43px; }
  .filters { gap: 8px; }
  .filters > input { max-width: none; flex-basis: 100%; }
  .filters > select { flex: 1; min-width: 100px; width: 100%; padding: 8px; font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 19px; }
  .metric { padding: 13px 15px; }
  .metric strong { font-size: 24px; }
  .shot-grid { grid-template-columns: 1fr; gap: 16px; }
  .shot-meta { padding: 14px 15px; }
  .asset-grid, .member-grid { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .empty { padding: 25px 20px; }
  .welcome-empty { padding: 30px 22px; }
  .drawer-header { padding: 17px 15px; }
  .drawer-header h2 { font-size: 20px; }
  .drawer-header .inline-actions { flex-wrap: nowrap; }
  .drawer-header .inline-actions button { font-size: 12px; padding: 7px 8px; }
  .drawer-body { padding: 15px 15px 30px; }
  .drawer-content .panel { padding: 16px; }
  .drawer-tabs button { font-size: 12px; padding: 10px 11px; }
  .drawer-media { border-radius: 9px; }
  .drawer-placeholder { height: 195px; }
  .media-caption { font-size: 10px; padding: 8px 10px; }
  .media-tools { padding: 9px; gap: 7px; }
  .media-tools > select { flex-basis: 100%; }
  .next-action > .primary { width: 100%; }
  .version-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 10px; }
  .version-row .inline-actions { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .round-asset { grid-template-columns: 1fr; gap: 9px; }
  .modal-layer { padding: 10px; align-items: center; }
  .modal { max-height: calc(100dvh - 20px); border-radius: 11px; }
  .modal-header { padding: 17px 17px; gap: 10px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 19px 17px 5px; }
  .modal-footer { padding: 13px 17px; flex-wrap: wrap; }
  .modal-footer > .muted { flex-basis: 100%; }
  .modal-footer > button { flex: 1; }
  .auth-shell { padding: 18px 14px; }
  .auth-card { padding: 27px 22px; border-radius: 14px; }
  .data-table th, .data-table td { padding: 10px; }
  .toast { bottom: 15px; font-size: 12px; width: calc(100vw - 30px); padding: 11px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.account-menu{position:relative;flex-shrink:0}.account-menu>summary{cursor:pointer;list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>div{position:absolute;right:0;top:36px;z-index:35;width:160px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);padding:7px;display:grid;gap:3px}.account-menu>div button{text-align:left;width:100%;font-size:12px}

.execution-package{border-color:var(--line);background:var(--surface)}
.execution-package h3{margin:3px 0 0}.execution-check-list{padding:0;list-style:none;display:grid;gap:8px;margin:16px 0}
.execution-check-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.execution-check-list li.is-missing{border-left:3px solid #b77b28}.execution-check-list small{color:var(--muted);font-size:12px}
.execution-linked{border-top:1px solid var(--line);margin-top:18px;padding-top:2px}.execution-linked h4{margin:16px 0 8px}
.execution-linked-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:13px}.execution-linked-row span{overflow-wrap:anywhere}
.execution-check-options{display:grid;gap:8px}.execution-check-option{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:14px;align-items:center;border:1px solid var(--line);padding:10px 12px;border-radius:8px}
.execution-check-option .field{margin:0}.execution-check-option .field>span{font-size:11px}.execution-check-option .checkbox{margin:0}.execution-check-option small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.execution-plan-form{margin:20px 0}
@media(max-width:620px){.execution-check-list li,.execution-linked-row{align-items:flex-start;flex-direction:column;gap:4px}.execution-check-option{grid-template-columns:1fr}.execution-check-option .field{max-width:220px}}

/* Production inbox */
.work-inbox{margin-bottom:24px}.inbox-counts{display:flex;gap:12px 24px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line,#d8dfda)}.inbox-counts span{font-size:13px;color:var(--muted,#66776c)}.inbox-counts b{color:var(--ink,#18342a);margin-left:5px}.inbox-item{width:100%;text-align:left;gap:24px}.inbox-item>span{min-width:0}.inbox-item small{white-space:normal;overflow-wrap:anywhere}.inbox-item strong{white-space:nowrap;font-size:13px}.inbox-pager{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:14px}.version-row.current-version{outline:2px solid var(--accent,#315b49);outline-offset:4px;border-radius:4px}@media(max-width:640px){.work-inbox>.section-heading{align-items:flex-start;flex-direction:column;gap:12px}.inbox-item{align-items:flex-start;flex-direction:column;gap:8px}}

/* The cover is a live projection of the newest media, never an approval state. */
.shot-video-cover { isolation: isolate; background: #e8eee9; }
.shot-video-cover video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.shot-video-cover-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 5px; color: #526b5c; font-size: 18px; }
.shot-video-cover-placeholder small { font-size: 10px; }
.shot-video-cover .shot-script-picture-label { z-index: 2; }
.shot-cover-unavailable { display: grid; gap: 5px; padding: 10px; text-align: center; font-size: 12px; line-height: 1.5; color: #526b5c; }
.shot-cover-unavailable small { font-size: 10px; }

.shot-video-cover video { visibility: hidden; }
.shot-video-cover.is-ready:not(.is-unavailable) video { visibility: visible; }
.shot-video-cover.is-ready:not(.is-unavailable) .shot-video-cover-placeholder { visibility: hidden; }
.simple-flow-drawer .drawer-body{display:block;padding:22px 28px 32px}
.simple-flow-drawer .shot-stage-chain{margin:0}
.simple-shot-brief{margin:0 0 18px;white-space:pre-wrap;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.simple-shot-brief>strong{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.simple-flow-sidebar nav{margin-top:20px;align-content:start}
.simple-flow-sidebar .nav-item{min-height:46px;margin-bottom:8px}
.simple-flow-layout .topbar{gap:16px}
@media(max-width:760px){.simple-flow-drawer .drawer-body{padding:16px}.simple-flow-sidebar nav{margin-top:0}.simple-flow-sidebar .nav-item{margin-bottom:0}.simple-flow-layout .topbar{flex-wrap:wrap}.simple-flow-layout .top-project-name{min-width:0;overflow-wrap:anywhere}}

/* The same project has a manager view and a focused photographer workspace. */
.simple-endpoint-label{display:inline-block;margin-left:10px;padding:3px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px;font-weight:500;vertical-align:middle}
.simple-management-modal .modal-body{padding-bottom:20px}
.simple-management-list{display:grid;gap:8px;margin:18px 0}
.simple-management-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}
.simple-management-list article>div{min-width:0}.simple-management-list strong,.simple-management-list small{display:block;overflow-wrap:anywhere}
.simple-management-list small{margin-top:5px;color:var(--muted);font-size:12px}.simple-management-list button{flex-shrink:0}
.simple-shot-management{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.simple-handoff{margin-bottom:20px}.simple-handoff h3{margin-top:0}
.simple-round-references{margin:20px 0;font-size:13px;line-height:1.7}.simple-round-references li{margin:5px 0}
@media(max-width:620px){.simple-management-list article{align-items:flex-start;gap:10px}.simple-management-list button{max-width:110px}.simple-endpoint-label{margin-left:0}.simple-flow-layout .account-menu>div{width:180px}}
