:root {
  color-scheme: light;
  --text: #191c28; --muted: #535d71; --subtle: #626c7c; --line: #e9ebf1; --surface: #fff;
  --canvas: #f7f8fc; --brand: #eb5428; --brand-dark: #bd3815; --brand-faint: #fff0e9;
  --side: 232px;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text); background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label.file-button:focus-within { outline: 3px solid #ff956f; outline-offset: 3px; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #dce0e9; border-radius: 9px; background: #fff; color: var(--text); padding: 10px 12px; }
input:read-only { background: #f4f5f8; }
input::placeholder, textarea::placeholder { color: #6d7688; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); }
textarea { resize: vertical; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 8px 14px; border-radius: 8px; background: #fff; }
#shell { display: grid; min-height: 100vh; grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 30px 18px 22px; z-index: 4; }
.brand { display: flex; align-items: center; gap: 11px; padding-left: 9px; margin: 1px 0 42px; }
.brand img { width: 38px; height: 38px; flex-shrink: 0; box-shadow: 0 4px 11px #e9563223; border-radius: 11px; }
.brand strong { display: block; font-size: 1.38rem; font-weight: 810; letter-spacing: -.045em; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .81rem; letter-spacing: .08em; }
.side-caption { padding: 0 12px; font-size: .78rem; color: var(--subtle); margin-bottom: 10px; }
.navigation { display: grid; gap: 5px; }
.navigation a, .side-link { position: relative; display: flex; gap: 12px; min-height: 46px; border-radius: 9px; align-items: center; padding: 0 12px; color: var(--muted); font-size: .92rem; font-weight: 550; white-space: nowrap; }
.navigation a:hover, .side-link:hover { background: #f4f5f8; color: var(--text); }
.navigation a[aria-current], .side-link.active { background: var(--brand-faint); color: var(--brand-dark); font-weight: 680; }
.navigation a[aria-current]::before { position: absolute; top: 11px; bottom: 11px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--brand); content: ''; }
.nav-count { margin-left: auto; background: #f0f1f6; border-radius: 20px; padding: 0 7px; font-size: .76rem; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.side-link { font-size: .85rem; min-height: 42px; }
.studio { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 12px 9px 0; border-top: 1px solid var(--line); }
.studio-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #f1f2f6; color: #4b5367; border-radius: 9px; }
.studio strong, .identity strong { display: block; font-size: .88rem; line-height: 1.3; }
.studio small, .identity small { color: var(--muted); display: block; font-size: .75rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 69px; padding: 0 31px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { color: var(--subtle); font-size: .88rem; }
.breadcrumb strong { color: var(--text); font-weight: 630; }
.top-actions { gap: 15px; }
.demo-tag { display: flex; gap: 6px; align-items: center; white-space: nowrap; font-size: .75rem; color: #5a526f; background: #f2effa; border: 1px solid #ebe7f3; padding: 3px 8px; border-radius: 6px; }
.demo-tag i { width: 6px; height: 6px; background: #775cc1; border-radius: 50%; }
.icon-btn { display: inline-grid; place-items: center; position: relative; width: 38px; height: 38px; padding: 0; color: #525a6c; border: 0; border-radius: 9px; background: transparent; flex-shrink: 0; }
.icon-btn:hover, .identity:hover { background: #f3f4f7; }
.inbox-button { border: 1px solid var(--line); }
.inbox-button i { position: absolute; top: 7px; right: 8px; border: 1px solid white; border-radius: 50%; width: 8px; height: 8px; background: var(--brand); }
.identity { border: 0; background: transparent; border-radius: 8px; padding: 4px 6px; display: flex; align-items: center; gap: 8px; color: var(--text); text-align: left; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #683622; background: #fce0d3; border-radius: 50%; font-weight: 700; }
.mobile-toggle, .sidebar-scrim { display: none; }
.main { max-width: 1480px; margin: auto; padding: 31px 31px 48px; }
.page-heading { min-height: 69px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.045em; font-weight: 790; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: .94rem; }
.heading-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 9px; justify-content: end; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 1px solid #dfe2e9; border-radius: 9px; padding: 7px 13px; background: white; color: #373e51; font-weight: 650; font-size: .88rem; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #f5f6f9; }
.btn.primary { border-color: #d9451e; background: #dc471f; color: #fff; box-shadow: 0 2px 4px #a43d1b19; }
.btn.primary:hover:not(:disabled) { background: #c63b17; }
.hero { min-height: 190px; border-radius: 15px; overflow: hidden; display: flex; align-items: center; color: #fff; background: #332628; background-image: linear-gradient(94deg, #241b21 2%, #352526 47%, #39272981 65%, #39272920 100%), url('assets/harbor.jpg'); background-size: cover, 54% auto; background-position: center, right 51%; background-repeat: no-repeat; box-shadow: 0 3px 10px #24203109; }
.hero-content { padding: 24px 31px 26px; }
.hero h2 { line-height: 1.2; letter-spacing: -.04em; font-size: clamp(1.55rem, 3vw, 2.03rem); font-weight: 780; }
.hero p { margin: 9px 0 18px; color: #f2ded9; font-size: .94rem; }
.btn.hero-btn { color: #fff6f1; background: #ffffff12; border-color: #ffffff51; min-height: 36px; font-size: .83rem; }
.btn.hero-btn:hover:not(:disabled) { background: #ffffff2d; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin: 20px 0; }
.metric { display: flex; align-items: center; gap: 12px; min-height: 98px; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 12px; padding: 13px 15px; transition: box-shadow .15s ease, border-color .15s ease; }
.metric:hover { border-color: #ebc7b9; box-shadow: 0 3px 12px #82706416; }
.metric-icon, .task-icon, .partner-icon { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; }
.metric-label { display: block; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.metric strong { display: block; margin-top: 3px; font-size: 1.65rem; line-height: 1.14; font-weight: 780; letter-spacing: -.045em; }
.orange { background: #fff0e8; color: #a04617; }
.red { background: #fff0ee; color: #ad3127; }
.green { background: #e9f7ed; color: #24613c; }
.blue { background: #edf2ff; color: #3156a1; }
.purple { background: #f2ecff; color: #653f9a; }
.neutral { background: #f0f2f6; color: #4e576b; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(255px, 1fr); gap: 18px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.panel-head { min-height: 61px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 19px; }
.panel-head h2, .section-title h2 { font-size: 1.06rem; font-weight: 740; }
.text-button { border: 0; background: transparent; color: var(--brand-dark); padding: 5px 1px; font-size: .86rem; font-weight: 660; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.count-pill { font-size: .78rem; white-space: nowrap; border-radius: 30px; padding: 1px 8px; color: #545c72; background: #f0f2f7; }
.table-scroll { position: relative; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { background: #f7f8fb; color: #596275; font-size: .81rem; font-weight: 620; }
td { font-size: .86rem; color: #4b5569; }
th, td { padding: 12px 8px; border-bottom: 1px solid #eff0f4; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfbfd; }
.work-name { display: flex; gap: 10px; align-items: center; padding: 0; border: 0; background: transparent; text-align: left; color: var(--text); }
.work-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.work-name strong { display: block; max-width: 17ch; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; font-weight: 670; }
.work-name small { display: block; max-width: 25ch; overflow: hidden; text-overflow: ellipsis; color: var(--subtle); font-size: .75rem; margin-top: 3px; }
.thumb { flex: 0 0 auto; width: 35px; height: 43px; border-radius: 6px; background: #edeff3; overflow: hidden; }
.cover-empty { display: grid; place-items: center; height: 100%; color: #687288; }
.badge { display: inline-flex; align-items: center; border-radius: 25px; min-height: 24px; padding: 1px 8px; font-size: .78rem; font-weight: 620; white-space: nowrap; }
.tasks { display: grid; padding: 0 16px 6px; }
.task { min-width: 0; width: 100%; min-height: 75px; border: 0; border-top: 1px solid #eff0f4; background: transparent; color: var(--text); display: grid; grid-template-columns: 34px minmax(0, 1fr) 15px; gap: 9px; align-items: start; text-align: left; padding: 11px 0; }
.task:hover { background: #fbfbfd; }
.task-icon { width: 34px; height: 34px; border-radius: 9px; }
.task strong, .task span > span, .task small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task strong { font-size: .88rem; line-height: 1.4; }
.task span > span { color: #424b5d; margin-top: 2px; font-size: .81rem; }
.task small { color: #626c7c; margin-top: 2px; font-size: .75rem; }
.task > svg { margin-top: 9px; color: #6e778b; }
.quiet, .secondary-text { color: var(--muted); font-size: .85rem; }
.quiet { padding: 12px 19px 24px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 17px 19px; }
.search { display: flex; align-items: center; gap: 8px; padding-left: 11px; border: 1px solid #dce0e9; color: #5a6375; border-radius: 9px; min-width: 210px; }
.search input { border: 0; width: 100%; padding-left: 0; }
.select-wrap { position: relative; color: #5a6375; }
.select-wrap select { padding-right: 32px; appearance: none; }
.select-wrap > svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.table-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 12px 19px; color: var(--muted); font-size: .84rem; }
.table-footer div { display: flex; align-items: center; gap: 9px; }
.table-footer .btn { min-height: 32px; font-size: .81rem; }
.empty { padding: 35px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.empty > span { display: grid; place-items: center; width: 54px; height: 54px; color: #57627a; background: #f1f3f8; border-radius: 14px; }
.empty p { color: var(--muted); max-width: 280px; font-size: .89rem; }
.back-button { display: flex; align-items: center; gap: 4px; color: var(--muted); border: 0; background: transparent; padding: 0; margin-bottom: 10px; font-size: .86rem; }
.back-button:hover { color: var(--brand-dark); }
.edit-status { display: flex; align-items: center; gap: 7px; margin: -12px 0 15px; color: #856033; font-size: .82rem; }
.info-strip { display: flex; align-items: center; gap: 7px; border-radius: 9px; background: #edf2ff; color: #31518f; padding: 9px 12px; margin-bottom: 12px; font-size: .86rem; }
.tab-bar { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 21px; }
.tab-bar a { padding: 14px 0 12px; white-space: nowrap; color: var(--muted); font-size: .9rem; border-bottom: 2px solid transparent; }
.tab-bar a[aria-current] { color: var(--brand-dark); border-color: var(--brand); font-weight: 680; }
.editor-content, .apply-panel { padding: 22px; }
[data-locked] :is(input, textarea, select):disabled { background: #f6f7fa; color: #535d71; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title p { margin-top: 4px; font-size: .86rem; color: var(--muted); }
.section-title > div + div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; align-content: start; min-width: 0; gap: 7px; color: var(--text); font-size: .9rem; }
.field > span { font-weight: 640; }
.field b { color: var(--brand-dark); }
.field small, .image-field p { color: var(--muted); font-size: .82rem; }
.field.full { grid-column: 1 / -1; }
.image-field { display: flex; align-items: center; gap: 14px; }
.image-field > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.image-field input:not([type="file"]) { max-width: 435px; }
.large-cover { border-radius: 10px; background: #f0f1f6; width: 76px; height: 100px; overflow: hidden; flex: 0 0 auto; }
.file-button { position: relative; cursor: pointer; }
.file-button input { position: absolute; inset: 0; opacity: 0; padding: 0; cursor: pointer; }
.tag-options, .chip-list, .attachment, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-option { min-height: 32px; background: #fff; border: 1px solid #dfe2e9; border-radius: 20px; color: #454e61; padding: 3px 12px; font-size: .85rem; }
.tag-option:hover, .tag-option.selected { background: var(--brand-faint); border-color: #f5c6b5; color: var(--brand-dark); }
.language-options .tag-option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 9px; }
.episode-languages { margin: 0 0 14px; }
.casting { display: flex; gap: 8px; align-items: center; max-width: 570px; margin-bottom: 7px; }
.field > button { justify-self: start; }
.episodes { min-width: 890px; }
.episodes input { padding: 8px; font-size: .86rem; }
.episodes td:first-child { width: 74px; }
.episodes td:nth-child(3) { width: 112px; }
.episodes td:nth-child(4) { min-width: 275px; }
.episodes td:nth-child(5) { text-align: center; }
.episodes th:last-child, .episodes td:last-child { padding-right: 9px; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.row-actions .icon-btn { width: 33px; height: 33px; }
.key-values { display: grid; gap: 0; margin: 2px 0 18px; }
.key-values div { display: grid; grid-template-columns: 145px 1fr; gap: 8px; border-top: 1px solid #eff0f4; padding: 10px 0; }
.key-values dt { color: var(--muted); font-size: .86rem; }
.key-values dd { font-size: .9rem; overflow-wrap: anywhere; }
.submissions { display: grid; gap: 12px; }
.submission { border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.submission header { display: flex; justify-content: space-between; gap: 9px; }
.submission small, .timeline small { display: block; color: var(--subtle); font-size: .77rem; }
.recommendation { color: #653f9a; background: #f2ecff; border-radius: 8px; padding: 8px 10px; margin-top: 11px; font-size: .86rem; }
.timeline { display: grid; gap: 9px; list-style: none; padding: 0 0 0 10px; margin: 13px 0 0; }
.timeline li { display: grid; grid-template-columns: 11px 1fr; align-items: start; gap: 6px; }
.timeline li > span { width: 7px; height: 7px; border-radius: 50%; background: #d84521; margin-top: 8px; }
.timeline strong, .timeline p { font-size: .88rem; }
.timeline p { color: var(--muted); }
.message { width: 100%; display: grid; grid-template-columns: 34px 1fr auto 16px; align-items: center; gap: 11px; text-align: left; padding: 13px 17px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); }
.message.unread { background: #f8f7fd; }
.message:hover { background: #f2f3f9; }
.message strong, .message small { display: block; overflow-wrap: anywhere; }
.message small, .message time { color: var(--muted); font-size: .82rem; }
.cooperation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.partner { display: flex; align-items: center; padding: 4px 19px 12px; gap: 11px; }
.partner p { color: var(--muted); font-size: .85rem; }
.partner-icon { background: #fff0e8; color: var(--brand-dark); }
.partner-values, .chip-list { margin: 0 19px 14px; }
.apply-panel { max-width: 760px; }
.application-form > button { margin-top: 13px; }
dialog { width: min(540px, calc(100vw - 26px)); padding: 0; color: var(--text); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 14px 60px #25233137; }
dialog::backdrop { background: #20202c75; }
.dialog-header, .dialog-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 17px; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.13rem; }
.dialog-footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.modal-content { padding: 16px 17px; display: grid; gap: 10px; }
.guide h3 { font-size: .95rem; }
.guide p, .modal-hint { color: var(--muted); font-size: .88rem; }
.preview-player { display: block; width: 100%; max-height: 64vh; background: #20202b; border-radius: 8px; }
.form-error { padding: 9px 11px; border-radius: 8px; color: #9c2d25; background: #fff0ee; margin: 8px 0; font-size: .88rem; }
#announcements { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: min(440px, calc(100% - 40px)); }
.toast { display: flex; align-items: center; gap: 8px; border-radius: 9px; color: #fff; background: #27313c; padding: 10px 14px; box-shadow: 0 4px 20px #181d2933; font-size: .9rem; }
.toast-error { background: #9b3527; }
@media (max-width: 1200px) {
  :root { --side: 207px; }
  .main, .topbar { padding-left: 22px; padding-right: 22px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr); gap: 12px; }
  .metric { padding: 11px; gap: 9px; }
  .metric-icon { width: 37px; height: 37px; }
  .works th:first-child, .works td:first-child { padding-left: 13px; }
  .works th:last-child, .works td:last-child { padding-right: 13px; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .task-panel { grid-row: 2; }
}
@media (max-width: 800px) {
  #shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .sidebar.sidebar-open { display: flex; position: fixed; left: 0; top: 0; width: 225px; }
  .sidebar-scrim { display: block; position: fixed; z-index: 3; inset: 0; border: 0; background: #20202c75; }
  .mobile-toggle { display: inline-grid; }
  .topbar { height: 59px; padding: 0 14px; }
  .breadcrumb { gap: 7px; }
}
@media (max-width: 560px) {
  .main { padding: 18px 13px 36px; }
  .top-actions { gap: 5px; }
  .breadcrumb > span, .breadcrumb > svg, .identity-label, .identity > svg { display: none; }
  .demo-tag { font-size: .7rem; }
  .heading-actions { padding: 0; }
  .page-heading p { font-size: .87rem; }
  .page-heading { gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
  .page-heading h1 { font-size: 1.62rem; }
  .hero { min-height: 170px; background-size: cover, 70% auto; background-position: center, right 49%; }
  .hero-content { padding: 17px; }
  .hero p { max-width: 230px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
  .metric { min-height: 76px; }
  .panel-head { padding: 10px 13px; min-height: 52px; }
  .dashboard-grid .works :is(th, td):nth-child(n+4) { display: none; }
  .dashboard-grid .work-name small { max-width: 17ch; }
  .editor-content, .apply-panel { padding: 15px; }
  .tab-bar { gap: 14px; padding: 0 11px; }
  .form-grid, .cooperation-grid { grid-template-columns: 1fr; }
  .section-title { flex-wrap: wrap; }
  .message { grid-template-columns: 32px 1fr 13px; }
  .message time { grid-column: 2; }
  .message > svg { grid-column: 3; grid-row: 1; }
  .filterbar { padding: 13px; }
  .search { flex: 1 0 100%; }
  .filterbar > .select-wrap { flex: 1 1 135px; }
  .key-values div { grid-template-columns: 112px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
