:root {
  --ink: #182321;
  --muted: #66716e;
  --line: #dde3df;
  --soft: #f3f5f2;
  --paper: #fff;
  --cream: #f7f4ec;
  --green: #0d6d57;
  --green-dark: #075846;
  --green-soft: #e8f3ef;
  --orange: #d56b36;
  --orange-soft: #fff0e8;
  --yellow: #f0b24c;
  --shadow: 0 18px 50px rgba(30, 50, 44, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; background: var(--paper); }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 760; font-size: 19px; letter-spacing: -.5px; color: var(--ink); }
.brand > span:last-child span { color: var(--green); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 9px; }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2; }
.hive-brand { margin-left: 16px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.brand-divider { width: 1px; height: 25px; background: var(--line); margin-right: 2px; }
.hive-glyph { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #692fc2; background: #f1eafd; }
.hive-glyph svg { width: 17px; height: 17px; stroke-width: 1.7; }
.hive-brand > span:last-child { display: grid; line-height: 1.05; }
.hive-brand small { color: #8a928f; font-size: 8.5px; letter-spacing: .15px; }
.hive-brand strong { color: #4b5652; font-size: 10.5px; }
.mode-switcher { margin-left: 32px; display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--soft); border-radius: 9px; }
.mode-switcher button { border: 0; border-radius: 7px; background: transparent; padding: 7px 11px; color: var(--muted); cursor: pointer; font-size: 10.5px; font-weight: 700; }
.mode-switcher button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(30,50,44,.1); }
.mode-switcher button span { min-width: 17px; height: 17px; padding: 0 5px; margin-left: 4px; display: inline-grid; place-items: center; border-radius: 99px; background: #e2e7e4; color: #59635f; font-size: 8px; }
.mode-switcher button.active span { background: var(--green-soft); color: var(--green); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.save-state { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; }
.save-state > span { width: 7px; height: 7px; border-radius: 99px; background: #5cab80; }
.save-state.saving > span { background: var(--yellow); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { border-color: #b5c0bb; background: var(--soft); }

.workspace { display: grid; grid-template-columns: 305px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidebar { background: var(--cream); border-right: 1px solid var(--line); padding: 42px 28px 28px; position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; overflow: auto; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; color: var(--green); font-size: 10px; letter-spacing: 1.5px; font-weight: 800; }
.side-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 28px; line-height: 1.13; margin: 0; letter-spacing: -.7px; font-weight: 500; }
.side-intro > p:last-child { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.steps { margin-top: 32px; display: grid; gap: 6px; position: relative; }
.steps:before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; border-left: 1px dashed #c8ceca; }
.step { position: relative; width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: center; text-align: left; border: 0; padding: 9px 8px 9px 0; border-radius: 9px; background: transparent; cursor: pointer; }
.step-index { z-index: 1; width: 35px; height: 35px; border: 1px solid #cdd4d0; background: var(--cream); color: #77817e; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; }
.step strong, .step small { display: block; }
.step strong { font-size: 12.5px; }
.step small { color: #87908d; font-size: 10.5px; margin-top: 1px; }
.step.active { background: rgba(255,255,255,.7); }
.step.active .step-index { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(13,109,87,.1); }
.step.complete .step-index { font-size: 0; background: var(--green-soft); border-color: #a7c9bd; }
.step.complete .step-index:before { content: "✓"; font-size: 13px; color: var(--green); }
.principle-card { margin-top: auto; display: flex; gap: 10px; padding: 15px; border: 1px solid #d8ded8; border-radius: 12px; background: rgba(255,255,255,.6); }
.principle-card svg { color: var(--green); flex: 0 0 auto; }
.principle-card strong { font-size: 11.5px; }
.principle-card p { font-size: 10.5px; line-height: 1.4; color: var(--muted); margin: 4px 0 0; }
.hive-footer { display: flex; align-items: center; justify-content: center; gap: 6px; color: #919996; font-size: 8.5px; letter-spacing: .15px; }
.footer-hive-glyph { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #692fc2; background: #f1eafd; }
.footer-hive-glyph svg { width: 14px; height: 14px; }
.powered-by { margin-top: 12px; }
.powered-by strong { color: #69736f; font-size: 9px; }
.mobile-hive-footer { display: none; }

.main { min-width: 0; position: relative; padding-bottom: 92px; background: #fcfdfc; }
.progress-wrap { position: sticky; top: 68px; height: 3px; z-index: 15; background: transparent; }
.progress-wrap div { width: 25%; height: 100%; background: var(--green); transition: width .3s ease; }
.panel { display: none; max-width: 940px; margin: 0 auto; padding: 54px 48px; animation: enter .25s ease; }
.panel.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.panel-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.7px; font-size: 31px; line-height: 1.15; margin: 0; }
.panel-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); max-width: 570px; }
.text-button { display: flex; align-items: center; gap: 7px; background: transparent; color: var(--green); border: 0; cursor: pointer; font-weight: 700; font-size: 12px; padding: 8px; white-space: nowrap; }
.text-button:hover { color: var(--green-dark); }
.text-button svg { width: 17px; }

.details-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 26px; box-shadow: 0 5px 18px rgba(30,50,44,.03); }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-weight: 700; font-size: 12px; }
.field b { color: var(--orange); }
.field input, .field textarea { width: 100%; border: 1px solid #d5ddd8; background: #fff; border-radius: 9px; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #a1aaa6; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,109,87,.09); }
.field small { color: #87908d; font-size: 10.5px; }
.field.invalid input, .field.invalid textarea { border-color: #c95043; background: #fffafa; }
.notice { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; border-radius: 10px; padding: 13px 15px; font-size: 12px; }
.notice svg { flex: 0 0 auto; width: 18px; }
.notice p { margin: 0; }
.notice.neutral { background: #f0f4f2; color: #52605c; }

.section-score { flex: 0 0 auto; display: flex; align-items: baseline; gap: 4px; border-left: 1px solid var(--line); padding-left: 24px; margin-top: 10px; }
.section-score strong { font-family: Georgia, serif; font-size: 30px; font-weight: 500; color: var(--green); }
.section-score span { font-size: 10px; color: var(--muted); }
.factor-list { display: grid; gap: 14px; }
.factor-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.factor-card.complete { border-color: #bfd2ca; }
.factor-card.open { box-shadow: 0 10px 25px rgba(30,50,44,.06); }
.factor-head { width: 100%; display: grid; grid-template-columns: 40px 1fr auto 20px; align-items: center; gap: 14px; border: 0; background: white; padding: 19px 20px; text-align: left; cursor: pointer; }
.factor-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 9px; }
.factor-icon svg { width: 19px; }
.factor-head h3 { font-size: 13.5px; margin: 0; }
.factor-head p { font-size: 11px; margin: 3px 0 0; color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 8px; }
.rating-summary small { color: #939c98; font-size: 10px; }
.rating-badge { min-width: 67px; text-align: center; padding: 5px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.rating-badge.high { background: var(--orange-soft); color: #a94a20; }
.rating-badge.medium { background: #fff5da; color: #8b6311; }
.rating-badge.low { background: var(--green-soft); color: var(--green); }
.factor-head .chevron { width: 18px; color: #83908b; transition: transform .2s; }
.factor-card.open .factor-head .chevron { transform: rotate(180deg); }
.factor-body { padding: 0 20px 22px 74px; }
.question { font-family: Georgia, serif; font-size: 17px; line-height: 1.35; margin: 0 0 15px; }
.rating-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.rating-option { position: relative; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; pointer-events: none; }
.rating-option > span { min-height: 112px; display: block; border: 1px solid var(--line); border-radius: 10px; padding: 13px; transition: border .15s, background .15s, box-shadow .15s; }
.rating-option > span > strong { display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; font-size: 10px; letter-spacing: .7px; }
.rating-option > span > strong i { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #cbd4cf; border-radius: 50%; font-style: normal; color: transparent; }
.rating-option > span > p { margin: 8px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.rating-option input:checked + span { border-color: var(--green); background: #f5faf8; box-shadow: 0 0 0 2px rgba(13,109,87,.08); }
.rating-option input:checked + span > strong { color: var(--green); }
.rating-option input:checked + span > strong i { color: white; background: var(--green); border-color: var(--green); }
.justification { margin-top: 14px; }
.justification textarea { min-height: 76px; }
.factor-card.invalid { border-color: #d6786e; }
.hint-row { display: flex; justify-content: space-between; color: #909995; font-size: 10px; margin-top: 5px; }

.result-panel { max-width: 1040px; }
.result-empty { min-height: 530px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.empty-icon svg { width: 28px; height: 28px; }
.result-empty h2 { font-family: Georgia, serif; font-weight: 500; font-size: 28px; margin: 18px 0 6px; }
.result-empty p { color: var(--muted); max-width: 390px; margin: 0 0 20px; }
.result-hero { background: var(--green); color: white; border-radius: 18px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.result-hero:after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -74px; top: -74px; box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 64px rgba(255,255,255,.025); }
.result-heading { position: relative; z-index: 1; }
.result-heading .eyebrow { color: #b8dfd3; }
.tier-title { display: flex; gap: 18px; align-items: center; }
.tier-number { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; font-family: Georgia, serif; font-size: 31px; }
.tier-title h2 { font-family: Georgia, serif; font-size: 31px; line-height: 1; font-weight: 500; margin: 0; }
.tier-title p { margin: 7px 0 0; color: #cbe5dd; font-size: 12px; }
.score-ring { z-index: 1; flex: 0 0 auto; width: 92px; height: 92px; padding: 7px; border-radius: 50%; background: conic-gradient(#f2c063 var(--score-angle), rgba(255,255,255,.15) 0); }
.score-ring > div { width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--green); }
.score-ring strong { font-family: Georgia, serif; font-size: 29px; line-height: 1; font-weight: 500; }
.score-ring span { color: #b9d8cf; font-size: 9px; }
.result-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 15px; margin-top: 15px; }
.summary-card, .breakdown-card, .details-card, .appeal-card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.summary-card, .breakdown-card { padding: 22px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-title h3 { margin: 0; font-size: 13px; }
.card-title > span:not(.confidence-pill) { color: var(--muted); font-size: 10px; }
.confidence-pill { border-radius: 99px; background: var(--green-soft); color: var(--green); padding: 5px 9px; text-transform: uppercase; letter-spacing: .5px; font-size: 8.5px; font-weight: 800; }
.confidence-pill.medium { color: #8a6211; background: #fff4d5; }
.summary-text { color: #4d5b57; font-family: Georgia, serif; font-size: 16px; line-height: 1.5; margin: 16px 0; }
.launch-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; color: var(--muted); font-size: 10px; }
.launch-meta span { display: flex; gap: 6px; align-items: center; }
.launch-meta svg { width: 14px; }
.support-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.support-list span { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.support-list span:before { content: "✓"; width: 17px; height: 17px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 9px; font-weight: 900; }
.score-bars { display: grid; gap: 15px; margin-top: 20px; }
.score-bars span { display: flex; justify-content: space-between; font-size: 10.5px; margin-bottom: 6px; }
.score-bars span b { font-size: 9.5px; }
.score-bars div > div { height: 7px; background: #edf0ee; border-radius: 99px; overflow: hidden; }
.score-bars i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .4s ease; }
.attention { margin-top: 20px; padding: 12px; border-radius: 9px; background: #f5f6f4; font-size: 10.5px; color: var(--muted); }
.attention strong { display: block; color: var(--ink); margin-bottom: 4px; }
.attention ul { padding-left: 16px; margin: 6px 0 0; }
.details-card { margin-top: 15px; overflow: hidden; }
.details-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border: 0; background: white; cursor: pointer; }
.details-toggle > span { display: flex; gap: 9px; align-items: center; }
.details-toggle > span svg { color: var(--green); }
.details-toggle .chevron { transition: transform .2s; }
.details-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.criterion-results { border-top: 1px solid var(--line); }
.criterion-row { display: grid; grid-template-columns: 1fr 85px 1.8fr; align-items: center; gap: 16px; padding: 13px 20px; border-bottom: 1px solid #edf0ee; font-size: 10.5px; }
.criterion-row:last-child { border-bottom: 0; }
.criterion-row p { color: var(--muted); margin: 0; }
.appeal-card { padding: 18px 20px; margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.appeal-card > div:first-child { display: flex; align-items: center; gap: 12px; }
.appeal-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--orange-soft); color: var(--orange); }
.appeal-card h3 { font-size: 12.5px; margin: 0; }
.appeal-card p { color: var(--muted); font-size: 10.5px; margin: 2px 0 0; }
.appeal-form { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; }
.appeal-form > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.signoff-bar { margin-top: 15px; background: #f0f3f1; border-radius: 13px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.signoff-bar > div { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 9px; height: 9px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 4px rgba(240,178,76,.17); }
.status-dot.approved { background: #44a276; box-shadow: 0 0 0 4px rgba(68,162,118,.16); }
.signoff-bar p { margin: 0; }
.signoff-bar strong, .signoff-bar small { display: block; }
.signoff-bar strong { font-size: 11px; }
.signoff-bar small { color: var(--muted); font-size: 9.5px; }

.form-footer { position: fixed; z-index: 14; bottom: 0; right: 0; left: 305px; min-height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 12px 34px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.footer-progress { display: grid; text-align: center; }
.footer-progress strong { font-size: 10.5px; }
.footer-progress span { color: var(--muted); font-size: 9.5px; }
.primary-button, .secondary-button, .approve-button { min-height: 38px; border-radius: 9px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; cursor: pointer; font-weight: 750; font-size: 11.5px; transition: background .15s, transform .1s, border-color .15s; }
.primary-button:active, .secondary-button:active, .approve-button:active { transform: translateY(1px); }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: white; border-color: #d5ddd8; }
.secondary-button:hover { background: var(--soft); border-color: #b7c2bd; }
.approve-button { background: var(--ink); color: white; }
.approve-button:hover { background: #2c3d39; }
.approve-button.approved { background: var(--green); }
.primary-button svg, .secondary-button svg, .approve-button svg { width: 16px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 50; transform: translate(-50%, 15px); background: var(--ink); color: white; border-radius: 9px; padding: 10px 15px; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.backoffice { min-height: calc(100vh - 68px); padding: 42px 46px 28px; background: #f7f8f6; }
.backoffice-header { max-width: 1320px; margin: 0 auto 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.backoffice-header h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 34px; letter-spacing: -.8px; margin: 0; }
.backoffice-header p:last-child { color: var(--muted); margin: 7px 0 0; }
.metric-grid { max-width: 1320px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid article { min-height: 112px; display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.metric-grid article > small { grid-column: 1 / -1; color: #8a9490; font-size: 9.5px; padding-top: 8px; border-top: 1px solid #edf0ee; }
.metric-grid article div { display: grid; }
.metric-grid article strong { font-family: Georgia, serif; font-size: 27px; line-height: 1; font-weight: 500; }
.metric-grid article div span { color: var(--muted); font-size: 9.5px; margin-top: 4px; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; }
.metric-icon svg { width: 19px; }
.metric-icon.review { color: #9a6910; background: #fff3d4; }
.metric-icon.approved { color: var(--green); background: var(--green-soft); }
.metric-icon.tier-one { color: #ac4b25; background: var(--orange-soft); }
.metric-icon.upcoming { color: #5d4ba4; background: #f0edff; }
.review-toolbar { max-width: 1320px; margin: 0 auto 12px; display: flex; gap: 9px; align-items: center; }
.search-field { min-width: 300px; margin-right: auto; display: flex; align-items: center; gap: 8px; padding: 0 11px; height: 39px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.search-field svg { width: 16px; color: #89928e; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.select-field { height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.select-field > span { color: #89928e; font-size: 9.5px; }
.select-field select { border: 0; outline: 0; background: white; color: var(--ink); font-size: 10.5px; font-weight: 700; }
.review-layout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(620px, 1fr) 390px; gap: 13px; align-items: start; }
.review-list-card, .review-detail { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.list-heading { min-height: 59px; display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.list-heading h2 { display: inline; font-size: 12.5px; margin: 0 8px 0 0; }
.list-heading div span { color: #8b9490; font-size: 9.5px; }
.live-indicator { display: flex; align-items: center; gap: 6px; color: #78827e; font-size: 9px; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #54a67e; box-shadow: 0 0 0 3px rgba(84,166,126,.13); }
.table-wrap { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.review-table th { padding: 10px 13px; text-align: left; color: #8a9490; background: #fafbfa; border-bottom: 1px solid #e7ebe8; text-transform: uppercase; letter-spacing: .55px; font-size: 8px; }
.review-table th:first-child { width: 27%; }
.review-table th:nth-child(2) { width: 18%; }
.review-table th:nth-child(3) { width: 15%; }
.review-table th:nth-child(4) { width: 13%; }
.review-table th:nth-child(5) { width: 20%; }
.review-table th:last-child { width: 7%; }
.review-table td { padding: 14px 13px; border-bottom: 1px solid #edf0ee; vertical-align: middle; color: #53605c; font-size: 10px; }
.review-table tr:last-child td { border-bottom: 0; }
.review-table tbody tr { cursor: pointer; transition: background .15s; }
.review-table tbody tr:hover, .review-table tbody tr.active { background: #f6faf8; }
.launch-cell { display: grid; }
.launch-cell strong { color: var(--ink); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch-cell span { color: #89928e; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-cell { display: flex; gap: 7px; align-items: center; color: var(--ink); }
.service-number { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cad8d2; border-radius: 7px; color: var(--green); background: var(--green-soft); font-family: Georgia, serif; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .4px; font-size: 7.5px; font-weight: 850; white-space: nowrap; }
.status-pill:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.submitted { color: #9a6810; background: #fff4d7; }
.status-pill.in-review { color: #356994; background: #eaf3fa; }
.status-pill.appealed { color: #9b4c27; background: var(--orange-soft); }
.status-pill.approved { color: var(--green); background: var(--green-soft); }
.status-pill.rejected { color: #a34747; background: #fbecec; }
.reviewer-cell { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.avatar { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #ebe7f8; color: #65559a; font-size: 8px; font-weight: 800; }
.row-arrow { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #85908b; }
.row-arrow svg { width: 15px; }
.queue-empty { min-height: 355px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; }
.queue-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.queue-empty h3 { margin: 14px 0 4px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.queue-empty p { color: var(--muted); margin: 0 0 16px; font-size: 11px; }
.queue-empty > div { display: flex; gap: 8px; }
.review-detail { position: sticky; top: 82px; min-height: 420px; }
.detail-placeholder { min-height: 420px; padding: 40px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.detail-placeholder > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #8a9490; background: var(--soft); }
.detail-placeholder h3 { margin: 12px 0 4px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.detail-placeholder p { max-width: 240px; color: var(--muted); font-size: 10.5px; margin: 0; }
.detail-head { padding: 20px; color: white; background: var(--green); }
.detail-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.detail-head h2 { font-family: Georgia, serif; font-size: 23px; line-height: 1.15; font-weight: 500; margin: 9px 0 4px; }
.detail-head p { color: #c9e1da; margin: 0; font-size: 10px; }
.detail-score { width: 49px; height: 49px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); font-family: Georgia, serif; font-size: 20px; }
.detail-score small { font-family: inherit; font-size: 9px; color: #cce4dc; }
.detail-body { padding: 17px 19px 20px; }
.decision-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.decision-controls label { display: grid; gap: 5px; color: #89928e; text-transform: uppercase; letter-spacing: .5px; font-size: 7.5px; }
.decision-controls select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 8px 9px; outline: 0; color: var(--ink); font-size: 10px; }
.detail-section { padding: 15px 0; border-bottom: 1px solid #edf0ee; }
.detail-section:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-section h3 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .7px; font-size: 8px; color: #8b9490; }
.detail-section > p { margin: 0; color: #4f5c58; font-family: Georgia, serif; font-size: 13px; line-height: 1.45; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-meta span { display: grid; color: #89928e; font-size: 8.5px; }
.detail-meta strong { color: var(--ink); margin-top: 2px; font-size: 10px; font-weight: 700; }
.mini-scores { display: grid; gap: 8px; }
.mini-scores div > span { display: flex; justify-content: space-between; color: #66716e; font-size: 9px; margin-bottom: 4px; }
.mini-scores div > i { height: 5px; display: block; border-radius: 99px; background: #edf0ee; overflow: hidden; }
.mini-scores div > i:after { content: ""; width: var(--width); height: 100%; display: block; background: var(--green); border-radius: inherit; }
.review-rationale summary { display: flex; justify-content: space-between; cursor: pointer; color: var(--ink); font-size: 10px; font-weight: 750; list-style: none; }
.review-rationale summary::-webkit-details-marker { display: none; }
.review-rationale summary span { color: #89928e; font-size: 8.5px; font-weight: 500; }
.review-rationale > div { margin-top: 10px; display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.review-rationale article { padding: 9px; border-radius: 8px; background: #f7f9f7; }
.review-rationale article header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.review-rationale article header strong { font-size: 9px; }
.review-rationale article p { margin: 5px 0 0; color: #6e7874; font-size: 8.5px; line-height: 1.4; }
.review-rationale .rating-badge { min-width: 52px; padding: 3px 6px; font-size: 7px; }
.audit-list { display: grid; gap: 0; }
.audit-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding-bottom: 12px; }
.audit-item:last-child { padding-bottom: 0; }
.audit-item:before { content: ""; position: absolute; left: 7px; top: 13px; bottom: 0; width: 1px; background: #dfe5e1; }
.audit-item:last-child:before { display: none; }
.audit-dot { width: 15px; height: 15px; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 7px; }
.audit-item strong, .audit-item small { display: block; }
.audit-item strong { font-size: 9.5px; }
.audit-item small { color: #8a9490; font-size: 8px; margin-top: 1px; }
.detail-actions { display: flex; gap: 8px; margin-top: 15px; }
.detail-actions button { flex: 1; }
.backoffice-powered { max-width: 1320px; margin: 19px auto 0; color: #979f9c; }
.backoffice-powered strong { color: #747e7a; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 230px minmax(0,1fr); }
  .sidebar { padding: 30px 18px 22px; }
  .side-intro h1 { font-size: 23px; }
  .principle-card { display: none; }
  .panel { padding: 42px 30px; }
  .form-footer { left: 230px; }
  .rating-options { grid-template-columns: 1fr; }
  .rating-option > span { min-height: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .mode-switcher { margin-left: 18px; }
  .backoffice { padding: 32px 24px 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .review-layout { grid-template-columns: 1fr; }
  .review-detail { position: static; }
}

@media (max-width: 660px) {
  .topbar { height: 60px; padding: 0 16px; }
  .save-state { display: none; }
  .hive-brand { margin-left: 10px; }
  .hive-brand small, .hive-brand strong, .brand-divider { display: none; }
  .hive-glyph { width: 29px; height: 29px; }
  .mode-switcher { position: fixed; z-index: 17; left: 50%; bottom: 78px; transform: translateX(-50%); margin: 0; padding: 5px; background: rgba(24,35,33,.94); box-shadow: 0 8px 30px rgba(0,0,0,.22); }
  .mode-switcher button { color: #c4ceca; }
  .mode-switcher button.active { color: var(--ink); }
  .mode-switcher button span { vertical-align: middle; }
  .workspace { display: block; }
  .sidebar { position: sticky; top: 60px; z-index: 16; width: 100%; height: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-intro, .principle-card, .powered-by { display: none; }
  .steps { grid-template-columns: repeat(4, 1fr); margin: 0; gap: 3px; }
  .steps:before { display: none; }
  .step { grid-template-columns: 1fr; justify-items: center; padding: 5px 3px; }
  .step-index { width: 27px; height: 27px; background: var(--cream); }
  .step div, .step > span:last-child { display: none; }
  .progress-wrap { top: 110px; }
  .panel { padding: 32px 17px 120px; }
  .panel-heading { display: block; }
  .panel-heading .text-button { margin: 10px -8px 0; }
  .panel-heading h2 { font-size: 27px; }
  .section-score { border: 0; padding: 0; margin: 16px 0 -10px; }
  .details-form { grid-template-columns: 1fr; padding: 18px; }
  .field.wide { grid-column: auto; }
  .factor-head { grid-template-columns: 36px 1fr 18px; padding: 15px; gap: 10px; }
  .factor-icon { width: 35px; height: 35px; }
  .rating-summary { grid-column: 2; justify-self: start; }
  .factor-head .chevron { grid-column: 3; grid-row: 1 / 3; }
  .factor-body { padding: 0 15px 18px; }
  .result-hero { padding: 24px 20px; }
  .tier-number { width: 46px; height: 46px; font-size: 25px; }
  .tier-title { gap: 11px; }
  .tier-title h2 { font-size: 25px; }
  .score-ring { width: 76px; height: 76px; }
  .score-ring strong { font-size: 24px; }
  .support-list { grid-template-columns: 1fr; }
  .criterion-row { grid-template-columns: 1fr auto; }
  .criterion-row p { grid-column: 1 / -1; }
  .appeal-card, .signoff-bar { align-items: stretch; flex-direction: column; }
  .signoff-bar > div:last-child { display: grid; grid-template-columns: 1fr; }
  .form-footer { left: 0; min-height: 68px; padding: 10px 15px; }
  .footer-progress { display: none; }
  .toast { bottom: 134px; }
  .mobile-hive-footer { display: flex; margin: -94px 0 96px; }
  .backoffice { min-height: calc(100vh - 60px); padding: 27px 14px 86px; }
  .backoffice-header { align-items: stretch; flex-direction: column; gap: 15px; }
  .backoffice-header h1 { font-size: 29px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-grid article { min-height: 101px; padding: 13px; grid-template-columns: 34px 1fr; gap: 9px; }
  .metric-icon { width: 34px; height: 34px; }
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; width: 100%; }
  .select-field { justify-content: space-between; }
  .review-layout { display: block; }
  .review-table { min-width: 720px; }
  .review-detail { margin-top: 12px; }
  .queue-empty > div { flex-direction: column; }
}
