:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #17211e;
  background: #eef1ed;
  font-synthesis: none;
  --ink: #17211e;
  --muted: #68736e;
  --line: #dbe1dc;
  --surface: #ffffff;
  --green: #135e4a;
  --green-deep: #0c3b30;
  --mint: #b9e5d2;
  --amber: #d99938;
  --sidebar: #132621;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr); background: var(--sidebar); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 132px); overflow: hidden; color: white; }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 1px solid rgba(185,229,210,.16); border-radius: 50%; width: 560px; height: 560px; right: -180px; top: -260px; }
.login-brand::after { width: 380px; height: 380px; right: -90px; top: -170px; }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.eyebrow.dark { color: var(--green); }
.login-brand h1 { max-width: 760px; margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: 1.03; letter-spacing: -.055em; }
.login-copy { max-width: 690px; margin: 30px 0 42px; color: #c5d1cc; font-size: 17px; line-height: 1.85; }
.brand-metrics { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-metrics span { padding: 11px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #cbd5d1; font-size: 12px; }
.brand-metrics strong { margin-right: 5px; color: white; }
.login-card { background: #f4f5f1; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px); gap: 44px; }
.login-card h2, .dialog-card h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.03em; }
.login-card p { color: var(--muted); }
.stack-form { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: #44504b; font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cfd7d1; border-radius: 7px; background: white; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input, select { height: 44px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(19,94,74,.11); }
.primary-button, .secondary-button, .send-button { border: 0; border-radius: 7px; font-weight: 750; }
.primary-button { min-height: 46px; padding: 0 20px; color: white; background: var(--green); }
.primary-button:hover, .send-button:hover { background: var(--green-deep); }
.primary-button.compact { min-height: 38px; }
.secondary-button { min-height: 38px; padding: 0 16px; background: #edf3f0; color: var(--green); border: 1px solid #ccdad3; }
.form-error { min-height: 18px; margin: 0; color: #a33d31 !important; font-size: 12px; }

.app-shell { height: 100vh; min-height: 0; display: grid; grid-template-columns: 288px minmax(0, 1fr); overflow: hidden; }
.sidebar { min-height: 100vh; padding: 24px 16px 16px; color: white; background: var(--sidebar); display: flex; flex-direction: column; }
.product-mark { display: flex; gap: 11px; align-items: center; padding: 0 8px 24px; }
.product-mark strong, .product-mark small { display: block; }
.product-mark strong { font-size: 14px; }
.product-mark small { margin-top: 3px; color: #8fa49c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.mark-dot { width: 12px; height: 12px; border: 3px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(185,229,210,.1); }
.search-box { position: relative; margin-bottom: 26px; }
.search-box input { height: 39px; padding-right: 46px; border: 1px solid #31453e; color: white; background: #1d332c; font-size: 12px; }
.search-box input::placeholder { color: #899d95; }
.search-box kbd { position: absolute; right: 8px; top: 9px; padding: 2px 5px; border: 1px solid #465b53; border-radius: 4px; color: #80938c; font: 9px inherit; }
.section-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 10px; color: #8da198; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.icon-button { width: 27px; height: 27px; border: 1px solid #3a4d46; border-radius: 6px; color: #c6d5cf; background: transparent; font-size: 18px; }
.case-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 4px; }
.case-item { width: 100%; padding: 12px; border: 0; border-radius: 7px; text-align: left; color: #cad5d1; background: transparent; }
.case-item:hover { background: #1b332b; }
.case-item.active { color: white; background: #234238; }
.case-item strong, .case-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-item strong { margin-bottom: 6px; font-size: 13px; }
.case-item small { color: #8fa39b; font-size: 10px; }
.sidebar-footer { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 16px 8px 2px; border-top: 1px solid #2d4039; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #14362c; background: var(--mint); font-weight: 800; }
.user-meta strong, .user-meta small { display: block; }
.user-meta strong { font-size: 12px; }.user-meta small { color: #84978f; font-size: 10px; }
.text-button { padding: 5px; border: 0; color: #7d9189; background: transparent; font-size: 11px; }
.text-button:hover { color: var(--green); }.sidebar .text-button:hover { color: white; }

.workspace { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: #f5f6f3; }
.workspace-header { min-height: 126px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); }
.workspace-header h1 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.case-meta { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; gap: 9px; }
.workspace-grid { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.conversation-panel { border-right: 1px solid var(--line); background: #f0f2ee; overflow: hidden; }
.panel-title { height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.panel-title small { padding: 2px 7px; border-radius: 10px; color: var(--green); background: #dce9e3; }
.chat-panel { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: white; }
.empty-state { margin: auto; max-width: 470px; padding: 40px; text-align: center; }
.empty-symbol { width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid #bad3c8; border-radius: 50%; color: var(--green); background: #edf6f2; font-size: 13px; font-weight: 900; }
.empty-state h2 { margin: 0 0 12px; font-size: 22px; }.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.message-list { min-height: 0; flex: 1 1 0; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #9eb4aa #eef2ef; padding: 30px max(28px, 9vw) 18px; }
.message-list::-webkit-scrollbar { width: 11px; }.message-list::-webkit-scrollbar-track { background: #eef2ef; }.message-list::-webkit-scrollbar-thumb { min-height: 44px; border: 3px solid #eef2ef; border-radius: 999px; background: #9eb4aa; }.message-list::-webkit-scrollbar-thumb:hover { background: #6f9183; }
.message { max-width: 780px; margin: 0 auto 22px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.message.user { grid-template-columns: minmax(0, 1fr) 34px; }.message.user .message-avatar { grid-column: 2; }.message.user .message-body { grid-column: 1; grid-row: 1; justify-self: end; background: #edf4f1; }
.message-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--green); font-size: 10px; font-weight: 900; }
.message.user .message-avatar { color: #31443d; background: #e1e6e2; }
.message-body { max-width: 100%; padding: 13px 15px; border: 1px solid #e0e5e1; border-radius: 3px 10px 10px 10px; color: #2d3834; background: white; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.message-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }.message-meta { color: #929c97; font-size: 9px; }.message-feedback-button { padding: 2px 0; border: 0; color: var(--green); background: transparent; font-size: 9px; }.message-feedback-button:hover { text-decoration: underline; }
.job-banner { display: grid; gap: 8px; max-height: 38vh; padding: 10px max(28px, 9vw); overflow-y: auto; border-top: 1px solid #e4e9e5; color: #58645f; background: #fbfcfa; font-size: 11px; }
.job-banner-main { display: flex; align-items: center; gap: 9px; }
.job-banner-main > div { min-width: 0; display: grid; gap: 3px; }
.job-banner-main strong { color: #34433e; font-size: 11px; }
.job-banner-main small { color: #7c8984; font-size: 9px; }
.job-banner .danger { margin-left: auto; color: #a24337; }
.job-queue-list { display: grid; gap: 5px; padding: 7px 9px; border: 1px solid #e4e8e5; border-radius: 6px; background: white; }
.job-queue-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #68756f; font-size: 9px; }
.job-queue-item strong { color: #34443d; font-size: 9px; }.job-queue-item.worker-offline span { color: #a15345; }
.job-progress-panel { border: 1px solid #dfe5e1; border-radius: 7px; background: white; overflow: hidden; }
.job-progress-panel summary { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; color: #365047; background: #f5f8f6; cursor: pointer; font-size: 9px; font-weight: 800; }
.job-progress-panel summary small { color: #788680; font-weight: 500; }
.job-progress-list { max-height: 190px; overflow-y: auto; }
.job-progress-event { display: grid; gap: 4px; padding: 8px 10px; border-top: 1px solid #edf0ee; }
.job-progress-event > span { color: #8a9691; font-size: 8px; }.job-progress-event p { margin: 0; color: #3d4b46; font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.job-progress-event.level-warning { background: #fffaf0; }.job-progress-event.level-error { background: #fff3f1; }.job-progress-event.level-error p { color: #8c382e; }
.job-progress-empty { padding: 12px; color: #87928e; text-align: center; font-size: 9px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.composer { padding: 14px max(28px, 9vw) 22px; border-top: 1px solid var(--line); background: white; }
.composer textarea { min-height: 82px; max-height: 190px; border-radius: 10px 10px 0 0; border-bottom: 0; }
.composer-footer { min-height: 46px; display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 13px; border: 1px solid #cfd7d1; border-top: 1px solid #e5e9e6; border-radius: 0 0 10px 10px; }
.boundary-note { margin-left: auto; color: #8b9691; font-size: 10px; }
.send-button { min-height: 32px; padding: 0 18px; color: white; background: var(--green); }
button:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .5; }

dialog { width: min(520px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 26px 80px rgba(14,33,27,.25); }
.wide-dialog { width: min(720px, calc(100vw - 30px)); }
#requirements-dialog { width: min(980px, calc(100vw - 30px)); }
dialog::backdrop { background: rgba(12,30,24,.58); backdrop-filter: blur(3px); }
.dialog-card { display: grid; gap: 18px; max-height: 90vh; padding: 28px; overflow-y: auto; background: white; }
.dialog-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.file-drop { padding: 14px; border: 1px dashed #adc7bb; border-radius: 8px; background: #f4faf7; }
.file-drop input { height: auto; padding: 8px 0 0; border: 0; background: transparent; }
.upload-progress { display: grid; gap: 7px; margin-top: -8px; }
.upload-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e6ebe8; }
.upload-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #3b9d7e); transition: width .12s linear; }
.upload-progress-copy { display: flex; justify-content: space-between; gap: 12px; color: #75817c; font-size: 9px; }.upload-progress-copy strong { color: var(--green); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.requirement-card { width: min(980px, calc(100vw - 30px)); height: min(86vh, 760px); grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; }.requirement-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }.requirement-toolbar { display: flex; align-items: end; gap: 18px; }.requirement-toolbar label { width: 190px; }.requirement-toolbar small { padding-bottom: 12px; color: var(--muted); font-size: 10px; }.requirement-layout { min-height: 0; display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.55fr); overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }.requirement-list { min-height: 0; padding: 9px; overflow-y: auto; border-right: 1px solid var(--line); background: #f3f6f3; }.requirement-list-item { width: 100%; display: grid; gap: 5px; padding: 11px 12px; border: 0; border-radius: 7px; text-align: left; color: #33433d; background: transparent; }.requirement-list-item:hover, .requirement-list-item.active { background: white; box-shadow: 0 1px 0 rgba(20,55,43,.07); }.requirement-list-item strong, .requirement-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.requirement-list-item strong { font-size: 11px; }.requirement-list-item small { color: var(--muted); font-size: 9px; }.requirement-editor { min-height: 0; padding: 20px; overflow-y: auto; background: white; }.requirement-editor form { max-width: 620px; margin: 0 auto; }.requirement-source { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.requirement-empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: 10px; }
.resource-dialog { width: min(880px, calc(100vw - 30px)); }
.resource-card { width: 100%; max-height: 86vh; }.resource-list { display: grid; gap: 12px; overflow-y: auto; }
.resource-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.resource-item > div { min-width: 0; }
.resource-download { flex: 0 0 auto; min-height: 32px; }
.resource-item strong, .resource-item small { display: block; }.resource-item strong { font-size: 12px; }.resource-item small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.resource-section { display: grid; gap: 8px; }.resource-section h3 { margin: 6px 0 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.report-package-section { gap: 12px; }
.report-package-card { display: grid; gap: 14px; padding: 18px; border: 1px solid #bfd4cb; border-radius: 10px; background: #f9fcfa; box-shadow: 0 6px 22px rgba(19,94,74,.05); }
.report-package-card.unavailable { border-color: #e1c8c3; background: #fffafa; }
.report-package-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.report-package-heading strong, .report-package-heading small { display: block; }.report-package-heading strong { font-size: 14px; }.report-package-heading small { margin-top: 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.report-audit-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: var(--green); background: #dff2e9; font-size: 9px; font-weight: 800; }
.package-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #dce7e2; border-radius: 8px; background: white; overflow: hidden; }
.package-summary div { min-width: 0; padding: 11px 13px; border-right: 1px solid #e4ebe7; }.package-summary div:last-child { border-right: 0; }
.package-summary strong, .package-summary span { display: block; }.package-summary strong { color: var(--green); font-size: 13px; }.package-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.package-integrity-note { margin: 0; padding: 10px 12px; border-left: 3px solid #75a994; color: #456158; background: #edf7f2; font-size: 10px; line-height: 1.65; }
.package-options { display: grid; gap: 8px; }
.package-options label { display: flex; grid-template-columns: none; gap: 8px; align-items: center; color: #44554f; font-size: 10px; font-weight: 600; }
.package-options input, .resource-choice input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--green); }
.package-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }.package-actions .secondary-button { min-height: 38px; }
.package-error { margin: 0; color: #963f34; font-size: 10px; }
.report-resource-picker { display: grid; gap: 10px; padding: 16px; border: 1px solid #9fc5b5; border-radius: 10px; background: #f3faf7; }
.resource-picker-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }.resource-picker-heading strong, .resource-picker-heading small { display: block; }.resource-picker-heading strong { font-size: 13px; }.resource-picker-heading small { max-width: 620px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.resource-group { border: 1px solid #d7e2dd; border-radius: 8px; background: white; overflow: hidden; }
.resource-group summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }.resource-group summary::-webkit-details-marker { display: none; }
.resource-group summary > span { font-size: 11px; font-weight: 800; }.resource-group summary small { margin-left: 7px; color: var(--muted); font-size: 9px; font-weight: 500; }
.resource-choice-list { max-height: 230px; overflow-y: auto; border-top: 1px solid #edf0ee; }
.resource-choice { display: flex; grid-template-columns: none; gap: 10px; align-items: flex-start; padding: 9px 12px; border-bottom: 1px solid #f0f2f1; cursor: pointer; }.resource-choice:last-child { border-bottom: 0; }.resource-choice:hover { background: #f8fbf9; }
.resource-choice span { min-width: 0; }.resource-choice strong, .resource-choice small { display: block; overflow-wrap: anywhere; }.resource-choice strong { color: var(--ink); font-size: 10px; }.resource-choice small { margin-top: 3px; color: var(--muted); font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.sticky-actions { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(180deg, rgba(243,250,247,0), #f3faf7 30%); }
.program-addition { display: grid; gap: 10px; padding: 14px; border: 1px solid #c7d9d1; border-radius: 8px; background: #f7fbf9; }
.program-addition-heading { display: flex; justify-content: space-between; gap: 12px; }.program-addition-heading strong, .program-addition-heading small { display: block; }.program-addition-heading strong { font-size: 12px; }.program-addition-heading small, .program-addition p, .isolation-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.addition-status { align-self: start; flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #7a5610; background: #fff0c8; font-size: 9px; font-weight: 800; }
.program-file-list { display: grid; gap: 5px; }.program-file { width: 100%; padding: 9px 10px; text-align: left; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; cursor: pointer; }.program-file:hover { border-color: var(--green); }.program-file span, .program-file small { display: block; overflow-wrap: anywhere; }.program-file span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }.program-file small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.isolation-note { margin: 0; }
.admin-dialog { width: min(1180px, calc(100vw - 32px)); }
.admin-review-card { height: min(92vh, 900px); max-height: 92vh; overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.admin-review-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.admin-review-header h2 { margin-bottom: 0; }
.admin-review-header .dialog-hint { max-width: 760px; }
.safety-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b9d7ca; border-radius: 999px; color: var(--green); background: #edf8f3; font-size: 10px; font-weight: 800; }
.admin-review-toolbar { display: flex; gap: 10px; align-items: end; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f6; }
.admin-review-toolbar label { width: 220px; }
.admin-review-layout { min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.admin-review-list { padding: 9px; overflow-y: auto; border-right: 1px solid var(--line); background: #f3f6f3; }
.admin-review-item { width: 100%; display: grid; gap: 6px; padding: 12px; border: 1px solid transparent; border-radius: 7px; text-align: left; color: var(--ink); background: transparent; }
.admin-review-item:hover { border-color: #cbdad3; background: white; }
.admin-review-item.active { border-color: #a9cbbb; background: white; box-shadow: 0 3px 12px rgba(19,94,74,.06); }
.admin-review-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.admin-review-item strong { font-size: 12px; line-height: 1.45; }
.admin-review-item small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.review-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; color: #6f541c; background: #fff0c8; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.status-validation_passed, .status-approved, .status-published { color: #165d48; background: #dff2e9; }
.status-validation_failed, .status-rejected { color: #953a30; background: #f9e3df; }
.status-validating { color: #315d82; background: #e3eef8; }
.status-withdrawn, .status-archived { color: #5f6965; background: #e9edeb; }
.admin-review-detail { min-width: 0; padding: 18px 20px 32px; overflow-y: auto; background: white; }
.review-empty, .review-loading { min-height: 220px; display: grid; place-content: center; gap: 7px; padding: 24px; text-align: center; color: var(--muted); }
.review-empty.compact { min-height: 150px; }
.review-empty strong { color: var(--ink); font-size: 13px; }.review-empty p { margin: 0; font-size: 11px; line-height: 1.6; }
.review-loading { font-size: 11px; }
.review-overview { display: grid; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.review-title-row h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.02em; }
.review-title-row > small { color: var(--muted); font-size: 10px; }
.review-overview > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.review-metadata { display: grid; gap: 7px; margin: 0; }
.review-metadata div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.review-metadata dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.review-metadata dd { min-width: 0; margin: 0; font-size: 10px; overflow-wrap: anywhere; }
.review-metadata code { color: #365048; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.review-step { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-step:last-child { border-bottom: 0; }
.review-step-heading { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; }
.review-step-heading > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; font-weight: 800; }
.review-step-heading strong, .review-step-heading small { display: block; }.review-step-heading strong { font-size: 12px; }.review-step-heading small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.review-evidence { display: grid; gap: 3px; padding: 10px 12px; border-left: 3px solid #b5c1bc; color: #4b5752; background: #f3f5f3; }
.review-evidence.passed { border-color: #3b9877; color: #174f3f; background: #edf8f3; }
.review-evidence.failed { border-color: #c45a4b; color: #7e3028; background: #fdf0ed; }
.review-evidence strong { font-size: 11px; }.review-evidence small { font-size: 9px; line-height: 1.5; }
.review-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.review-action-buttons { display: flex; justify-content: flex-end; gap: 9px; }
.danger-outline { color: #9a3c32; border-color: #e0b9b3; background: #fff5f3; }
.confirm-ready { outline: 3px solid rgba(217,153,56,.2); border-color: var(--amber); }
.validation-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.validation-metrics span { padding: 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fbfcfa; text-align: center; font-size: 9px; }
.validation-metrics strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }
.diff-list { display: grid; gap: 8px; }
.diff-card { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.diff-card summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #33433d; background: #f7f9f7; cursor: pointer; font-size: 9px; }
.diff-card summary code { overflow-wrap: anywhere; }.diff-card summary span { color: var(--muted); white-space: nowrap; }
.diff-card pre { max-height: 300px; margin: 0; padding: 12px; overflow: auto; color: #263730; background: #f9fbf9; font: 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding { margin: 8px 10px 0; padding: 8px 9px; border-radius: 5px; font-size: 9px; line-height: 1.5; }
.finding.blocker { color: #852f27; background: #fbe7e3; }.finding.warning { color: #73510d; background: #fff1cc; }
.muted-copy { color: var(--muted); font-size: 9px; }
.review-release-form { display: grid; gap: 10px; }
.review-release-form > button { justify-self: end; }
.account-card { max-height: 88vh; }
.compact-form { gap: 13px; }
.compact-form > button { justify-self: end; }
.security-banner { display: grid; gap: 4px; padding: 12px 14px; border-left: 4px solid var(--amber); color: #684c16; background: #fff5dc; }
.security-banner strong { font-size: 12px; }.security-banner span { font-size: 10px; line-height: 1.5; }
.account-session-section { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.section-title-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.section-title-row strong, .section-title-row small { display: block; }.section-title-row strong { font-size: 12px; }.section-title-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.account-session-list { display: grid; gap: 7px; max-height: 220px; overflow-y: auto; }
.account-session-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbf9; }
.account-session-item strong, .account-session-item small { display: block; }.account-session-item strong { font-size: 10px; }.account-session-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.account-session-item .danger { color: #9a3c32; }
.account-session-section > button { justify-self: end; }
.account-admin-card { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.admin-tabs { display: flex; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.admin-tabs button { padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.admin-tabs button.active { border-color: var(--green); color: var(--green); }
.account-admin-pane { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.account-admin-toolbar label:first-child { flex: 1; width: auto; }.account-admin-toolbar label:nth-child(2) { width: 150px; }
.account-admin-layout { min-height: 0; }
.account-admin-layout .admin-review-detail { padding-bottom: 40px; }
.audit-event-list { min-height: 0; display: grid; align-content: start; gap: 8px; overflow-y: auto; padding: 2px; }
.audit-event-item { display: grid; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfa; }
.audit-event-item strong, .audit-event-item small { display: block; }.audit-event-item strong { color: #263c34; font-size: 11px; }.audit-event-item small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.audit-event-item details { font-size: 9px; }.audit-event-item summary { color: var(--green); cursor: pointer; }.audit-event-item pre { max-height: 180px; margin: 8px 0 0; padding: 10px; overflow: auto; border-radius: 5px; color: #33433d; background: #f0f4f1; font: 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 360px; padding: 12px 16px; border-radius: 8px; color: white; background: #233b33; box-shadow: 0 12px 36px rgba(17,40,32,.24); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 42vh; padding: 48px 34px; }.login-brand h1 { font-size: 42px; }.login-copy { margin-bottom: 0; }.brand-metrics { display: none; }.login-card { min-height: 58vh; padding: 42px 34px; }
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }.product-mark div, .section-heading span, .case-item small, .case-item strong, .user-meta, .sidebar-footer .text-button, .search-box { display: none; }.product-mark { justify-content: center; }.section-heading { justify-content: center; }.case-item { height: 43px; padding: 0; }.case-item::before { content: attr(data-initial); display: grid; place-items: center; height: 100%; font-weight: 800; }.sidebar-footer { grid-template-columns: 1fr; }.avatar { margin: auto; }.workspace-header { padding: 20px; }.workspace-header h1 { font-size: 20px; }.case-meta, .case-kicker { display: none; }.boundary-note { display: none; }
  .admin-review-layout { grid-template-columns: 240px minmax(0, 1fr); }.safety-badge { display: none; }.header-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .app-shell { display: block; }.sidebar { min-height: auto; height: 62px; padding: 13px 16px; flex-direction: row; align-items: center; }.product-mark { padding: 0; }.product-mark div { display: block; }.section-heading, .case-list, .sidebar-footer { display: none; }.workspace { height: calc(100vh - 62px); }.workspace-header { min-height: 98px; }.workspace-grid { grid-template-columns: 1fr; }.header-actions .secondary-button { display: none; }.message-list, .composer, .job-banner { padding-left: 16px; padding-right: 16px; }.form-row { grid-template-columns: 1fr; }
  .admin-review-header { display: block; }.admin-review-toolbar { align-items: stretch; flex-direction: column; }.admin-review-toolbar label, .account-admin-toolbar label:first-child, .account-admin-toolbar label:nth-child(2) { width: auto; }.admin-review-layout { height: 62vh; display: block; overflow-y: auto; }.admin-review-list { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }.admin-review-detail { overflow: visible; }.validation-metrics { grid-template-columns: 1fr 1fr; }.review-action-row { grid-template-columns: 1fr; }.review-metadata div { grid-template-columns: 1fr; gap: 3px; }.account-admin-pane { overflow-y: auto; }.audit-event-list { overflow: visible; }
  .package-summary { grid-template-columns: 1fr; }.package-summary div { border-right: 0; border-bottom: 1px solid #e4ebe7; }.package-summary div:last-child { border-bottom: 0; }.package-actions { justify-content: stretch; }.package-actions button { flex: 1; }.resource-picker-heading { display: grid; }
  .requirement-card { height: 92vh; }.requirement-header { display: block; }.requirement-header button { width: 100%; margin-top: 14px; }.requirement-toolbar { display: block; }.requirement-toolbar label { width: auto; }.requirement-toolbar small { display: block; padding: 8px 0 0; }.requirement-layout { display: block; overflow-y: auto; }.requirement-list { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }.requirement-editor { overflow: visible; }
}
