:root {
  --ink: #23251f;
  --muted: #6f7167;
  --paper: #f1ede2;
  --card: #fbf8f0;
  --sage: #667460;
  --sage-dark: #3e4b3d;
  --sage-pale: #dfe5d9;
  --clay: #b66143;
  --clay-pale: #eed6c8;
  --line: rgba(35, 37, 31, .16);
  --shadow: 0 24px 70px rgba(70, 58, 41, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(182, 97, 67, .16), transparent 28rem),
    radial-gradient(circle at 5% 26%, rgba(102, 116, 96, .16), transparent 32rem),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.grain { position: fixed; z-index: -1; inset: 0; opacity: .28; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }

.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 42px clamp(22px, 5vw, 78px) 30px; border-bottom: 1px solid var(--line); }
.hero > div:first-child { flex: 1 1 auto; min-width: 0; }
.eyebrow { color: var(--sage-dark); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.eyebrow::before { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--clay); content: ""; }
h1 { margin: 12px 0 8px; font-family: "Iowan Old Style", "Songti SC", serif; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.25; }
h1 em { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--clay); font-style: normal; }
.hero p { max-width: none; margin: 0; overflow-x: auto; color: var(--muted); white-space: nowrap; scrollbar-width: none; }
.hero p::-webkit-scrollbar { display: none; }
.identity { display: grid; flex: 0 0 auto; min-width: 235px; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(251, 248, 240, .74); box-shadow: 0 10px 30px rgba(70, 58, 41, .07); }
.identity span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.identity strong { overflow: hidden; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 17px; font-weight: 500; text-overflow: ellipsis; }
.identity small { display: flex; align-items: center; gap: 6px; color: var(--sage-dark); }
.identity i { width: 6px; height: 6px; border-radius: 50%; background: #4d8755; }
.identity button { margin-left: auto; padding: 0; border: 0; color: var(--clay); background: transparent; cursor: pointer; font-size: 10px; }

.review-tabs { display: flex; gap: 8px; padding: 18px clamp(22px, 5vw, 78px) 0; }
.review-tabs button { display: flex; align-items: center; gap: 12px; min-width: 190px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; color: var(--muted); background: rgba(251, 248, 240, .54); cursor: pointer; text-align: left; }
.review-tabs button span { font-family: "Iowan Old Style", "Songti SC", serif; font-size: 15px; }
.review-tabs button b { margin-left: auto; padding: 2px 8px; border-radius: 20px; background: rgba(102, 116, 96, .12); font-size: 9px; font-weight: 700; }
.review-tabs button.active { border-color: var(--sage-dark); color: white; background: var(--sage-dark); }
.review-tabs button.active b { background: rgba(255, 255, 255, .16); }

.assessment-tabs { display: flex; align-items: center; gap: 5px; margin: 0 clamp(22px, 5vw, 78px); padding: 10px 12px; border: 1px solid var(--line); border-bottom: 0; background: rgba(251, 248, 240, .68); }
.assessment-tabs > span { margin-right: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.assessment-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.assessment-tabs button b { margin-left: 5px; font-size: 9px; }
.assessment-tabs button.active { color: white; background: var(--clay); }

.metrics { position: relative; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); margin: 0 clamp(22px, 5vw, 78px); border-inline: 1px solid var(--line); background: var(--line); gap: 1px; }
.metrics.with-minute-complete { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.metrics > div:not(.progress) { display: flex; align-items: baseline; gap: 10px; padding: 17px 22px; background: rgba(251, 248, 240, .72); }
.metrics strong { font-family: "Iowan Old Style", "Songti SC", serif; font-size: 28px; font-weight: 500; }
.metrics span { color: var(--muted); font-size: 11px; }
.metric-accent strong { color: var(--clay); }
.progress { position: absolute; right: 0; bottom: -2px; left: 0; height: 3px; background: rgba(102, 116, 96, .16); }
.progress i { display: block; width: 0; height: 100%; background: var(--clay); transition: width .28s ease; }

.workspace { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(28px, 4vw, 58px); padding: 38px clamp(22px, 5vw, 78px) 80px; }
.workspace.detail-mode { grid-template-columns: minmax(0, 1fr); }
.workspace.detail-mode > aside { display: none; }
.assessment-workspace { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(28px, 4vw, 58px); padding: 38px clamp(22px, 5vw, 78px) 80px; }
.report-workspace { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(28px, 4vw, 58px); padding: 38px clamp(22px, 5vw, 78px) 80px; }
aside { position: sticky; top: 18px; align-self: start; }
.aside-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 11px; border-bottom: 1px solid var(--ink); }
.aside-title span { font-family: "Iowan Old Style", "Songti SC", serif; font-size: 18px; }
.aside-title small { color: var(--muted); font-size: 9px; }
#library-nav { padding-block: 9px; }
#library-nav button { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid rgba(35, 37, 31, .08); color: var(--muted); background: transparent; cursor: pointer; text-align: left; transition: .15s ease; }
#library-nav button:hover, #library-nav button.active { padding-left: 9px; color: var(--ink); }
#library-nav button.active { box-shadow: inset 2px 0 var(--clay); }
#library-nav i { font-family: "Iowan Old Style", serif; font-size: 10px; font-style: normal; }
#library-nav b { min-width: 22px; padding: 2px 6px; border-radius: 20px; background: rgba(102, 116, 96, .12); font-size: 9px; text-align: center; }
#question-nav { padding-block: 9px; }
#question-nav button { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid rgba(35, 37, 31, .08); color: var(--muted); background: transparent; cursor: pointer; text-align: left; transition: .15s ease; }
#question-nav button:hover, #question-nav button.active { padding-left: 9px; color: var(--ink); }
#question-nav button.active { box-shadow: inset 2px 0 var(--clay); }
#question-nav i { font-family: "Iowan Old Style", serif; font-size: 10px; font-style: normal; }
#question-nav b { min-width: 34px; padding: 2px 6px; border-radius: 20px; background: rgba(102, 116, 96, .12); font-size: 8px; text-align: center; }
#report-family-nav { padding-block: 9px; }
#report-family-nav button { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid rgba(35, 37, 31, .08); color: var(--muted); background: transparent; cursor: pointer; text-align: left; transition: .15s ease; }
#report-family-nav button:hover, #report-family-nav button.active { padding-left: 9px; color: var(--ink); }
#report-family-nav button.active { box-shadow: inset 2px 0 var(--clay); }
#report-family-nav i { font-family: "Iowan Old Style", serif; font-size: 10px; font-style: normal; }
#report-family-nav b { min-width: 34px; padding: 2px 6px; border-radius: 20px; background: rgba(102, 116, 96, .12); font-size: 8px; text-align: center; }
.group-flow-copy { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 13px 15px; border-left: 3px solid var(--clay); background: rgba(154, 99, 75, .07); }
.group-flow-copy b { flex: 0 0 auto; color: var(--clay); font-size: 11px; letter-spacing: .08em; }
.group-flow-copy span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.assessment-flow-note { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 10px; margin: 22px 0 30px; padding: 18px; border: 1px solid rgba(154, 99, 75, .2); border-radius: 18px; background: linear-gradient(135deg, rgba(154, 99, 75, .08), rgba(102, 116, 96, .08)); }
.assessment-flow-note div { display: flex; align-items: baseline; gap: 7px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .62); }
.assessment-flow-note strong { color: var(--clay); font: 28px/1 "Iowan Old Style", serif; }
.assessment-flow-note span { color: var(--muted); font-size: 11px; }
.assessment-flow-note p { grid-column: 1 / -1; margin: 2px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.assessment-flow-note b { color: var(--ink); }
.report-model-note { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 10px; margin: 22px 0 30px; padding: 18px; border: 1px solid rgba(102, 116, 96, .24); border-radius: 18px; background: linear-gradient(135deg, rgba(102, 116, 96, .11), rgba(182, 97, 67, .06)); }
.report-model-note div { display: flex; align-items: baseline; gap: 7px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .62); }
.report-model-note strong { color: var(--sage-dark); font: 28px/1 "Iowan Old Style", serif; }
.report-model-note span { color: var(--muted); font-size: 11px; }
.report-model-note p { grid-column: 1 / -1; margin: 2px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.report-model-note b { color: var(--ink); }
.aside-note { margin-top: 15px; padding: 14px; border-left: 2px solid var(--clay); background: rgba(251, 248, 240, .55); }
.aside-note b { color: var(--clay); font-size: 9px; letter-spacing: .14em; }
.aside-note p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

main { min-width: 0; }
.action-detail-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251, 248, 240, .74); }
.action-detail-bar a { color: var(--clay); font-size: 11px; font-weight: 700; text-decoration: none; }
.action-detail-bar div { display: grid; gap: 1px; padding-left: 18px; border-left: 1px solid var(--line); }
.action-detail-bar span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.action-detail-bar strong { font-family: "Iowan Old Style", "Songti SC", serif; font-size: 17px; font-weight: 500; }
.action-detail-bar > b { color: var(--muted); font-family: "Iowan Old Style", serif; font-size: 11px; font-weight: 500; }
.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.assessment-toolbar { grid-template-columns: auto minmax(220px, 1fr) minmax(125px, 155px) minmax(125px, 155px) auto auto; }
.report-toolbar { grid-template-columns: minmax(260px, 1fr) auto auto; }
.search { display: grid; gap: 5px; }
.search span, .branch-filter span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.search input { height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(251, 248, 240, .72); outline: 0; }
.branch-filter { display: grid; gap: 5px; }
.branch-filter select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(251, 248, 240, .72); outline: 0; }
.status-filter { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(251, 248, 240, .72); }
.status-filter button { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.status-filter button.active { color: white; background: var(--sage-dark); }
.bank-filter { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--clay); border-radius: 10px; background: rgba(251, 248, 240, .72); }
.bank-filter button { display: grid; gap: 1px; align-content: center; height: 38px; padding: 0 14px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.bank-filter button small { font-size: 8.5px; font-weight: 600; letter-spacing: .09em; }
.bank-filter button.active { color: white; background: var(--clay); }
.export { display: inline-flex; align-items: center; height: 42px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; padding: 17px 19px; border-block: 1px solid var(--line); }
.section-heading span { color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin: 2px 0 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 24px; font-weight: 500; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
#question-section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; }
#question-section-heading .group-flow-copy { grid-column: 1 / -1; }
#question-section-heading .group-flow-copy span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.65; }
#report-section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; }
#report-section-heading .group-flow-copy { grid-column: 1 / -1; }
#report-section-heading .group-flow-copy span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.65; }
.cards { display: grid; gap: 18px; }
.cards.overview-mode { display: block; }
.action-overview { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(251, 248, 240, .76); box-shadow: var(--shadow); }
.action-overview-head, .action-overview-row { display: grid; grid-template-columns: 58px minmax(220px, 1.45fr) minmax(150px, .8fr) minmax(205px, 1fr) minmax(170px, .85fr) 28px; gap: 16px; align-items: center; }
.action-overview-head { min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: rgba(102, 116, 96, .08); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.action-overview-row { min-height: 78px; padding: 12px 16px; border-bottom: 1px solid rgba(35, 37, 31, .1); color: var(--ink); text-decoration: none; transition: background .16s ease, transform .16s ease; }
.action-overview-row:last-child { border-bottom: 0; }
.action-overview-row:hover { background: #fffdf8; box-shadow: inset 3px 0 var(--clay); }
.action-overview-row:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.overview-id { display: grid; gap: 2px; color: var(--clay); font-family: "Iowan Old Style", serif; font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.overview-id strong { font-size: 17px; line-height: 1; }
.overview-id small { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.overview-action, .overview-library, .overview-review-scope { display: grid; min-width: 0; gap: 3px; }
.overview-action strong { overflow: hidden; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.action-overview-row b { overflow: hidden; font-size: 10px; font-weight: 650; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.overview-library b { white-space: normal; }
.action-overview-row small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.overview-review-scope { justify-self: start; }
.review-stage-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; }
.review-stage-chip b { font-size: 10px; font-weight: 750; }
.review-stage-chip small { color: rgba(255, 255, 255, .84); font-size: 9px; font-weight: 700; }
.review-stage-chip.segment-pending { color: #fff; border-color: #8f601b; background: #b87925; box-shadow: 0 3px 10px rgba(184, 121, 37, .22); }
.review-stage-chip.segments-passed { color: #fff; border-color: #28543a; background: #39724e; box-shadow: 0 3px 10px rgba(57, 114, 78, .2); }
.review-stage-chip.segments-revise { color: #fff; border-color: #8f211a; background: #cf3f32; box-shadow: 0 3px 12px rgba(207, 63, 50, .3); }
.review-stage-chip.missing { color: var(--muted); border-color: var(--line); background: rgba(102, 116, 96, .08); }
.overview-next-action { min-width: 0; color: var(--sage-dark); }
.overview-next-action b { display: block; overflow: visible; white-space: normal; }
.overview-next-action.revise { color: #8b3f2f; }
.overview-open { color: var(--clay); font-family: "Iowan Old Style", serif; font-size: 18px; transition: transform .16s ease; }
.action-overview-row:hover .overview-open { transform: translateX(3px); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.review-upper, .review-lower { display: grid; grid-template-columns: minmax(250px, 32%) minmax(0, 1fr); }
.review-lower { padding-top: 40px; }
.media-column { min-width: 0; background: #272923; }
.media-section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 15px; color: white; border-bottom: 1px solid rgba(255,255,255,.1); }
.media-section-label strong { font-size: 11px; }
.media-section-label span { color: rgba(255,255,255,.58); font-size: 8px; text-align: right; }
.video-shell { position: relative; min-height: 465px; background: #272923; }
.video-shell video { display: block; width: 100%; height: 100%; max-height: 570px; object-fit: contain; background: #20221e; }
.video-buffer-status { position: absolute; right: 13px; bottom: 52px; z-index: 3; display: none; max-width: calc(100% - 26px); padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; color: #f6f4ed; background: rgba(24, 26, 22, .78); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); backdrop-filter: blur(8px); font-size: 11px; line-height: 1.25; }
.video-buffer-status.visible { display: block; }
.video-buffer-status.waiting::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff; border-radius: 50%; vertical-align: -1px; animation: video-buffer-spin .8s linear infinite; }
@keyframes video-buffer-spin { to { transform: rotate(360deg); } }
.video-id { position: absolute; z-index: 2; top: 13px; padding: 5px 9px; border-radius: 20px; color: white; background: rgba(24, 26, 22, .72); backdrop-filter: blur(8px); font-size: 10px; }
.video-id { left: 13px; font-family: "Iowan Old Style", serif; letter-spacing: .08em; }
.missing-media { display: grid; height: 100%; min-height: 465px; place-items: center; color: rgba(255,255,255,.55); }
.card-content { min-width: 0; padding: 20px; }
.v1-reference { padding: 16px 15px 18px; background: #30322c; }
.v1-reference-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.v1-reference-heading > div { display: flex; align-items: baseline; gap: 10px; }
.v1-reference-heading strong { color: white; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 14px; font-weight: 600; }
.v1-reference-heading span, .v1-reference-heading small { color: rgba(255,255,255,.55); font-size: 8px; }
.v1-reference video { display: block; width: 100%; max-height: 500px; border-radius: 10px; object-fit: contain; background: #20221e; }
.reference-missing { display: grid; min-height: 180px; place-items: center; border-radius: 12px; color: rgba(255,255,255,.55); background: #272923; }
.card-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.final { display: flex; align-items: center; gap: 6px; color: var(--sage-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.final i { width: 6px; height: 6px; border-radius: 50%; background: #4d8755; }
.card-heading h2 { margin: 5px 0 2px; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 22px; font-weight: 500; }
.card-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.issue-badge { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 12px; color: #8b3f2f; background: var(--clay-pale); font-size: 9px; }
.partner-review-badge { display: inline-block; margin-left: 7px; padding: 3px 8px; border: 1px solid rgba(182, 97, 67, .35); border-radius: 12px; color: var(--clay); background: rgba(182, 97, 67, .10); font-size: 9px; letter-spacing: .02em; }
.review-controls { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; }
.decision-menu, .next-action-menu { position: relative; z-index: 8; align-self: start; width: max-content; }
.decision-trigger, .next-action-trigger { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; width: auto; min-height: 38px; padding: 0 11px 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fffdf8; box-shadow: 0 3px 10px rgba(42, 41, 35, .04); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; }
.decision-trigger > i, .next-action-trigger > i { font-style: normal; font-size: 14px; line-height: 1; transition: transform .16s ease; }
.decision-menu.open .decision-trigger > i, .next-action-menu.open .next-action-trigger > i { transform: rotate(180deg); }
.decision-menu.decision-pass .decision-trigger { border-color: #b9ccb3; color: #315b3b; background: #eef4eb; }
.decision-menu.decision-revise .decision-trigger { border-color: #e2baa7; color: #8b3f2f; background: #f6e4da; }
.next-action-trigger { border-color: #b7cad6; color: #315b78; background: #f0f6f9; }
.decision-options, .next-action-options { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: none; width: max-content; min-width: 100%; padding: 6px; border: 1px solid #cfc8b9; border-radius: 12px; background: #f7f3e9; box-shadow: 0 14px 35px rgba(42, 41, 35, .18); }
.decision-menu.open .decision-options, .next-action-menu.open .next-action-options { display: grid; gap: 3px; }
.decision-options button, .next-action-options button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; }
.decision-options button:hover, .next-action-options button:hover { background: rgba(182, 97, 67, .09); }
.decision-options button i, .next-action-options button i { visibility: hidden; color: var(--sage-dark); font-style: normal; }
.decision-options button[aria-selected="true"], .next-action-options button[aria-selected="true"] { color: var(--sage-dark); background: rgba(63, 81, 64, .09); }
.decision-options button[aria-selected="true"] i, .next-action-options button[aria-selected="true"] i { visibility: visible; }
.action-card-tabs { display: flex; margin-top: 15px; border-bottom: 1px solid var(--line); }
.action-card-tabs button { min-height: 35px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.action-card-tabs button.active { border-bottom-color: var(--clay); color: var(--ink); }
.action-card-tabs button b { margin-left: 6px; padding: 2px 6px; border-radius: 12px; color: var(--clay); background: var(--clay-pale); font-size: 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 15px; background: var(--line); border: 1px solid var(--line); }
.action-metadata-grid { margin-top: 0; }
.production-self-check { margin-top: 12px; padding: 13px; border: 1px solid rgba(53, 109, 152, .24); border-radius: 12px; background: rgba(240, 247, 251, .62); }
.production-self-check-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.production-self-check-heading h3 { margin: 0; color: #315b78; font-size: 13px; }
.production-self-check-heading p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.production-self-check-overall { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.production-self-check-overall.complete { color: #315b3b; background: #dfe9dc; }
.production-self-check-overall.partial { color: #8b3f2f; background: var(--clay-pale); }
.production-self-check-overall.pending { color: #6d5d32; background: #f3ead2; }
.production-self-check-summary { margin: 10px 0 0; color: var(--ink); font-size: 10px; line-height: 1.65; }
.production-self-check-list { display: grid; gap: 7px; margin-top: 10px; }
.production-self-check-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 10px; padding: 9px 10px; border: 1px solid rgba(53, 109, 152, .14); border-radius: 9px; background: rgba(255, 255, 255, .7); }
.production-self-check-item strong { color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.production-self-check-item p { margin: 3px 0 0; color: var(--ink); font-size: 9px; line-height: 1.55; }
.production-self-check-result { border-left: 1px solid rgba(53, 109, 152, .14); padding-left: 10px; }
.production-self-check-status { display: inline-block; padding: 3px 7px; border-radius: 999px; color: #315b78; background: rgba(53, 109, 152, .1); font-size: 8px; font-weight: 800; }
.production-self-check-item.complete .production-self-check-status { color: #315b3b; background: #dfe9dc; }
.production-self-check-item.partial .production-self-check-status, .production-self-check-item.pending .production-self-check-status { color: #8b3f2f; background: var(--clay-pale); }
.facts > div { display: grid; gap: 4px; padding: 11px 12px; background: #fffdf8; }
.facts span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.facts b { font-size: 11px; font-weight: 500; }
.review-inputs { display: grid; gap: 10px; margin-top: 10px; }
.review-note { display: grid; gap: 5px; }
.review-note span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.review-note span small { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: #315b78; background: #dce9f1; font-size: 8px; letter-spacing: 0; }
.review-note textarea { width: 100%; min-height: 72px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fffdf8; outline: 0; resize: vertical; }
.minute-extension-note textarea { border-color: rgba(53, 109, 152, .3); background: rgba(240, 247, 251, .7); }
.review-note textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(182, 97, 67, .09); }
.minute-extension-note textarea:focus { border-color: #356d98; box-shadow: 0 0 0 3px rgba(53, 109, 152, .1); }
.partner-label-source { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 9px 11px; border: 1px solid rgba(53, 109, 152, .18); border-radius: 9px; background: rgba(240, 247, 251, .72); color: #315b78; font-size: 12px; line-height: 1.5; }
.partner-label-source strong { flex: 0 0 auto; color: #21445d; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; }
.card-footer span { color: var(--muted); font-size: 9px; }
.card-footer button { min-width: 126px; height: 37px; border: 0; border-radius: 9px; color: white; background: var(--sage-dark); cursor: pointer; font-size: 11px; }
.card-footer-actions { display: flex; align-items: center; gap: 8px; }
.action-review-footer { justify-content: flex-end; }
.open-action { display: inline-flex; align-items: center; height: 37px; padding: 0 12px; border: 1px solid var(--sage-dark); border-radius: 9px; color: var(--sage-dark); text-decoration: none; font-size: 10px; font-weight: 700; }
.open-action:hover { color: white; background: var(--sage-dark); }
.detail-mode .open-action { display: none; }
.review-history { min-width: 0; padding: 0 20px 20px; }
.review-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review-history-heading h3 { margin: 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 16px; font-weight: 600; }
.review-history-heading > span { color: var(--muted); font-size: 9px; }
.review-history-list { display: grid; gap: 9px; margin-top: 10px; }
.review-history-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 253, 248, .72); }
.review-history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.review-history-person { color: var(--ink); font-size: 10px; font-weight: 800; }
.review-history-meta time { color: var(--muted); font-size: 9px; }
.review-history-target { padding: 3px 7px; border-radius: 999px; color: var(--sage-dark); background: rgba(102, 116, 96, .11); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.review-history-processing { margin-left: auto; padding: 5px 10px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.review-history-processing:hover { transform: translateY(-1px); }
.review-history-processing:disabled { cursor: wait; opacity: .65; transform: none; }
.review-history-processing.unprocessed { color: #8b3f2f; border-color: #e6c7b8; background: var(--clay-pale); }
.review-history-processing.processed { color: #315b3b; border-color: #b9ccb3; background: #dfe9dc; }
.review-history-copy { display: grid; gap: 9px; margin-top: 8px; }
.review-history-copy > div { display: grid; gap: 3px; }
.review-history-copy strong { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.review-history-item p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.review-history-copy .minute-extension { padding: 8px 9px; border-radius: 8px; background: rgba(53, 109, 152, .08); }
.review-history-copy .minute-extension strong { color: #315b78; }
.review-history-item p.unavailable { color: var(--muted); font-style: italic; }
.review-history-empty { margin: 10px 0 0; padding: 13px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 10px; }

.question-cards { display: grid; gap: 20px; }
.question-card { display: grid; grid-template-columns: minmax(290px, 38%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.miniapp-preview { padding: 18px; color: #292822; background: linear-gradient(155deg, #dfddd2, #cdd6c8); }
.miniapp-preview::before { display: block; width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 10px; background: rgba(35, 37, 31, .22); content: ""; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 15px 15px 0 0; color: #34342e; background: rgba(250, 248, 240, .88); }
.phone-top span { font-family: "Songti SC", serif; font-size: 13px; font-weight: 600; }
.phone-top b { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.miniapp-question { min-height: 430px; padding: 22px 17px 18px; border-radius: 0 0 15px 15px; background: #f7f3ea; box-shadow: 0 18px 45px rgba(51, 48, 39, .13); }
.miniapp-eyebrow { color: var(--clay); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.miniapp-question h2 { margin: 7px 0 5px; font-family: "Songti SC", serif; font-size: 21px; font-weight: 600; line-height: 1.35; }
.miniapp-question > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.miniapp-options { display: grid; gap: 7px; }
.miniapp-options > div { display: flex; justify-content: space-between; align-items: center; min-height: 35px; padding: 8px 11px; border: 1px solid rgba(35, 37, 31, .11); border-radius: 9px; background: rgba(255, 253, 248, .86); font-size: 10px; }
.miniapp-options i { color: var(--clay); font-family: serif; font-size: 17px; font-style: normal; line-height: 1; }
.miniapp-options.scale-options { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.miniapp-options.scale-options > div { justify-content: center; min-width: 0; padding-inline: 3px; }
.miniapp-question > button { width: 100%; min-height: 37px; margin-top: 12px; border: 0; border-radius: 9px; color: rgba(255,255,255,.75); background: var(--sage); font-size: 10px; }
.preview-input { min-height: 38px; padding: 10px 11px; border: 1px solid rgba(35, 37, 31, .13); border-radius: 9px; color: #99978d; background: rgba(255, 253, 248, .86); font-size: 10px; }
.question-set-preview { display: grid; gap: 11px; max-height: 760px; padding-right: 3px; overflow-y: auto; }
.question-set-preview section { padding-top: 10px; border-top: 1px solid rgba(35, 37, 31, .12); }
.question-set-preview section:first-child { padding-top: 0; border-top: 0; }
.question-set-preview small { color: var(--clay); font-size: 8px; font-weight: 700; }
.question-set-preview h3 { margin: 3px 0 7px; font-family: "Songti SC", serif; font-size: 14px; line-height: 1.45; }
.question-set-preview .miniapp-options { gap: 4px; }
.question-set-preview .miniapp-options > div { min-height: 30px; padding-block: 5px; font-size: 9px; }
.question-review { min-width: 0; padding: 21px; }
.question-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.question-number { color: var(--sage-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.question-heading h2 { margin: 5px 0 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 24px; font-weight: 500; }
.question-heading p { margin: 1px 0 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.question-heading > select { align-self: start; min-width: 90px; height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fffdf8; }
.question-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 15px; border: 1px solid var(--line); background: var(--line); }
.question-meta > div { display: grid; gap: 4px; min-height: 66px; padding: 10px 12px; background: #fffdf8; }
.question-meta span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.question-meta b { font-size: 10px; font-weight: 500; line-height: 1.5; }
.assessment-change-history { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid rgba(154, 99, 75, .24); border-radius: 12px; background: rgba(154, 99, 75, .06); }
.assessment-change-history > h3 { margin: 0; color: var(--clay); font-size: 10px; letter-spacing: .08em; }
.assessment-change-history article { display: grid; gap: 5px; padding: 9px 10px; border-radius: 9px; background: #fffdf8; }
.assessment-change-history article > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.assessment-change-history article b { color: var(--ink); }
.assessment-change-history article p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.55; white-space: pre-line; }
.assessment-change-history article strong { color: var(--sage-dark); font-size: 9px; font-weight: 600; line-height: 1.55; }
.usability-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.usability-checks label { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid rgba(102, 116, 96, .2); border-radius: 9px; background: rgba(223, 229, 217, .28); }
.usability-checks label > span { display: grid; flex: 1; min-width: 0; }
.usability-checks b { font-size: 10px; font-weight: 700; }
.usability-checks small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.usability-checks select { width: 76px; height: 30px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fffdf8; font-size: 9px; }
.report-cards { display: grid; gap: 22px; }
.report-card { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.report-preview { padding: 20px; background: linear-gradient(155deg, #d5dace, #e5ddd0); }
.report-preview::before { display: block; width: 42px; height: 4px; margin: 0 auto 13px; border-radius: 10px; background: rgba(35, 37, 31, .2); content: ""; }
.report-paper { min-height: 680px; padding: 23px 22px 20px; border-radius: 15px; background: #f8f4ea; box-shadow: 0 22px 55px rgba(51, 48, 39, .15); }
.report-paper-top { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid rgba(35,37,31,.12); }
.report-paper-top span { font-family: "Songti SC", serif; font-size: 13px; font-weight: 600; }
.report-paper-top b { color: var(--sage-dark); font-size: 8px; letter-spacing: .12em; }
.report-kicker { display: block; margin-top: 20px; color: var(--clay); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.report-paper > h2 { margin: 7px 0 8px; font-family: "Songti SC", serif; font-size: 22px; font-weight: 600; line-height: 1.45; }
.report-summary { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.report-block { margin-top: 17px; padding-top: 13px; border-top: 1px solid rgba(35,37,31,.11); }
.report-block > span { display: block; margin-bottom: 7px; color: var(--sage-dark); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.report-block ul { display: grid; gap: 4px; margin: 0; padding-left: 17px; font-size: 9px; line-height: 1.6; }
.report-goal { padding: 12px 13px; border: 0; border-left: 3px solid var(--clay); background: rgba(182,97,67,.07); }
.report-goal p { margin: 0; font-family: "Songti SC", serif; font-size: 11px; line-height: 1.65; }
.report-advice { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.report-advice li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; }
.report-advice b { color: var(--clay); font-size: 9px; }
.report-advice p { margin: 0; font-size: 9px; line-height: 1.55; }
.report-boundary { margin: 18px 0 0; padding: 10px 11px; border-radius: 8px; color: var(--muted); background: rgba(102,116,96,.08); font-size: 8px; line-height: 1.6; }
.report-review { min-width: 0; padding: 22px; }
.report-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report-heading h2 { margin: 5px 0 1px; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 25px; font-weight: 500; }
.report-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.report-heading > select { align-self: start; min-width: 90px; height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fffdf8; }
.report-route { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-top: 15px; border: 1px solid var(--line); background: var(--line); }
.report-route > div { display: grid; gap: 4px; min-height: 66px; padding: 10px 12px; background: #fffdf8; }
.report-route span, .report-course-map span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.report-route b { font-size: 10px; font-weight: 500; }
.report-route .readiness { color: var(--clay); }
.report-evidence { margin-top: 13px; padding: 13px; border: 1px solid rgba(102,116,96,.2); border-radius: 12px; background: rgba(223,229,217,.23); }
.report-evidence h3 { margin: 0 0 8px; color: var(--sage-dark); font-size: 10px; letter-spacing: .06em; }
.report-evidence > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(35,37,31,.08); }
.report-evidence > div:first-of-type { border-top: 0; }
.report-evidence span { color: var(--muted); font-size: 9px; }
.report-evidence b { font-size: 10px; font-weight: 500; }
.report-course-map { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 13px; border: 1px solid var(--line); background: var(--line); }
.report-course-map > div { display: grid; gap: 5px; min-height: 65px; padding: 10px 12px; background: #fffdf8; }
.report-course-map b { font-size: 9px; font-weight: 500; line-height: 1.55; }
.report-course-map p { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.report-course-map i { padding: 3px 7px; border-radius: 12px; color: var(--sage-dark); background: var(--sage-pale); font-size: 8px; font-style: normal; }
.report-checks { margin-top: 13px; }
.empty, .load-error { padding: 60px 20px; border: 1px dashed var(--line); text-align: center; }
.empty strong { display: block; font-family: "Iowan Old Style", serif; font-size: 50px; font-weight: 400; }
.empty span, .load-error p { color: var(--muted); }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: 320px; padding: 12px 16px; border-radius: 10px; color: white; background: var(--sage-dark); box-shadow: 0 15px 45px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #883d31; }
.login-gate { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(35,37,31,.72); backdrop-filter: blur(12px); }
.login-gate[hidden] { display: none; }
.login-gate form { display: grid; width: min(430px, 100%); gap: 14px; padding: 28px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.login-gate h2 { margin: 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 28px; font-weight: 500; }
.login-gate p { margin: -5px 0 4px; color: var(--muted); font-size: 11px; }
.login-gate label { display: grid; gap: 5px; }
.login-gate label span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.login-gate input { height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; outline: 0; }
.login-gate form > button { height: 43px; border: 0; border-radius: 9px; color: white; background: var(--sage-dark); cursor: pointer; }
#login-error { min-height: 18px; color: #883d31; font-size: 10px; text-align: center; }

@media (max-width: 1180px) {
  .assessment-toolbar { grid-template-columns: minmax(220px, 1fr) 145px 145px; }
  .assessment-toolbar .bank-filter { grid-column: 1 / -1; justify-self: start; }
  .assessment-toolbar .status-filter, .assessment-toolbar .export { align-self: stretch; }
  .review-upper, .review-lower { grid-template-columns: minmax(220px, 35%) minmax(0, 1fr); }
  .question-card { grid-template-columns: minmax(270px, 40%) minmax(0, 1fr); }
  .report-card { grid-template-columns: minmax(320px, 42%) minmax(0, 1fr); }
  .action-overview-head, .action-overview-row { grid-template-columns: 52px minmax(180px, 1.35fr) minmax(130px, .75fr) minmax(190px, 1fr) minmax(155px, .85fr) 28px; gap: 12px; }
}
@media (max-width: 840px) {
  .hero { align-items: stretch; flex-direction: column; }
  .identity { min-width: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics.with-minute-complete { grid-template-columns: repeat(2, 1fr); }
  .workspace, .assessment-workspace, .report-workspace { grid-template-columns: 1fr; }
  aside { position: static; }
  #library-nav, #question-nav, #report-family-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  #library-nav button, #question-nav button, #report-family-nav button { border: 1px solid var(--line); border-radius: 8px; }
  .toolbar { grid-template-columns: 1fr; }
  .assessment-toolbar { grid-template-columns: 1fr 1fr; }
  .assessment-toolbar .search { grid-column: 1 / -1; }
  .status-filter { overflow-x: auto; }
  .export { justify-content: center; }
  .review-upper, .review-lower { grid-template-columns: 1fr; }
  .review-lower { padding-top: 32px; }
  .review-history { padding-top: 20px; }
  .production-self-check-item { grid-template-columns: 1fr; }
  .production-self-check-result { border-left: 0; border-top: 1px solid rgba(53, 109, 152, .14); padding: 8px 0 0; }
  .question-card { grid-template-columns: 1fr; }
  .report-card { grid-template-columns: 1fr; }
  .miniapp-preview { padding-inline: min(12vw, 90px); }
  .report-preview { padding-inline: min(10vw, 80px); }
  .video-shell { min-height: 0; aspect-ratio: 9 / 14; }
  .action-overview-head { display: none; }
  .action-overview { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .action-overview-body { display: grid; gap: 9px; }
  .action-overview-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 5px 12px; min-height: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(251, 248, 240, .76); }
  .overview-id { grid-row: 1 / 5; }
  .overview-action { grid-column: 2; grid-row: 1; }
  .overview-library { grid-column: 2; grid-row: 2; }
  .overview-review-scope { grid-column: 2; grid-row: 3; }
  .overview-next-action { grid-column: 2; grid-row: 4; }
  .overview-open { grid-column: 3; grid-row: 1 / 5; justify-self: center; }
}
@media (max-width: 560px) {
  h1 em { display: block; margin: 4px 0 0; padding: 0; border: 0; }
  .hero, .workspace, .assessment-workspace, .report-workspace { padding-inline: 16px; }
  .review-tabs { padding-inline: 16px; overflow-x: auto; }
  .review-tabs button { min-width: 165px; }
  .assessment-tabs { overflow-x: auto; margin-inline: 16px; }
  .assessment-tabs > span { display: none; }
  .metrics { margin-inline: 16px; }
  .facts { grid-template-columns: 1fr; }
  #library-nav, #question-nav, #report-family-nav { grid-template-columns: 1fr 1fr; }
  .assessment-flow-note, .report-model-note { grid-template-columns: 1fr 1fr; }
  .card-heading { align-items: stretch; flex-direction: column; }
  .review-controls { display: grid; width: 100%; }
  .decision-menu, .next-action-menu { align-self: stretch; width: 100%; }
  .decision-trigger, .next-action-trigger { justify-content: space-between; width: 100%; }
  .decision-options, .next-action-options { left: 0; right: auto; width: 100%; }
  .question-heading { align-items: stretch; flex-direction: column; }
  .question-heading > select { align-self: stretch; }
  .report-heading { align-items: stretch; flex-direction: column; }
  .report-heading > select { align-self: stretch; }
  .question-meta, .usability-checks { grid-template-columns: 1fr; }
  .report-route, .report-course-map { grid-template-columns: 1fr; }
  .assessment-toolbar { grid-template-columns: 1fr; }
  .assessment-toolbar .search { grid-column: auto; }
  .miniapp-preview { padding-inline: 14px; }
  .report-preview { padding-inline: 14px; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .card-footer button { width: 100%; }
  .card-footer-actions { align-items: stretch; flex-direction: column; }
  .open-action { justify-content: center; }
  .action-detail-bar { grid-template-columns: 1fr auto; }
  .action-detail-bar a { grid-column: 1 / -1; }
  .action-detail-bar div { padding-left: 0; border-left: 0; }
}
