/* SeaGround workspace. All assets and fonts remain local to the installation. */
:root {
  color-scheme: light;
  --brand: #b31f28;
  --brand-hover: #961a22;
  --brand-soft: #fcf0f0;
  --brand-border: #f1d7d9;
  --ink: #22252c;
  --text: #414651;
  --muted: #717784;
  --line: #e8e9ee;
  --canvas: #f6f7f9;
  --surface: #fff;
  --green: #24755b;
  --green-soft: #edf7f1;
  --amber: #9a631b;
  --amber-soft: #fff7e8;
  --blue: #3a638e;
  --blue-soft: #eef4fa;
  --radius: 14px;
  --shadow: 0 3px 16px rgb(26 31 42 / 3%);
  --sidebar-width: 242px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 14px; line-height: 1.65; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, input, textarea, select { font: inherit; }
button, input, select, textarea { accent-color: var(--brand); }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; }
h2 { font-size: 18px; line-height: 1.5; letter-spacing: -.25px; }
h3 { font-size: 16px; line-height: 1.5; }
p + p { margin-top: 12px; }
ul, ol { margin: 0; padding-left: 22px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
strong { font-weight: 650; }
small { font-size: 12px; }
code { background: #f1f2f5; border-radius: 5px; padding: 2px 5px; font-size: .9em; overflow-wrap: anywhere; }
pre { padding: 18px; background: #f5f6f8; border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
pre code { background: none; padding: 0; }
:focus-visible { outline: 3px solid #d6757b; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted, .help { color: var(--muted); }
.help { display: block; font-size: 12px; line-height: 1.65; margin-top: 6px; }
.text-brand { color: var(--brand); }
.text-small { font-size: 12px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.break-word { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 40; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 30px 18px 20px; overflow-y: auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; padding: 0 16px 26px; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 154px; max-height: 60px; object-fit: contain; object-position: left center; }
.brand-name { font-size: 13px; color: #747985; letter-spacing: 1.5px; }
.brand small, .brand > span { font-size: 12px; font-weight: 500; letter-spacing: 1.4px; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 23px; }
.nav-group-title, .section-label { margin: 0 14px 7px; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; color: #9296a0; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; color: #656b77; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 500; transition: background-color .15s, color .15s; }
.nav-link:hover { color: var(--ink); background: #f7f7f9; }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand); border-color: #f7e5e6; font-weight: 650; }
.nav-link .count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #f0f1f4; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.nav-link.active .count { background: #f3d8db; }
.sidebar-foot { margin-top: auto; padding: 18px 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.sidebar-foot strong { color: #656b77; font-size: 12px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { min-height: 72px; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); padding: 12px 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #7e8490; font-size: 12px; }
.breadcrumbs a { color: #7e8490; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs > :last-child { color: var(--ink); font-weight: 500; }
.header-user { display: flex; align-items: center; gap: 11px; font-size: 12px; }
.notification-bell { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-right: 8px; }
.notification-bell:hover { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-border); }
.notification-bell svg { width: 20px; height: 20px; }
.bell-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; line-height: 1; }
.header-user strong { display: block; color: var(--ink); font-size: 12px; }
.header-user .muted { font-size: 11px; }
.user-avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-weight: 650; font-size: 13px; flex-shrink: 0; }
.nav-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; border-radius: 8px; color: var(--text); }
.page { padding: 34px 38px 60px; max-width: 1580px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { display: block; color: #9398a2; font-size: 10px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-size: 28px; line-height: 1.4; letter-spacing: -.7px; font-weight: 650; }
.lead { font-size: 13px; line-height: 1.85; color: var(--muted); margin-top: 7px; max-width: 720px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head > .actions { padding-top: 6px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 17px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; line-height: 1.5; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: #f7f8fa; color: var(--ink); border-color: #cfd3db; }
.button.primary, button.primary { background: var(--brand); color: white; border-color: var(--brand); box-shadow: 0 3px 7px rgb(145 28 37 / 8%); }
.button.primary:hover, button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button.secondary { background: white; color: #454b57; }
.button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.button.ghost:hover { background: #eceef2; color: var(--ink); }
.button.danger { color: var(--brand); background: #fff; border-color: var(--brand-border); }
.button.danger:hover { background: var(--brand-soft); }
.button.small { min-height: 31px; font-size: 12px; padding: 5px 11px; border-radius: 6px; }
.button.wide { width: 100%; }
.button[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.panel, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.panel-head > a { font-size: 12px; font-weight: 600; padding-top: 2px; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px; border: 1px solid var(--line); background: white; border-radius: 12px; min-width: 0; }
.stat-card:hover { border-color: var(--brand-border); background: #fffafa; box-shadow: var(--shadow); }
.stat-card:focus-visible { outline: 3px solid #d6757b; }
.library-section-head { margin: 8px 0 14px; align-items: center; }
.library-section-head .badge { white-space: nowrap; }
.delivery-rules { display: grid; gap: 10px; margin: 20px 0; }
.delivery-rules > div { padding: 14px 16px; border: 1px solid var(--brand-border); background: #fffafa; border-radius: 9px; }
.delivery-rules strong { color: var(--ink); font-size: 13px; }
.delivery-rules p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.feedback-form .form-field { margin: 18px 0; }
.feedback-list { max-height: 650px; overflow: auto; margin-top: 18px; }
.feedback-item { padding: 16px 0; border-top: 1px solid var(--line); }
.feedback-item > .actions { justify-content: space-between; margin-bottom: 8px; }
.feedback-item > p { overflow-wrap: anywhere; }
.feedback-item > small { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.feedback-item .notice { margin: 10px 0 0; }
.feedback-item form { margin-top: 12px; }
.feedback-item form .button { margin-top: 7px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { display: block; font-size: 32px; font-weight: 650; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.9px; margin: 10px 0 5px; }
.stat-value small { font-size: 12px; font-weight: 400; margin-left: 5px; color: var(--muted); letter-spacing: 0; }
.stat-card .meta { margin-top: 6px; font-size: 11px; }
.stat-card.highlight { border-color: var(--brand-border); background: linear-gradient(120deg, #fff, #fffafa); }
.stat-card.highlight .stat-value { color: var(--brand); }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-two.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-two > .panel { margin-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.asset-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: border-color .18s, box-shadow .18s; }
.asset-card:hover { border-color: #d3d7df; box-shadow: 0 7px 24px rgb(35 39 47 / 5%); }
.asset-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.asset-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #f1f3f6; color: #626e82; flex-shrink: 0; font-size: 17px; }
.asset-icon.skill { color: #8b5d97; background: #f5eff8; }
.asset-icon.web, .asset-icon.html { color: #416d9c; background: #edf4fb; }
.asset-icon.document, .asset-icon.template { color: #32775e; background: #eef7f1; }
.asset-icon.project, .asset-icon.code { color: var(--brand); background: var(--brand-soft); }
.asset-card h3 { margin-bottom: 7px; overflow-wrap: anywhere; }
.asset-card h3 a { color: var(--ink); }
.asset-card h3 a:hover { color: var(--brand); }
.asset-card > p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.asset-card .meta { margin-top: 13px; }
.asset-card .actions { margin-top: auto; padding-top: 20px; }
.asset-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #f0f1f4; font-size: 11px; color: var(--muted); }
.asset-card.locked { background: #fcfcfd; }
.asset-card.locked .asset-icon { color: #9297a2; background: #f0f1f4; }
.asset-card.locked h3 { margin-top: 4px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 12px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #b7bdc7; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 22px; padding: 2px 8px; border-radius: 5px; background: #f0f2f5; color: #6a7281; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge.status-pending, .badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.status-ready, .badge.success, .badge.status-approved { background: var(--green-soft); color: var(--green); }
.badge.status-draft { background: #f0f2f5; color: #737b88; }
.badge.status-archived, .badge.status-rejected { background: var(--brand-soft); color: var(--brand); }
.badge.info, .badge.status-published { color: var(--blue); background: var(--blue-soft); }
.badge.outline { border: 1px solid var(--line); background: white; }
.count { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.table th { background: #fafbfc; color: #808692; font-size: 11px; font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid #eef0f3; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfdfe; }
.table td strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.table .actions { flex-wrap: nowrap; }
.table .button { white-space: nowrap; }
.table .asset-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.table-title { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.empty-state { text-align: center; border: 1px dashed #dfe2e9; border-radius: 12px; background: #fcfcfd; padding: 48px 24px; color: var(--muted); }
.empty-state .asset-icon { margin: 0 auto 14px; width: 48px; height: 48px; }
.empty-state h2, .empty-state h3 { color: #454c59; font-size: 16px; margin-bottom: 8px; }
.empty-state p { max-width: 440px; margin: 0 auto; font-size: 13px; line-height: 1.9; }
.empty-state .button { margin-top: 20px; }
.empty-state.compact { padding: 28px 18px; }
.flash, .notice { padding: 14px 17px; background: var(--blue-soft); color: #44617d; border: 1px solid #dce7f2; border-radius: 9px; font-size: 12px; line-height: 1.85; margin-bottom: 20px; }
.flash.success { color: #2b6f56; background: var(--green-soft); border-color: #d8eadd; }
.flash.error, .flash.danger { color: #a32c35; background: var(--brand-soft); border-color: var(--brand-border); }
.flash.warning, .notice.warning { background: var(--amber-soft); color: #8f641f; border-color: #f2e4c7; }
.notice.neutral { background: #f8f9fb; border-color: var(--line); color: var(--muted); }
.notice strong { color: inherit; }
.form-card { max-width: 100%; }
.form-card > h2 { margin-bottom: 6px; }
.form-card > .lead { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-field { min-width: 0; }
.form-field.full, .form-grid > .full { grid-column: 1 / -1; }
.form-field > label, .form-field > .field-label { display: block; color: #4d5461; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.required { color: var(--brand); margin-left: 3px; }
.field-input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea { width: 100%; min-height: 41px; padding: 9px 12px; border: 1px solid #dfe2e8; border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; line-height: 1.6; box-shadow: 0 1px 2px rgb(20 25 36 / 2%); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a3a8b2; }
input:hover, textarea:hover, select:hover { border-color: #c2c7d1; }
input:focus, textarea:focus, select:focus { border-color: #c15c64; box-shadow: 0 0 0 3px rgb(179 31 40 / 7%); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: middle; }
input[type="file"] { padding: 8px; color: var(--muted); font-size: 12px; }
input[type="file"]::file-selector-button { border: 0; background: #f1f2f5; border-radius: 5px; padding: 6px 12px; color: #515864; margin-right: 12px; cursor: pointer; font: inherit; }
textarea { min-height: 112px; resize: vertical; }
select { padding-right: 30px; }
input[readonly], textarea[readonly] { background: #f7f8fa; color: #818896; }
.form-field:has(.errorlist) input, .form-field:has(.errorlist) textarea, .form-field:has(.errorlist) select, [aria-invalid="true"] { border-color: #c44b55; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--brand); font-size: 12px; }
.errorlist.nonfield { padding: 13px 16px; background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 8px; margin: 0 0 20px; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 23px; margin-top: 24px; border-top: 1px solid var(--line); }
.form-section + .form-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section h3 { font-size: 14px; margin-bottom: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.checkbox-row input { margin-top: 4px; margin-right: 0; flex-shrink: 0; }
.upload-zone { border: 1px dashed #ccd1dc; border-radius: 10px; background: #fcfcfd; padding: 24px; text-align: center; }
.upload-zone input { margin-top: 14px; text-align: left; }
.upload-zone strong { font-size: 13px; color: #555d6a; }
.upload-zone p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.steps { display: flex; align-items: stretch; padding: 0; margin: 0 0 25px; list-style: none; gap: 0; counter-reset: step; }
.step { position: relative; display: flex; align-items: center; gap: 9px; flex: 1; padding: 14px 16px; background: white; border: 1px solid var(--line); color: #9096a1; font-size: 12px; font-weight: 500; }
.step + .step { border-left: 0; }
.step:first-child { border-radius: 9px 0 0 9px; }
.step:last-child { border-radius: 0 9px 9px 0; }
.step::before { content: counter(step, decimal-leading-zero); counter-increment: step; font-size: 10px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f1f2f5; color: #9096a1; flex-shrink: 0; }
.step.active, .step[aria-current="step"] { color: var(--brand); background: #fffafa; border-bottom: 2px solid var(--brand); }
.step.active::before, .step[aria-current="step"]::before { background: var(--brand); color: white; }
.step.complete { color: var(--green); }
.step.complete::before { color: var(--green); background: var(--green-soft); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 25px; font-size: 12px; color: #676f7c; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; background: #f0f2f5; color: #a8aeb8; border-radius: 50%; text-align: center; line-height: 15px; font-size: 10px; font-weight: 700; }
.checklist li.done::before, .checklist li.complete::before { background: var(--green-soft); color: var(--green); }
.checklist li.missing::before { content: "!"; background: var(--amber-soft); color: var(--amber); }
.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 23px; border-left: 1px solid #e5e8ee; margin-left: 5px; font-size: 12px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; left: -4px; top: 6px; background: #cbd0d9; box-shadow: 0 0 0 4px white; }
.timeline li:first-child::before { background: var(--brand); }
.timeline strong { display: block; color: #4d5563; font-weight: 600; }
.timeline p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.timeline time { display: block; font-size: 10px; color: #9ba1ad; margin-top: 5px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; font-size: 12px; color: var(--muted); }
.pagination a, .pagination > span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #707785; }
.pagination .active { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 11px 16px; color: #7a818e; font-size: 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active, .tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 650; }
.tab:hover { color: var(--brand); }
.search-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: white; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 24px; }
.search-bar input:not([type="hidden"]) { flex: 1 1 220px; width: auto; }
.search-bar select { flex: 0 1 160px; width: auto; }
.search-bar .button { flex-shrink: 0; }
.readonly-card { border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; padding: 18px; font-size: 13px; }
.readonly-card h3 { font-size: 14px; margin-bottom: 7px; }
.data-list { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 18px; font-size: 12px; margin: 0; }
.data-list dt { color: #9096a1; }
.data-list dd { margin: 0; color: #4c5563; overflow-wrap: anywhere; }
.data-list.stacked { grid-template-columns: 1fr; gap: 6px; }
.data-list.stacked dd { margin-bottom: 12px; }
.data-list.stacked dd:last-child { margin-bottom: 0; }
.onboarding { display: flex; gap: 26px; align-items: center; justify-content: space-between; padding: 24px 28px; background: linear-gradient(110deg, #fffafa 0%, #fff 80%); border: 1px solid #efdadd; border-radius: var(--radius); margin-bottom: 24px; }
.onboarding h2 { font-size: 17px; margin-bottom: 7px; }
.onboarding p { color: #8a7177; font-size: 12px; max-width: 660px; }
.onboarding .actions { flex-shrink: 0; }
.onboarding-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; font-size: 11px; color: #9a8186; }
.onboarding-steps strong { color: #735259; font-weight: 500; }
.quick-link { display: flex; align-items: center; gap: 13px; padding: 15px 0; color: var(--text); border-bottom: 1px solid #f0f1f4; }
.quick-link:first-child { padding-top: 0; }
.quick-link:last-child { border-bottom: 0; padding-bottom: 0; }
.quick-link strong { display: block; color: #4b5361; font-size: 13px; font-weight: 600; }
.quick-link p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.quick-link .count, .quick-link > .button { margin-left: auto; }
.progress-track { height: 4px; border-radius: 5px; background: #eff1f5; overflow: hidden; }
progress.progress-track { display: block; width: 100%; border: 0; appearance: none; }
progress.progress-track::-webkit-progress-bar { background: #eff1f5; border-radius: 5px; }
progress.progress-track::-webkit-progress-value { background: var(--brand); border-radius: 5px; }
progress.progress-track::-moz-progress-bar { background: var(--brand); border-radius: 5px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr); background: white; }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 64px max(48px, 10%); background: #f7f5f5; border-right: 1px solid #eee7e8; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid #eddddd; border-radius: 50%; right: -260px; bottom: -160px; box-shadow: 0 0 0 65px rgb(237 221 221 / 28%), 0 0 0 130px rgb(237 221 221 / 17%); pointer-events: none; }
.login-brand img { width: 220px; height: auto; margin-bottom: 65px; }
.login-brand h1 { position: relative; font-size: clamp(27px, 3vw, 40px); line-height: 1.6; letter-spacing: -1px; max-width: 500px; z-index: 1; }
.login-brand h1.login-purpose { max-width: 440px; font-size: clamp(25px, 2.35vw, 32px); line-height: 1.8; letter-spacing: -.6px; font-weight: 550; }
.login-brand h1 em { color: var(--brand); font-style: normal; }
.login-brand p { position: relative; font-size: 14px; color: #8a7b7d; line-height: 1.9; max-width: 400px; margin-top: 20px; z-index: 1; }
.login-brand .eyebrow { margin-bottom: 16px; color: #b48d93; }
.login-card { align-self: center; justify-self: center; padding: 56px 40px; width: 100%; max-width: 440px; }
.login-card h1 { font-size: 25px; letter-spacing: -.5px; }
.login-card h2 { font-size: 24px; }
.login-card > p { color: var(--muted); font-size: 13px; margin-top: 8px; margin-bottom: 30px; }
.login-card .form-field { margin-bottom: 20px; }
.login-card .button.primary { width: 100%; margin-top: 6px; min-height: 43px; }
.login-card .help { margin-top: 18px; text-align: center; font-size: 11px; }
.login-card .notice { margin-top: 22px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; color: #a1a7b1; font-size: 10px; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.department-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: white; }
.department-card h3 { font-size: 14px; }
.department-card .meta { margin-top: 8px; }
.department-card .actions { margin-top: 16px; }
.review-summary { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; margin-bottom: 20px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #43a47e; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
/* Template contracts: compact cards, server-rendered tables and wizard steps. */
.mobile-nav { display: none; }
.full-width { width: 100%; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--brand); }
.skip-link:focus { position: fixed; left: 18px; top: 12px; width: auto; height: auto; margin: 0; padding: 10px 15px; clip-path: none; background: white; border: 1px solid var(--brand); border-radius: 7px; z-index: 100; }
.nav-link > span[aria-hidden] { width: 19px; text-align: center; font-size: 17px; line-height: 1; flex-shrink: 0; }
.header-user small { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; }
.workspace > .page-footer { padding: 0 38px 24px; }
.page-head > .button { align-self: flex-start; margin-top: 4px; flex-shrink: 0; }
.grid-two + .panel { margin-top: 22px; }
.panel > .search-bar { margin: 0; border: 0; padding: 0; border-radius: 0; }
.page > .meta + .asset-grid { margin-top: 14px; }
.asset-grid > .empty-state { grid-column: 1 / -1; margin-bottom: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-top + .meta { margin-top: 0; margin-bottom: 8px; font-size: 10px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 11px; }
.card-footer > a { white-space: nowrap; font-weight: 600; }
.asset-card > .badge { align-self: flex-start; margin-bottom: 16px; }
.asset-card.readonly-card { background: #fcfcfd; padding: 22px; }
.asset-card.readonly-card > .button { margin-top: 22px; align-self: flex-start; }
.recent-row { display: flex; align-items: center; gap: 12px; color: var(--text); border-bottom: 1px solid #eef0f4; padding: 17px 0; }
.recent-row:first-of-type { padding-top: 2px; }
.recent-row:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-row .asset-icon { width: 35px; height: 35px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.recent-copy { flex: 1; min-width: 0; }
.recent-copy strong { display: block; font-size: 12px; color: #4b5360; font-weight: 600; overflow-wrap: anywhere; }
.recent-copy small { display: block; font-size: 10px; color: #8a919e; margin-top: 4px; }
.recent-row:hover .recent-copy strong { color: var(--brand); }
.recent-row > .badge { flex-shrink: 0; }
.quick-link > span:last-child { margin-left: auto; color: #9299a5; flex-shrink: 0; }
.quick-link > .count:last-child { display: grid; place-items: center; min-width: 27px; height: 27px; background: var(--brand-soft); color: var(--brand); border-radius: 8px; font-size: 12px; font-weight: 600; }
.onboarding.panel { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr); gap: 24px; }
.onboarding > div:first-child .badge { margin-bottom: 9px; color: #a15660; background: #fae9eb; font-size: 10px; }
.onboarding > div:first-child p { font-size: 11px; }
.onboarding .steps { margin: 0; gap: 16px; }
.onboarding .step { display: flex; align-items: flex-start; flex-direction: column; padding: 5px 0 5px 19px; border: 0; border-left: 1px solid #eee2e4; border-radius: 0; background: none; gap: 6px; }
.onboarding .step::before, .wizard-nav .step::before { display: none; }
.onboarding .step > span { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #ba6c76; }
.onboarding .step strong { font-size: 12px; color: #6a4c52; font-weight: 600; }
.onboarding .step small { font-size: 10px; color: #a18a90; white-space: normal; }
.onboarding .step:hover strong { color: var(--brand); }
.wizard-nav .step > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f1f2f5; color: #9096a1; font-size: 10px; flex-shrink: 0; }
.wizard-nav .step.active > span { color: white; background: var(--brand); }
.wizard-nav .step.complete > span { color: var(--green); background: var(--green-soft); }
.wizard-nav .step strong { color: inherit; font-size: inherit; font-weight: 500; }
.form-card > form > .form-field, .form-card > [data-step] > .form-field { margin-bottom: 20px; }
.form-card > [data-step] > .form-grid { margin-bottom: 20px; }
.form-card > [data-step] > h2 { margin-bottom: 6px; }
.form-card > [data-step] > h2 + .muted { margin-bottom: 26px; font-size: 12px; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: #c44b55; }
.form-field .checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox-label input { flex-shrink: 0; margin: 3px 0 0; }
.upload-zone { margin-bottom: 22px; }
.upload-zone label { display: block; cursor: pointer; }
.upload-zone label strong { display: block; margin-bottom: 5px; }
.upload-zone label span { display: block; font-size: 11px; color: var(--muted); }
.upload-zone input[type="file"] { background: white; max-width: 520px; }
.wizard-controls { padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); justify-content: flex-end; }
.optional-fields { border: 1px solid var(--line); border-radius: 9px; margin-top: 24px; margin-bottom: 24px; padding: 0 18px; }
.optional-fields summary { padding: 16px 0; color: #66707f; cursor: pointer; font-size: 12px; font-weight: 500; }
.optional-fields[open] summary { margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.optional-fields .form-field { margin-bottom: 20px; }
.prose { font-size: 13px; line-height: 1.95; color: #616a78; overflow-wrap: anywhere; }
.panel > h3 { margin: 23px 0 8px; font-size: 12px; font-weight: 600; }
.panel > p { font-size: 12px; line-height: 1.8; }
.panel-head + h3 { margin-top: 0; }
.section-actions { margin-top: 22px; }
.notice > form { margin-top: 12px; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.version-row:first-of-type { padding-top: 0; }
.version-row:last-child { border-bottom: 0; padding-bottom: 0; }
.version-row > div { min-width: 0; }
.version-row strong { font-size: 13px; color: #4d5665; }
.version-row p { font-size: 12px; color: var(--muted); margin: 5px 0 6px; overflow-wrap: anywhere; }
.version-row .meta { font-size: 10px; overflow-wrap: anywhere; }
.version-row > .button, .version-row > .badge { flex-shrink: 0; }
.data-list dd small { display: block; font-size: 10px; color: #9ca2ae; margin-top: 4px; }
.checklist li:has(> span)::before { display: none; }
.checklist li > span { position: absolute; left: 0; top: 2px; color: #66917b; font-size: 13px; line-height: 18px; }
.checklist + .notice { margin-top: 20px; }
.checklist + .full-width { margin-top: 22px; }
.login-points { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 42px; position: relative; z-index: 1; }
.login-points span { color: #a18c91; font-size: 10px; letter-spacing: .2px; }
.login-card > p.help { margin-top: 18px; margin-bottom: 0; font-size: 11px; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.table-wrap th { background: #fafbfc; color: #808692; font-size: 11px; font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 16px; vertical-align: middle; border-bottom: 1px solid #eef0f3; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: #fdfdfe; }
.table-wrap td strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.table-wrap td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.table-wrap .actions { flex-wrap: nowrap; }
.table-wrap .button { white-space: nowrap; }
.employee-start { padding: 30px; background: linear-gradient(115deg, #fff 55%, #fffbfb); border-color: #eadfe1; }
.employee-start .page-title { font-size: 27px; margin-top: 8px; }
.employee-start .lead { margin-top: 8px; }
.employee-search { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.employee-search input[type="search"] { flex: 1; min-width: 0; min-height: 45px; background: white; }
.employee-search .button { min-height: 45px; flex-shrink: 0; }
.employee-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.employee-shortcut { display: flex; align-items: center; gap: 12px; padding: 20px 17px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .15s, box-shadow .15s; }
.employee-shortcut:hover { border-color: #d6bfc3; box-shadow: 0 4px 15px rgb(40 30 33 / 4%); }
.employee-shortcut .asset-icon { width: 35px; height: 35px; border-radius: 9px; color: #a75b65; background: #fbf0f2; font-size: 18px; }
.employee-shortcut strong { display: block; color: #464e5b; font-size: 13px; font-weight: 600; }
.employee-shortcut p { margin-top: 5px; color: #969ca7; font-size: 10px; line-height: 1.7; }
.employee-shortcut .shortcut-arrow { margin-left: auto; color: #a3a9b3; flex-shrink: 0; }
.employee-library-meta { display: flex; align-items: center; gap: 13px; color: #b3b8c1; font-size: 11px; margin: 0 0 17px 2px; }
.employee-library-meta a { color: #8c939f; }
.employee-library-meta a:hover { color: var(--brand); }
.employee-library-meta strong { color: #515a68; margin-left: 5px; font-weight: 600; }
.card-actions { display: flex; align-items: center; gap: 9px; padding-top: 16px; margin-top: 15px; border-top: 1px solid #eef0f4; }
.card-actions .button { flex: 1; }
.detail-jumps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 0 24px; padding-bottom: 7px; }
.detail-jumps a { display: inline-flex; align-items: center; padding: 7px 13px; color: #7b8390; font-size: 12px; border-radius: 7px; }
.detail-jumps a:hover, .detail-jumps a.active { color: var(--brand); background: var(--brand-soft); }
.detail-grid [id] { scroll-margin-top: 24px; }
.collapsible-panel { padding: 0; }
.collapsible-panel > summary { display: flex; align-items: center; gap: 16px; justify-content: space-between; cursor: pointer; padding: 21px 24px; list-style: none; }
.collapsible-panel > summary::-webkit-details-marker { display: none; }
.collapsible-panel > summary strong { display: block; color: #424b59; font-size: 15px; font-weight: 600; }
.collapsible-panel > summary small { display: block; margin-top: 5px; color: #959ca7; font-size: 10px; }
.collapsible-panel > summary .collapse-hint { color: #a2a8b2; font-size: 11px; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.collapse-hint .collapse-close { display: none; }
.collapse-hint .collapse-chevron { font-size: 18px; font-weight: 300; line-height: 1; transform: translateY(-3px); }
.collapsible-panel[open] > summary .collapse-open { display: none; }
.collapsible-panel[open] > summary .collapse-close { display: inline; }
.collapsible-panel[open] > summary .collapse-chevron { transform: rotate(180deg) translateY(-3px); }
.collapsible-panel[open] > summary { border-bottom: 1px solid #f0f1f4; }
.collapsible-content { padding: 22px 24px 24px; }
.collapsible-content > h3 { margin: 23px 0 8px; font-size: 12px; font-weight: 600; }
.collapsible-content > p { font-size: 12px; }
.collapsible-content .optional-fields { margin-bottom: 0; }
.collapsible-content .optional-fields > .prose { padding-bottom: 18px; }
.tool-use .collapsible-content { padding: 0 0 4px; }
.tool-helper { margin: 0; padding: 13px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.tool-use .notice { margin: 16px 20px; }
.tool-frame { display: block; width: 100%; height: 620px; border: 0; border-radius: 0 0 12px 12px; background: #fff; }
.tool-panel .tool-frame { border-radius: 8px; }
.file-version { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.file-version:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.file-version .version-row { padding: 0 0 12px; border-bottom: 0; }
.inline-preview { padding: 0; }
.inline-preview > summary { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; padding: 6px 0; }
.inline-preview > summary::-webkit-details-marker { display: none; }
.inline-preview[open] > summary > span { transform: rotate(180deg); }
.inline-preview .notice { margin: 10px 0 0; }
.preview-frame { display: block; width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; background: #f7f8fa; }
.access-expired .tool-helper { display: none; }
.contribution-table td:not(:first-child):not(:last-child) { font-variant-numeric: tabular-nums; }
.contribution-note { min-width: 190px; max-width: 340px; overflow-wrap: anywhere; }
.sync-notice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.sync-notice a { margin-left: auto; font-weight: 600; }
.update-list { display: flex; flex-direction: column; gap: 18px; }
.update-card { margin-bottom: 0; scroll-margin-top: 24px; }
.update-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.update-card-head h2 { font-size: 17px; margin-top: 6px; }
.update-card-head h2 a { color: #3e4755; }
.update-card-head h2 a:hover { color: var(--brand); }
.update-card-head > .badge { flex-shrink: 0; margin-top: 3px; }
.update-card-head .meta { font-size: 10px; }
.update-card-head .help { font-size: 11px; }
.update-upload { border: 1px solid var(--line); border-radius: 9px; background: #fcfcfd; }
.update-upload > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 16px 18px; list-style: none; }
.update-upload > summary::-webkit-details-marker { display: none; }
.update-upload > summary strong { display: block; font-size: 12px; color: #596372; font-weight: 600; }
.update-upload > summary small { display: block; margin-top: 4px; color: #929aa6; font-size: 10px; }
.update-upload > summary > span:last-child { font-size: 18px; color: #a3aab4; }
.update-upload[open] > summary > span:last-child { transform: rotate(45deg); }
.update-upload > form { padding: 20px 18px; background: white; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.update-upload .form-field { margin-bottom: 18px; }
.update-upload .actions { margin-top: 18px; }
.sync-confirm-form { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sync-confirm-form .checkbox-row { font-size: 12px; }
.sync-confirm-form .checkbox-row strong { font-size: 12px; font-weight: 500; color: #626b79; }
.sync-confirm-form .checkbox-row small { display: block; font-size: 10px; color: #959da8; line-height: 1.8; margin-top: 4px; }
.sync-confirm-form > .button { flex-shrink: 0; }
.update-empty-hint { margin-top: 14px; font-size: 11px; }
@media (min-width: 1600px) {
  :root { --sidebar-width: 258px; }
  .page { padding-left: 46px; padding-right: 46px; }
  .topbar { padding-left: 46px; padding-right: 46px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 218px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .page { padding: 28px 25px 48px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; }
  .stat-card { padding: 17px; }
  .onboarding { padding: 22px; }
  .grid-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .onboarding.panel { grid-template-columns: 1fr; gap: 20px; }
  .onboarding .steps { width: 100%; }
  .onboarding .step { flex: 1; }
  .workspace > .page-footer { padding-left: 25px; padding-right: 25px; }
}
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-two { grid-template-columns: 1fr; }
  .grid-two > .panel { margin-bottom: 0; }
  .onboarding { align-items: flex-start; flex-direction: column; gap: 17px; }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-wrap: wrap; gap: 15px; }
  .page-head > .actions { padding-top: 0; }
  .login-brand { padding-left: 36px; padding-right: 36px; }
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); }
  .employee-shortcut { padding: 17px 14px; flex-wrap: wrap; gap: 9px; }
  .employee-shortcut > div { flex-basis: calc(100% - 48px); }
  .employee-shortcut .shortcut-arrow { display: none; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 248px; box-shadow: none; padding-top: 24px; }
  .nav-open .sidebar { transform: translateX(0); box-shadow: 20px 0 60px rgb(18 23 32 / 16%); }
  .workspace { margin-left: 0; }
  .topbar { min-height: 64px; padding: 12px 18px; gap: 12px; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .mobile-nav { display: inline-flex; padding: 7px 10px; min-height: 34px; }
  .topbar > .actions { min-width: 0; flex-wrap: nowrap; gap: 7px; }
  .breadcrumbs { margin-right: auto; font-size: 11px; }
  .header-user { gap: 8px; }
  .header-user .user-avatar { width: 30px; height: 30px; border-radius: 8px; }
  .header-user .muted { display: none; }
  .header-user small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace > .page-footer { padding-left: 18px; padding-right: 18px; }
  .page { padding: 24px 18px 40px; }
  .page-title { font-size: 25px; }
  .page-head { margin-bottom: 22px; }
  .lead { font-size: 12px; }
  .panel, .form-card { padding: 20px; border-radius: 12px; }
  .collapsible-panel { padding: 0; }
  .asset-grid { gap: 12px; }
  .asset-card { padding: 18px; }
  .asset-card h3 { font-size: 14px; }
  .form-grid { gap: 18px; }
  .step { padding: 12px 10px; font-size: 11px; gap: 7px; }
  .table th { padding: 11px 13px; }
  .table td { padding: 13px; }
  .login-shell { grid-template-columns: 1fr; background: #f7f5f5; }
  .login-brand { justify-content: flex-start; padding: 36px 28px 24px; border-right: 0; }
  .login-brand img { width: 155px; margin-bottom: 25px; }
  .login-brand h1 { font-size: 25px; }
  .login-brand h1.login-purpose { max-width: 460px; font-size: 23px; line-height: 1.7; }
  .login-brand p { font-size: 12px; margin-top: 12px; }
  .login-points { margin-top: 24px; gap: 9px 16px; }
  .login-brand::after { display: none; }
  .login-card { background: white; border-radius: 16px; padding: 30px 25px; margin: 0 20px 30px; width: calc(100% - 40px); align-self: start; }
  .login-card h1, .login-card h2 { font-size: 21px; }
}
@media (max-width: 500px) {
  body { font-size: 13px; }
  .page { padding: 21px 14px 32px; }
  .topbar { padding: 11px 14px; }
  .breadcrumbs { max-width: 170px; gap: 6px; }
  .topbar .breadcrumbs { display: none; }
  .header-user { margin-left: auto; gap: 7px; }
  .header-user > .button, .header-user form > .button { padding-left: 6px; padding-right: 6px; }
  .header-user > .actions { display: none; }
  .page-title { font-size: 23px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .primary { flex: 1; }
  .page-head > .button.primary { width: 100%; }
  .panel, .form-card { padding: 18px 16px; }
  .panel-head { gap: 12px; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card { padding: 20px; }
  .asset-card h3 { font-size: 16px; }
  .asset-card-head { margin-bottom: 14px; }
  .stats-grid { gap: 10px; margin-bottom: 20px; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 11px; }
  .stat-card .meta { font-size: 10px; }
  .form-grid, .grid-two.equal, .department-grid, .detail-grid > aside { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .search-bar { padding: 12px; gap: 9px; }
  .search-bar input:not([type="hidden"]) { flex-basis: 100%; }
  .search-bar select { flex: 1 1 100px; min-width: 0; }
  .search-bar .button { flex: 1; }
  .onboarding { padding: 20px; }
  .onboarding h2 { font-size: 16px; }
  .onboarding-steps { gap: 6px; font-size: 10px; }
  .onboarding .steps { gap: 9px; }
  .onboarding .step { padding-left: 11px; text-align: left; }
  .onboarding .step strong { font-size: 11px; }
  .onboarding .step small { font-size: 9px; }
  .steps { margin-bottom: 20px; }
  .step { flex-direction: column; padding: 12px 6px; gap: 6px; text-align: center; font-size: 10px; }
  .step::before { width: 22px; height: 22px; }
  .data-list { grid-template-columns: 85px minmax(0, 1fr); gap: 12px; }
  .tabs { gap: 0; }
  .tab { padding: 10px 11px; font-size: 11px; }
  .button { min-height: 40px; }
  .button.small { min-height: 34px; }
  .page-footer { flex-direction: column; gap: 3px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1; }
  .empty-state { padding: 36px 20px; }
  .recent-row { gap: 9px; }
  .recent-row > .badge { font-size: 9px; padding: 2px 6px; }
  .version-row { flex-wrap: wrap; gap: 12px; }
  .optional-fields { padding-left: 13px; padding-right: 13px; }
  .wizard-controls .button { flex: 1; }
  .wizard-nav .step > span { width: 22px; height: 22px; }
  .table-wrap th { padding: 11px 13px; }
  .table-wrap td { padding: 13px; }
  .employee-start { padding: 23px 18px; }
  .employee-start .page-title { font-size: 23px; line-height: 1.55; }
  .employee-search { flex-wrap: wrap; gap: 9px; margin-top: 21px; }
  .employee-search input[type="search"] { flex-basis: 100%; }
  .employee-search .button { flex: 1; min-height: 41px; }
  .employee-shortcuts { grid-template-columns: 1fr; gap: 9px; margin-bottom: 17px; }
  .employee-shortcut { flex-wrap: nowrap; padding: 16px; gap: 12px; }
  .employee-shortcut > div { flex-basis: auto; }
  .employee-shortcut .shortcut-arrow { display: inline; }
  .employee-shortcut p { margin-top: 3px; }
  .detail-jumps { gap: 2px; margin-bottom: 20px; }
  .detail-jumps a { padding: 7px 9px; font-size: 11px; }
  .collapsible-panel { padding: 0; }
  .collapsible-panel > summary { padding: 18px 16px; }
  .collapsible-content { padding: 18px 16px; }
  .collapsible-panel > summary strong { font-size: 14px; }
  .tool-frame { height: 560px; }
  .preview-frame { height: 370px; }
  .update-card-head { flex-wrap: wrap; gap: 10px; }
  .update-card-head h2 { font-size: 16px; }
  .update-upload > summary { padding: 15px; }
  .update-upload > form { padding: 18px 14px; }
  .sync-confirm-form { align-items: flex-start; flex-direction: column; gap: 15px; }
  .sync-confirm-form > .button { align-self: flex-end; }
  .sync-notice a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .actions, .search-bar, .pagination, .page-footer { display: none !important; }
  .workspace { margin: 0; }
  .page { max-width: none; padding: 0; }
  body { background: white; font-size: 10pt; }
  .panel, .form-card, .asset-card, .stat-card { box-shadow: none; break-inside: avoid; }
  .detail-grid, .grid-two { display: block; }
}

.file-preview {white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 ui-monospace,SFMono-Regular,monospace;color:var(--text);max-height:65vh;overflow:auto;padding:20px;background:#f7f8fa;border-radius:12px;}

.packaging-helper { margin: 20px 0 24px; padding: 18px 20px; border: 1px solid var(--line, #e4e7ed); border-radius: 14px; background: #fafbfc; }
.packaging-helper details { margin-top: 12px; }
.packaging-helper summary { color: #737b89; cursor: pointer; font-size: 13px; }
.prompt-text { margin-top: 14px; line-height: 1.7; font-size: 13px; background: #fff; resize: vertical; }
.file-kind-hint { margin: 12px 0 18px; color: #737b89; }
.guide-document-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
