:root {
  color-scheme: light;
  --canvas: #f6f7f4;
  --paper: #fff;
  --ink: #252b29;
  --secondary: #69736e;
  --muted: #8b948f;
  --line: #e7eae5;
  --soft: #f1f3ef;
  --green: #25765e;
  --green-dark: #1d604c;
  --green-pale: #e7f2ec;
  --coral: #c8654b;
  --coral-pale: #faeee8;
  --blue: #527c9b;
  --blue-pale: #eaf0f4;
  --shadow: 0 20px 60px rgba(28, 39, 33, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 118, 94, .24); outline-offset: 2px; }
.lucide { width: 17px; height: 17px; stroke-width: 1.8; flex: 0 0 auto; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { min-height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 12px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 1px 9px 21px; color: inherit; text-decoration: none; }
.brand-symbol { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green-pale); color: var(--green); border-radius: 9px; }
.brand-symbol .lucide { width: 19px; height: 19px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 720; line-height: 1.2; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px 7px; color: var(--muted); font-size: 10px; }
.workspace-label .lucide { width: 13px; height: 13px; }
.workspace-select { width: 100%; height: 40px; display: flex; align-items: center; gap: 9px; padding: 5px 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: left; font-weight: 590; }
.workspace-select > .lucide { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.workspace-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; background: #e2efe7; color: #285f4b; font-size: 11px; }
.side-nav { margin-top: 23px; }
.category-nav { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.project-nav { margin-top: 17px; padding-top: 9px; border-top: 1px solid var(--line); }
.nav-caption { margin: 0 9px 6px; color: #9ba39e; font-size: 10px; }
.nav-caption-project { margin-top: 0; }
.nav-item { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: none; border: 1px solid transparent; border-radius: 5px; text-align: left; color: #59635e; font-size: 12px; transition: background .16s, color .16s; }
.nav-item + .nav-item { margin-top: 2px; }
.nav-item > .lucide { width: 16px; height: 16px; color: #78827d; }
.nav-item:hover { background: #f6f8f5; color: var(--ink); }
.nav-item.is-active { color: var(--green-dark); background: var(--green-pale); font-weight: 630; }
.nav-item.is-active > .lucide { color: var(--green); }
.nav-count { margin-left: auto; color: #87918b; font-size: 10px; }
.project-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-coral { background: #d18769; }
.dot-green { background: #67a887; }
.dot-blue { background: #7a9ab5; }
.sidebar-bottom { margin-top: auto; }
.nas-status { min-height: 59px; display: flex; align-items: center; gap: 9px; margin: 0 1px 13px; padding: 9px 8px; background: #f8f9f7; border: 1px solid var(--line); border-radius: 5px; }
.nas-status-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--blue); background: var(--blue-pale); }
.nas-status-mark .lucide { width: 15px; height: 15px; }
.nas-status strong, .nas-status small { display: block; }
.nas-status strong { font-size: 10px; font-weight: 640; }
.nas-status small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status-indicator { width: 7px; height: 7px; flex: 0 0 auto; margin-left: auto; border: 1px solid #d5a475; background: #f6d8b8; border-radius: 50%; }
.profile { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 13px 5px 2px; border-top: 1px solid var(--line); }
.profile-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #eee8dd; color: #675a47; font-size: 11px; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 11px; font-weight: 620; }
.profile small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #69736e; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.icon-button .lucide { width: 16px; height: 16px; }
.profile .icon-button { margin-left: auto; border-color: transparent; }
.main { min-width: 0; }
.topbar { height: 58px; position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(18px, 3vw, 42px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.breadcrumbs > .lucide { width: 12px; height: 12px; color: #a6ada8; }
.breadcrumbs strong { color: #454e49; font-weight: 610; }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(29vw, 270px); min-width: 160px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: #f7f8f6; border: 1px solid #e8ebe7; border-radius: 5px; color: #85908a; }
.search-box .lucide { width: 14px; height: 14px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #9ba39e; }
kbd { min-width: 17px; padding: 1px 3px; border: 1px solid #e1e5e0; border-radius: 3px; color: #959d98; text-align: center; font: inherit; font-size: 9px; }
.button { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 610; white-space: nowrap; transition: background .16s, border-color .16s; }
.button .lucide { width: 15px; height: 15px; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: #fff; border-color: #e1e6e0; color: #48524c; }
.button-secondary:hover { background: #f7f9f6; border-color: #cdd6cf; }
.button-download { min-height: 31px; background: var(--ink); color: #fff; }
.button-download:hover { background: #3c4640; }
.page-content { max-width: 1520px; margin: 0 auto; padding: 27px clamp(18px, 3vw, 42px) 15px; }
.page-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: #89928d; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.eyebrow-rule { width: 19px; height: 1px; background: #b6c4ba; }
h1, h2, p { margin-top: 0; }
h1 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 680; }
.page-subtitle { margin: 7px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.collection-strip { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: 13px; margin-top: 20px; }
.collection-project, .collection-note { min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.collection-art { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #f0e0d6; border-radius: 4px; color: #a86047; background: linear-gradient(145deg,#f7eee7,#e7f0e9); }
.collection-art .lucide { width: 17px; height: 17px; }
.collection-project small, .collection-project strong, .collection-note small, .collection-note strong { display: block; }
.collection-project small { margin-bottom: 4px; color: #929a95; font-size: 9px; }
.collection-project strong { color: #424c46; font-size: 11px; font-weight: 620; }
.collection-meta { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #79837d; font-size: 10px; white-space: nowrap; }
.collection-meta .lucide { width: 13px; height: 13px; }
.note-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 4px; background: #f8efe7; color: #ae714e; }
.note-icon .lucide { width: 15px; height: 15px; }
.collection-note strong { font-size: 10px; font-weight: 630; }
.collection-note small { margin-top: 4px; color: #818a84; font-size: 9px; line-height: 1.4; }
.library-toolbar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.filter-group, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.select-wrap { position: relative; height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid #e6eae5; border-radius: 4px; background: #fff; color: #858e89; }
.select-wrap > .lucide { width: 13px; height: 13px; }
.select-wrap > .lucide:last-child { width: 12px; height: 12px; margin-left: -4px; color: #969e99; pointer-events: none; }
.select-wrap select, .sort-select select { height: 100%; appearance: none; border: 0; outline: 0; padding: 0 9px 0 0; background: transparent; color: #505a54; font-size: 10px; cursor: pointer; }
.select-wrap option, .sort-select option { color: var(--ink); }
.toolbar-right { gap: 12px; }
.result-count { color: #8a938d; font-size: 10px; white-space: nowrap; }
.result-count strong { color: #47514b; font-size: 11px; }
.toolbar-divider { width: 1px; height: 17px; background: var(--line); }
.sort-select { height: 28px; display: flex; align-items: center; gap: 1px; color: #939b96; }
.sort-select select { font-size: 10px; }
.sort-select .lucide { width: 13px; height: 13px; pointer-events: none; }
.view-toggle { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.view-button { width: 25px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 3px; color: #929a95; background: transparent; }
.view-button .lucide { width: 14px; height: 14px; }
.view-button.is-active { background: #edf3ee; color: var(--green); }
.selection-bar { min-height: 43px; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 5px 10px; background: #eff4f0; border: 1px solid #dce8df; border-radius: 4px; }
.selection-bar[hidden] { display: none; }
.selection-bar > span { font-size: 10px; }
.selection-bar > span strong { color: var(--green); }
.text-button { padding: 4px; border: 0; background: none; color: #758079; font-size: 10px; }
.selection-bar .button { margin-left: auto; }
.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding: 15px 0 18px; }
.asset-grid.list-layout { grid-template-columns: 1fr; gap: 7px; }
.asset-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e7eae6; border-radius: 5px; transition: border-color .16s, box-shadow .16s; cursor: pointer; }
.asset-card:hover { border-color: #d2dcd4; box-shadow: 0 5px 17px rgba(35, 58, 44, .06); }
.asset-preview { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: #f3f4f1; }
.preview-picture { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.reference-crop { width: 100%; height: 100%; background-color: #f4f4f2; background-image: url("assets/multi-size-reference.png"); background-repeat: no-repeat; }
.package-cover { display: block; width: 100%; height: 100%; object-fit: contain; }
.live-image { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.live-video-poster { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #39443d; color: #e6eee8; }
.video-placeholder .lucide { width: 34px; height: 34px; stroke-width: 1.4; }
.asset-checkbox { position: absolute; z-index: 1; top: 9px; left: 9px; width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.asset-top-actions { position: absolute; z-index: 1; top: 7px; right: 7px; display: flex; gap: 5px; }
.mini-button { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; color: #65716a; background: rgba(255,255,255,.92); border: 1px solid rgba(225,229,224,.92); border-radius: 4px; opacity: .08; transition: opacity .15s, color .15s, background .15s; }
.asset-card:hover .mini-button, .mini-button.is-favorite { opacity: 1; }
.mini-button .lucide { width: 14px; height: 14px; }
.mini-button.is-favorite { color: var(--coral); }
.asset-badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 5px; pointer-events: none; }
.asset-badge { min-height: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid rgba(234,237,233,.9); border-radius: 3px; background: rgba(255,255,255,.94); color: #58625c; font-size: 9px; line-height: 1; white-space: nowrap; }
.asset-badge .lucide { width: 11px; height: 11px; }
.asset-badge.reference { color: #9b654c; background: #fff8f2; border-color: #f2ded1; }
.asset-badge.psd-badge { color: #526c8b; background: #f1f5fb; border-color: #dfe6f0; }
.asset-details { min-height: 74px; display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; }
.asset-copy { min-width: 0; flex: 1; }
.asset-copy h2 { max-width: 100%; overflow: hidden; margin: 0; color: #333b36; font-size: 11px; font-weight: 620; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.asset-copy p { overflow: hidden; margin: 5px 0 0; color: #929a95; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.asset-menu { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: #95a099; }
.asset-menu .lucide { width: 14px; height: 14px; }
.asset-menu span { font-size: 9px; }
.list-layout .asset-card { display: grid; grid-template-columns: 88px minmax(0,1fr); }
.list-layout .asset-preview { min-height: 0; aspect-ratio: 1; }
.list-layout .asset-details { min-height: 88px; align-items: center; padding-right: 15px; }
.list-layout .asset-copy h2 { font-size: 12px; }
.list-layout .asset-copy p { font-size: 10px; }
.list-layout .mini-button { opacity: .65; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #e5e9e4; border-radius: 50%; background: #fff; color: #849189; }
.empty-icon .lucide { width: 20px; height: 20px; }
.empty-state h2 { margin: 0; font-size: 14px; font-weight: 620; }
.empty-state p { max-width: 340px; margin: 8px 0 13px; color: #7f8983; font-size: 11px; line-height: 1.6; }
.page-footer { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: #929b95; font-size: 9px; }
.page-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.page-footer .lucide { width: 12px; height: 12px; }

.modal { width: min(1000px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 36px); padding: 0; overflow: auto; background: #fff; color: var(--ink); border: 0; border-radius: 7px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(30,37,32,.44); backdrop-filter: blur(2px); }
.modal-shell { padding: 20px 22px; }
.modal-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 17px; font-weight: 660; }
.section-kicker { margin: 0; color: #8a938d; font-size: 9px; font-weight: 630; }
.modal-header-actions { display: flex; gap: 7px; }
.detail-modal { width: min(1000px, calc(100% - 32px)); }
.detail-shell { padding: 14px 18px 18px; }
.detail-heading { min-width: 0; display: flex; align-items: center; gap: 10px; }
.detail-type-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: var(--green-pale); color: var(--green); }
.detail-type-icon .lucide { width: 16px; height: 16px; }
.detail-heading h2 { overflow: hidden; max-width: 58vw; margin: 0; font-size: 14px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.detail-heading p { margin: 4px 0 0; color: #8a938d; font-size: 9px; }
.detail-body { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 20px; padding-top: 16px; }
.detail-preview-wrap { min-width: 0; display: grid; gap: 7px; }
.detail-preview-toolbar { min-width: 0; display: flex; align-items: center; gap: 7px; color: #849087; font-size: 9px; }
.detail-preview-toolbar > span { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.detail-preview-toolbar .lucide { width: 12px; height: 12px; color: var(--green); }
.detail-preview-toolbar strong { min-width: 0; overflow: hidden; color: #4b5750; font-size: 9px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.detail-preview { min-width: 0; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: #f2f3f0; border-radius: 4px; }
.detail-preview img { display: block; max-width: 100%; max-height: min(64vh, 650px); object-fit: contain; }
.detail-preview video { display: block; width: 100%; max-height: min(64vh, 650px); background: #1d2520; }
.detail-preview .reference-crop { position: absolute; inset: 0; width: 100%; height: 100%; background-size: 100% 100%; }
.detail-preview .video-placeholder { min-height: 390px; }
.detail-info { padding: 4px 0; }
.detail-info .section-kicker { margin-bottom: 10px; }
.metadata-list { margin: 0; }
.metadata-row { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; padding: 8px 0; border-top: 1px solid #eef0ed; font-size: 10px; line-height: 1.4; }
.metadata-row dt { color: #89928c; }
.metadata-row dd { min-width: 0; overflow-wrap: anywhere; margin: 0; color: #454e48; }
.source-section { margin-top: 12px; }
.source-section:empty { display: none; }
.source-link { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e4e9e4; border-radius: 4px; }
.source-link .lucide { width: 15px; height: 15px; color: var(--blue); }
.source-link span { min-width: 0; overflow: hidden; color: #4d5d52; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-link strong { display: block; margin-bottom: 3px; color: #77827b; font-size: 9px; font-weight: 530; }
.detail-actions { display: grid; gap: 7px; margin-top: 16px; }
.detail-actions .button { width: 100%; }
.nas-hint { display: flex; gap: 6px; margin: 11px 0 0; color: #8a928d; font-size: 9px; line-height: 1.55; }
.nas-hint .lucide { width: 13px; height: 13px; color: #85938a; }
.variant-section { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.variant-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.variant-heading h3 { margin: 0; color: #39433d; font-size: 12px; font-weight: 640; }
.variant-heading p { margin: 4px 0 0; color: #89928c; font-size: 9px; }
.variant-controls { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.variant-selection-status { color: #7c8780; font-size: 9px; white-space: nowrap; }
.variant-select-all { color: var(--green-dark); white-space: nowrap; }
.variant-total { color: #7c8780; font-size: 9px; white-space: nowrap; }
.variant-download-selected { min-height: 28px; padding-inline: 8px; font-size: 9px; }
.variant-download-selected .lucide { width: 13px; height: 13px; }
.detail-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.detail-filters[hidden] { display: none; }
.detail-filters label { display: flex; align-items: center; gap: 6px; color: #68756d; font-size: 10px; }
.detail-filters select { min-width: 105px; height: 30px; padding: 0 24px 0 8px; border: 1px solid #dfe5df; border-radius: 4px; background: #fff; color: #39433d; font: inherit; }
.variant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.variant-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid #e5e9e4; border-radius: 4px; background: #fff; }
.variant-card.is-selected { border-color: #7aa58b; background: #f3f8f4; box-shadow: 0 0 0 1px rgba(37,118,94,.08); }
.variant-card.is-checked { border-color: #9ab9a5; }
.variant-select { width: 100%; min-width: 0; min-height: 75px; display: grid; grid-template-columns: 68px minmax(0,1fr); align-items: center; gap: 8px; padding: 6px 34px 6px 6px; border: 0; background: transparent; text-align: left; }
.variant-thumb { width: 68px; height: 61px; display: grid; place-items: center; overflow: hidden; border-radius: 3px; background: #edf0ec; }
.variant-thumb img, .variant-thumb video { display: block; width: 100%; height: 100%; object-fit: contain; }
.variant-thumb .video-placeholder { min-height: 0; }
.variant-thumb .reference-crop { width: 100%; height: 100%; }
.variant-copy { min-width: 0; display: grid; gap: 4px; }
.variant-copy strong { overflow-wrap: anywhere; color: #404a44; font-size: 9px; font-weight: 630; line-height: 1.35; }
.variant-copy small { overflow-wrap: anywhere; color: #849088; font-size: 8px; line-height: 1.35; }
.variant-download { position: absolute; top: 7px; right: 6px; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid #e5e9e4; border-radius: 4px; background: #fff; color: #68756d; }
.variant-download:hover, .source-download:hover { border-color: #bfd0c3; color: var(--green); background: #f3f8f4; }
.variant-download .lucide { width: 13px; height: 13px; }
.variant-checkbox { position: absolute; z-index: 2; top: 9px; left: 9px; width: 15px; height: 15px; margin: 0; accent-color: var(--green); cursor: pointer; }
.variant-download-disabled { position: absolute; top: 7px; right: 6px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #e5e9e4; border-radius: 4px; background: #f7f8f6; color: #a0a9a2; }
.variant-download-disabled .lucide { width: 13px; height: 13px; }
.variant-psd { position: absolute; right: 7px; bottom: 7px; color: #5d7793; font-size: 8px; font-weight: 620; }
.source-link { min-width: 0; }
.source-link > span { flex: 1; }
.source-download { width: 27px; height: 27px; flex: 0 0 auto; }
.source-download .lucide { width: 13px; height: 13px; }
.upload-modal { width: min(860px, calc(100% - 28px)); max-height: calc(100% - 24px); }
.upload-modal .modal-shell { padding: 17px 20px; }
.drop-zone { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; padding: 12px; border: 1px dashed #b9c8bc; border-radius: 5px; background: #f8faf7; text-align: center; cursor: pointer; transition: background .15s,border-color .15s; }
.drop-zone.is-over { border-color: var(--green); background: #eff7f1; }
.drop-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); background: var(--green-pale); border-radius: 50%; }
.drop-icon .lucide { width: 15px; height: 15px; }
.drop-zone strong { color: #414a45; font-size: 10px; font-weight: 600; }
.drop-zone small { color: #8a948d; font-size: 9px; }
.drop-select { min-height: 28px; padding-inline: 9px; font-size: 9px; }
.drop-select .lucide { width: 13px; height: 13px; }
.drop-tip { color: #939c96; font-size: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; margin-top: 16px; }
.upload-meta-grid { gap: 10px 13px; margin-top: 13px; }
.form-field { min-width: 0; display: grid; gap: 6px; color: #535e57; font-size: 10px; font-weight: 580; }
.form-field > input, .form-field > select, .form-field > textarea { width: 100%; min-width: 0; min-height: 35px; padding: 7px 9px; border: 1px solid #e1e6e0; border-radius: 4px; outline: none; background: #fff; color: #37413a; font-size: 10px; }
.form-field > input::placeholder, .form-field > textarea::placeholder { color: #a0a8a2; }
.form-field > input[type=file] { padding: 7px; }
.form-field > textarea { resize: vertical; line-height: 1.5; }
.form-field > small { color: #8b948e; font-size: 9px; font-weight: 400; line-height: 1.45; }
.upload-queue-section { margin-top: 15px; border-top: 1px solid var(--line); }
.upload-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0 8px; }
.upload-queue-heading > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.upload-queue-heading strong { color: #39433d; font-size: 11px; font-weight: 640; }
.upload-queue-heading span { color: #929b95; font-size: 9px; }
.upload-queue-heading .text-button { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 0; background: transparent; color: var(--green); font-size: 9px; white-space: nowrap; }
.upload-queue-heading .text-button .lucide { width: 13px; height: 13px; }
.tag-create-inline { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 8px; padding: 8px; border: 1px solid #e4e9e3; border-radius: 4px; background: #f8faf7; }
.tag-create-inline label { min-width: 0; display: grid; flex: 1; gap: 4px; color: #7e8981; font-size: 8px; }
.tag-create-inline input { width: 100%; min-width: 0; height: 30px; padding: 5px 8px; border: 1px solid #e1e6e0; border-radius: 3px; background: #fff; color: #37413a; font-size: 9px; }
.tag-create-inline .button { min-height: 30px; font-size: 9px; }
.tag-create-inline .icon-button { width: 30px; height: 30px; }
.upload-queue { max-height: min(34vh,330px); overflow: auto; border: 1px solid #e7ebe6; border-radius: 4px; background: #fafbf9; }
.upload-queue-empty { min-height: 58px; display: grid; place-items: center; padding: 12px; color: #939c96; font-size: 9px; text-align: center; }
.upload-file-row { min-width: 0; padding: 10px; background: #fff; }
.upload-file-row + .upload-file-row { border-top: 1px solid #edf0ec; }
.upload-file-top { min-width: 0; display: flex; align-items: center; gap: 8px; }
.upload-file-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: #eef3ef; color: #648270; }
.upload-file-icon .lucide { width: 14px; height: 14px; }
.upload-file-icon img, .upload-file-icon video { display: block; width: 100%; height: 100%; object-fit: cover; background: #edf0ec; }
.upload-file-icon video { object-position: center; }
.upload-file-copy { min-width: 0; display: grid; gap: 3px; }
.upload-file-copy strong { overflow: hidden; color: #465149; font-size: 9px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-copy small { color: #8e9891; font-size: 8px; }
.upload-remove { width: 26px; height: 26px; margin-left: auto; }
.upload-remove .lucide { width: 13px; height: 13px; }
.upload-file-fields { display: grid; grid-template-columns: minmax(115px,1.2fr) minmax(120px,1.2fr) minmax(76px,.55fr) minmax(76px,.55fr); gap: 8px; margin: 9px 0 7px 35px; }
.upload-file-fields label { min-width: 0; display: grid; gap: 4px; color: #818c84; font-size: 8px; }
.upload-file-fields select, .upload-file-fields input { width: 100%; min-width: 0; height: 29px; padding: 4px 7px; border: 1px solid #e3e8e2; border-radius: 3px; background: #fff; color: #455149; font-size: 9px; }
.upload-name-preview { min-width: 0; display: flex; gap: 7px; margin-left: 35px; align-items: baseline; }
.upload-name-preview > span { flex: 0 0 auto; color: #9aa39c; font-size: 8px; }
.upload-name-preview code { min-width: 0; overflow-wrap: anywhere; color: #587364; font: 8px/1.45 "SFMono-Regular", Consolas, monospace; }
.project-name-field { margin-top: 12px; }
.full-field { grid-column: 1/-1; }
.form-notice { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 9px 10px; border: 1px solid #ecede8; border-radius: 4px; background: #f8f9f6; color: #76817a; font-size: 9px; line-height: 1.5; }
.form-notice .lucide { width: 14px; height: 14px; color: #778b7c; }
.modal-footer { display: flex; justify-content: flex-end; gap: 7px; margin-top: 16px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 18px; max-width: min(380px,calc(100% - 32px)); padding: 10px 13px; border-radius: 5px; background: #27352d; color: #fff; box-shadow: 0 7px 24px rgba(20,30,23,.2); font-size: 11px; line-height: 1.45; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1460px) {
  .asset-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
}
@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .collection-strip { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .collection-project, .collection-note { min-height: 54px; }
  .library-toolbar { flex-wrap: wrap; padding: 10px 0; }
  .toolbar-left { max-width: 100%; overflow-x: auto; }
  .toolbar-right { margin-left: auto; }
  .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { position: static; min-height: 0; padding: 10px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 3px 9px; }
  .brand-symbol { width: 30px; height: 30px; }
  .workspace-label, .workspace-select, .nav-caption, .sidebar-bottom, .project-nav { display: none; }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 8px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .category-nav { display: flex; gap: 4px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 9px; border-top: 0; scrollbar-width: none; }
  .category-nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; min-width: max-content; min-height: 33px; gap: 6px; padding: 6px 9px; font-size: 10px; }
  .nav-item > .lucide { width: 14px; height: 14px; }
  .nav-count { margin-left: 1px; }
  .topbar { height: 51px; gap: 7px; padding: 0 13px; }
  .breadcrumbs { gap: 5px; font-size: 10px; }
  .breadcrumbs > span { display: none; }
  .search-box { width: min(40vw,190px); min-width: 105px; height: 32px; }
  .search-box input { font-size: 10px; }
  .search-box kbd { display: none; }
  .topbar-tools { gap: 6px; }
  .upload-trigger { width: 34px; min-width: 34px; height: 32px; min-height: 32px; padding: 0; }
  .upload-trigger span { display: none; }
  .page-content { padding: 19px 13px 12px; }
  .page-heading { min-height: 56px; align-items: flex-end; }
  .eyebrow { margin-bottom: 5px; font-size: 8px; }
  h1 { font-size: 20px; }
  .page-subtitle { max-width: 280px; margin-top: 5px; font-size: 10px; }
  .page-heading > .button { min-height: 31px; padding: 0 8px; font-size: 10px; }
  .collection-strip { margin-top: 14px; }
  .collection-project, .collection-note { min-height: 49px; padding: 7px 9px; gap: 8px; }
  .collection-art { width: 33px; height: 33px; }
  .collection-meta { font-size: 9px; }
  .library-toolbar { gap: 8px; margin-top: 13px; padding: 8px 0; }
  .toolbar-left { width: 100%; }
  .filter-group { gap: 5px; }
  .select-wrap { height: 29px; padding: 0 5px; gap: 4px; }
  .select-wrap select { max-width: 83px; font-size: 9px; }
  .filter-group { width: max-content; flex-wrap: nowrap; }
  .toolbar-right { width: 100%; justify-content: space-between; gap: 8px; }
  .sort-select { margin-left: auto; }
  .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 10px; }
  .asset-preview { aspect-ratio: 1; }
  .asset-details { min-height: 65px; gap: 4px; padding: 8px; }
  .asset-copy h2 { font-size: 10px; }
  .asset-copy p { font-size: 8px; }
  .asset-menu span { display: none; }
  .asset-badge { min-height: 18px; padding: 0 4px; font-size: 8px; }
  .asset-checkbox { top: 6px; left: 6px; width: 16px; height: 16px; }
  .asset-top-actions { top: 5px; right: 5px; }
  .mini-button { width: 24px; height: 24px; opacity: 1; }
  .list-layout .asset-card { grid-template-columns: 68px minmax(0,1fr); }
  .list-layout .asset-preview { min-height: 0; aspect-ratio: 1; }
  .list-layout .asset-details { min-height: 68px; }
  .list-layout .asset-details { padding: 8px; }
  .list-layout .asset-copy h2 { font-size: 10px; }
  .list-layout .asset-copy p { font-size: 8px; }
  .page-footer { font-size: 8px; }
  .detail-body { grid-template-columns: 1fr; gap: 13px; }
  .detail-preview { min-height: 230px; max-height: 45vh; }
  .detail-preview .video-placeholder { min-height: 230px; }
  .detail-preview img, .detail-preview video { max-height: 45vh; }
  .detail-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .detail-info > .section-kicker, .metadata-list { grid-column: 1/-1; }
  .source-section { grid-column: 1/-1; }
  .detail-actions { align-content: start; margin-top: 10px; }
  .nas-hint { align-self: start; margin-top: 10px; }
  .variant-heading { align-items: flex-start; }
  .variant-controls { flex-wrap: wrap; gap: 5px 7px; }
  .variant-selection-status { order: 3; width: 100%; }
  .variant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .variant-select { min-height: 68px; grid-template-columns: 52px minmax(0,1fr); gap: 6px; padding: 5px 30px 5px 5px; }
  .variant-thumb { width: 52px; height: 56px; }
  .variant-download { width: 23px; height: 23px; top: 5px; right: 5px; }
  .variant-checkbox { top: 7px; left: 7px; width: 14px; height: 14px; }
  .variant-psd { right: 6px; bottom: 5px; }
  .detail-shell { padding: 11px 12px 14px; }
  .detail-heading h2 { max-width: 55vw; }
}
@media (max-width: 390px) {
  .page-heading > .button span { display: none; }
  .page-heading > .button { width: 32px; padding: 0; }
  .collection-project strong { max-width: 160px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .collection-meta { font-size: 8px; }
  .filter-group { gap: 4px; }
  .select-wrap > .lucide:first-child { display: none; }
  .select-wrap select { max-width: 76px; padding-right: 7px; font-size: 8px; }
  .result-count { font-size: 9px; }
  .toolbar-divider { display: none; }
  .view-button { width: 23px; }
}

.task-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 19px; border-block: 1px solid var(--line); }
.task-stat { min-height: 59px; display: flex; align-items: baseline; gap: 8px; padding: 13px 16px; }
.task-stat + .task-stat { border-left: 1px solid var(--line); }
.task-stat strong { color: #303a34; font-size: 20px; font-weight: 650; line-height: 1; }
.task-stat span { color: #758078; font-size: 10px; }
.task-stat-open strong { color: #a86342; }
.task-stat-doing strong { color: var(--blue); }
.task-stat-review strong { color: #527b80; }
.task-stat-changes strong { color: #ad6848; }
.task-stat-done strong { color: var(--green); }
.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.task-filters { min-width: 0; display: flex; align-items: center; gap: 15px; overflow-x: auto; scrollbar-width: none; }
.task-filters::-webkit-scrollbar { display: none; }
.task-filter { min-height: 39px; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 2px; border: 0; background: transparent; color: #7b857e; font-size: 10px; white-space: nowrap; }
.task-filter::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: transparent; }
.task-filter.is-active { color: var(--green-dark); font-weight: 650; }
.task-filter.is-active::after { background: var(--green); }
.task-filter span { min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: #f0f2ef; color: #7f8982; font-size: 9px; }
.task-filter.is-active span { background: var(--green-pale); color: var(--green-dark); }
.task-filter-controls { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.task-filter-controls .select-wrap { min-width: 0; }
.task-project-filter select { max-width: 145px; }
.task-category-filter { flex: 0 0 auto; }
.task-category-filter select { max-width: 110px; }
.task-sort-select { flex: 0 0 auto; }
.task-sort-select select { max-width: 96px; }
.task-list { border-top: 0; }
.task-row { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; transition: background .14s; }
.task-row:hover { background: #fafbf9; }
.task-row:focus-visible { position: relative; outline: 2px solid rgba(37,118,94,.36); outline-offset: -2px; }
.task-row-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; }
.task-row-icon .lucide { width: 16px; height: 16px; }
.task-icon-store { color: #54856b; background: #edf5ef; border-color: #e0ece3; }
.task-icon-brand { color: #a5674d; background: #f8f0e9; border-color: #f0e3d7; }
.task-icon-social { color: #527c9b; background: #edf3f6; border-color: #e0e9ef; }
.task-icon-ads { color: #b35e49; background: #faefeb; border-color: #f2e2dc; }
.task-icon-domestic { color: #987b38; background: #f7f3e7; border-color: #eee7d2; }
.task-icon-overseas { color: #397b78; background: #eaf4f2; border-color: #dcece8; }
.task-row-main { min-width: 0; }
.task-row-title-line { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.task-row-title-line h2 { min-width: 0; overflow: hidden; margin: 0; color: #303a34; font-size: 12px; font-weight: 630; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.demo-label, .priority-label { display: inline-flex; align-items: center; min-height: 17px; padding: 0 5px; border-radius: 3px; font-size: 8px; font-weight: 570; white-space: nowrap; }
.demo-label { background: #f0f2ef; color: #77817a; }
.priority-label { background: var(--coral-pale); color: #a5553f; }
.task-row-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 5px 0 0; color: #858f88; font-size: 9px; line-height: 1.4; }
.task-row-meta span + span::before { margin-right: 12px; color: #c3c9c4; content: "·"; }
.task-row-meta span:first-child { color: #536b5f; font-weight: 600; }
.task-row-specs { overflow: hidden; margin: 5px 0 0; color: #747e77; font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.task-row-end { min-width: 95px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-status { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; padding: 0 7px; border-radius: 3px; font-size: 9px; white-space: nowrap; }
.task-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { color: #a36341; background: #fbf2ec; }
.status-doing { color: #4b7894; background: #eef4f7; }
.status-review { color: #527b80; background: #edf5f4; }
.status-changes { color: #a45f3f; background: #fbf1ea; }
.status-done { color: #34765b; background: #eaf4ed; }
.status-delivered { color: #527b80; background: #edf5f4; }
.task-delivery-total { display: inline-flex; align-items: center; gap: 4px; color: #909a93; font-size: 9px; white-space: nowrap; }
.task-delivery-total .lucide { width: 13px; height: 13px; }
.task-row-arrow { display: none; color: #a1aaa4; }
.task-view .empty-state { min-height: 230px; }
.task-view .page-footer { margin-top: 15px; }
.task-detail-modal { width: min(790px,calc(100% - 32px)); }
.task-detail-shell { padding: 19px 21px 16px; }
.task-detail-title { min-width: 0; }
.task-detail-title h2 { max-width: min(65vw,620px); overflow-wrap: anywhere; }
.task-detail-title > p:last-child { margin: 5px 0 0; color: #89928c; font-size: 9px; }
.task-detail-content { max-height: min(65vh,680px); overflow-y: auto; }
.task-progress { padding: 15px 0 13px; border-bottom: 1px solid var(--line); }
.task-stepper { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.task-step { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #929b95; font-size: 9px; text-align: center; }
.task-step:not(:last-child)::after { position: absolute; z-index: 0; top: 11px; left: calc(50% + 13px); width: calc(100% - 26px); height: 1px; content: ""; background: #dfe5df; }
.task-step.is-done:not(:last-child)::after { background: #7da38e; }
.task-step-mark { width: 23px; height: 23px; z-index: 1; display: grid; place-items: center; border: 1px solid #dfe5df; border-radius: 50%; background: #fff; color: #849087; font-size: 9px; }
.task-step-mark .lucide { width: 12px; height: 12px; }
.task-step.is-done, .task-step.is-current { color: #4f695b; }
.task-step.is-done .task-step-mark { border-color: #7da38e; background: #edf5ef; color: #47725b; }
.task-step.is-current .task-step-mark { border-color: #49785e; background: #49785e; color: #fff; }
.task-step-copy { margin: 10px 0 0; color: #717d75; font-size: 10px; line-height: 1.5; }
.task-brief { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.task-brief-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-brief-heading h3, .task-deliveries-heading h3 { margin: 0; color: #37413b; font-size: 12px; font-weight: 640; }
.task-brief > p { margin: 9px 0 0; color: #58635c; font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.task-brief > a { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--green-dark); font-size: 10px; text-decoration: none; }
.task-brief > a:hover { text-decoration: underline; }
.task-brief > a .lucide { width: 13px; height: 13px; }
.task-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 18px; margin: 15px 0 0; }
.task-fact { min-width: 0; }
.task-fact dt { margin-bottom: 4px; color: #929b95; font-size: 9px; }
.task-fact dd { overflow-wrap: anywhere; margin: 0; color: #4a554e; font-size: 10px; line-height: 1.45; }
.task-deliveries { padding-top: 14px; }
.task-deliveries-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.task-deliveries-heading p { margin: 4px 0 0; color: #8a948d; font-size: 9px; line-height: 1.5; }
.task-deliveries-heading > span { color: #79847d; font-size: 9px; white-space: nowrap; }
.task-delivery-list { display: grid; gap: 7px; }
.task-delivery-card { min-width: 0; display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px; border: 1px solid #e5e9e4; border-radius: 4px; background: #fff; }
.task-delivery-cover { width: 68px; height: 58px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 3px; background: #f0f2ef; }
.task-delivery-cover img, .task-delivery-cover video { width: 100%; height: 100%; object-fit: contain; }
.task-delivery-cover .reference-crop { width: 100%; height: 100%; }
.task-delivery-copy { min-width: 0; display: grid; gap: 4px; }
.task-delivery-copy strong { overflow: hidden; color: #37413b; font-size: 10px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.task-delivery-copy span, .task-delivery-copy small { overflow: hidden; color: #808b83; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.task-delivery-copy small { color: #99a19b; }
.task-delivery-actions { display: flex; gap: 5px; }
.task-delivery-actions .icon-button { width: 30px; height: 30px; }
.task-delivery-actions .lucide { width: 14px; height: 14px; }
.task-no-deliveries { min-height: 95px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #dce2dc; border-radius: 4px; color: #7e8981; }
.task-no-deliveries > .lucide { width: 17px; height: 17px; color: #94a098; }
.task-no-deliveries span { font-size: 10px; }
.task-no-deliveries small { color: #9aa39d; font-size: 9px; }
.task-feedback-form { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid #e2e8e2; border-radius: 4px; background: #fafbf9; }
.task-feedback-form textarea { min-height: 72px; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 7px; }
.task-activity { padding: 15px 0 7px; border-top: 1px solid var(--line); }
.task-activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.task-activity-heading h3 { margin: 0; color: #37413b; font-size: 12px; font-weight: 640; }
.task-activity-heading > span { color: #929b95; font-size: 9px; text-align: right; }
.task-activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.task-activity-item { min-width: 0; position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding-bottom: 13px; }
.task-activity-item:not(:last-child)::before { position: absolute; top: 23px; bottom: 0; left: 11px; width: 1px; content: ""; background: #e1e6e1; }
.activity-mark { width: 22px; height: 22px; z-index: 1; display: grid; place-items: center; border: 1px solid #e2e8e2; border-radius: 50%; background: #fff; color: #6a8977; }
.activity-mark .lucide { width: 12px; height: 12px; }
.activity-feedback .activity-mark { color: #a56b4a; }
.activity-complete .activity-mark { color: #34765b; }
.activity-copy { min-width: 0; padding-top: 2px; }
.activity-copy > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.activity-copy strong { min-width: 0; overflow-wrap: anywhere; color: #46524a; font-size: 10px; font-weight: 620; }
.activity-copy time, .activity-copy small { flex: 0 0 auto; color: #98a19b; font-size: 8px; }
.activity-copy p { margin: 5px 0 4px; color: #626d65; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 13px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .task-summary { margin-top: 14px; }
  .task-stat { min-height: 51px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 8px 7px; }
  .task-stat strong { font-size: 16px; }
  .task-stat span { font-size: 8px; white-space: nowrap; }
  .task-toolbar { align-items: stretch; flex-direction: column; gap: 6px; margin-top: 8px; padding-bottom: 7px; }
  .task-filters { gap: 13px; }
  .task-filter { min-height: 35px; }
  .task-filter-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .task-project-filter { max-width: 100%; }
  .task-project-filter select { max-width: 150px; }
  .task-category-filter { width: max-content; max-width: 100%; }
  .task-sort-select { margin-left: auto; }
  .task-row { grid-template-columns: 30px minmax(0,1fr); gap: 8px; padding: 11px 4px; }
  .task-row-icon { width: 29px; height: 29px; }
  .task-row-icon .lucide { width: 14px; height: 14px; }
  .task-row-title-line h2 { font-size: 11px; }
  .task-row-meta { gap: 4px 8px; font-size: 8px; }
  .task-row-meta span + span::before { margin-right: 8px; }
  .task-row-specs { max-width: 100%; margin-top: 4px; font-size: 8px; }
  .task-row-end { grid-column: 2; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .task-row-arrow { display: block; width: 14px; height: 14px; margin-left: auto; }
  .task-detail-shell { padding: 12px; }
  .task-detail-content { max-height: 58vh; }
  .task-step { font-size: 8px; }
  .task-step-copy { font-size: 9px; }
  .task-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
  .task-delivery-card { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; padding: 6px; }
  .task-delivery-cover { width: 54px; height: 50px; }
  .task-delivery-actions { flex-direction: column; gap: 3px; }
  .task-delivery-actions .icon-button { width: 26px; height: 26px; }
  .task-no-deliveries { padding: 10px; text-align: center; }
  .task-detail-actions .button { flex: 1 1 105px; }
  .feedback-actions .button { flex: 1; }
  .task-activity-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 720px) {
  .upload-modal { width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .upload-modal .modal-shell { padding: 12px; }
  .upload-meta-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .upload-queue { max-height: 36vh; }
  .upload-file-row { padding: 8px; }
  .upload-file-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-left: 0; }
  .upload-name-preview { align-items: flex-start; flex-direction: column; gap: 3px; margin-left: 0; }
  .upload-name-preview code { width: 100%; }
  .upload-queue-heading > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .upload-modal .form-notice { margin-top: 10px; }
  .upload-modal .modal-footer { position: sticky; bottom: -12px; padding: 9px 0 0; background: #fff; }
}
