@charset "UTF-8";

:root {
  --red: #f6322f;
  --red-soft: #fff0ef;
  --ink: #191b1f;
  --muted: #68707a;
  --line: #e8ebef;
  --bg: #f4f6f8;
  --green: #11834b;
  font-family: "Segoe UI", "Be Vietnam Pro", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", "Be Vietnam Pro", "Noto Sans", Arial, sans-serif; font-weight: 600; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: #fff; border-right: 1px solid var(--line); padding: 22px 18px; display: flex; flex-direction: column; gap: 26px; }
.brand img { width: 92px; display: block; margin: 0 auto 18px; }
.nav { display: grid; gap: 8px; }
.nav-item { min-height: 42px; text-align: left; padding: 0 16px; border-radius: 8px; background: transparent; color: #3f444a; font-weight: 800; }
.nav-item.active { background: var(--red-soft); color: #dd2e2a; }
.sidebar-note { margin-top: auto; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 8px; color: var(--muted); }
.sidebar-note strong { color: var(--ink); }
.shell { margin-left: 248px; min-height: 100vh; }
.topbar { height: 76px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.date-pill { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: var(--muted); font-weight: 700; }
.calendar-dot { width: 13px; height: 13px; border: 2px solid #16181b; display: inline-block; border-radius: 3px; margin-left: 14px; vertical-align: -2px; }
.userbox { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.userbox span:nth-child(2) { display: grid; line-height: 1.15; }
.userbox small { color: var(--muted); }
.logout, .ghost-btn, .danger-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font-weight: 800; color: #333; }
.danger-btn { border-color: #ffd6d4; background: var(--red-soft); color: var(--red); }
.section { display: none; padding: 28px; }
.section.active { display: block; }
.page-title { margin-bottom: 20px; }
.page-title p, .panel-label { margin: 0; color: #6d737c; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.page-title h1 { margin: 6px 0 4px; font-size: 30px; line-height: 1.18; letter-spacing: 0; font-weight: 800; }
.page-title strong { color: var(--green); font-size: 13px; }
.compact h1 { font-size: 26px; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr 1.15fr 0.45fr; gap: 18px; }
.hero-panel, .leader-panel, .quick-panel, .metric-row article, .progress-panel, .table-section, .ops-panel, .import-summary, .tag-panel, .footage-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(22, 29, 38, .04); }
.hero-panel { min-height: 250px; display: flex; align-items: center; gap: 70px; padding: 42px 70px; background: linear-gradient(90deg, #fff3f1 0%, #fff 68%); }
.badge-ring { width: 118px; height: 118px; border: 8px solid var(--red); border-radius: 999px; display: grid; place-items: center; color: var(--red); font-size: 28px; font-weight: 800; background: #fff; box-shadow: 0 16px 34px rgba(246, 50, 47, .16); }
.rank-label { margin-top: 12px; display: block; background: var(--red); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: 12px; text-align: center; }
.hero-copy h2 { font-size: 28px; margin: 0 0 10px; font-weight: 800; line-height: 1.2; }
.hero-copy p { color: var(--muted); margin: 0 0 20px; font-weight: 700; }
.mini-label { display: block; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.hero-copy strong { color: var(--red); font-size: 32px; display: block; margin: 5px 0; }
.hero-copy small { color: var(--green); font-weight: 800; }
.leader-panel, .quick-panel { padding: 22px; }
.top-list { display: grid; gap: 12px; margin-top: 12px; }
.top-row { border: 1px solid var(--line); border-radius: 8px; padding: 13px; display: grid; grid-template-columns: 34px 46px 1fr; align-items: center; gap: 10px; }
.top-row b { width: 28px; height: 28px; background: #f1f3f6; border-radius: 999px; display: grid; place-items: center; color: #6a727c; }
.tag-avatar { width: 42px; height: 42px; border-radius: 999px; border: 4px solid #f1f3f6; display: grid; place-items: center; color: var(--red); font-weight: 800; }
.top-row span:last-child { display: grid; gap: 2px; font-weight: 800; }
.top-row small { color: var(--muted); font-weight: 700; }
.quick-panel p { margin: 12px 0; color: var(--muted); }
.quick-panel span { color: var(--ink); font-weight: 800; }
.primary-btn { background: var(--red); color: #fff; border-radius: 8px; padding: 13px 18px; font-weight: 800; box-shadow: 0 14px 24px rgba(246, 50, 47, .22); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.metric-row article { min-height: 92px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; align-content: center; padding: 18px; }
.metric-icon { grid-row: 1 / 4; width: 48px; height: 48px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.metric-row small { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.metric-row strong { font-size: 22px; }
.metric-row em { color: var(--green); font-style: normal; font-weight: 800; font-size: 13px; }
.progress-panel { display: grid; grid-template-columns: 190px 1fr 190px; gap: 22px; align-items: center; padding: 24px; margin-bottom: 18px; }
.progress-panel strong { color: var(--red); font-size: 30px; display: block; margin-top: 8px; }
.progress-track { height: 10px; background: #e7eaee; border-radius: 999px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: var(--red); border-radius: 999px; width: 0%; transition: width .3s; }
.progress-panel b { text-align: right; }
.table-section { padding: 20px; }
.table-section h2, .footage-panel h2 { margin: 6px 0 18px; font-size: 20px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { color: #6d737c; text-align: left; font-size: 12px; text-transform: uppercase; padding: 14px 10px; border-bottom: 1px solid var(--line); font-weight: 800; }
td { padding: 14px 10px; border-bottom: 1px solid #f0f2f5; font-weight: 650; vertical-align: middle; }
.status, .chip { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 700; background: #f2f4f7; color: #4e5762; margin: 2px; }
.duration-badge { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 800; background: #eef2f7; color: #1f2937; white-space: nowrap; }
.status.completed, .status.unused, .chip.high { background: #eaf8f0; color: var(--green); }
.status.pending, .status.reserved, .chip.medium { background: #fff6e8; color: #a86900; }
.status.error, .status.used, .chip.peak { background: var(--red-soft); color: var(--red); }
.filter-band { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .7fr)) repeat(2, minmax(92px, .45fr)) auto auto auto; gap: 12px; margin-bottom: 16px; }
.filter-band input, .filter-band select, .ops-panel input:not([type="checkbox"]), .ops-panel select, .ops-panel textarea { border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: 0 13px; background: #fff; color: var(--ink); outline: none; width: 100%; }
.ops-panel select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #4b535d 50%), linear-gradient(135deg, #4b535d 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.ops-panel input:focus, .ops-panel select:focus, .ops-panel textarea:focus, .filter-band input:focus, .filter-band select:focus { border-color: rgba(246, 50, 47, .42); box-shadow: 0 0 0 3px rgba(246, 50, 47, .08); }
.ops-panel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
.library-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.tag-panel, .footage-panel { padding: 18px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-cloud button { border-radius: 999px; padding: 8px 11px; background: #f4f6f8; color: #4b535d; font-weight: 800; }
.tag-cloud button.active { background: var(--red); color: #fff; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.panel-actions .ghost-btn { min-height: 38px; padding: 8px 12px; white-space: nowrap; }
.inline-status { color: var(--green); font-size: 12px; font-weight: 800; max-width: 520px; }
.ghost-btn:disabled, .primary-btn:disabled, .danger-btn:disabled { cursor: wait; opacity: .68; }
.thumb-log-panel { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; padding: 14px; margin: 0 0 16px; display: grid; gap: 10px; }
.thumb-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thumb-log-head b { font-size: 13px; color: var(--ink); }
.thumb-log-panel pre { min-height: 120px; max-height: 260px; overflow: auto; margin: 0; font-size: 12px; line-height: 1.55; }
.thumb-log-panel.hidden { display: none; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; color: var(--muted); font-weight: 800; }
.pagination-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagination-actions label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pagination-actions select { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; }
.pagination-actions .ghost-btn { min-height: 38px; padding: 8px 12px; }
.segmented { border: 1px solid var(--line); border-radius: 8px; padding: 3px; display: flex; }
.segmented button { padding: 8px 13px; border-radius: 6px; background: transparent; font-weight: 800; }
.segmented button.active { background: var(--red); color: #fff; }
.action-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 800; }
.row-actions, .card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-actions { display: grid; grid-template-columns: 1fr auto; }
.compact-btn { min-height: 38px; padding: 8px 12px; }
.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.footage-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #26282d, #ef3935); display: grid; place-items: center; color: #fff; font-weight: 800; }
.thumb.has-image { background: #eef1f4; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.table-wrap .thumb { width: 92px; height: 52px; aspect-ratio: auto; border-radius: 6px; }
.footage-card .thumb { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 0; }
.footage-card div:last-child { padding: 12px; display: grid; gap: 8px; }
.ops-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; }
.ops-panel, .import-summary { padding: 22px; display: grid; gap: 14px; }
.ops-panel label { font-weight: 800; color: #4e5660; display: grid; gap: 8px; }
pre { white-space: pre-wrap; background: #f6f8fa; border-radius: 8px; padding: 14px; min-height: 170px; color: #34404d; }
.simple-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 220px; margin: 28px; padding: 24px; }
.hidden { display: none; }
.auth-required .sidebar, .auth-required .shell { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: #f4f6f8; }
.login-screen.hidden { display: none; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(17, 24, 39, .12); padding: 28px; display: grid; gap: 14px; }
.login-card img { width: 98px; justify-self: center; margin-bottom: 8px; }
.login-card h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.login-card label { display: grid; gap: 8px; color: #4e5660; font-weight: 800; }
.login-card input { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 13px; outline: none; }
.login-card input:focus { border-color: rgba(246, 50, 47, .42); box-shadow: 0 0 0 3px rgba(246, 50, 47, .08); }
.login-card .primary-btn { min-height: 50px; }
.login-card p { min-height: 20px; color: var(--red); margin: 0; font-size: 13px; }
dialog { width: min(1180px, calc(100vw - 40px)); max-height: calc(100vh - 40px); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 28px 80px rgba(17, 24, 39, .24); overflow: auto; }
dialog::backdrop { background: rgba(12, 18, 28, .35); }
.close-dialog { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 999px; background: #f4f6f8; font-weight: 800; font-size: 20px; z-index: 2; }
.detail { display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(360px, .85fr); gap: 30px; padding: 32px; align-items: start; }
.detail-video { width: 100%; aspect-ratio: 16/9; align-self: start; background: #101216; border-radius: 8px; object-fit: contain; box-shadow: 0 16px 40px rgba(17, 24, 39, .14); }
.detail-info { min-width: 0; padding-right: 46px; }
.detail h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; }
.detail p { margin: 0 0 20px; font-size: 18px; line-height: 1.45; }
.detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 13px 18px; margin: 18px 0 26px; }
.detail dt { color: var(--muted); font-weight: 800; }
.detail dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.detail .primary-btn, .detail .ghost-btn { min-height: 52px; padding: 14px 20px; font-size: 16px; margin: 0 8px 8px 0; }
.workflow-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); gap: 18px; align-items: start; }
.project-grid { grid-template-columns: repeat(4, minmax(240px, 1fr)); align-items: start; margin-bottom: 18px; }
.project-command-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.project-command-bar .compact-btn { min-height: 42px; padding: 10px 14px; }
.request-alert-section { margin: 0 0 16px; border-color: #ffd6d4; box-shadow: 0 14px 36px rgba(246, 50, 47, .08); }
.request-alert-section table { min-width: 860px; }
.request-alert-section .panel-label { color: var(--red); }
.workflow-grid .ops-panel { align-content: start; gap: 16px; }
.workflow-grid .ops-panel label { gap: 8px; }
.workflow-grid .primary-btn { min-height: 52px; margin-top: 2px; }
.inline-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; min-height: 44px; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--red); }
.workflow-list { display: grid; gap: 10px; }
.workflow-item { border: 1px solid var(--line); border-radius: 8px; padding: 13px; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; }
.workflow-item div { display: grid; gap: 2px; min-width: 0; }
.workflow-item span:not(.status) { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.workflow-item small { color: var(--muted); white-space: nowrap; }
.status.admin, .status.manager { background: var(--red-soft); color: var(--red); }
.status.content { background: #eaf8f0; color: var(--green); }
.status.editor { background: #eef2ff; color: #3c4f9f; }
.status.error { background: var(--red-soft); color: var(--red); }
.employee-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.employee-actions .compact-btn { min-height: 34px; padding: 7px 10px; }
.workflow-table { margin-top: 18px; }
.assignment-chip { gap: 6px; }
.assignment-chip button { width: 20px; height: 20px; border-radius: 999px; background: #fff; color: var(--red); border: 1px solid #ffd6d4; font-size: 12px; line-height: 1; }
.workspace-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.workspace-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.script-list-item { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 13px; display: grid; gap: 4px; }
.script-list-item.active { border-color: var(--red); background: var(--red-soft); }
.script-list-item span, .script-list-item small { color: var(--muted); font-weight: 750; }
.completed-script-list { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.script-list-item.completed { opacity: .62; background: #f6f8fa; }
.script-list-item.completed.active { opacity: 1; }
.script-detail-panel { min-height: 420px; }
.small-dialog { width: min(520px, calc(100vw - 40px)); }
.dialog-form { padding: 28px; display: grid; gap: 14px; }
.dialog-form h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.dialog-form p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; }
.dialog-form label { display: grid; gap: 8px; color: #4e5660; font-weight: 800; }
.dialog-form input, .dialog-form select, .dialog-form textarea { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 13px; background: #fff; outline: none; }
.dialog-form textarea { min-height: 132px; padding: 12px 13px; resize: vertical; line-height: 1.45; }
.dialog-form input:focus, .dialog-form select:focus, .dialog-form textarea:focus { border-color: rgba(246, 50, 47, .42); box-shadow: 0 0 0 3px rgba(246, 50, 47, .08); }
.dialog-form .primary-btn { min-height: 50px; }
.request-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 4px; background: #fbfcfd; }
.request-item span, .request-item small { color: var(--muted); }
.script-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.script-head h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; }
.script-head p { margin: 0; color: var(--muted); }
.script-footage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.script-footage-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: grid; gap: 8px; padding-bottom: 12px; }
.script-footage-card > strong, .script-footage-card > span, .script-footage-card > p, .script-footage-card > textarea, .script-footage-card > .row-actions { margin-left: 12px; margin-right: 12px; }
.script-footage-card > strong { font-size: 16px; overflow-wrap: anywhere; }
.script-footage-card > span { color: var(--muted); }
.script-footage-card > p { min-height: 42px; margin-top: 0; margin-bottom: 0; color: #303741; font-weight: 650; }
.script-footage-card.edited { opacity: .48; background: #f5f7f9; }
.script-footage-card.edited .thumb { filter: grayscale(.45); }
.footage-ordered-name { display: flex; align-items: baseline; gap: 8px; }
.footage-ordered-name b { font-size: 28px; line-height: 1; color: var(--red); }
.footage-ordered-name small { color: var(--muted); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.edit-check { margin: 0 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; }
.edit-check input { width: 18px; height: 18px; accent-color: var(--red); }
.script-footage-card textarea, .comment-box textarea { width: calc(100% - 24px); min-height: 74px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; background: #fbfcfd; }
.comment-box { margin-top: 18px; display: grid; gap: 10px; }
.comment-box textarea { width: 100%; min-height: 92px; }
.comment-box .ghost-btn { justify-self: start; }
.comment-list { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.comment-list p { margin: 0; background: #f7f9fb; border-radius: 8px; padding: 10px 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.settings-card { align-content: start; gap: 14px; }
.settings-card small, .settings-card p { color: var(--muted); margin: 0; font-weight: 750; }
.settings-wide { grid-column: 1 / -1; }
.settings-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-metrics article { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 2px; background: #fbfcfd; }
.settings-metrics strong { font-size: 22px; color: var(--ink); }
.settings-metrics span { color: var(--muted); font-size: 12px; }
.role-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.role-checks .inline-check { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fbfcfd; }
.settings-log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-log-grid h3 { margin: 0 0 8px; font-size: 16px; }
.settings-log-grid p { border-bottom: 1px solid #f0f2f5; padding: 8px 0; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.settings-actions .primary-btn { min-width: 180px; min-height: 52px; }
.profile-panel { max-width: 760px; }
.profile-panel #profileContent { display: grid; gap: 14px; }
.help-text { color: var(--muted); font-size: 13px; margin: 0; font-weight: 750; }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 260px; }
.project-actions .compact-btn:disabled { opacity: .45; cursor: not-allowed; }
.project-detail { padding: 28px; display: grid; gap: 18px; }
.project-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; }
.project-stat-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfd; display: grid; gap: 4px; }
.project-stat-grid strong { font-size: 24px; color: var(--red); }
.project-stat-grid span { color: var(--muted); font-size: 12px; font-weight: 800; }
.project-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-detail-grid section { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; }
.project-detail-grid p { margin: 8px 0 0; color: #303741; }
.project-detail-table { box-shadow: none; }

@media (max-width: 1100px) {
  .sidebar { position: static; width: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .brand img { margin: 0; width: 72px; }
  .nav { display: flex; }
  .sidebar-note { display: none; }
  .shell { margin-left: 0; }
  .dashboard-grid, .metric-row, .library-layout, .ops-grid, .workflow-grid, .project-grid, .workspace-layout, .settings-grid, .settings-log-grid, .project-stat-grid, .project-detail-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 28px; gap: 28px; }
  .filter-band { grid-template-columns: 1fr 1fr; }
  .pagination-bar { align-items: flex-start; flex-direction: column; }
  dialog { width: min(960px, calc(100vw - 28px)); }
  .detail { grid-template-columns: 1fr; padding: 26px; }
  .detail-info { padding-right: 46px; }
}

@media (max-width: 650px) {
  .topbar { height: auto; padding: 14px; display: grid; gap: 12px; }
  .section { padding: 18px; }
  .filter-band { grid-template-columns: 1fr; }
  .hero-panel, .detail { grid-template-columns: 1fr; display: grid; }
  dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .detail { padding: 18px; gap: 18px; }
  .detail-info { padding-right: 0; }
  .detail h2 { font-size: 26px; }
  .detail p { font-size: 16px; }
  .detail dl { grid-template-columns: 110px 1fr; gap: 10px; }
  .progress-panel { grid-template-columns: 1fr; }
  .progress-panel b { text-align: left; }
}
