:root {
  --navy: #172033;
  --text: #202b40;
  --muted: #748096;
  --line: #e6eaf0;
  --bg: #f5f6f8;
  --panel: #fff;
  --blue: #315bea;
  --blue-soft: #edf2ff;
  --green: #16865e;
  --amber: #d77a12;
  --red: #d84848;
  --violet: #7656c9;
  --shadow: 0 8px 30px rgba(31, 43, 68, .06);
  --text-secondary: #59677c;
  --text-muted: #66738a;
  --text-on-dark: #aeb8cb;
  --font-caption: 12px;
  --font-data: 13px;
  --touch-target: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; padding: 24px 16px 18px; display: flex; flex-direction: column; background: #111a2b; color: #fff; z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 30px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg,#4c70f5,#2f56e8); box-shadow: 0 7px 18px rgba(49,91,234,.38); font-size: 20px; font-weight: 700; }
.brand div { display: grid; gap: 2px; }
.brand b { font-size: 17px; letter-spacing: .5px; }
.brand small { color: #8d9ab4; font-size: 11px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { position: relative; width: 100%; border: 0; padding: 12px 14px; border-radius: 10px; display: flex; align-items: center; gap: 12px; color: #aeb8cb; background: transparent; text-align: left; font-size: 14px; transition: color .18s ease, background-color .18s ease; }
.nav-item > span { width: 24px; height: 24px; display: grid; place-items: center; color: #8290a9; border-radius: 7px; font-size: 13px; font-weight: 700; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: #28395e; font-weight: 600; }
.nav-item.active > span { background: #3e61df; color: #fff; }
.nav-item em { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: #f1745b; color: white; font-size: 11px; font-style: normal; }
.sidebar-note { margin-top: auto; padding: 14px; display: grid; gap: 6px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; }
.sidebar-note b { font-size: 12px; color: #d8deea; }
.sidebar-note span { color: #8190a9; font-size: 11px; line-height: 1.7; }
.account { position: relative; margin-top: 14px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.account-copy { min-width: 0; display: grid; }
.account-copy b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-copy span { color: #9ba8bd; font-size: 12px; }
.account-logout { padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: transparent; color: #aab5c9; font-size: 10px; }
.account-logout:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.auth-page { min-height: 100vh; padding: 36px 20px; display: grid; place-items: center; background: radial-gradient(circle at 15% 10%,#eaf0ff,transparent 36%),linear-gradient(145deg,#f8f9fc,#edf1f8); }
.auth-card { width: min(430px,100%); padding: 34px; border: 1px solid #e0e6f0; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(30,45,75,.13); }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand h1 { margin: 0; font-size: 20px; }
.auth-brand p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.auth-heading { margin: 32px 0 20px; }
.auth-heading h2 { margin: 0 0 8px; font-size: 26px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: #445169; font-size: 12px; font-weight: 600; }
.auth-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dce3ed; border-radius: 9px; background: #fbfcfe; outline: none; }
.auth-form input:focus { border-color: #7794f5; box-shadow: 0 0 0 3px rgba(49,91,234,.1); }
.auth-form button { width: 100%; margin-top: 4px; }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff0f0; color: #bd3535; font-size: 12px; }
.auth-security { display: block; margin-top: 20px; color: #8d98aa; line-height: 1.6; }
.temporary-password { padding: 22px; display: grid; gap: 9px; }
.temporary-password > span { margin-top: 8px; color: var(--muted); font-size: 11px; }
.temporary-password > b, .temporary-password > code { padding: 13px; border: 1px solid #dce3ed; border-radius: 9px; background: #f7f9fc; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.temporary-password > code { color: #1f4fd4; font-family: Consolas,monospace; }
.temporary-password p { margin: 8px 0 0; color: #7b879a; font-size: 12px; line-height: 1.7; }
.temporary-password footer { padding: 14px 0 0; }
.member-form + .member-form { border-top: 1px solid var(--line); }
.member-form h3 { margin: 0; font-size: 14px; }
.modal-standalone-footer { padding: 14px 22px 20px; display: flex; justify-content: flex-end; }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 74px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 8; }
.topbar > div:first-child { display: grid; gap: 4px; }
.topbar .crumb { font-size: 11px; color: #9aa3b4; }
.topbar b { font-size: 14px; }
.role-chip { display: inline-flex; padding: 6px 10px; border-radius: 20px; background: #f1f4fa; color: #62708a; font-size: 11px; }
.page { max-width: 1640px; margin: 0 auto; padding: 28px 34px 44px; }
.page-heading { min-height: 64px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.page-heading h1 { margin: 0 0 6px; color: #172033; font-size: 25px; letter-spacing: -.4px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.primary, .outline, .danger-ghost, .text-btn { border: 0; border-radius: 8px; transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.primary { padding: 10px 17px; background: var(--blue); color: #fff; box-shadow: 0 5px 14px rgba(49,91,234,.18); }
.primary:hover { background: #264dd6; }
.outline { padding: 9px 15px; border: 1px solid #dce2ea; background: #fff; }
.outline:hover { border-color: #a9b7d2; }
.danger-ghost { padding: 9px 15px; color: var(--red); background: #fff4f4; }
.text-btn { padding: 5px 7px; color: var(--blue); background: transparent; }
.small { padding: 7px 11px; font-size: 12px; white-space: nowrap; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin-bottom: 16px; }
.summary-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.summary-card { min-height: 104px; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 18px rgba(34,46,73,.025); }
button.summary-card:hover { border-color: #bac7eb; transform: translateY(-1px); }
.summary-card.selected { border-color: #91a7f6; box-shadow: inset 0 0 0 1px #91a7f6; background: #f8faff; }
.summary-card.warning { background: #fffaf2; }
.summary-card span { display: block; color: #657189; font-size: 12px; }
.summary-card b { display: block; margin: 4px 0 2px; color: var(--navy); font-size: 28px; line-height: 1.2; }
.summary-card small { color: #99a3b4; font-size: 11px; }

.next-task { margin-bottom: 16px; min-height: 62px; padding: 11px 14px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; gap: 12px; align-items: center; border: 1px solid #dfe5f4; border-radius: 11px; background: linear-gradient(90deg,#f3f6ff,#fff); }
.next-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: #fff; }
.next-task div { display: grid; gap: 2px; }
.next-task small { color: #74819a; font-size: 10px; }
.next-task b { font-size: 13px; }
.next-task > span:nth-last-of-type(1) { color: #6f7b91; font-size: 12px; }
.next-task button { border: 0; padding: 7px 12px; background: transparent; color: var(--blue); }

.workspace-grid { display: grid; grid-template-columns: minmax(720px,1fr) 294px; gap: 16px; align-items: start; }
.workspace-grid.single { grid-template-columns: 1fr; }
.task-content-column { min-width: 0; display: grid; gap: 16px; align-content: start; }
.task-content-column .timeline-panel { margin-top: 0; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.panel-head, .panel-title { min-height: 62px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-title h3 { margin: 0; font-size: 15px; }
.panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.segmented { padding: 3px; display: inline-flex; background: #f1f3f7; border-radius: 8px; }
.segmented button { border: 0; padding: 7px 12px; border-radius: 6px; color: #69758a; background: transparent; font-size: 11px; }
.segmented button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 5px rgba(25,36,61,.12); font-weight: 600; }
.segmented.compact button { padding: 6px 10px; }
.search { width: 210px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #e0e5ec; border-radius: 8px; background: #fafbfc; }
.search.wide { width: 320px; }
.search span { color: #8d98aa; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-combobox { position: relative; z-index: 12; width: 210px; min-width: 0; }
.search-combobox.wide { width: 320px; max-width: 100%; }
.search-combobox .search { width: 100%; }
.search-combobox:focus-within { z-index: 24; }
.search-combobox:focus-within .search { border-color: #8da5f3; background: #fff; box-shadow: 0 0 0 3px rgba(49,91,234,.1); }
.search-chevron { margin-left: auto; color: #8995a8; font-size: 12px; font-style: normal; transition: transform .15s ease; }
.search-options { position: absolute; z-index: 40; inset: calc(100% + 8px) 0 auto; max-height: 320px; padding: 6px; display: none; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(23,35,60,.16); }
.search-combobox:focus-within:not(.is-closed) .search-options { display: grid; }
.search-combobox:focus-within:not(.is-closed) .search-chevron { transform: rotate(180deg); }
.search-option { width: 100%; min-width: 0; min-height: 48px; padding: 8px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; }
.search-option:hover, .search-option:focus-visible, .search-option[aria-selected="true"] { outline: 0; background: #edf3ff; }
.search-option > span { min-width: 0; display: grid; gap: 2px; }
.search-option b, .search-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option b { font-size: 12px; }
.search-option small { color: var(--text-muted); font-size: 10px; }
.search-option em { padding: 3px 6px; border-radius: 999px; color: #7e8796; background: #f0f2f5; font-size: 10px; font-style: normal; white-space: nowrap; }
.search-option.inactive { color: #7e8796; background: #fafafa; }
.search-option.inactive b { font-weight: 500; }
.search-options-empty { margin: 0; padding: 14px 10px; color: var(--text-muted); font-size: 12px; text-align: center; }
.queue-hint { margin: 12px 14px 0; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; border-radius: 8px; color: #9a6019; background: #fff6e9; font-size: 11px; }
.queue-hint b { font-size: 12px; }

.task-table { min-width: 790px; }
.task-row { min-height: 82px; padding: 11px 16px; display: grid; grid-template-columns: minmax(210px,1.4fr) 95px 105px minmax(132px,1fr) 112px minmax(112px,auto); gap: 12px; align-items: center; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.task-row:last-child { border-bottom: 0; }
.task-row:not(.task-header):hover { background: #fafbfe; }
.task-header { min-height: 42px; color: #8994a7; background: #fafbfc; font-size: 10px; font-weight: 600; }
.task-title { display: flex; gap: 9px; align-items: center; min-width: 0; }
.task-title > div, .task-row > div { min-width: 0; }
.task-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-title small, .task-row > div > small { display: block; margin-top: 3px; color: #8a95a7; font-size: 10px; }
.priority-dot { flex: 0 0 25px; width: 25px; height: 25px; border: 0; border-radius: 7px; background: #eef1f6; color: #a3adbd; font-weight: 700; }
.priority-dot.high { color: #fff; background: #f06a54; }
.priority-dot.critical { color: #fff; background: linear-gradient(135deg,#c72e48,#ef5a47); box-shadow: 0 3px 9px rgba(199,46,72,.28); }
.creator { display: flex; align-items: center; gap: 6px; }
.avatar { flex: 0 0 auto; width: 32px; height: 32px; display: inline-grid; place-items: center; overflow: hidden; border: 1px solid #dfe7fb; border-radius: 9px; color: #315bea; background: #edf2ff; font-size: 9px; line-height: 1; font-style: normal; font-weight: 700; white-space: nowrap; }
.style-image { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; aspect-ratio: 3/4; border: 1px solid #dfe5ed; border-radius: 7px; color: #65738a; background: linear-gradient(145deg,#f2f5f9,#e7ecf3); font-size: 8px; font-weight: 700; }
.style-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }.style-image > span { max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.assignees { display: flex; flex-wrap: wrap; gap: 4px; }
.person-mini { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.person-mini .avatar { width: 24px; height: 24px; font-size: 9px; }
.person-mini i { padding: 1px 4px; border-radius: 4px; color: #315bea; background: #edf2ff; font-size: 8px; font-style: normal; }
.unassigned { color: #d27a17; font-size: 11px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 12px; font-size: 10px; white-space: nowrap; }
.tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.amber { color: #b76b15; background: #fff5e7; }.tag.blue { color: #315bea; background: #edf2ff; }.tag.violet { color: var(--violet); background: #f3efff; }.tag.red { color: var(--red); background: #fff0f0; }.tag.green { color: var(--green); background: #eaf8f2; }.tag.gray { color: #7d8798; background: #f1f3f6; }
.date-line { display: block; margin-top: 5px; color: #909aab; font-size: 9px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.done-mark { color: var(--green); font-size: 10px; }

.workload-aside { position: sticky; top: 90px; }
.workload-aside .panel-title { padding: 14px; }
.load-overview { margin: 13px; padding: 11px 4px; display: grid; grid-template-columns: repeat(3,1fr); background: #f7f8fb; border-radius: 9px; }
.load-overview div { display: grid; text-align: center; border-right: 1px solid #e4e7ed; }
.load-overview div:last-child { border: 0; }
.load-overview b { font-size: 17px; }
.load-overview span { color: #8893a6; font-size: 9px; }
.load-list { padding: 0 14px 9px; }
.load-person { width: 100%; min-height: 62px; padding: 0; display: grid; grid-template-columns: 31px 1fr 9px; gap: 8px; align-items: center; border: 0; border-top: 1px solid #edf0f4; background: transparent; text-align: left; }
.load-person:hover { background: #f8faff; }
.load-person > div { min-width: 0; display: grid; }
.load-person b { font-size: 11px; }
.load-person span, .load-person small { color: #8792a5; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-person small { color: #53617a; }
.load-person-task { margin-top: 3px; display: flex; align-items: center; gap: 5px; }.load-person-task small { min-width: 0; }.load-person-style-image { width: 18px; border-radius: 4px; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; }.state-dot.idle { background: #29af7f; }.state-dot.working { background: #4e72ef; box-shadow: 0 0 0 4px #edf2ff; }.state-dot.busy { background: #ef6855; box-shadow: 0 0 0 4px #fff0ee; }

.timeline-panel { min-width: 0; margin-top: 16px; }
.timeline-header-actions { display: flex; align-items: center; gap: 10px; }
.timeline-designer-filter { min-width: 180px; }
.timeline-designer-filter select { min-width: 0; }
.timeline-designer-scope { min-height: 38px; padding: 5px 10px; display: grid; align-content: center; gap: 1px; border: 1px solid #dfe5ef; border-radius: 8px; background: #f8faff; white-space: nowrap; }
.timeline-designer-scope span { color: var(--text-muted); font-size: var(--font-caption); line-height: 1; }
.timeline-designer-scope b { color: var(--navy); font-size: var(--font-data); line-height: 1.2; }
.timeline-focus-view .timeline-header-actions { flex-wrap: wrap; justify-content: flex-end; }
.timeline-custom-toggle.active { border-color: #9bb0f7; color: var(--blue); background: #f2f5ff; }
.timeline-focus-toggle { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.timeline-focus-toggle span { color: #315bea; font-size: 14px; line-height: 1; }
.timeline-focus-toggle b { font-size: 10px; }
.timeline-range-form { margin: 12px 16px 4px; padding: 12px; display: flex; align-items: end; gap: 10px; border: 1px solid #dfe5ef; border-radius: 10px; background: #f8faff; }
.timeline-range-form label { min-width: 160px; display: grid; gap: 5px; color: var(--text-secondary); font-size: var(--font-caption); }
.timeline-range-form input { min-height: var(--touch-target); padding: 7px 10px; border: 1px solid #d8dfeb; border-radius: 8px; background: #fff; color: var(--navy); font: inherit; }
.timeline-range-form input:focus { border-color: #718df1; outline: 0; box-shadow: 0 0 0 3px #edf2ff; }
.timeline-range-separator { padding-bottom: 10px; color: var(--text-secondary); font-size: var(--font-caption); }
.timeline-range-form > small { min-width: 190px; padding-bottom: 8px; color: var(--text-secondary); font-size: var(--font-caption); }
.timeline-range-form footer { margin-left: auto; display: flex; gap: 8px; }
.timeline { width: 100%; min-width: 0; padding: 5px 16px 15px; overflow-x: hidden; }
.timeline-head, .timeline-row { width: 100%; min-width: 0; display: grid; grid-template-columns: clamp(110px,14vw,170px) minmax(0,1fr); align-items: center; }
.timeline-focus-view { position: fixed; inset: 0; z-index: 120; width: 100vw; height: 100dvh; margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.timeline-focus-view > .panel-title,.timeline-focus-view > .timeline-range-form,.timeline-focus-view > .timeline-legend,.timeline-focus-view > .pager { flex: 0 0 auto; }
.timeline-focus-view > .timeline { min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.timeline-head { height: 45px; color: #99a3b2; font-size: 9px; }
.timeline-axis { position: relative; height: 100%; display: flex; }
.timeline-axis i { min-width: 0; flex: 1 1 0; padding-top: 5px; display: grid; align-content: start; justify-items: center; gap: 1px; text-align: center; font-style: normal; line-height: 1.15; white-space: nowrap; }
.timeline-axis i b { color: #778397; font-size: 10px; font-weight: 600; }
.timeline-axis i small { color: #9ba5b5; font-size: 8px; }
.timeline-axis i em { color: #315bea; font-size: 8px; font-style: normal; font-weight: 700; }
.timeline-axis i.today b { color: #315bea; }
.timeline-row { min-height: 46px; }
.timeline-task-label { min-width: 0; padding: 4px 14px 4px 0; display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 8px; align-items: center; border: 0; background: transparent; text-align: left; }
.timeline-task-label:hover b { color: #315bea; }.timeline-label-copy { min-width: 0; display: grid; }.timeline-task-label b { font-size: 10px; }.timeline-label-copy > span,.timeline-label-copy > small { color: #8490a4; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.timeline-label-copy > small { color: #66748a; }.timeline-style-image { width: 27px; }
.rail { position: relative; height: 22px; padding: 0; overflow: hidden; display: block; border: 0; border-radius: 4px; background: #f5f7fa; text-align: left; }
.rail:hover { background: #f0f4fa; }
.timeline-task-preview { padding: 18px 22px 22px; display: grid; gap: 16px; }
.timeline-preview-hero { padding: 14px; display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 14px; align-items: center; border: 1px solid #e2e8f1; border-radius: 12px; background: #f8faff; }
.timeline-preview-image { width: 66px; }
.timeline-preview-hero > div { min-width: 0; }
.timeline-preview-hero small,.timeline-preview-grid span { color: #748197; font-size: var(--font-caption,11px); }
.timeline-preview-hero h3 { margin: 3px 0; overflow: hidden; color: #172238; font-size: 17px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.timeline-preview-hero p { margin: 0 0 8px; overflow: hidden; color: #66748a; font-size: var(--font-caption,11px); text-overflow: ellipsis; white-space: nowrap; }
.timeline-preview-hero > div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.timeline-preview-grid > div { min-width: 0; min-height: 70px; padding: 11px 12px; display: grid; align-content: start; gap: 5px; border-radius: 9px; background: #f6f8fb; }
.timeline-preview-grid b { color: #1d293d; font-size: var(--font-data,12px); overflow-wrap: anywhere; }
.timeline-preview-grid small { color: #77849a; font-size: var(--font-caption,11px); }
.timeline-preview-grid .timeline-preview-scope { grid-column: 1/-1; min-height: 64px; }
.timeline-preview-scope b { white-space: pre-wrap; }
.timeline-preview-actions { padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e4e9f0; }
.timeline-preview-actions > span { color: #748197; font-size: var(--font-caption,11px); }
.timeline-preview-actions > div { display: flex; justify-content: flex-end; gap: 8px; }
.timeline-rail-svg { display: block; overflow: visible; }
.timeline-grid-line { stroke: #e3e8ef; stroke-width: 1; }
.timeline-mark.pending { fill: #aeb8c8; stroke: #aeb8c8; }.timeline-mark.in_progress { fill: #4f73ef; stroke: #4f73ef; }.timeline-mark.paused,.timeline-mark.blocked { fill: #8768cd; stroke: #8768cd; }.timeline-mark.completed { fill: #25a677; stroke: #25a677; }.timeline-mark.cancelled { fill: #8d96a4; stroke: #8d96a4; }.timeline-mark.overdue { fill: #e45847; stroke: #e45847; }
.timeline-mark.estimated { fill: color-mix(in srgb,#25a677 12%,transparent); stroke: #25a677; stroke-width: 2; stroke-dasharray: 5 3; }
.timeline-mark.point { stroke-width: 2; }
.bar { --timeline-color: #5c7cf0; position: absolute; top: 4px; min-width: 0; height: 14px; padding: 0; display: block; overflow: visible; white-space: nowrap; border: 0; border-radius: 4px; background-color: var(--timeline-color)!important; transition: filter .15s ease,transform .15s ease; }
.bar.align-end { left: auto!important; }
.bar:hover { filter: brightness(.94); transform: translateY(-1px); }
.bar.important { background: linear-gradient(90deg,#ef725b,#f18a69); }
.bar i { position: absolute; z-index: 2; left: calc(100% + 6px); top: 50%; display: block; max-width: none; padding: 0; color: #344054; font-size: 8px; font-style: normal; line-height: 1; white-space: nowrap; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: translateY(-50%); pointer-events: none; }
.bar.label-end i { right: calc(100% + 5px); left: auto; }
.bar.continues-before { border-radius: 0 4px 4px 0; }
.bar.continues-before::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; border-left: 2px solid rgba(255,255,255,.9); }
.bar.continues-after { border-radius: 4px 0 0 4px; }
.bar.continues-after::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; border-right: 2px solid rgba(255,255,255,.9); }
.bar.segment:not(.continues-before) { box-shadow: -1px 0 0 var(--timeline-color); }
.bar.point { top: 5px; width: 12px!important; min-width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb,var(--timeline-color) 28%,transparent); transform: translateX(-50%); }
.bar.point:hover { transform: translateX(-50%) translateY(-1px); }
.bar.point i { left: 14px; }
.bar.point.label-end i { right: 14px; left: auto; }

.result-count { color: #778397; font-size: 12px; }.result-count b { color: var(--text); }
.style-row { min-height: 100px; padding: 12px 18px; display: grid; grid-template-columns: minmax(250px,1.15fr) 130px minmax(280px,1.4fr) 100px 170px; gap: 16px; align-items: center; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.style-row:last-child { border-bottom: 0; }
.style-row:not(.style-header):hover { background: #fafbfe; }
.style-header { min-height: 42px; color: #8792a4; background: #fafbfc; font-size: 10px; font-weight: 600; }
.style-identity { display: flex; align-items: center; gap: 13px; }
.style-identity > div { min-width: 0; display: grid; gap: 3px; }
.style-identity > div b { font-size: 14px; }.style-identity > div span { color: #8290a6; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-shell { position: relative; width: 54px; flex: 0 0 auto; }
.cover { position: relative; flex: 0 0 auto; width: 54px; aspect-ratio: 3/4; padding: 0; border: 1px solid #e0e5ec; border-radius: 8px; overflow: hidden; background: #f0f3f7; }
.cover > span { color: #66738a; font-weight: 700; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover:hover { border-color: #8ba0ec; box-shadow: 0 0 0 3px #edf2ff; }
.cover-upload { position: absolute; inset: auto 0 0; z-index: 2; width: 100%; padding: 3px 1px; border: 0; border-radius: 0 0 8px 8px; color: #fff; background: rgba(23,32,51,.88); font-size: 10px; opacity: 0; transition: opacity .15s ease, background-color .15s ease; }
.cover-shell:hover .cover-upload,.cover:not(.has-image) + .cover-upload { opacity: 1; }
.style-name-link { min-width: 0; padding: 5px 0; display: grid; gap: 3px; border: 0; background: transparent; text-align: left; }
.style-name-link b { font-size: 14px; }.style-name-link span { color: #8290a6; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.style-name-link:hover b { color: #315bea; }
.amazon-link { width: fit-content; color: #d5681f; font-size: 9px; line-height: 1.35; text-decoration: none; white-space: nowrap; }.amazon-link:hover { color: #a84c10; text-decoration: underline; }.amazon-link.unavailable { color: #a0a9b7; cursor: default; text-decoration: none; }.style-name-block { align-content: center; }.style-list-amazon-link { margin-top: -1px; }
.stage-tag { display: inline-block; padding: 5px 8px; border-radius: 7px; color: #52617a; background: #f0f3f8; font-size: 10px; }
.member-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.member-pill { padding: 5px 8px 5px 5px; display: grid; grid-template-columns: 25px auto; column-gap: 5px; border: 1px solid #dde4f5; border-radius: 9px; background: #f8faff; }
.member-pill:hover { border-color: #9eb0ec; background: #f1f5ff; }
.member-pill .avatar { grid-row: 1/3; width: 25px; height: 25px; }
.member-pill b { font-size: 10px; }.member-pill small { color: #8490a4; font-size: 8px; }
.member-pill.offboard { filter: grayscale(1); opacity: .48; background: #f2f2f2; border-color: #ddd; }
.style-task-count { padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; white-space: nowrap; }.style-task-count b { font-size: 12px; }.style-task-count small { color: #748096; }.style-task-count:hover { color: #315bea; background: #edf2ff; }

.designer-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.designer-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.designer-card.offboard { opacity: .55; filter: grayscale(.75); }
.designer-card header { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.designer-card header .avatar { width: 42px; height: 42px; font-size: 14px; }
.designer-card h3, .load-card h3, .person-card h3 { margin: 0; font-size: 14px; }.designer-card header p, .load-card header p, .person-card p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }.designer-card header > span { padding: 5px 8px; border-radius: 8px; color: #315bea; background: #edf2ff; font-size: 10px; }
.designer-metrics { margin: 15px 0 10px; padding: 12px 0; display: grid; grid-template-columns: repeat(3,1fr); border: solid #edf0f4; border-width: 1px 0; }
.designer-metrics div { display: grid; text-align: center; border-right: 1px solid #edf0f4; }.designer-metrics div:last-child { border: 0; }
.designer-metrics b { font-size: 14px; }.designer-metrics small { color: #8a95a6; font-size: 9px; }
.designer-card details summary { color: #53617a; font-size: 10px; cursor: pointer; }
.style-tree { margin-top: 10px; display: grid; gap: 5px; }
.style-tree > button { width: 100%; padding: 7px 9px; display: grid; grid-template-columns: 28px 75px 1fr auto; gap: 8px; align-items: center; border: 0; background: #f8f9fb; border-radius: 7px; text-align: left; font-size: 9px; }
.style-tree > button:hover { background: #edf2ff; }.tree-style-image { width: 28px; }
.style-tree span { color: #768298; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.style-tree em { color: #315bea; font-style: normal; }

.simple-table { min-width: 700px; }.simple-row { min-height: 54px; padding: 9px 16px; display: grid; grid-template-columns: 110px 1fr 105px 105px 130px; gap: 12px; align-items: center; border-bottom: 1px solid #edf0f4; font-size: 11px; }.simple-row.header { min-height: 40px; color: #8a95a7; background: #fafbfc; font-size: 9px; }
.table-style-link { padding: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; }.table-style-link:hover b { color: #315bea; }.table-style-image { width: 27px; }
.self-style-statistics > .panel-head h3 { margin: 0; font-size: 14px; }.self-style-statistics > .panel-head p { margin: 4px 0 0; color: #8792a4; font-size: 9px; }
.self-style-stat-grid { padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.self-style-stat-card { min-width: 0; padding: 0; overflow: hidden; display: grid; border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(19,36,72,.04); text-align: left; transition: border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.self-style-stat-card:hover { transform: translateY(-2px); border-color: #91a5eb; box-shadow: 0 10px 24px rgba(49,91,234,.1); }
.self-style-stat-open { width: 100%; padding: 0; display: grid; border: 0; background: transparent; text-align: left; }
.self-style-stat-head { padding: 13px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 11px; align-items: center; }.self-style-stat-image { width: 58px; }.self-style-stat-head > div { min-width: 0; }.self-style-stat-head > div > span { display: inline-block; padding: 3px 6px; border-radius: 5px; color: #315bea; background: #edf2ff; font-size: 8px; }.self-style-stat-head h3 { margin: 5px 0 2px; font-size: 15px; }.self-style-stat-head p { margin: 0; overflow: hidden; color: #7d899d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.self-style-stat-head > i { color: #9aa5b6; font-size: 22px; font-style: normal; }
.self-style-stat-metrics { padding: 11px 8px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: #fafbfc; }.self-style-stat-metrics > div { display: grid; gap: 2px; text-align: center; border-right: 1px solid #e7ebf0; }.self-style-stat-metrics > div:last-child { border: 0; }.self-style-stat-metrics b { font-size: 13px; }.self-style-stat-metrics small { color: #8b96a8; font-size: 8px; }
.self-style-stat-latest { min-width: 0; padding: 11px 13px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; align-items: center; }.self-style-stat-latest span,.self-style-stat-latest small { color: #8a95a7; font-size: 8px; }.self-style-stat-latest b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.self-style-stat-latest small { white-space: nowrap; }
.self-style-stat-actions { padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f4; }.self-style-stat-actions > button { padding: 0; border: 0; color: #315bea; background: transparent; font-size: 9px; }
.load-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.load-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.load-card.offboard { filter: grayscale(1); opacity: .5; }
.load-card header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.load-card header .avatar { width: 38px; height: 38px; }
.load-state { padding: 5px 8px; border-radius: 12px; font-size: 9px; }.load-state.working { color: #315bea; background: #edf2ff; }.load-state.idle { color: #16865e; background: #eaf8f2; }
.load-numbers { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }.load-numbers span { padding: 6px 9px; border-radius: 7px; color: #69758a; background: #f5f7fa; font-size: 9px; }.load-numbers b { color: var(--text); }
.current-task-list { margin-top: 12px; display: grid; gap: 6px; }.current-task-list > button { width: 100%; padding: 8px 10px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; border: 0; border-left: 3px solid #5575ed; background: #f8faff; text-align: left; font-size: 9px; }.current-task-list > button:hover { background: #edf2ff; }.current-task-list > button > span { min-width: 0; display: grid; gap: 3px; }.current-task-list small { color: #748096; }.load-task-style-image { width: 30px; }

.people-grid { padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.person-card { padding: 13px; display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; border: 1px solid #e6eaf0; border-radius: 10px; }
.person-card.offboard { filter: grayscale(1); opacity: .55; }
.person-card > div { min-width: 0; }.person-card > div > span { display: block; margin-top: 3px; color: #8a95a7; font-size: 9px; }

.pager { min-height: 52px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 5px; border-top: 1px solid #edf0f4; color: #8994a6; font-size: 10px; }
.pager button { min-width: 30px; height: 29px; border: 1px solid #e1e5eb; border-radius: 6px; background: #fff; font-size: 10px; }.pager button.current { border-color: var(--blue); color: #fff; background: var(--blue); }.pager > span:first-child { margin-right: 8px; }
.muted { color: var(--muted); }
.empty { grid-column: 1/-1; min-height: 120px; display: grid; place-items: center; align-content: center; color: #a0aaba; }.empty span { font-size: 26px; }.empty p { margin: 5px; font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; padding: 30px; display: grid; place-items: center; background: rgba(15,23,39,.48); backdrop-filter: blur(3px); }
body.overlay-open { overflow: hidden; overscroll-behavior: none; }
.modal-backdrop,.drawer-backdrop { overscroll-behavior: none; }
.modal { width: min(540px,95vw); max-height: 90vh; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; touch-action: pan-y; border-radius: 15px; background: #fff; box-shadow: 0 22px 70px rgba(7,15,31,.3); }
.modal.wide { width: min(700px,95vw); }
.modal > header { padding: 20px 22px 16px; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.modal > header h2 { margin: 0; font-size: 18px; }.modal > header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.modal > header button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #8490a4; background: #f3f5f8; font-size: 20px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,39,.38); backdrop-filter: blur(2px); }
.task-drawer { position: absolute; inset: 0 0 0 auto; width: min(540px,94vw); display: flex; flex-direction: column; container: task-drawer / inline-size; background: #fff; box-shadow: -18px 0 55px rgba(7,15,31,.22); animation: drawer-in .2s ease-out; overflow: hidden; }
.task-drawer > header { padding: 22px 24px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.task-drawer > header span { color: #315bea; font-size: 10px; font-weight: 700; }.task-drawer > header h2 { margin: 5px 0 3px; font-size: 19px; }.task-drawer > header p { margin: 0; color: var(--muted); font-size: 11px; }
.task-drawer > header button { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 9px; color: #8490a4; background: #f3f5f8; font-size: 22px; }
.drawer-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; touch-action: pan-y; padding-bottom: 22px; }
.style-tasks-drawer { width: min(640px,94vw); }
.task-detail-style { width: calc(100% - 44px); margin: 20px 22px 0; padding: 12px; display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid #e1e7ef; border-radius: 11px; background: linear-gradient(135deg,#f8faff,#fff); text-align: left; }.task-detail-style:hover { border-color: #91a5eb; box-shadow: 0 5px 18px rgba(49,91,234,.08); }.task-detail-style-image { width: 66px; }.task-detail-style > span { min-width: 0; display: grid; gap: 3px; }.task-detail-style small { color: #8995a8; font-size: 9px; }.task-detail-style b { font-size: 14px; }.task-detail-style em { color: #738096; font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.task-detail-style > i { color: #315bea; font-size: 9px; font-style: normal; white-space: nowrap; }
.style-drawer-hero { margin: 18px 22px 0; padding: 13px; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: center; border-radius: 11px; background: #f5f8ff; }.style-drawer-image { width: 72px; }.style-drawer-hero > div { min-width: 0; display: grid; gap: 3px; }.style-drawer-hero small { color: #8995a8; font-size: 9px; }.style-drawer-hero b { font-size: 16px; }.style-drawer-hero span { color: #738096; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.style-drawer-hero .drawer-amazon-link { margin-top: 3px; color: #d5681f; }
.drawer-summary { margin: 18px 22px 14px; padding: 12px; display: grid; grid-template-columns: repeat(3,1fr); border-radius: 10px; background: #f6f8fb; }
.drawer-summary > div { display: grid; gap: 2px; text-align: center; border-right: 1px solid #e3e8ef; }.drawer-summary > div:last-child { border: 0; }.drawer-summary b { font-size: 18px; }.drawer-summary span { color: #8290a5; font-size: 9px; }
.drawer-task-list { padding: 0 22px 6px; display: grid; gap: 10px; }.drawer-task-item { position: relative; padding: 13px; display: grid; gap: 9px; border: 1px solid #e1e6ed; border-radius: 10px; background: #fff; }.drawer-task-item.overdue { box-shadow: inset 3px 0 #e45d4b; }.drawer-task-item h3 { margin: 0; font-size: 13px; }.drawer-task-top,.drawer-task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }.drawer-task-meta { justify-content: space-between; color: #7d899d; font-size: 9px; }.drawer-task-item > button { justify-self: end; }
.self-style-history-drawer { width: min(640px,94vw); }.self-history-task-list { padding: 0 22px 6px; display: grid; gap: 9px; }.self-history-task-list > button { width: 100%; padding: 13px; display: grid; gap: 9px; border: 1px solid #e1e6ed; border-radius: 10px; background: #fff; text-align: left; }.self-history-task-list > button:hover { border-color: #91a5eb; background: #fafbff; }.self-history-task-list > button > div { display: flex; gap: 6px; align-items: center; }.self-history-task-list h3 { margin: 0; font-size: 13px; }.self-history-task-list p,.self-history-task-list footer { margin: 0; display: flex; justify-content: space-between; gap: 10px; color: #7f8b9e; font-size: 9px; }.self-history-task-list footer { padding-top: 8px; border-top: 1px solid #edf0f4; }.self-history-task-list footer b { color: #315bea; }
.designer-profile-hero { margin: 20px 22px 14px; padding: 15px; display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; border-radius: 11px; background: #f4f7ff; }.designer-profile-hero .avatar { width: 44px; height: 44px; font-size: 15px; }.designer-profile-hero > div { display: grid; gap: 3px; }.designer-profile-hero b { font-size: 15px; }.designer-profile-hero span { color: #758198; font-size: 10px; }.designer-profile-hero em { padding: 6px 8px; border-radius: 8px; color: #315bea; background: #e9efff; font-size: 9px; font-style: normal; }
.profile-section { margin: 0 22px; padding: 17px 0; border-top: 1px solid #e8ecf1; }.profile-section-title { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }.profile-section-title h3 { margin: 0; font-size: 13px; }.profile-section-title span { color: #78859a; font-size: 9px; }
.profile-style-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.profile-style-list button { min-width: 0; padding: 8px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 8px; align-items: center; border: 1px solid #e0e6ef; border-radius: 8px; background: #fff; text-align: left; }.profile-style-list button:hover { border-color: #96a9eb; background: #f7f9ff; }.profile-style-image { width: 38px; }.profile-style-copy { min-width: 0; display: grid; gap: 3px; }.profile-style-list b { font-size: 10px; }.profile-style-copy > span { color: #7f8ba0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-current-tasks { display: grid; gap: 8px; }.profile-current-tasks > div { padding: 10px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; border-radius: 8px; background: #f7f8fa; }.profile-task-style-image { width: 30px; }.profile-current-tasks > div > div { min-width: 0; display: grid; gap: 3px; }.profile-current-tasks b { font-size: 10px; }.profile-current-tasks span { color: #7c889c; font-size: 9px; }
.designer-profile-drawer.offboard .designer-profile-hero { filter: grayscale(1); opacity: .65; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
.form-grid { padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; color: #5f6b80; font-size: 11px; }.form-grid .full, .form-grid fieldset.full, .form-grid footer, .flow-note { grid-column: 1/-1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #dfe4eb; border-radius: 8px; outline: 0; background: #fff; font-size: 12px; }.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #718df1; box-shadow: 0 0 0 3px #edf2ff; }
.form-grid textarea { resize: vertical; }
.form-grid footer { padding-top: 5px; display: flex; justify-content: flex-end; gap: 8px; }
.form-grid fieldset { margin: 0; padding: 12px; border: 1px solid #e1e5eb; border-radius: 9px; }.form-grid legend { color: #5f6b80; font-size: 11px; }
.check-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.check-grid label { padding: 7px; display: flex; align-items: center; gap: 5px; border-radius: 7px; background: #f7f8fa; }.check-grid input { width: auto; min-height: auto; }.check-grid .avatar { width: 24px; height: 24px; }
.flow-note { padding: 10px 12px; display: grid; gap: 3px; color: #59677f; background: #f0f4ff; border-radius: 8px; font-size: 10px; }.flow-note b { color: #315bea; }
.current-members { padding: 16px 22px 0; display: grid; gap: 7px; }.current-members > div { padding: 9px; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; border: 1px solid #e6eaf0; border-radius: 8px; }.current-members span { display: grid; }.current-members b { font-size: 11px; }.current-members small { color: #8994a6; font-size: 9px; }.member-form { padding-top: 15px; }
.file-drop { min-height: 135px; place-items: center; align-content: center; border: 1px dashed #b8c5e3; border-radius: 10px; background: #f8faff; text-align: center; cursor: pointer; }.file-drop input { width: auto; min-height: auto; border: 0; background: transparent; }.file-drop span { color: #315bea; font-size: 13px; }.file-drop small { color: #8b96a8; }
.cover-source-switch { margin: 16px 16px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cover-source-switch button { min-height: 38px; }
.cover-source-form { padding-top: 12px; }
.image-url-field { min-height: 135px; align-content: center; padding: 18px; border: 1px dashed #b8c5e3; border-radius: 10px; background: #f8faff; }
.image-url-field input { background: #fff; }
.cover-form-error { grid-column: 1/-1; margin: 0; padding: 9px 11px; border: 1px solid #f0bbb5; border-radius: 8px; color: #c94638; background: #fff3f1; font-size: 10px; }
.detail-grid { padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.detail-grid > div { padding: 11px; display: grid; gap: 4px; border-radius: 8px; background: #f7f8fa; }.detail-grid span { color: #8691a4; font-size: 9px; }.detail-grid b { font-size: 11px; }
.file-history { padding: 0 22px 20px; display: grid; gap: 6px; }.file-history > div { padding: 9px 11px; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; border: 1px solid #e7ebf0; border-radius: 8px; font-size: 10px; }.file-history > div > span { color: #315bea; }.file-history small { color: #8b96a8; }
.network-path-field small { color: #8590a3; line-height: 1.5; }.network-path-field textarea { min-height: 128px; font-family: Consolas,"Microsoft YaHei",sans-serif; line-height: 1.65; }
.output-path-section { padding: 0 22px 22px; }.output-path-heading { margin-bottom: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.output-path-heading h3 { margin: 0; font-size: 13px; }.output-path-heading p { margin: 3px 0 0; color: #8792a4; font-size: 9px; }.output-path-heading > span { color: #315bea; font-size: 10px; }
.output-path-list { display: grid; gap: 8px; }.output-path-row { padding: 10px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: start; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; }
.output-path-row > span { padding-top: 4px; color: #315bea; font-size: 9px; font-weight: 700; }.output-path-row > div { min-width: 0; display: grid; gap: 6px; }.output-path-row b { font-size: 10px; }.output-path-row input { width: 100%; padding: 7px 9px; border: 1px solid #e1e6ed; border-radius: 7px; color: #516077; background: #f7f8fa; font-family: Consolas,"Microsoft YaHei",sans-serif; font-size: 9px; }
.output-path-row small { grid-column: 2; color: #8b96a8; font-size: 8px; }.output-path-empty { margin: 0; padding: 18px; border: 1px dashed #dce2ea; border-radius: 9px; color: #8b96a8; background: #fafbfc; text-align: center; font-size: 10px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 17px; border-radius: 9px; color: #fff; background: #1b2740; box-shadow: 0 10px 30px rgba(14,25,48,.25); font-size: 12px; }.toast.bad { background: #c94646; }
.loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; color: #66738a; }.loading span { width: 32px; height: 32px; border: 3px solid #dfe5f1; border-top-color: #315bea; border-radius: 50%; animation: spin .8s linear infinite; }.loading b { font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.summary-card.danger { background: #fffafa; }
.summary-card.danger.has-alert { border-color: #efb2aa; box-shadow: inset 3px 0 #e45d4b; }
.summary-card.rush { background: linear-gradient(135deg,#fff5f5,#fffafb); }.summary-card.rush b { color: #c92f49; }.summary-card.rush.selected { border-color: #dc6578; box-shadow: inset 3px 0 #c92f49; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.designer-view { height: 41px; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe4eb; border-radius: 9px; background: #fff; }
.designer-view span { color: #8792a5; font-size: 10px; }
.designer-view select { min-width: 105px; border: 0; outline: 0; background: transparent; font-size: 12px; font-weight: 600; }
.viewing-person { margin: -8px 0 14px; padding: 8px 12px; display: flex; align-items: center; gap: 6px; border-radius: 8px; color: #5d6a81; background: #edf2ff; font-size: 11px; }
.viewing-person .avatar { width: 24px; height: 24px; }
.decision-grid { margin-bottom: 16px; display: grid; grid-template-columns: minmax(310px,.72fr) minmax(560px,1.28fr); gap: 16px; align-items: stretch; }
.next-task-v9 { min-height: 174px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border-left: 4px solid #315bea; }
.next-task-v9.overdue { border-left-color: #e45948; background: linear-gradient(135deg,#fff8f6,#fff); }
.recommend-head, .recommend-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.recommend-head > span:first-child { color: #315bea; font-size: 10px; font-weight: 700; }
.next-task-main { margin: 10px 0 12px; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 11px; align-items: center; }.next-task-style { width: 54px; padding: 0; border: 0; background: transparent; }.next-task-style-image { width: 54px; }.next-task-style:hover .style-image { border-color: #8fa4ed; box-shadow: 0 0 0 3px #edf2ff; }
.next-task-v9 h2 { margin: 0 0 5px; font-size: 17px; line-height: 1.45; }
.next-task-v9 p { margin: 0; color: #748096; font-size: 10px; }
.recommend-bottom { margin-top: auto; color: #748096; font-size: 10px; }
.recommend-bottom button { border: 0; padding: 7px 10px; border-radius: 7px; color: #315bea; background: #edf2ff; font-size: 10px; }
.priority-board { min-height: 174px; padding: 13px; }
.priority-board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.priority-board-head h3 { margin: 0; font-size: 13px; }.priority-board-head p { margin: 3px 0 0; color: #8994a7; font-size: 9px; }
.priority-board-head button { border: 0; padding: 5px 8px; border-radius: 6px; color: #728097; background: #f3f5f8; font-size: 9px; }.priority-board-head button.active { color: #315bea; background: #edf2ff; }
.quadrant-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.quadrant { min-height: 68px; padding: 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: #f7f8fa; }
.quadrant span { font-size: 9px; font-weight: 600; }.quadrant b { grid-row: 1/3; grid-column: 2; align-self: center; font-size: 20px; }.quadrant small { font-size: 8px; opacity: .75; }
.quadrant.critical { color: #c64738; background: #fff0ed; }.quadrant.important { color: #a16a16; background: #fff6e7; }.quadrant.urgent { color: #385ec8; background: #eef3ff; }.quadrant.later { color: #66738a; background: #f1f3f6; }
.quadrant.selected { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.priority-rule { margin-top: 8px; display: flex; gap: 7px; color: #8893a5; font-size: 8px; }.priority-rule b { color: #59677e; }
.panel-tools { display: flex; align-items: flex-end; gap: 7px; }
.active-filter { border: 0; padding: 7px 9px; border-radius: 7px; color: #315bea; background: #edf2ff; font-size: 9px; }
.active-filter.alert { color: #c94839; background: #ffebe8; }
.active-filter.rush { color: #bd2843; background: #fff0f2; }
.task-row.overdue-row { background: linear-gradient(90deg,#fff8f6 0,#fff 38%); box-shadow: inset 3px 0 #e45d4b; }
.urgency-chip { margin-left: 3px; display: inline-flex; padding: 3px 6px; border-radius: 10px; font-size: 8px; white-space: nowrap; }
.urgency-chip.critical { color: #fff; background: linear-gradient(90deg,#c72e48,#e74c45); font-weight: 700; }.urgency-chip.overdue { color: #c94234; background: #ffeae7; font-weight: 700; }.urgency-chip.urgent { color: #b56a13; background: #fff2dd; }.urgency-chip.normal { color: #7b879a; background: #f0f2f5; }.urgency-chip.closed { color: #7e8898; background: #eef0f3; }
.cancel-link { color: #8a6570; }.cancelled-mark { color: #7e8796; font-size: 9px; }
.timeline-legend { padding: 9px 16px 0; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; color: #7d889b; font-size: 8px; }.timeline-legend span::before { content: ''; width: 12px; height: 5px; border-radius: 3px; background: #bcc5d2; }
.timeline-legend .pending::before { background: #aeb8c8; }.timeline-legend .in_progress::before { background: #4f73ef; }.timeline-legend .paused::before { background: #8768cd; }.timeline-legend .completed::before { background: #25a677; }.timeline-legend .overdue::before { background: #e45847; }.timeline-legend .cancelled::before { background: #8d96a4; }
.timeline-legend .estimated::before { border: 1px dashed #25a677; background: transparent; }
.bar.pending { --timeline-color: #aeb8c8; }.bar.in_progress { --timeline-color: #4f73ef; }.bar.paused,.bar.blocked { --timeline-color: #8768cd; }.bar.completed { --timeline-color: #25a677; }.bar.cancelled { --timeline-color: #8d96a4; }.bar.overdue { --timeline-color: #e45847; box-shadow: 0 0 0 2px #ffe5e1; }
.detail-grid small { color: #8a95a7; font-size: 8px; }.detail-grid .cancel-reason { grid-column: 1/-1; background: #f5f3f4; }
.detail-grid .detail-due-date { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.detail-due-date > span,.detail-due-date > b { grid-column: 1; }
.detail-due-date > button { grid-column: 2; grid-row: 1/3; align-self: center; }
.detail-grid .detail-assignment { grid-template-columns: minmax(0,1fr) auto; align-items: center; min-width: 0; }
.detail-assignment > span,.detail-assignment > b,.detail-assignment > small { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.detail-assignment > button { grid-column: 2; grid-row: 1/4; align-self: center; white-space: nowrap; }
.current-due-date { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dfe6f5; border-radius: 9px; background: #f5f8ff; }
.current-due-date span { color: #748197; font-size: 10px; }.current-due-date b { color: #1e2a3f; font-size: 14px; font-variant-numeric: tabular-nums; }

.task-card-grid { padding: 16px; display: grid; gap: 14px; justify-content: start; align-items: start; background: #f7f8fb; }
.task-card-grid.cards-one,.task-card-grid.cards-two,.task-card-grid.cards-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.task-card { position: relative; width: 100%; min-width: 0; border: 1px solid #dfe5ed; border-radius: 12px; background: #fff; box-shadow: 0 3px 13px rgba(27,39,65,.04); overflow: hidden; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.task-card:hover { transform: translateY(-1px); border-color: #c7d1e5; box-shadow: 0 8px 20px rgba(27,39,65,.075); }
.task-card.overdue { border-color: #dfe5ed; box-shadow: 0 3px 13px rgba(27,39,65,.04); }
.task-card.overdue::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1; background: #e45d4b; }
.task-card.expanded { border-color: #9db0ef; box-shadow: 0 8px 24px rgba(49,91,234,.1); }
.task-card-head { min-height: 43px; padding: 11px 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-card-eyebrow { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.task-card-eyebrow .sku-chip { min-width: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card-eyebrow .tag,.task-card-eyebrow .urgency-chip { flex: 0 0 auto; }
.task-card-head > .priority-dot { flex: 0 0 25px; }
.sku-chip { padding: 4px 7px; border-radius: 6px; color: #315bea; background: #edf2ff; font-size: 9px; font-weight: 700; }
.task-card-title { padding: 8px 14px 12px; min-height: 88px; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 11px; align-items: center; border-bottom: 1px solid #edf0f4; }
.task-style-thumb { width: 52px; aspect-ratio: 3/4; padding: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid #e0e6ee; border-radius: 8px; color: #64728a; background: linear-gradient(145deg,#f2f5f9,#e8edf4); font-size: 11px; font-weight: 700; }
.task-style-thumb:hover { border-color: #8fa4ed; box-shadow: 0 0 0 3px #edf2ff; }.task-style-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }.task-style-thumb span { max-width: 46px; overflow: hidden; text-overflow: ellipsis; }
.task-card-title-copy { min-width: 0; }
.task-card-title h3 { min-width: 0; margin: 0; overflow: hidden; color: #1d283b; font-size: 14px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.task-card-title p { margin: 5px 0 0; color: #8590a3; font-size: 9px; }
.task-card-title-copy small { margin-top: 5px; display: block; color: #a0a9b8; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card-product-row { min-width: 0; display: flex; align-items: center; gap: 8px; }.task-card-product-row small { min-width: 0; margin-top: 5px; }.task-amazon-link { flex: 0 0 auto; margin-top: 5px; font-size: 8px; }
.detail-amazon .detail-amazon-link { color: #d5681f; font-size: 10px; }
.task-card-meta { min-height: 72px; padding: 12px 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: stretch; }
.task-card-meta > div { min-width: 0; display: grid; grid-template-rows: auto 25px; align-content: center; gap: 5px; }
.task-card-meta small,.task-card-detail small { color: #929caf; font-size: 8px; }
.task-card-meta > div > small { white-space: nowrap; }
.task-card-meta > div > span { min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.task-card-meta .avatar { flex: 0 0 25px; width: 25px; height: 25px; font-size: 9px; }
.task-card-meta b { min-width: 0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card-meta em { padding: 2px 5px; border-radius: 7px; color: #315bea; background: #edf2ff; font-size: 8px; font-style: normal; }
.task-card-due { align-content: center; }
.due-date-edit { min-height: 36px; padding: 6px 0; justify-self: start; border: 0; color: #315bea; background: transparent; font-size: 10px; font-weight: 700; text-align: left; }
.due-date-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.due-date-edit:focus-visible { border-radius: 5px; outline: 3px solid rgba(49,91,234,.22); outline-offset: 2px; }
.overdue-text { color: #cf493a; }
.task-card-detail { padding: 0 13px 13px; display: grid; gap: 9px; animation: card-open .16s ease-out; }
@keyframes card-open { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.reason-box { padding: 9px 10px; display: grid; gap: 3px; border-radius: 8px; color: #4f5e77; background: #f1f4fd; }
.reason-box b { font-size: 9px; font-weight: 500; line-height: 1.5; }
.detail-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.detail-facts > div { min-width: 0; padding: 8px; display: grid; gap: 3px; border-radius: 7px; background: #f7f8fa; }
.detail-facts b { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline-cancel-reason { padding: 9px 10px; display: grid; gap: 3px; border-left: 3px solid #929aa6; background: #f4f4f5; }
.inline-cancel-reason b { font-size: 9px; }
.participant-detail { display: grid; gap: 5px; }
.participant-detail > span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.participant-detail .avatar { width: 23px; height: 23px; font-size: 8px; }
.participant-detail b { font-size: 9px; }.participant-detail em { margin-right: 5px; color: #8190a6; font-size: 8px; font-style: normal; }
.task-card-footer { min-height: 45px; padding: 7px 11px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border-top: 1px solid #edf0f4; background: #fcfcfd; }
.expand-button { min-width: 0; justify-self: start; border: 0; padding: 6px 5px; display: inline-flex; align-items: center; gap: 5px; color: #67748a; background: transparent; font-size: 9px; white-space: nowrap; }
.expand-button i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #edf0f5; font-style: normal; }
.card-actions { min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.card-actions .text-btn { padding: 5px 7px; font-size: 10px; white-space: nowrap; }
.card-actions .small { padding: 7px 10px; font-size: 10px; }

.summary-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.admin-page .page-heading { align-items: flex-end; }
.admin-page .page-heading > button { flex: 0 0 auto; }
.admin-summary .summary-card { min-height: 92px; }
.admin-data-panel > .panel-head h3 { margin: 0; font-size: 14px; }
.admin-data-panel > .panel-head p { margin: 4px 0 0; color: #8a95a7; font-size: 9px; }
.admin-style-panel-heading { min-height: 68px; }
.admin-style-toolbar { min-height: 72px; padding: 12px 17px; display: grid; grid-template-columns: minmax(260px,420px) 160px minmax(120px,1fr); gap: 12px; align-items: end; border-bottom: 1px solid #e9edf2; background: #fbfcfe; }
.admin-toolbar-field { min-width: 0; display: grid; gap: 6px; color: #78859a; font-size: 10px; }
.admin-toolbar-field .search { width: 100%; }
.admin-toolbar-field .search-combobox { width: 100%; }
.admin-toolbar-search .search i { color: #8d98aa; font-style: normal; }
.admin-style-result-count { align-self: center; justify-self: end; color: #78859a; font-size: 10px; white-space: nowrap; }
.admin-style-list { min-width: 970px; }
.admin-style-row { min-height: 104px; padding: 12px 17px; display: grid; grid-template-columns: minmax(260px,1.25fr) minmax(220px,1.05fr) 96px 100px 168px; gap: 16px; align-items: center; border-top: 1px solid #e9edf2; }
.admin-style-head { min-height: 44px; padding-top: 8px; padding-bottom: 8px; color: #8490a4; background: #fafbfc; border-top: 0; font-size: 9px; font-weight: 600; }
.admin-style-row.archived { background: #fbfbfc; }
.admin-style-row.archived .admin-style-identity,.admin-style-row.archived .admin-link-cell { filter: grayscale(.8); opacity: .62; }
.admin-style-identity { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 11px; align-items: center; }
.admin-style-cover,.admin-style-name { padding: 0; border: 0; background: transparent; text-align: left; }
.admin-style-cover { width: 52px; border-radius: 8px; }
.admin-style-cover:hover { box-shadow: 0 0 0 3px #edf2ff; }
.admin-style-image { width: 52px; }
.admin-style-identity > div { min-width: 0; display: grid; justify-items: start; gap: 5px; }
.admin-style-name { min-width: 0; display: grid; gap: 3px; }
.admin-style-name b { font-size: 13px; }.admin-style-name span { max-width: 190px; color: #7d899d; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-btn.compact { padding: 0; font-size: 8px; }
.admin-link-cell { min-width: 0; display: grid; justify-items: start; gap: 5px; }
.admin-link-cell > small { width: 100%; color: #98a2b2; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.missing-link { padding: 5px 8px; border: 1px dashed #d6a561; border-radius: 7px; color: #b86c17; background: #fff9ef; font-size: 9px; }
.admin-state { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 12px; color: #5e6b80; background: #f0f2f5; font-size: 9px; white-space: nowrap; }
.admin-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-state.active { color: #16865e; background: #eaf8f2; }.admin-state.archived,.admin-state.offboard { color: #7a8494; background: #eef0f3; }
.admin-row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.admin-user-grid { padding: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; background: #f8f9fb; }
.admin-user-card { min-width: 0; padding: 14px; display: grid; gap: 13px; border: 1px solid #e1e6ed; border-radius: 11px; background: #fff; box-shadow: 0 3px 14px rgba(32,45,72,.035); }
.admin-user-card.offboard { background: #fafafa; filter: grayscale(.55); }
.admin-user-card header { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.admin-user-card header .avatar { width: 42px; height: 42px; border-radius: 11px; font-size: 11px; }
.admin-user-card h3 { margin: 0; font-size: 14px; }.admin-user-card header p { margin: 3px 0 0; color: #8792a5; font-size: 9px; }
.admin-user-metrics { padding: 11px 0; display: grid; grid-template-columns: repeat(3,1fr); border: solid #edf0f4; border-width: 1px 0; }
.admin-user-metrics span { display: grid; justify-items: center; gap: 3px; border-left: 1px solid #edf0f4; }.admin-user-metrics span:first-child { border-left: 0; }
.admin-user-metrics b { font-size: 15px; }.admin-user-metrics small { color: #909aac; font-size: 8px; }
.admin-user-card footer { min-height: 31px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.built-in-account { margin-right: auto; color: #78859a; font-size: 9px; }
.form-grid label > small { margin-top: -2px; color: #8d98aa; font-size: 8px; line-height: 1.5; }
.form-status-readonly { min-height: 70px; padding: 10px 11px; display: grid; align-content: center; gap: 4px; border: 1px solid #dfe4eb; border-radius: 8px; background: #f7f8fa; }
.form-status-readonly > span,.form-status-readonly > small { color: #8894a7; font-size: 9px; }.form-status-readonly > b { font-size: 11px; }

.import-page { min-width: 0; display: grid; gap: 16px; }
.import-page > * { min-width: 0; max-width: 100%; }
.import-page .page-heading { margin-bottom: 0; }
.import-rule-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.import-rule-grid article { min-height: 82px; padding: 13px 14px; display: grid; align-content: center; gap: 6px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fff; box-shadow: 0 3px 13px rgba(32,45,72,.035); }
.import-rule-grid b { color: #25324a; font-size: 11px; }.import-rule-grid span { color: #7e8a9e; font-size: 9px; line-height: 1.55; }
.selected-file { max-width: 320px; padding: 6px 9px; border-radius: 8px; color: #315bea; background: #edf2ff; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-drop { margin: 16px; min-height: 130px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed #a9b9e9; border-radius: 11px; color: #315bea; background: #f7f9ff; cursor: pointer; }
.import-drop:hover { border-color: #315bea; background: #f2f6ff; }.import-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-drop > span { padding: 8px 14px; border-radius: 8px; color: #fff; background: #315bea; font-size: 10px; font-weight: 700; }.import-drop > b { color: #334158; font-size: 11px; }.import-drop > small { color: #8995a8; font-size: 8px; }
.import-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8b97a9; background: #fafbfc; }.import-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #315bea; background: #edf2ff; font-weight: 700; }.import-empty h3,.import-empty p { margin: 0; }.import-empty h3 { color: #334158; font-size: 12px; }.import-empty p { font-size: 9px; }
.import-summary { padding: 14px 16px; display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; background: #f8f9fb; border-bottom: 1px solid #e8ecf2; }
.import-summary.five { grid-template-columns: repeat(5,1fr); }
.import-summary > div { min-height: 65px; padding: 10px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid #e3e7ee; border-radius: 9px; background: #fff; }.import-summary b { font-size: 17px; }.import-summary span { color: #8a95a7; font-size: 8px; }.import-summary .ready b { color: #16865e; }.import-summary .duplicate b { color: #b67518; }.import-summary .error b { color: #cf493a; }
.import-preview-toolbar { min-height: 54px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e8ecf2; background: #fff; }
.import-preview-toolbar > span { color: #8792a5; font-size: 9px; white-space: nowrap; }
.import-status-filter button { min-width: 92px; }
.import-status-filter button.error.active { color: #c94638; background: #fff1ef; box-shadow: inset 0 0 0 1px #f2b5ae; }
.import-preview-panel { min-width: 0; max-width: 100%; overflow: hidden; container: import-preview / inline-size; }
.import-preview-list { width: 100%; min-width: 0; }
.import-preview-row { min-height: 85px; padding: 10px 16px; display: grid; grid-template-columns: minmax(82px,.65fr) minmax(150px,1.35fr) minmax(72px,.6fr) minmax(96px,.8fr) minmax(96px,.8fr) minmax(165px,1.45fr); gap: 10px; align-items: center; border-top: 1px solid #e9edf2; box-shadow: inset 3px 0 transparent; }
.import-preview-head { min-height: 42px; color: #8792a5; background: #fafbfc; border-top: 0; box-shadow: none; font-size: 9px; font-weight: 600; }.import-preview-row.ready { box-shadow: inset 3px 0 #27a879; }.import-preview-row.duplicate { background: #fffdf8; box-shadow: inset 3px 0 #d59a3c; }.import-preview-row.error { background: #fff9f8; box-shadow: inset 3px 0 #df5a4b; }
.import-preview-row > div { min-width: 0; display: grid; justify-items: start; gap: 4px; }.import-preview-row > div > b { max-width: 100%; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.import-preview-row > div > span { color: #7f8b9e; font-size: 8px; }
.import-filter-empty { min-height: 130px; display: grid; place-items: center; color: #909bad; border-top: 1px solid #e9edf2; background: #fafbfc; font-size: 10px; }
.import-status { padding: 3px 6px; border-radius: 8px; }.import-status.ready { color: #16865e!important; background: #eaf8f2; }.import-status.duplicate { color: #ad721c!important; background: #fff2df; }.import-status.error { color: #c94a3b!important; background: #ffebe8; }
.import-row-notes { align-content: center; }.import-row-notes span { line-height: 1.35; }.import-row-notes span::before { content: '· '; }.import-row-notes .bad { color: #c94a3b; }.import-row-notes .warn { color: #ad721c; }
.import-edit-row { margin-top: 4px; color: #c94638; border-color: #efb9b3; background: #fff; }
.import-edit-row:hover { border-color: #d85a4c; background: #fff5f3; }
.import-edit-errors { grid-column: 1/-1; padding: 11px 12px; display: grid; gap: 5px; border: 1px solid #f0c2bc; border-radius: 9px; color: #c94638; background: #fff5f3; }
.import-edit-errors b { font-size: 10px; }.import-edit-errors span { font-size: 9px; }.import-edit-errors span::before { content: '· '; }
.import-confirm { width: 100%; min-width: 0; padding: 13px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid #e7ebf1; }.import-confirm > div { min-width: 220px; margin-right: auto; flex: 1 1 320px; display: grid; gap: 3px; }.import-confirm > div b { font-size: 11px; }.import-confirm > div span { color: #8490a3; font-size: 8px; }
.import-history-list { display: grid; }.import-history-list > article { min-height: 65px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e9edf2; }.import-history-list > article > div { min-width: 0; display: grid; gap: 4px; }.import-history-list > article > div b { font-size: 10px; }.import-history-list > article > div span,.import-history-list > article p { color: #8591a4; font-size: 8px; }.import-history-list > article p b { color: #334158; font-size: 10px; }
.page-size-picker { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; color: #7f8b9e; font-size: 9px; }.page-size-picker select { min-width: 88px; height: 34px; padding: 0 9px; border: 1px solid #dfe5ed; border-radius: 8px; color: #35425a; background: #fff; }
.pager .pager-page-size { margin-right: auto; }
.import-preview-panel .panel-head { flex-wrap: wrap; }
.import-preview-panel .pager { max-width: 100%; flex-wrap: wrap; }

@container import-preview (max-width: 1000px) {
  .import-summary.five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .import-preview-list { padding: 12px; display: grid; gap: 10px; background: #f8f9fb; }
  .import-preview-head { display: none; }
  .import-preview-row:not(.import-preview-head) { min-height: 0; padding: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 16px; align-items: start; border: 1px solid #e2e7ee; border-radius: 11px; background: #fff; }
  .import-preview-row:not(.import-preview-head) > div { align-content: start; }
  .import-preview-row:not(.import-preview-head) > div::before { color: #98a2b2; font-size: 8px; font-weight: 500; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(1)::before { content: '行号与判断'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(2)::before { content: '款号 / 任务'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(3)::before { content: '交期'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(4)::before { content: '负责美工'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(5)::before { content: '负责运营'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(6)::before { content: '系统处理'; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(2) { grid-column: span 2; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(6) { grid-column: 1/-1; padding-top: 11px; border-top: 1px solid #edf0f4; }
}

@container import-preview (max-width: 650px) {
  .import-summary.five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .import-preview-row:not(.import-preview-head) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .import-preview-row:not(.import-preview-head) > div:nth-child(2) { grid-column: auto; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(6) { grid-column: 1/-1; }
  .import-confirm > div { flex-basis: 100%; }
  .import-preview-toolbar { align-items: stretch; flex-direction: column; }
  .import-status-filter { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .import-status-filter button { min-width: 0; padding-inline: 5px; }
}

@container import-preview (max-width: 430px) {
  .import-summary.five { grid-template-columns: 1fr; }
  .import-preview-row:not(.import-preview-head) { grid-template-columns: 1fr; }
  .import-preview-row:not(.import-preview-head) > div:nth-child(6) { grid-column: auto; }
  .import-confirm .outline,.import-confirm .primary { flex: 1 1 130px; }
}

@media (max-width: 1450px) {
  .decision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 190px minmax(0,1fr); }.sidebar { width: 190px; }.workspace-grid { grid-template-columns: 1fr; }.workload-aside { position: static; }.summary-grid,.summary-grid.four { grid-template-columns: repeat(2,1fr); }.style-row { grid-template-columns: 240px 110px 1fr 90px; }.style-row > :last-child { grid-column: 2/-1; justify-content: flex-start; }.people-grid,.self-style-stat-grid { grid-template-columns: repeat(2,1fr); }.admin-user-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.import-rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.import-summary { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 800px) {
  .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 12px; }.brand { padding: 0 4px 12px; }.sidebar nav { display: flex; overflow-x: auto; }.nav-item { width: auto; white-space: nowrap; }.sidebar-note { display: none; }.account { position: absolute; right: 12px; top: 10px; width: 150px; margin: 0; border: 0; }.main { width: 100%; }.topbar { padding: 0 18px; }.page { padding: 22px 16px 35px; }.summary-grid,.summary-grid.three,.summary-grid.four { grid-template-columns: repeat(2,1fr); }.panel { overflow-x: auto; }.designer-stat-grid,.load-cards,.people-grid,.self-style-stat-grid,.task-card-grid.cards-one,.task-card-grid.cards-two,.task-card-grid.cards-three,.admin-user-grid { grid-template-columns: 1fr; }.timeline-head,.timeline-row { grid-template-columns: 100px minmax(0,1fr); }.import-rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-heading, .heading-actions { flex-direction: column; align-items: stretch; }
  .quadrant-grid { grid-template-columns: repeat(2,1fr); }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-tools, .search { width: 100%; }
  .detail-facts { grid-template-columns: repeat(2,1fr); }
}

/* Enterprise UI consistency layer */
:root {
  --surface: #fff;
  --surface-subtle: #f8f9fb;
  --surface-raised: #fff;
  --border: #dfe5ed;
  --border-strong: #c8d1de;
  --focus: #315bea;
  --danger: #c83d36;
  --danger-hover: #a92e29;
  --success: #16865e;
  --control-height: 40px;
  --radius-control: 8px;
  --radius-panel: 12px;
}

html { scroll-behavior: smooth; }
body { line-height: 1.5; }
a { color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, [role="button"], summary { touch-action: manipulation; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 34%, transparent);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
.nav-item { text-decoration: none; }
.primary, .outline, .danger-ghost, .danger-solid { min-height: 36px; }
.danger-solid {
  padding: 9px 15px;
  border: 0;
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--danger);
}
.danger-solid:hover { background: var(--danger-hover); }
.danger-ghost:hover { color: var(--danger-hover); background: #ffe9e7; }
.priority-indicator:not(button), .priority-dot:not([data-priority-settings]) { cursor: default; }

.sync-status, .load-error-banner {
  position: sticky;
  z-index: 7;
  top: 74px;
  min-height: 42px;
  padding: 8px 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #dce5f9;
  color: #53627a;
  background: #f7f9ff;
  font-size: 12px;
}
.sync-status span {
  width: 14px;
  height: 14px;
  border: 2px solid #cbd6f4;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.load-error-banner { justify-content: space-between; border-color: #f0c7c2; color: #923a33; background: #fff4f2; }

.loading-page { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0,1fr); background: var(--bg); }
.loading-sidebar { padding: 28px 20px; display: grid; align-content: start; gap: 18px; background: #111a2b; }
.loading-sidebar i, .loading-content header, .loading-heading, .loading-summary i, .loading-grid i {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg,#edf0f5 25%,#f8f9fb 45%,#edf0f5 65%);
  background-size: 260% 100%;
  animation: skeleton 1.25s ease-in-out infinite;
}
.loading-sidebar i { height: 46px; background: linear-gradient(90deg,#1b2940 25%,#273650 45%,#1b2940 65%); background-size: 260% 100%; }
.loading-sidebar i:first-child { width: 78%; height: 54px; margin-bottom: 10px; }
.loading-content { padding: 0 34px 40px; }
.loading-content header { height: 74px; margin: 0 -34px 34px; border-radius: 0; }
.loading-heading { width: 260px; height: 56px; margin-bottom: 20px; }
.loading-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.loading-summary i { height: 92px; }
.loading-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.loading-grid i { height: 230px; }
@keyframes skeleton { to { background-position: -130% 0; } }
.state-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: var(--bg); }
.state-page section { width: min(460px,100%); padding: 34px; display: grid; justify-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.state-page section > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--danger); font-weight: 700; }
.state-page h1, .state-page p { margin: 0; }.state-page h1 { font-size: 20px; }.state-page p { color: var(--muted); font-size: 13px; }

.task-status-strip {
  margin-bottom: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.task-status-strip > button {
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #657189;
  background: #fff;
  text-align: left;
}
.task-status-strip > button b { color: var(--navy); font-size: 19px; }
.task-status-strip > button:hover { border-color: #aebbe5; }
.task-status-strip > button.selected { color: #244ccf; border-color: #8ca3f3; background: #f5f7ff; box-shadow: inset 0 0 0 1px #8ca3f3; }
.task-status-strip > button.warning b { color: #a66712; }
.task-status-strip > button.rush b, .task-status-strip > button.danger b { color: #c54437; }
.next-task-compact {
  margin: 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5eaf2;
  border-left: 3px solid var(--blue);
  border-radius: 0;
  color: #53627a;
  background: #f5f7fd;
}
.next-task-compact > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 9px; align-items: baseline; }
.next-task-compact span { color: #315bea; font-size: 11px; font-weight: 700; }
.next-task-compact b { min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-task-compact small { grid-column: 2; color: #7d899c; font-size: 11px; }
.next-task-compact.overdue { border-left-color: var(--danger); background: #fff6f4; }
.priority-disclosure { overflow: clip; }
.priority-disclosure > summary {
  min-height: 52px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334158;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.priority-disclosure > summary::-webkit-details-marker { display: none; }
.priority-disclosure > summary::after { content: '⌄'; margin-left: auto; color: #7c889b; }
.priority-disclosure[open] > summary::after { transform: rotate(180deg); }
.priority-disclosure > summary span { color: #8994a7; font-size: 11px; font-weight: 400; }
.priority-disclosure .priority-board { border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }

.list-toolbar {
  margin-bottom: 14px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #fff;
}
.search-result-stack { min-width: 0; display: grid; gap: 16px; }
.search-result-stack > .pager { border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.filter-field { min-width: 150px; display: grid; gap: 5px; color: #78859a; font-size: 11px; }
.filter-field select { min-height: 36px; padding: 0 32px 0 10px; border: 1px solid #dfe4eb; border-radius: 8px; background: #fff; }
.filter-field.compact { min-width: 132px; }
.result-count { color: #66738a; font-size: 12px; }.result-count b { color: var(--navy); }
.empty-state { min-height: 180px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 10px; color: #8390a4; text-align: center; }

.pager { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--line); background: #fff; }
.pager > span { margin-right: 4px; color: #78859a; font-size: 11px; }
.pager button { min-width: 34px; min-height: 34px; border: 1px solid #dfe4eb; border-radius: 8px; color: #607089; background: #fff; }
.pager button.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.page-size-picker { min-height: 34px; font-size: 11px; }
.page-size-picker select { min-height: 34px; font-size: 12px; }

.cover img, .style-image img { object-fit: cover; object-position: center; }
.cover-shell:focus-within .cover-upload { opacity: 1; transform: translateY(0); }
.cover-upload { min-height: 28px; }
.profile-trigger { width: 100%; min-width: 0; padding: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; }
.profile-trigger > span { min-width: 0; display: grid; gap: 2px; }
.profile-trigger h3, .profile-trigger p { margin: 0; }
.current-task-more { justify-content: center!important; min-height: 36px!important; color: var(--blue); border-style: dashed!important; background: #f7f9ff!important; }

.action-menu { position: relative; }
.action-menu > summary { min-height: 34px; padding: 7px 10px; display: grid; place-items: center; border: 1px solid #dce2ea; border-radius: 8px; background: #fff; color: #53627a; font-size: 12px; list-style: none; cursor: pointer; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > div { position: absolute; z-index: 6; right: 0; bottom: calc(100% + 6px); min-width: 142px; padding: 7px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(22,34,58,.16); }
.action-menu > div button { width: 100%; }
.temporary-password-value { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.temporary-password-value code { min-width: 0; padding: 13px; border: 1px solid #dce3ed; border-radius: 9px; color: #1f4fd4; background: #f7f9fc; font: 15px Consolas,monospace; overflow-wrap: anywhere; user-select: all; }
.form-error { grid-column: 1/-1; margin: 0; padding: 10px 12px; border: 1px solid #efb9b2; border-radius: 8px; color: #aa352d; background: #fff3f1; font-size: 12px; }
.confirmation-body { padding: 20px 22px; display: grid; gap: 18px; }
.confirmation-impact { padding: 13px; border-left: 3px solid #e3a03b; border-radius: 8px; background: #fff9ef; }
.confirmation-impact b { font-size: 13px; }.confirmation-impact p { margin: 4px 0 0; color: #67748a; font-size: 12px; line-height: 1.65; }
.confirmation-body footer { display: flex; justify-content: flex-end; gap: 8px; }

.modal-backdrop { overscroll-behavior: contain; }
.modal, .task-drawer { overscroll-behavior: contain; }
.modal > header, .task-drawer > header { position: sticky; z-index: 3; top: 0; background: #fff; }
.modal .form-grid > footer { position: sticky; z-index: 2; bottom: 0; margin: 0 -22px -20px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.output-path-row { grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; }
.output-path-row small { grid-column: 2/-1; }
.output-path-row input { font-size: 11px; }
.page small { font-size: 10px; }

/* Improve the legibility of dense operational data without reducing density. */
.task-card-title p, .task-card-title-copy small, .task-card-meta small, .task-card-detail small,
.drawer-task-meta, .self-history-task-list p, .self-history-task-list footer,
.profile-style-copy > span, .profile-current-tasks span, .detail-grid span,
.output-path-heading p, .admin-data-panel > .panel-head p, .admin-style-head,
.admin-style-name span, .admin-link-cell > small, .admin-user-card header p,
.admin-user-metrics small, .form-grid label > small, .import-rule-grid span,
.import-drop > small, .import-summary span, .import-preview-row > div > span,
.import-history-list > article > div span, .import-history-list > article p { font-size: 10px; }
.task-card-meta b, .profile-style-list b, .profile-current-tasks b, .detail-grid b,
.output-path-row b, .admin-style-name b, .import-preview-row > div > b { font-size: 11px; }

@media (hover: none) {
  .cover-upload { opacity: 1; transform: none; }
}

@media (max-width: 1180px) and (min-width: 801px) {
  .task-card-grid.cards-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-style-list { min-width: 0; padding: 12px; display: grid; gap: 10px; background: #f8f9fb; }
  .admin-style-toolbar { grid-template-columns: minmax(220px,1fr) 150px auto; }
  .admin-style-head { display: none; }
  .admin-style-row:not(.admin-style-head) { min-height: 0; padding: 14px; display: grid; grid-template-columns: minmax(230px,1.25fr) minmax(220px,1fr) auto auto; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .admin-style-row:not(.admin-style-head) > .admin-row-actions { grid-column: 1/-1; justify-content: flex-start; }
}

@media (max-width: 800px) {
  .app-shell { min-height: 100vh; }
  .sidebar { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .brand { grid-column: 1; padding-bottom: 6px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
  .brand b { font-size: 15px; }.brand small { font-size: 10px; }
  .sidebar nav { grid-column: 1/-1; order: 3; padding-bottom: 2px; }
  .nav-item { min-height: 42px; padding: 9px 12px; font-size: 13px; }
  .account { position: static; grid-column: 2; width: auto; margin: 0; padding: 0; grid-template-columns: minmax(0,1fr) auto; border: 0; }
  .account .avatar { display: none; }.account label span { display: none; }.account label b { max-width: 90px; font-size: 12px; }
  .topbar { height: 62px; padding: 0 16px; }
  .topbar .crumb { font-size: 10px; }.topbar b { font-size: 13px; }.role-chip { padding: 5px 8px; font-size: 10px; }
  .sync-status, .load-error-banner { top: 62px; padding-inline: 16px; }
  .page { padding: 20px 14px 34px; }
  .page-heading h1 { font-size: 22px; }.page-heading p { font-size: 12px; }
  .panel { overflow-x: visible; }
  .timeline-panel { overflow: hidden; }
  .timeline { overflow-x: hidden; }
  .timeline-panel > .panel-title { align-items: stretch; flex-direction: column; }
  .timeline-header-actions { width: 100%; justify-content: space-between; }
  .timeline-header-actions .segmented { flex: 1 1 auto; }
  .timeline-header-actions .segmented button { min-width: 0; flex: 1 1 0; }
  .timeline-range-form { align-items: stretch; flex-wrap: wrap; }
  .timeline-range-form label { min-width: 0; flex: 1 1 180px; }
  .timeline-range-separator { display: none; }
  .timeline-range-form > small { width: 100%; padding-bottom: 0; }
  .timeline-range-form footer { width: 100%; margin-left: 0; justify-content: flex-end; }
  .timeline-focus-toggle b { display: none; }
  .task-status-strip { grid-auto-columns: minmax(108px,1fr); padding-bottom: 4px; }
  .task-card-grid.cards-three { grid-template-columns: 1fr; }
  .next-task-compact { align-items: stretch; flex-direction: column; }
  .next-task-compact > div { grid-template-columns: 1fr; }.next-task-compact small { grid-column: 1; }
  .next-task-compact button { align-self: flex-start; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .list-toolbar .search, .list-toolbar .filter-field { width: 100%; }
  .panel-head .panel-tools { align-items: stretch; flex-direction: column; }
  .panel-head .filter-field { width: 100%; }
  .panel-head .search-combobox, .panel-tools .search-combobox, .list-toolbar .search-combobox { width: 100%; }
  .admin-style-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .admin-style-result-count { justify-self: start; }
  .loading-page { grid-template-columns: 1fr; }.loading-sidebar { display: none; }
  .loading-content { padding: 0 16px 30px; }.loading-content header { height: 62px; margin: 0 -16px 25px; }
  .loading-summary { grid-template-columns: repeat(2,1fr); }.loading-grid { grid-template-columns: 1fr; }.loading-grid i { height: 160px; }

  .style-list, .admin-style-list { min-width: 0; padding: 12px; display: grid; gap: 10px; background: #f8f9fb; }
  .style-header, .admin-style-head { display: none; }
  .style-row:not(.style-header), .admin-style-row:not(.admin-style-head) {
    min-height: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
  }
  .style-row:not(.style-header) > :first-child, .admin-style-row:not(.admin-style-head) > :first-child { grid-column: 1/-1; }
  .style-row:not(.style-header) > .member-pills { grid-column: 1/-1; }
  .style-row:not(.style-header) > .row-actions { grid-column: 1/-1; justify-content: flex-end; }
  .admin-style-row:not(.admin-style-head) > .admin-link-cell { grid-column: 1/-1; }
  .admin-style-row:not(.admin-style-head) > .admin-row-actions { grid-column: 1/-1; justify-content: flex-start; }
  .admin-style-row { min-width: 0; }
  .style-identity { grid-template-columns: 58px minmax(0,1fr); }

  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  .form-grid label, .form-grid .full, .form-grid fieldset.full, .form-grid footer, .flow-note { grid-column: 1; }
  .form-grid .full { grid-column: 1; }
  .check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; padding: 16px; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { width: 100%; max-width: none; min-height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .task-drawer { width: min(100%,680px); }
  .modal > header, .task-drawer > header { padding: 15px 16px; }
  .modal .form-grid > footer { margin: 0 -16px -16px; padding: 12px 16px; }
  .temporary-password, .confirmation-body { padding: 18px 16px; }
  .temporary-password-value { grid-template-columns: 1fr; }
  .temporary-password-value button { justify-self: start; }
  .output-path-section { padding-inline: 16px; }.output-path-row { grid-template-columns: 28px minmax(0,1fr); }.output-path-row > button { grid-column: 2; justify-self: start; }.output-path-row small { grid-column: 2; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .pager .pager-page-size { order: 2; width: 100%; margin: 4px 0 0; justify-content: center; }
  .action-menu > div { position: fixed; right: 12px; bottom: 12px; left: 12px; }
  .admin-user-card footer { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .summary-grid, .summary-grid.three, .summary-grid.four { grid-template-columns: 1fr; }
  .summary-card { min-height: 86px; }
  .panel-head { padding: 12px; }
  .segmented { width: 100%; overflow-x: auto; }.segmented button { flex: 1 0 auto; }
  .task-card-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-card-meta > div:last-child { grid-column: 1/-1; }
  .detail-facts, .profile-style-list { grid-template-columns: 1fr; }
  .quadrant-grid, .check-grid { grid-template-columns: 1fr; }
  .import-summary, .import-summary.five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-user-grid, .people-grid, .load-cards, .designer-stat-grid, .self-style-stat-grid { padding: 10px; gap: 10px; }
  .admin-user-card header { grid-template-columns: 38px minmax(0,1fr); }
  .admin-user-card header > .admin-state { grid-column: 2; justify-self: start; }
  .toast { right: 12px; bottom: 12px; left: 12px; transform: none; text-align: center; }
}

/* UI quality pass: readable density, predictable controls and responsive navigation. */
.mobile-nav-menu { display: none; }

.topbar .crumb,
.role-chip,
.summary-card small,
.panel-title p,
.queue-hint,
.next-task-compact span,
.next-task-compact small,
.filter-field,
.pager > span,
.page-size-picker,
.result-count { font-size: var(--font-caption); }

.page small { font-size: var(--font-caption); }
.task-card-title p,
.task-card-title-copy small,
.task-card-meta small,
.task-card-detail small,
.drawer-task-meta,
.self-history-task-list p,
.self-history-task-list footer,
.profile-style-copy > span,
.profile-current-tasks span,
.detail-grid span,
.output-path-heading p,
.admin-data-panel > .panel-head p,
.admin-style-head,
.admin-style-name span,
.admin-link-cell > small,
.admin-user-card header p,
.admin-user-metrics small,
.form-grid label > small,
.import-rule-grid span,
.import-drop > small,
.import-summary span,
.import-preview-row > div > span,
.import-history-list > article > div span,
.import-history-list > article p {
  color: var(--text-secondary);
  font-size: var(--font-caption);
  line-height: 1.5;
}
.task-card-meta b,
.profile-style-list b,
.profile-current-tasks b,
.detail-grid b,
.output-path-row b,
.admin-style-name b,
.import-preview-row > div > b { font-size: var(--font-data); }

/* Keep all three task-card fact columns on one shared label/value baseline. */
.task-card-meta > div {
  grid-template-rows: 18px 28px;
  align-content: center;
  gap: 4px;
}
.task-card-meta > div > small {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 18px;
  line-height: 18px;
}
.task-card-meta > div > span,
.task-card-meta > div > b {
  align-self: stretch;
  min-width: 0;
  height: 28px;
  line-height: 1.25;
}
.task-card-meta > div > span,
.task-card-meta > div > b {
  display: flex;
  align-items: center;
}

.task-card-title-copy small,
.task-card-title p,
.task-card-meta small,
.task-row > div > small,
.timeline-label-copy > span,
.designer-view span,
.viewing-person,
.priority-board-head p,
.priority-rule,
.style-name-link span,
.style-identity > div span,
.member-pill small,
.load-numbers span,
.current-task-list small,
.empty,
.muted { color: var(--text-muted); }

.tag,
.sku-chip,
.stage-tag,
.member-pill b,
.load-state,
.load-numbers span,
.current-task-list > button,
.style-name-link span,
.style-identity > div span,
.amazon-link,
.date-line,
.done-mark,
.expand-button,
.card-actions .small,
.card-actions .text-btn,
.priority-board-head button,
.quadrant span,
.quadrant small,
.priority-rule,
.active-filter { font-size: var(--font-caption); }

.timeline-legend span,
.timeline-head,
.timeline-task-label b,
.timeline-label-copy > span { font-size: var(--font-caption); }
.bar i { font-size: 11px; }
.timeline-scroll-note { display: none; }

.summary-card b,
.task-status-strip > button b,
.load-overview b,
.load-numbers b,
.designer-metrics b,
.self-style-stat-metrics b,
.admin-user-metrics b,
.date-line { font-variant-numeric: tabular-nums; }

input::placeholder,
textarea::placeholder { color: #69758a; opacity: 1; }

.primary,
.outline,
.danger-ghost,
.danger-solid,
.text-btn,
.segmented button,
.pager button,
.filter-field select,
.account-logout,
.action-menu > summary,
.expand-button,
.current-task-more,
.empty-action { min-height: var(--touch-target); }
.search { height: var(--touch-target); }
.page-size-picker,
.page-size-picker select { min-height: var(--touch-target); }
.pager button { min-width: var(--touch-target); }
.segmented { min-height: var(--touch-target); align-items: stretch; }
.segmented button { display: inline-grid; place-items: center; }
.cover-upload { min-height: 34px; }

/* Keep operational labels readable without loosening the compact desktop density. */
.account-logout,
.designer-view span,
.pager button,
.style-header,
.admin-style-head,
.load-overview span,
.load-person span,
.load-person small,
.designer-card header p,
.designer-card header > span,
.load-card header p,
.person-card p,
.priority-board-head p,
.import-drop > span,
.import-empty p { font-size: var(--font-caption); }
.urgency-chip,
.admin-state,
.text-btn.compact,
.admin-link-cell > small,
.missing-link,
.cover-upload { font-size: 11px; }

.empty { min-height: 160px; gap: 4px; color: var(--text-muted); }
.empty p { margin: 6px 0; font-size: 13px; }
.empty-action { margin-top: 6px; }

.load-cards { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.load-card { align-self: start; }
.load-card.idle .current-task-list { min-height: 0; }
.load-empty-note { margin: 0; padding: 12px; border: 1px dashed #d8e0eb; border-radius: 8px; color: var(--text-muted); background: #fafbfc; font-size: 12px; line-height: 1.55; }

/* Unified designer center: identity, workload and statistics share one card. */
.designer-center-toolbar { flex-wrap: wrap; }
.designer-center-toolbar .search-combobox { flex: 1 1 300px; }
.frozen-designer-toggle { min-height: var(--touch-target); margin-left: auto; white-space: nowrap; }
.frozen-designer-toggle.active { color: var(--blue); border-color: #aebcf1; background: #f4f7ff; }
.designer-center-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.designer-center-card { min-width: 0; overflow: hidden; align-self: start; border: 1px solid var(--line); border-radius: var(--radius-panel); background: #fff; box-shadow: var(--shadow); }
.designer-center-card.working { border-color: #b7c5f5; box-shadow: 0 8px 24px rgba(49,91,234,.08); }
.designer-center-card.offboard { filter: grayscale(1); opacity: .62; }
.designer-center-card > header { padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.designer-center-card .profile-trigger .avatar { width: 42px; height: 42px; font-size: 12px; }
.designer-center-card .profile-trigger h3 { margin: 0; color: var(--navy); font-size: 15px; }
.designer-center-card .profile-trigger p { margin: 0; overflow: hidden; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.designer-load-layer { padding: 12px 16px; display: grid; gap: 9px; border-top: 1px solid var(--line); background: #f7f9ff; }
.designer-layer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.designer-layer-heading b { color: var(--navy); font-size: 12px; }
.designer-layer-heading span { color: var(--text-secondary); font-size: 11px; text-align: right; }
.designer-layer-heading.related { padding: 12px 16px 8px; border-top: 1px solid var(--line); background: #fff; }
.designer-layer-heading.related b { color: var(--blue); }
.designer-load-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #e1e7f8; border-radius: 10px; background: #fff; }
.designer-load-facts > div { min-width: 0; padding: 8px 6px; display: grid; gap: 2px; text-align: center; border-right: 1px solid #e7ebf5; }
.designer-load-facts > div:last-child { border-right: 0; }
.designer-load-facts b { overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.designer-load-facts small { color: var(--text-muted); font-size: 11px; }
.designer-load-layer > p { margin: 0; color: var(--text-secondary); font-size: 11px; }
.designer-center-metrics { padding: 12px 8px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfc; }
.designer-center-metrics > div { min-width: 0; display: grid; gap: 3px; text-align: center; border-right: 1px solid #e7ebf0; }
.designer-center-metrics > div:last-child { border: 0; }
.designer-center-metrics b { overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.designer-center-metrics small { color: var(--text-muted); font-size: 9px; }
.designer-center-card.dual-load .designer-center-metrics { border-top: 0; background: #fff; }
.designer-center-card.dual-load .designer-center-metrics small { min-height: 28px; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1.25; }
.designer-current-preview { min-height: 126px; padding: 13px 16px; display: grid; align-content: start; gap: 8px; }
.designer-current-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.designer-current-preview > div b { font-size: 11px; }
.designer-current-preview > div span { color: var(--text-secondary); font-size: 10px; }
.designer-current-preview > button { width: 100%; min-width: 0; padding: 7px; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; align-items: center; border: 0; border-radius: 8px; color: inherit; background: #f7f9fd; text-align: left; }
.designer-current-preview > button:hover { background: #edf2ff; }
.designer-current-preview > button > span { min-width: 0; display: grid; gap: 2px; }
.designer-current-preview > button b,.designer-current-preview > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.designer-current-preview > button b { font-size: 10px; }
.designer-current-preview > button small { color: var(--text-secondary); font-size: 9px; }
.designer-center-card > footer { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.designer-center-card > footer > span { color: var(--text-muted); font-size: 10px; }
.designer-center-card > footer button { flex: 0 0 auto; }

.import-upload-panel { margin-bottom: 14px; }
.import-rules-disclosure { margin-bottom: 14px; overflow: hidden; }
.import-rules-disclosure > summary { min-height: 58px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.import-rules-disclosure > summary::-webkit-details-marker { display: none; }
.import-rules-disclosure > summary > span { min-width: 0; display: grid; gap: 2px; }
.import-rules-disclosure > summary b { font-size: 14px; }
.import-rules-disclosure > summary small { color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.import-rules-disclosure > summary i { color: var(--text-muted); font-style: normal; transition: transform .15s ease; }
.import-rules-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.import-rules-disclosure[open] > summary i { transform: rotate(180deg); }
.import-rules-disclosure .import-rule-grid { padding: 14px; background: #f8f9fb; }

@media (max-width: 1180px) and (min-width: 801px) {
  .load-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .designer-center-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account { grid-template-columns: 32px minmax(0,1fr); }
  .account .avatar { width: 32px; height: 32px; }
  .account-logout { grid-column: 1/-1; width: 100%; }
}

@media (max-width: 800px) {
  :root { --touch-target: 44px; }
  .sidebar .desktop-nav { display: none; }
  .mobile-nav-menu { grid-column: 1/-1; order: 3; display: block; }
  .mobile-nav-menu > summary { min-height: 44px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #d8deea; background: rgba(255,255,255,.045); cursor: pointer; list-style: none; }
  .mobile-nav-menu > summary::-webkit-details-marker { display: none; }
  .mobile-nav-menu > summary::after { content: '⌄'; color: #9eabc0; }
  .mobile-nav-menu[open] > summary::after { transform: rotate(180deg); }
  .mobile-nav-menu > summary span { color: #9eabc0; font-size: 12px; }
  .mobile-nav-menu > summary b { font-size: 13px; }
  .mobile-nav-menu nav { padding-top: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; overflow: visible; }
  .mobile-nav-menu .nav-item { width: 100%; min-width: 0; white-space: normal; }
  .account-copy span { display: none; }
  .account-copy b { max-width: 96px; font-size: 12px; }
  .account-logout { min-width: 44px; }
  .task-status-strip { grid-auto-columns: minmax(108px,1fr); overflow-x: auto; padding-bottom: 4px; }
  .timeline-scroll-note { margin: 0; padding: 8px 16px 2px; display: block; color: var(--text-muted); font-size: 12px; }
  .load-cards { grid-template-columns: 1fr; }
  .designer-center-grid { grid-template-columns: 1fr; }
  .frozen-designer-toggle { width: 100%; margin-left: 0; }
  .cover-shell { width: 60px; }
  .cover { width: 60px; }
  .cover-upload { min-height: 40px; }
  .import-rules-disclosure .import-rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .mobile-nav-menu nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

.tag.historical {
  min-height: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
}
.history-mark { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.history-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.history-summary > div { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
.history-summary b { display: block; color: var(--text); font-size: 24px; line-height: 1; }
.history-summary span { display: block; margin-top: 7px; color: var(--text-muted); font-size: 12px; }
.history-archive-form .check-row { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 10px; border: 1px solid #c8d5f6; border-radius: 9px; background: #f8faff; cursor: pointer; }
.history-archive-form .check-row > input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.history-archive-form .check-row > span { min-width: 0; display: grid; gap: 3px; }
.history-archive-form .check-row b { color: var(--navy); font-size: 11px; }
.history-archive-form .check-row small { color: var(--text-muted); font-size: 9px; line-height: 1.5; }
.password-reset-form .check-row { min-width: 0; padding: 12px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 10px; border: 1px solid #c8d5f6; border-radius: 9px; background: #f8faff; cursor: pointer; }
.password-reset-form .check-row > input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.password-reset-form .check-row > span { min-width: 0; display: grid; gap: 4px; }
.password-reset-form .check-row b { color: var(--navy); font-size: 12px; }
.password-reset-form .check-row small { color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.admin-user-form .check-row { min-width: 0; min-height: 44px; padding: 9px 11px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid #c8d5f6; border-radius: 9px; background: #f8faff; cursor: pointer; }
.admin-user-form .check-row > input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #315bea; }
.admin-user-form .check-row > span { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.admin-user-form .check-row b { flex: 0 0 auto; color: var(--navy); font-size: 12px; line-height: 1.4; }
.admin-user-form .check-row small { min-width: 0; margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.history-record { margin: 0 0 16px; padding: 14px; border: 1px solid #c8d5f6; border-radius: 12px; background: #f4f7ff; }
.history-record > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-record > div:first-child > span { color: #39557f; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.history-record > p { margin: 10px 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.history-record dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 12px; }
.history-record dl > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,.8); }
.history-record dt { color: var(--text-muted); font-size: 11px; }
.history-record dd { margin: 4px 0 0; color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.history-record.pending-review { border-color: #e7d39c; background: #fff9e9; }
.history-record.pending-review > div:first-child > span { color: #8b6414; }

@media (max-width: 800px) {
  .history-summary, .history-record dl { grid-template-columns: 1fr; }
  .history-record > div:first-child { align-items: flex-start; flex-direction: column; }
}

/* Lifecycle is a primary style-maintenance action, not a passive label. */
.lifecycle-entry { min-width: 0; min-height: 40px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe3f2; border-radius: 9px; color: var(--blue); background: #f8faff; white-space: nowrap; }
.lifecycle-entry:hover { border-color: #9eb4f3; background: #eef3ff; }
.lifecycle-entry:focus-visible { outline: 3px solid rgba(49,91,234,.22); outline-offset: 2px; }
.lifecycle-entry small { color: #315bea; font-size: 11px; font-weight: 700; }
.lifecycle-history { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.lifecycle-history > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lifecycle-history h3 { margin: 0; font-size: 13px; }
.lifecycle-history > div > span, .lifecycle-history > p { margin: 0; color: var(--text-muted); font-size: 11px; }
.lifecycle-history ol { margin: 12px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.lifecycle-history li { min-width: 0; display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 9px; }
.lifecycle-history li > i { width: 9px; height: 9px; margin-top: 4px; border: 2px solid #7d9bf0; border-radius: 50%; background: #fff; }
.lifecycle-history li > div { min-width: 0; display: grid; gap: 2px; }
.lifecycle-history li b { font-size: 12px; }
.lifecycle-history li span, .lifecycle-history li small { color: var(--text-muted); font-size: 11px; overflow-wrap: anywhere; }

/* Bilateral task reviews: private to each reviewer, fully visible to managers. */
.star-rating { display: inline-flex; align-items: center; gap: 3px; color: #dfe4ec; font-size: 17px; line-height: 1; white-space: nowrap; }
.rating-star { position: relative; width: 1em; height: 1em; display: inline-block; overflow: hidden; }
.rating-star > span { position: absolute; inset: 0; display: block; color: #dfe4ec; }
.rating-star > i { position: absolute; inset: 0 auto 0 0; display: block; width: 0; overflow: hidden; color: #f4a928; font-style: normal; }
.rating-star.fill-1 > i { width: 10%; }
.rating-star.fill-2 > i { width: 20%; }
.rating-star.fill-3 > i { width: 30%; }
.rating-star.fill-4 > i { width: 40%; }
.rating-star.fill-5 > i { width: 50%; }
.rating-star.fill-6 > i { width: 60%; }
.rating-star.fill-7 > i { width: 70%; }
.rating-star.fill-8 > i { width: 80%; }
.rating-star.fill-9 > i { width: 90%; }
.rating-star.fill-10 > i { width: 100%; }
.star-rating.compact { gap: 2px; font-size: 13px; }
.danger-text { color: var(--red); }

.waiting-mark { color: #9a6500; font-size: 12px; font-weight: 700; }
.completion-checkpoint { margin: 18px 22px 0; padding: 14px; display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.3fr) auto; gap: 12px; align-items: center; border: 1px solid #ead8a9; border-radius: 10px; background: #fffaf0; }
.completion-checkpoint > div { min-width: 0; display: grid; gap: 3px; }
.completion-checkpoint span,.completion-checkpoint small { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.completion-checkpoint b { font-size: 12px; overflow-wrap: anywhere; }
.completion-checkpoint.completed { grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); border-color: #cde8da; background: #f3fbf7; }
.completion-checkpoint.completed p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.completion-waiting-note { justify-self: end; color: #9a6500!important; font-weight: 700; }

/* Designer information is a first-class page, not a transient drawer. */
.designer-information-page { min-width: 0; }
.back-link { width: max-content; margin: 0 0 7px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.designer-information-hero { min-width: 0; margin-bottom: 16px; padding: 16px 18px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid #dce4f4; border-radius: 12px; background: linear-gradient(135deg,#f7f9ff,#fff); }
.designer-information-hero .avatar { width: 48px; height: 48px; }
.designer-information-hero > div { min-width: 0; display: grid; gap: 2px; }
.designer-information-hero span,.designer-information-hero p { margin: 0; color: var(--text-muted); font-size: 11px; }
.designer-information-hero h2 { margin: 0; font-size: 18px; }
.designer-information-hero em { padding: 7px 10px; border-radius: 999px; color: var(--blue); background: #eef3ff; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.designer-information-page.offboard .designer-information-hero { filter: grayscale(.55); }
.designer-information-columns { min-width: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.information-panel { min-width: 0; overflow: hidden; }
.information-panel .panel-title { min-height: 66px; padding: 13px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.information-panel .panel-title > div { min-width: 0; }
.information-panel .panel-title h3 { margin: 0; font-size: 14px; }
.information-panel .panel-title p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.information-panel .panel-title > span { flex: 0 0 auto; color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.information-task-list,.information-review-list { min-width: 0; display: grid; }
.information-task-row { min-width: 0; padding: 11px 14px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.information-task-row:last-child,.information-review-row:last-child { border-bottom: 0; }
.information-task-image { width: 44px; }
.information-task-row > div:nth-child(2),.information-review-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.information-task-row span,.information-task-row small,.information-review-row span,.information-review-row small { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.information-task-row b,.information-review-row b { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.information-task-row > div:last-child { min-width: 98px; display: grid; justify-items: end; gap: 5px; }
.information-review-row { min-width: 0; padding: 11px 14px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.information-review-image { width: 40px; }
.information-review-row > div:nth-child(3) { min-width: 98px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.information-review-row > p { grid-column: 2/-1; margin: -3px 0 2px; color: var(--text-secondary); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.information-style-list { padding: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.information-reviews { margin-top: 16px; }
.information-reviews .profile-review-summary { margin: 12px 14px 0; }
.privacy-state { margin: 14px; padding: 14px; border: 1px dashed #d8e0eb; border-radius: 9px; background: #fafbfc; }
.privacy-state b { font-size: 12px; }
.privacy-state p { margin: 5px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.metric-duration { font-size: clamp(18px,2.1vw,28px)!important; overflow-wrap: anywhere; }

.review-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.review-summary-grid > button,
.review-summary-grid > div { min-height: 104px; padding: 16px 18px; display: block; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fff; box-shadow: 0 3px 18px rgba(34,46,73,.025); text-align: left; }
.review-summary-grid > button:hover { border-color: #bac7eb; transform: translateY(-1px); }
.review-summary-grid > button.selected { border-color: #91a7f6; background: #f8faff; box-shadow: inset 0 0 0 1px #91a7f6; }
.review-summary-grid span { display: block; color: var(--text-secondary); font-size: var(--font-caption); }
.review-summary-grid b { display: block; margin: 4px 0 2px; color: var(--navy); font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.review-summary-grid small { min-height: 18px; display: flex; align-items: center; color: var(--text-muted); font-size: 11px; }
.review-panel { min-width: 0; }
.review-toolbar { align-items: end; }
.review-filters { min-width: 0; display: flex; align-items: end; gap: 10px; }
.review-filters label { min-width: 150px; display: grid; gap: 5px; color: var(--text-secondary); font-size: 11px; }
.review-filters select { width: 100%; min-height: var(--touch-target); padding: 7px 30px 7px 10px; border: 1px solid #dfe4eb; border-radius: 8px; background: #fff; }
.review-list { display: grid; }
.review-row { min-width: 0; min-height: 104px; padding: 13px 16px; display: grid; grid-template-columns: minmax(240px,1.15fr) minmax(200px,.85fr) minmax(260px,1.35fr) minmax(120px,.55fr); gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row.pending { background: #fffdf8; }
.review-task { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 10px; align-items: center; }
.review-style-image { width: 48px; }
.review-task > div { min-width: 0; display: grid; gap: 4px; }
.review-task > div > span { color: var(--text-muted); font-size: 10px; }
.review-task button { width: max-content; max-width: 100%; padding: 0; overflow: hidden; border: 0; color: var(--text); background: transparent; font-size: 13px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.review-task button:hover { color: var(--blue); }
.review-people { min-width: 0; display: flex; align-items: center; gap: 8px; }
.review-people > span { min-width: 0; display: flex; align-items: center; gap: 5px; }
.review-people .avatar { width: 28px; height: 28px; }
.review-people b { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-people > i { flex: 0 0 auto; color: var(--text-muted); font-style: normal; }
.review-content { min-width: 0; display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: 7px; align-items: center; }
.review-content > b { font-size: 12px; font-variant-numeric: tabular-nums; }
.review-content p { grid-column: 1/-1; margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.review-content small { grid-column: 1/-1; color: var(--text-muted); font-size: 10px; }
.review-content .review-pending-copy { grid-column: 1/-1; }
.review-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }

.review-form-parties { padding: 12px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 12px; align-items: center; border: 1px solid #dfe6f2; border-radius: 10px; background: #f7f9ff; }
.review-form-image { width: 58px; }
.review-form-parties > div { min-width: 0; display: grid; gap: 4px; }
.review-form-parties small,.review-form-parties span { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.review-form-parties b { font-size: 14px; }
.review-form-parties b i { padding: 0 5px; color: var(--text-muted); font-style: normal; }
.review-score-preview { min-height: 36px; display: flex; align-items: center; gap: 12px; }
.review-score-preview output { color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.review-score-field input[type="range"] { min-height: 30px; padding: 0; accent-color: #f4a928; box-shadow: none; }
.review-void-summary { padding: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; border: 1px solid #eadfe0; border-radius: 10px; background: #fff8f8; }
.review-void-summary > span { font-weight: 700; }
.review-void-summary > p { grid-column: 1/-1; margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

.task-review-section { margin: 18px 22px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.task-review-heading,.task-review-section.empty-review > div { margin-bottom: 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-review-heading h3,.task-review-section.empty-review h3 { margin: 0; font-size: 13px; }
.task-review-heading p,.task-review-section.empty-review p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.task-review-heading > span,.task-review-section.empty-review > div > span { color: var(--text-secondary); font-size: 10px; white-space: nowrap; }
.task-review-list { display: grid; gap: 8px; }
.task-review-list > article { padding: 11px; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(0,1.3fr) auto; gap: 10px; align-items: center; border: 1px solid #e2e7ef; border-radius: 9px; background: #fafbfc; }
.task-review-parties { min-width: 0; display: flex; align-items: center; gap: 5px; }
.task-review-parties > span { min-width: 0; display: flex; align-items: center; gap: 4px; }
.task-review-parties .avatar { width: 25px; height: 25px; }
.task-review-parties b { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-review-parties > i { color: var(--text-muted); font-style: normal; }
.task-review-copy { min-width: 0; display: grid; gap: 5px; }
.task-review-copy > small { color: var(--text-muted); font-size: 9px; }
.task-review-copy > div { display: flex; align-items: center; gap: 7px; }
.task-review-copy > div > b { font-size: 11px; }
.task-review-copy p { margin: 0; color: var(--text-secondary); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.task-review-action { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.profile-review-section .profile-section-title > div { min-width: 0; display: grid; gap: 2px; }
.profile-review-section .profile-section-title em { color: var(--text); font-size: 12px; font-style: normal; font-weight: 700; }
.profile-review-summary { margin-bottom: 10px; padding: 10px; display: flex; align-items: center; gap: 9px; border-radius: 8px; background: #fff8e8; }
.profile-review-summary > b { font-size: 14px; font-variant-numeric: tabular-nums; }
.profile-review-summary > span { color: var(--text-muted); font-size: 10px; }
.profile-review-list { display: grid; gap: 8px; }
.profile-review-list > article { padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; border: 1px solid #e2e7ef; border-radius: 9px; background: #fff; }
.profile-review-list > article > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.profile-review-list > article > div > span { min-width: 0; display: grid; gap: 2px; }
.profile-review-list > article > div b { font-size: 10px; }
.profile-review-list > article > div small { color: var(--text-muted); font-size: 9px; }
.profile-review-image { width: 34px; }
.profile-review-list > article > p { grid-column: 1/-1; margin: 0; color: var(--text-secondary); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.profile-review-list > article > button { grid-column: 1/-1; justify-self: end; }

@media (max-width: 1180px) {
  .review-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-row { grid-template-columns: minmax(230px,1fr) minmax(190px,.8fr) minmax(220px,1fr); }
  .review-actions { grid-column: 1/-1; justify-content: flex-end; }
  .designer-information-columns { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .review-summary-grid { grid-template-columns: 1fr; }
  .review-toolbar,.review-filters { align-items: stretch; flex-direction: column; }
  .review-filters label,.review-toolbar .search-combobox { width: 100%; }
  .review-row { padding: 14px; grid-template-columns: 1fr; gap: 12px; }
  .review-people { padding-top: 10px; border-top: 1px solid var(--line); }
  .review-actions { justify-content: flex-start; }
  .review-form-parties { grid-template-columns: 48px minmax(0,1fr); }
  .review-form-image { width: 48px; }
  .task-review-list > article { grid-template-columns: 1fr; }
  .task-review-action { justify-content: flex-start; }
  .completion-checkpoint { margin-inline: 14px; grid-template-columns: 1fr; }
  .completion-waiting-note { justify-self: start; }
  .designer-information-hero { grid-template-columns: 44px minmax(0,1fr); }
  .designer-information-hero .avatar { width: 44px; height: 44px; }
  .designer-information-hero em { grid-column: 1/-1; justify-self: start; }
  .information-style-list { grid-template-columns: 1fr; }
  .information-task-row,.information-review-row { grid-template-columns: 40px minmax(0,1fr); align-items: start; }
  .information-task-row > div:last-child,.information-review-row > div:nth-child(3) { grid-column: 2; min-width: 0; justify-items: start; justify-content: flex-start; }
  .information-review-row > p { grid-column: 2; }
}

/* Pagination must keep one predictable row and must never grow from wrapped labels. */
.pager { box-sizing: border-box; width: 100%; height: 64px; min-height: 64px; max-height: 64px; padding: 10px 14px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.import-preview-panel .pager { flex-wrap: nowrap; }
.pager-total { flex: 0 1 auto; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager .pager-page-size { width: auto; min-width: 0; margin-right: auto; flex: 0 0 auto; white-space: nowrap; }
.pager .pager-page-size > span { white-space: nowrap; }
.pager .pager-page-size select { min-width: 76px; height: var(--touch-target); max-height: var(--touch-target); }
.pager-controls { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; overflow: hidden; }
.pager button { box-sizing: border-box; height: var(--touch-target); min-height: var(--touch-target); max-height: var(--touch-target); flex: 0 0 auto; padding: 0 10px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager-page-button { width: var(--touch-target); padding: 0!important; }
.pager-direction { max-width: 78px; }
.pager-direction i { display: none; font-size: 20px; font-style: normal; line-height: 1; }
.pager-ellipsis { width: 22px; flex: 0 0 22px; color: var(--text-muted); text-align: center; }
.pager-position { display: none; min-width: 44px; color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }

@container task-drawer (max-width: 620px) {
  .pager { gap: 7px; padding-inline: 10px; }
  .pager .pager-page-size > span, .pager-page-button, .pager-ellipsis { display: none; }
  .pager .pager-page-size select { min-width: 68px; padding-inline: 7px 25px; }
  .pager-position { display: inline-block; }
  .pager-direction { width: var(--touch-target); padding: 0; }
  .pager-direction span { display: none; }
  .pager-direction i { display: block; }
}

/* Standalone task detail and style maintenance pages */
.standalone-page,
.task-detail-page-panel,
.task-detail-page-body,
.style-edit-data-panel,
.style-edit-cover-panel { min-width: 0; }
.task-detail-heading-status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.task-detail-page-panel,
.style-edit-preview-panel,
.style-edit-data-panel,
.style-edit-cover-panel { overflow: hidden; }
.task-detail-page-panel > .panel-title > span { flex: 0 0 auto; color: var(--text-secondary); font-size: 11px; white-space: nowrap; }
.task-detail-page-body { padding-bottom: 4px; }
.task-detail-page-body > .history-record { margin: 20px 22px 0; }
.task-detail-page .detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.task-detail-page .detail-grid .cancel-reason { grid-column: 1/-1; }

.style-edit-layout { min-width: 0; display: grid; grid-template-columns: minmax(230px,300px) minmax(0,1fr); gap: 16px; align-items: start; }
.style-edit-preview-panel { position: sticky; top: 88px; }
.style-edit-preview { padding: 18px; display: grid; gap: 14px; }
.style-edit-preview .style-editor-image { width: min(100%,220px); justify-self: center; border-radius: 12px; }
.style-edit-preview > div { min-width: 0; display: grid; gap: 4px; text-align: center; }
.style-edit-preview b { color: var(--navy); font-size: 16px; }
.style-edit-preview span { color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.style-edit-preview small { color: var(--text-muted); font-size: 10px; line-height: 1.6; }
.style-edit-cover-compact { border-top: 1px solid var(--line); background: #fafbfc; }
.style-edit-cover-compact > summary { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; }
.style-edit-cover-compact > summary::-webkit-details-marker { display: none; }
.style-edit-cover-compact > summary span { min-width: 0; display: grid; gap: 2px; }
.style-edit-cover-compact > summary b { color: var(--navy); font-size: 12px; }
.style-edit-cover-compact > summary small { color: var(--text-muted); font-size: 9px; }
.style-edit-cover-compact > summary i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--text-secondary); background: #edf1f7; font-style: normal; transition: transform .16s ease; }
.style-edit-cover-compact[open] > summary i { transform: rotate(90deg); }
.compact-cover-body { min-width: 0; padding: 0 14px 14px; display: grid; gap: 8px; }
.compact-cover-switch { width: 100%; min-height: 36px; margin: 0; }
.compact-cover-switch button { min-width: 0; min-height: 36px; padding-inline: 8px; font-size: 10px; }
.compact-cover-form { min-width: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.compact-cover-form .compact-cover-field { min-width: 0; min-height: 50px; margin: 0; padding: 8px 10px; overflow: hidden; }
.compact-cover-form .image-url-field { min-height: auto; }
.compact-cover-form .image-url-field input { min-width: 0; font-size: 10px; }
.compact-cover-form .compact-cover-field > span { font-size: 10px; }
.compact-cover-form .compact-cover-field > small { font-size: 8px; line-height: 1.4; }
.compact-file-input { position: absolute; width: 1px!important; height: 1px!important; min-height: 0!important; padding: 0!important; overflow: hidden; opacity: 0; }
.compact-file-button { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 7px; color: var(--blue)!important; background: #fff; font-weight: 700; }
.compact-cover-form footer { padding: 0; justify-content: flex-end; }
.compact-cover-form footer button { width: auto; min-height: 34px; padding-inline: 14px; }
.compact-cover-form .cover-form-error { font-size: 9px; }
.field-with-action { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.field-with-action input { min-width: 0; }
.field-with-action button { min-height: 38px; white-space: nowrap; }
.sku-correction-field > small { color: var(--text-muted); line-height: 1.5; }
@media (max-width: 560px) {
  .field-with-action { grid-template-columns: minmax(0,1fr); align-items: stretch; }
  .field-with-action button { justify-self: start; }
}
.standalone-form { padding: 18px; }
.standalone-form footer { padding-bottom: 0; }
.style-edit-cover-panel .cover-source-switch { width: max-content; max-width: calc(100% - 36px); margin: 16px 18px 0; }
[data-cover-source-field][hidden] { display: none!important; }

/* Merged business centers: one primary menu entry, two focused internal views. */
.center-subnav {
  width: max-content;
  max-width: 100%;
  margin: -4px 0 16px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2,minmax(128px,1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf1f7;
}
.center-subnav a {
  min-height: var(--touch-target);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.center-subnav a:hover { color: var(--navy); background: rgba(255,255,255,.62); }
.center-subnav a.active,
.center-subnav a[aria-current="page"] { color: var(--blue); background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.center-subnav a:focus-visible { outline: 3px solid rgba(47,91,235,.22); outline-offset: 2px; }

@media (max-width: 1100px) {
  .task-detail-page .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .style-edit-layout { grid-template-columns: minmax(210px,260px) minmax(0,1fr); }
}

@media (max-width: 800px) {
  .task-detail-heading-status { justify-content: flex-start; }
  .task-detail-page .detail-grid { grid-template-columns: 1fr; }
  .task-detail-page-body > .history-record { margin-inline: 14px; }
  .task-detail-page .task-detail-style,
  .task-detail-page .task-review-section,
  .task-detail-page .task-activity-section { margin-inline: 14px; }
  .task-detail-page .detail-grid,
  .task-detail-page .output-path-section { padding-inline: 14px; }
  .style-edit-layout { grid-template-columns: minmax(0,1fr); }
  .style-edit-preview-panel { position: static; }
  .style-edit-preview .style-editor-image { width: min(100%,170px); }
  .standalone-form { padding: 14px; }
  .style-edit-cover-panel .cover-source-switch { max-width: calc(100% - 28px); margin: 14px 14px 0; }
  .center-subnav { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .center-subnav a { min-width: 0; padding-inline: 10px; }
}

@media (max-width: 1180px) {
  .pager { gap: 7px; padding-inline: 10px; flex-wrap: nowrap; justify-content: flex-end; }
  .pager .pager-page-size { order: 0; width: auto; margin: 0 auto 0 0; justify-content: flex-start; }
  .pager .pager-page-size > span, .pager-page-button, .pager-ellipsis { display: none; }
  .pager .pager-page-size select { min-width: 68px; padding-inline: 7px 25px; }
  .pager-position { display: inline-block; }
  .pager-direction { width: var(--touch-target); padding: 0; }
  .pager-direction span { display: none; }
  .pager-direction i { display: block; }
}

/* Accessibility baseline: keep dense operational UI readable and touch friendly. */
:root {
  --muted: #66738a;
}

:is(.page, .task-drawer, .modal, .auth-page) small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px !important;
  line-height: 1.45;
}

.summary-card small,
.topbar .crumb,
.next-task small,
.task-header,
.task-title small,
.task-row > div > small,
.date-line,
.load-overview span,
.load-person span,
.timeline-head,
.timeline-label-copy > span,
.timeline-label-copy > small,
.admin-style-head,
.admin-link-cell > small {
  color: var(--text-muted);
}

.avatar,
.person-mini .avatar {
  font-size: 11px;
}

.style-image,
.person-mini i,
.tag,
.timeline-axis i b,
.timeline-axis i small,
.timeline-axis i em,
.timeline-task-label b,
.done-mark {
  font-size: 11px;
}

.primary,
.outline,
.danger-ghost,
.danger-solid,
.text-btn,
.segmented button,
.timeline-focus-toggle,
.filter-field select,
.page-size-picker,
.page-size-picker select,
.action-menu > summary,
.compact-cover-switch,
.compact-cover-switch button,
.compact-file-button,
.compact-cover-form footer button,
.field-with-action button,
.account-logout {
  min-height: var(--touch-target);
}

.search {
  height: var(--touch-target);
  min-height: var(--touch-target);
}

.compact-cover-form .image-url-field input {
  min-height: var(--touch-target);
  font-size: 12px;
}

.compact-cover-form .compact-cover-field > span,
.compact-cover-form .cover-form-error,
.compact-cover-switch button {
  font-size: 12px;
}

@media (max-width: 800px) {
  .primary,
  .outline,
  .danger-ghost,
  .danger-solid,
  .text-btn,
  .segmented button,
  .timeline-focus-toggle,
  .filter-field select,
  .page-size-picker,
  .page-size-picker select,
  .action-menu > summary,
  .compact-cover-switch,
  .compact-cover-switch button,
  .compact-file-button,
  .compact-cover-form footer button,
  .field-with-action button,
  .account-logout,
  .search {
    min-height: 44px;
  }
}
/* Task data governance and audit */
.task-detail-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}
.detail-grid .detail-scope{grid-column:1/-1;min-width:0}
.detail-grid .detail-scope b{white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600}
.handoff-options{display:flex;flex-wrap:wrap;gap:10px}
.handoff-options label,.checkbox-line{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid var(--line,#dfe5ee);border-radius:10px}
.output-path-row.is-voided{opacity:.62;background:#f6f7f9}
.output-record-actions{display:flex;gap:6px;align-items:center}

@media (max-width: 600px) {
  .timeline-task-preview { padding: 14px 16px 18px; }
  .timeline-preview-hero { grid-template-columns: 54px minmax(0,1fr); padding: 11px; }
  .timeline-preview-image { width: 54px; }
  .timeline-preview-grid { grid-template-columns: minmax(0,1fr); }
  .timeline-preview-grid .timeline-preview-scope { grid-column: 1; }
  .timeline-preview-actions { align-items: stretch; flex-direction: column; }
  .timeline-preview-actions > div { display: grid; grid-template-columns: 1fr; }
  .timeline-preview-actions button { width: 100%; }
}
.task-activity-section{min-width:0;margin:20px 22px 0;border-top:1px solid var(--line,#e3e8ef);padding-top:18px}
.task-activity-section ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.task-activity-section li{display:grid;grid-template-columns:150px 100px minmax(0,1fr);gap:12px;align-items:start;padding:11px 12px;background:#f7f9fc;border-radius:10px}
.task-activity-section time,.task-activity-section span{color:#66758d;font-size:13px;overflow-wrap:anywhere}
.audit-filter-grid{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr 1fr auto;gap:12px;align-items:end;padding:18px}
.audit-filter-grid label{display:grid;gap:6px;color:#66758d;font-size:13px;min-width:0}
.audit-table{border-top:1px solid #e5e9f0}
.audit-row{display:grid;grid-template-columns:160px 120px 180px minmax(180px,1fr) 90px;gap:12px;align-items:center;padding:13px 18px;border-bottom:1px solid #edf0f4;min-height:52px}
details.audit-row{display:block;padding:0}
details.audit-row summary{display:grid;grid-template-columns:160px 120px 180px minmax(180px,1fr) 90px;gap:12px;align-items:center;padding:13px 18px;cursor:pointer;list-style:none}
details.audit-row pre{margin:0;padding:14px 18px;background:#f7f9fc;white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px}
.audit-head{font-weight:700;background:#f7f9fc;color:#5f6f86}
.audit-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding:16px 18px;flex-wrap:wrap}
.audit-pager label{display:flex;align-items:center;gap:8px}.audit-pager select{height:40px}
.audit-loading,.inline-error{padding:28px;text-align:center}.inline-error{color:#bd332b}
.button-link{display:inline-flex;align-items:center;text-decoration:none}
@media(max-width:1100px){.audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filter-grid button{min-height:44px}.audit-head{display:none}details.audit-row summary{grid-template-columns:1fr 1fr}details.audit-row summary em{text-align:right}.task-activity-section li{grid-template-columns:1fr}}
@media(max-width:680px){.audit-filter-grid{grid-template-columns:1fr}.audit-pager{justify-content:flex-start}details.audit-row summary{grid-template-columns:1fr}.output-record-actions{width:100%}}
