@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #062047;
  --sidebar: #05234b;
  --teal: #008b95;
  --teal-dark: #007b85;
  --muted: #506487;
  --line: #e4edf4;
  --surface: #f7fafc;
  --orange: #ff7a00;
  --sidebar-width: clamp(176px,16.667vw,240px);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: #fbfdfe; font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px;
  background: var(--teal-dark); color: white; font-size: 13px; font-weight: 600; line-height: 1.4;
  cursor: pointer; text-decoration: none; box-shadow: 0 2px 4px #007b8510;
  transition: background-color .15s ease, box-shadow .15s ease;
}
button:hover, .button:hover { background: #006d77; color: white; text-decoration: none; box-shadow: 0 3px 8px #007b851a; }
button:disabled { opacity: .55; cursor: wait; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -1.35px; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.35px; }
h3 { margin: 26px 0 12px; font-size: 15px; font-weight: 600; }
.subtle, small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.subtle { margin: 10px 0; }
small { display: block; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 16px 12px 20px; color: white; background: var(--sidebar);
}
.sidebar > a { flex-shrink: 0; display: block; padding: 0 5px; }
.logo { display: block; width: 100%; max-width: 190px; height: 48px; object-fit: contain; object-position: left center; }
.workspace { padding: 16px 9px 19px; overflow-wrap: anywhere; }
.workspace strong { display: block; font-size: 13px; font-weight: 600; }
.workspace span { display: block; margin-top: 3px; color: #dbe6f4; font-size: 11px; }
.desktop-navigation { display: grid; gap: 7px; }
.desktop-navigation a { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 9px 10px; border-radius: 7px; color: white; font-size: 13px; font-weight: 450; }
.desktop-navigation a:hover { background: #ffffff0c; text-decoration: none; }
.desktop-navigation a.active { background: var(--teal); font-weight: 600; box-shadow: inset 0 1px #ffffff12; }
.desktop-navigation img { width: 23px; height: 23px; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; padding-top: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer img { display: block; width: 100%; max-width: 210px; height: 136px; margin: 0 auto; object-fit: contain; object-position: bottom center; transform: scaleX(-1); }
.sidebar-footer p { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: white; }
.mobile-header, .mobile-navigation { display: none; }
main { margin-left: var(--sidebar-width); min-width: 0; max-width: 1660px; min-height: 100vh; padding: 0 22px 22px; }
.topbar { display: flex; align-items: center; gap: 19px; min-height: 62px; }
.search-label { display: flex; align-items: center; gap: 11px; flex: 1; max-width: 540px; min-height: 39px; margin-right: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #687b9d; font-size: 12px; }
.search-label img { width: 18px; height: 18px; }
.topbar .button { white-space: nowrap; }
.topbar .button > span { font-size: 21px; font-weight: 400; line-height: 1; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--sidebar); font-size: 12px; font-weight: 600; box-shadow: 0 0 0 4px #f2f7fb; }
#preview-note { margin: 12px 0 0; max-width: 820px; font-size: 11px; color: #5e7190; }
.hero { position: relative; display: flex; align-items: center; min-height: 93px; overflow: hidden; }
.hero > div { position: relative; z-index: 1; max-width: 67%; padding: 12px 0; }
.hero p, .page-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.hero > img { position: absolute; right: -22px; bottom: 0; width: 44%; max-width: 500px; height: 125px; object-fit: contain; object-position: right bottom; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 0 0 16px; }
.metrics article { display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 94px; padding: 11px 11px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 3px 7px #092b4a06; }
.metrics article > div { min-width: 0; }
.metrics img { width: 39px; height: 39px; padding: 9px; flex-shrink: 0; border-radius: 50%; background: #edf9fb; }
.metrics h2 { font-size: 11px; font-weight: 600; letter-spacing: -.1px; }
.metrics strong { display: block; margin: 5px 0 2px; font-size: 26px; font-weight: 650; line-height: 1.15; letter-spacing: -.8px; }
.metrics strong.metric-text { margin: 10px 0 6px; font-size: 16px; letter-spacing: -.4px; }
.metrics p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.overview-grid { display: grid; grid-template-columns: 1.47fr 1fr .94fr; align-items: stretch; gap: 14px; }
.panel { min-width: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 2px 6px #092b4a04; }
.overview-grid > .panel { min-height: 394px; }
.opportunities-panel, .progress-panel { display: flex; flex-direction: column; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-title a { flex-shrink: 0; font-size: 11px; font-weight: 500; }
.panel-title h2 { max-width: 100%; }
.panel-link { display: block; margin-top: auto; padding-top: 19px; text-align: center; font-size: 12px; font-weight: 500; }
.empty { padding: 38px 17px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.overview-grid .empty { border: 1px solid #edf2f6; border-radius: 8px; background: #fcfdfe; }
.panel.empty { padding: 34px 24px; }
.next-steps { display: grid; gap: 17px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: steps; }
.next-steps li { position: relative; min-height: 34px; padding-left: 37px; counter-increment: steps; font-size: 12px; }
.next-steps li:before { content: counter(steps); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #d9eef1; border-radius: 7px; background: #f2fafb; color: var(--teal-dark); font-size: 11px; font-weight: 600; }
.next-steps a { color: var(--navy); }
.next-steps-panel > .subtle { margin: 0; padding-top: 16px; border-top: 1px solid #edf2f6; font-size: 11px; }
.help-strip { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 14px 16px; border: 1px solid #e3f3f5; border-radius: 10px; background: #eef9fb; }
.help-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 49px; height: 49px; border-radius: 50%; background: white; box-shadow: 0 3px 8px #1258770c; }
.help-icon img { width: 28px; height: 28px; }
.help-strip p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.help-strip .button { margin-left: auto; flex-shrink: 0; }
.help-fox { flex-shrink: 0; width: 175px; height: 78px; margin: -10px -5px -10px 2px; object-fit: cover; object-position: center 60%; }
.page-heading { margin: 29px 0 24px; }
.form-panel { max-width: 1100px; padding: 25px 28px; }
.form-panel > .panel-title { margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 26px; margin: 23px 0; }
label { display: block; font-size: 13px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 11px 12px; border: 1px solid #d5e2ed; border-radius: 6px; background: white; color: var(--navy); font-weight: 400; }
input::placeholder, textarea::placeholder { color: #7485a0; opacity: 1; }
textarea { resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
label small { margin-top: 6px; font-size: 11px; font-weight: 400; }
.form-heading { margin-top: 31px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 21px; padding-top: 18px; border-top: 1px solid #edf2f6; font-size: 11px; color: var(--muted); }
.form-actions .subtle { margin: 0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #e0f6f1; color: #087c6d; font-size: 10px; font-weight: 500; line-height: 1.5; }
.badge.warning { background: #fff2df; color: #975200; }
.retired-rule-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; line-height: 1.5; cursor: pointer; }
.retired-rule-consent input[type="checkbox"] { display: inline-block; flex: 0 0 19px; width: 19px; height: 19px; min-height: 19px; margin: 1px 0 0; padding: 0; accent-color: var(--teal); }
.callout { margin: 18px 0; padding: 12px 13px; border: 1px solid #ffd2a9; border-left: 3px solid var(--orange); border-radius: 5px; background: #fff8f0; color: #644831; font-size: 12px; line-height: 1.65; }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rule-list li span:last-child { flex-shrink: 0; color: var(--muted); font-size: 12px; }
#grant-detail { max-width: 1100px; padding: 25px 28px; }
#grant-title { margin-top: 10px; font-size: 25px; font-weight: 600; letter-spacing: -.65px; }
#obligations { padding-left: 20px; }
#obligations li { margin: 9px 0; }
#grant-detail > .button { margin-top: 13px; }
.back-link { display: inline-block; margin-bottom: 15px; font-size: 11px; color: var(--muted); }
.studio-heading { margin-bottom: 22px; }
.studio-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 19px 22px; }
.studio-header h2 { font-size: 16px; }
.studio-header .badge { margin-top: 6px; background: #e6f5ff; color: #155b91; }
.studio-grid { display: grid; grid-template-columns: minmax(175px, .72fr) minmax(310px, 1.6fr) minmax(220px, 1fr); align-items: stretch; gap: 13px; }
.studio-grid > .panel { border-radius: 8px; box-shadow: none; }
.outline-panel { padding: 19px 14px; }
.outline-intro { margin: 5px 0 18px; font-size: 11px; }
.outline { margin: 0; padding: 0; list-style: none; counter-reset: sections; }
.outline li { position: relative; counter-increment: sections; margin: 0; padding: 16px 6px 16px 26px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.outline li:before { content: counter(sections) '.'; position: absolute; left: 6px; top: 16px; color: var(--navy); }
.outline small { margin-top: 3px; font-size: 10px; font-weight: 400; }
.outline-panel > .subtle:last-child { margin-top: 20px; font-size: 11px; }
.editor { padding: 24px 22px 18px; }
.editor label { font-size: 25px; font-weight: 600; letter-spacing: -.8px; }
.editor textarea { min-height: 435px; margin-top: 18px; padding: 2px 0; border: 0; border-radius: 0; font-size: 14px; line-height: 1.95; }
.editor textarea:focus-visible { outline-offset: 7px; }
.editor .form-actions { margin-top: 17px; }
.source-panel { padding: 19px 15px; }
.source-card { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 14px; padding: 13px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); font-size: 12px; font-weight: 500; }
.source-card img { width: 26px; height: 26px; padding: 3px; border-radius: 5px; background: #eff9fc; }
.source-card small { margin-top: 5px; font-size: 10px; font-weight: 400; }
.source-panel > label { margin-top: 24px; }
.source-panel > p { margin-top: 15px; font-size: 11px; line-height: 1.65; }
.source-panel .callout { margin-bottom: 0; }
.application-readiness { margin-top: 14px; padding: 20px 22px; }
.application-readiness-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.application-readiness-header .eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.application-readiness-header h2 { font-size: 16px; }
.badge.neutral { background: #edf2f6; color: var(--muted); }
.application-state { display: flex; align-items: center; gap: 15px; min-height: 88px; padding: 18px 4px 2px; }
.application-state > img { width: 31px; height: 31px; flex: 0 0 auto; }
.application-state > div { min-width: 0; flex: 1; }
.application-state h3, .application-package h3 { font-size: 12px; }
.application-state p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.application-state > button { flex: 0 0 auto; }
.error-state { color: #7e281f; }
.state-spinner { width: 24px; height: 24px; flex: 0 0 auto; border: 3px solid #d8efeb; border-top-color: var(--teal); border-radius: 50%; animation: status-spin .8s linear infinite; }
@keyframes status-spin { to { transform: rotate(360deg); } }
.application-package { padding-top: 17px; }
.application-package > .callout { margin-top: 0; }
.application-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.application-summary > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #f8fbfc; }
.application-summary span, .application-summary strong { display: block; }
.application-summary span { color: var(--muted); font-size: 9px; }
.application-summary strong { margin-top: 5px; font-size: 11px; line-height: 1.35; text-transform: capitalize; }
.application-package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.application-package-grid section { padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.application-package-grid ul { margin: 9px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.application-package-grid .no-gap { color: #087c6d; }
.application-package-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.application-package-actions p { margin: 0; }
.opportunity-card { margin-top: 0; padding: 18px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdff; }
.opportunity-card h3 { margin: 10px 0 6px; font-size: 13px; }
.opportunity-card p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.opportunity-card > a { display: inline-block; margin-top: 18px; font-size: 12px; }
.progress-track { position: relative; display: flex; justify-content: space-between; gap: 5px; margin: 25px 0 20px; font-size: 9px; color: var(--muted); }
.progress-track:before { content: ''; position: absolute; inset: 6px 13px auto; height: 1px; background: #cbd5e1; }
.progress-track span { position: relative; padding-top: 22px; }
.progress-track span:before { content: ''; position: absolute; top: 0; left: calc(50% - 6px); width: 13px; height: 13px; border: 2px solid #cbd5e1; border-radius: 50%; background: white; }
.progress-track span:first-child:before { border-color: var(--teal); background: #e6f6f6; }
#notice:not(:empty) { margin-top: 14px; padding: 11px 15px; border: 1px solid #cfe9e4; border-radius: 6px; background: #effaf7; font-size: 12px; }
#notice.error { border-color: #eac2aa; background: #fff7f0; color: #843c0c; }
footer { margin: 25px 0 0; color: #627494; font-size: 10px; }
.skip { position: fixed; top: -70px; left: 12px; z-index: 100; padding: 11px 16px; border-radius: 5px; background: white; box-shadow: 0 2px 8px #07183025; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #f3a542; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (min-width: 1540px) {
  main { padding-right: 34px; padding-left: 34px; }
  .hero { min-height: 145px; }
  .hero > img { width: 200px; height: 178px; }
  .metrics article { padding: 21px 18px; }
  .overview-grid > .panel { min-height: 325px; }
}
@media (max-width: 1000px) and (min-width: 801px) {
  :root { --sidebar-width: 176px; }
  .logo { width: 158px; }
  main { padding-right: 22px; padding-left: 22px; }
  h1 { font-size: 30px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics article { min-height: 104px; }
  .overview-grid { grid-template-columns: 1.15fr 1fr; }
  .overview-grid > .panel { min-height: 255px; }
  .overview-rail { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .next-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 15px; }
  .hero > div { max-width: 78%; }
  .hero > img { max-width: 24%; }
  .help-strip { flex-wrap: wrap; gap: 14px; }
  .help-strip .button { margin-left: 66px; }
  .studio-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .source-panel { grid-column: 1 / -1; }
  .source-card { max-width: 360px; }
  .source-panel > label { max-width: 360px; }
}
@media (max-width: 800px) {
  body { background: white; }
  .sidebar, .topbar { display: none; }
  .mobile-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 18px; border-bottom: 1px solid #eef3f7; background: white; }
  .mobile-brand { display: block; flex-shrink: 0; margin-right: auto; }
  .mobile-brand img { display: block; width: 160px; height: 40px; object-fit: contain; object-position: left center; }
  .mobile-workspace { min-width: 0; max-width: 120px; text-align: right; }
  .mobile-workspace strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; font-weight: 500; }
  .mobile-workspace span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }
  .mobile-header .avatar { width: 32px; height: 32px; font-size: 10px; }
  .mobile-header a.avatar:hover { text-decoration: none; }
  main { margin: 0; min-height: calc(100vh - 76px); padding: 0 18px calc(105px + env(safe-area-inset-bottom)); }
  #preview-note { margin: 13px 0 0; font-size: 10px; line-height: 1.6; }
  .hero { min-height: 109px; }
  .hero > div { max-width: 100%; padding: 22px 0; }
  h1 { font-size: 27px; line-height: 1.2; letter-spacing: -1px; }
  .hero p, .page-heading p { margin-top: 7px; font-size: 12px; line-height: 1.6; }
  .hero > img { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
  .metrics article { gap: 10px; min-height: 116px; padding: 15px 12px; border-radius: 10px; }
  .metrics img { width: 32px; height: 32px; padding: 7px; }
  .metrics h2 { font-size: 10px; line-height: 1.4; }
  .metrics strong { margin-top: 7px; font-size: 28px; }
  .metrics strong.metric-text { margin: 10px 0 5px; font-size: 14px; }
  .metrics p { font-size: 9px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .overview-grid > .panel { min-height: 0; padding: 17px 14px; }
  .panel-title { margin-bottom: 14px; gap: 10px; }
  .panel-title h2 { font-size: 14px; }
  .panel-title a { font-size: 10px; }
  .empty { padding: 27px 14px; font-size: 12px; }
  .panel-link { padding-top: 18px; font-size: 11px; }
  .next-steps { gap: 16px; margin-bottom: 12px; }
  .help-strip { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 17px; padding: 19px 16px; }
  .help-strip > div { flex: 1; min-width: 0; }
  .help-icon { width: 38px; height: 38px; }
  .help-icon img { width: 23px; height: 23px; }
  .help-strip h2 { font-size: 14px; }
  .help-strip p { font-size: 11px; }
  .help-strip .button { margin: 3px 0 0 50px; }
  .help-fox { width: 58px; height: 58px; margin: -5px 0 -5px auto; }
  .page-heading { margin: 24px 0; }
  .form-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .form-panel > .panel-title { margin-bottom: 10px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 21px; margin: 22px 0; }
  label { font-size: 12px; }
  input, select, textarea { min-height: 46px; padding: 12px; font-size: 16px; }
  label small { font-size: 10px; }
  .form-actions { flex-wrap: wrap; gap: 13px; padding-top: 18px; }
  .form-actions button { margin-left: auto; }
  #grant-detail { padding: 20px 15px; }
  #grant-detail > .panel-title { align-items: flex-start; flex-direction: column; }
  #grant-title { font-size: 22px; }
  .rule-list li { display: block; font-size: 12px; }
  .rule-list li span:last-child { display: block; margin-top: 6px; font-size: 11px; }
  #obligations { font-size: 12px; }
  .studio-header { align-items: center; padding: 16px 13px; gap: 11px; }
  .studio-header h2 { font-size: 13px; }
  .studio-header .badge { font-size: 9px; }
  .studio-header button { flex-shrink: 0; padding: 10px 12px; font-size: 12px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .outline-panel { padding: 17px 14px; }
  .outline { display: grid; grid-template-columns: 1fr; }
  .outline li { padding-top: 12px; padding-bottom: 12px; font-size: 11px; }
  .outline li:before { top: 12px; }
  .outline li small { font-size: 9px; }
  .outline-intro { margin-bottom: 4px; }
  .outline-panel > .subtle:last-child { margin-top: 13px; font-size: 10px; }
  .editor { padding: 22px 17px 17px; }
  .editor label { font-size: 24px; }
  .editor textarea { min-height: 380px; font-size: 16px; line-height: 1.85; }
  .source-panel { padding: 19px 16px; }
  .source-panel > p { font-size: 11px; }
  .source-card { font-size: 12px; }
  footer { margin-top: 24px; font-size: 9px; line-height: 1.6; }
  .mobile-navigation { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 9px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e6edf3; background: white; box-shadow: 0 -4px 18px #07183005; }
  .mobile-navigation a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-height: 49px; color: var(--muted); font-size: 10px; }
  .mobile-navigation a:hover { text-decoration: none; }
  .mobile-navigation a.active { color: var(--teal-dark); font-weight: 600; }
  .mobile-navigation img { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(28%) sepia(22%) saturate(817%) hue-rotate(181deg); }
  .mobile-navigation a.active img { filter: brightness(0) saturate(100%) invert(37%) sepia(76%) saturate(885%) hue-rotate(145deg); }
}
@media (max-width: 365px) {
  .mobile-header { gap: 9px; padding-right: 14px; padding-left: 14px; }
  .mobile-brand img { width: 144px; }
  .mobile-workspace { max-width: 94px; }
  main { padding-right: 14px; padding-left: 14px; }
  .metrics article { gap: 8px; padding: 13px 9px; }
  .metrics img { width: 28px; height: 28px; padding: 6px; }
  .metrics strong.metric-text { font-size: 13px; }
  .studio-header { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }



/* Board 03: three unequal columns, a two-panel right rail and pale guidance strip. */
.overview-rail { display: grid; gap: 14px; min-width: 0; }
.compact-empty { display: flex; gap: 10px; padding: 14px 0; color: var(--muted); font-size: 12px; }
.compact-empty>img { width: 24px; height: 24px; }.compact-empty small { margin-top: 8px; font-size: 10px; }
.evidence-list { list-style: none; padding: 0; margin: 0; font-size: 10px; }.evidence-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }.evidence-list span { color: #9a5900; font-size: 9px; text-align: right; }
.sidebar-footer a { color: #cbe5f1; display: inline-block; margin-top: 12px; font-size: 11px; padding: 10px; }
.profile-identity { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }.profile-identity .avatar { width: 58px; height: 58px; font-size: 20px; }.profile-identity h2 { font-size: 18px; }.profile-identity p { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.profile-tabs { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }.profile-tabs>span { border-bottom: 2px solid var(--teal); padding: 10px 16px; font-weight: 600; }.profile-tabs small { font-size: 11px; }
.scanner-search { display: flex; gap: 12px; }.search-input { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 13px; border: 1px solid #d5e2ed; border-radius: 7px; background: white; }.search-input img { width: 20px; height: 20px; }.search-input input { margin: 0; border: 0; min-width: 0; }
.scanner-filters { margin-top: 14px; }.scanner-filters summary { display: flex; align-items: center; justify-content: space-between; max-width: 140px; min-height: 44px; border: 1px solid #c9dce5; border-radius: 6px; padding: 8px 13px; color: var(--teal-dark); cursor: pointer; }.scanner-filters>div { display: flex; align-items: center; gap: 16px; padding-top: 12px; }.scanner-filters label { min-width: 150px; }.scanner-filters select { margin-top: 5px; }.scanner-filters p { font-size: 11px; color: var(--muted); max-width: 270px; }
.scanner-count { margin: 24px 0 17px; font-size: 14px; }.scanner-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 18px; }.scanner-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: white; }.scanner-card-heading { display: flex; align-items: center; gap: 15px; }.scanner-card-heading>div { flex: 1; }.scanner-card-heading p { font-size: 11px; margin-top: 5px; color: var(--muted); }.scanner-card>p { margin: 20px 0; font-size: 13px; color: var(--muted); }.scanner-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.scanner-card-footer>span { display: flex; align-items: center; gap: 8px; font-size: 11px; }.scanner-card-footer img { width: 22px; height: 22px; }.scanner-rail { display: grid; align-content: start; gap: 14px; }.scanner-rail p { margin: 12px 0; font-size: 11px; color: var(--muted); }.scanner-rail dl { margin: 18px 0 0; }.scanner-rail dt { font-size: 11px; font-weight: 600; }.scanner-rail dd { margin: 3px 0 16px; font-size: 10px; color: var(--muted); }.scanner-rail .panel { padding: 16px; }#scanner-no-results p { margin: 12px 0; }
.opportunity-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }.opportunity-columns>section { min-width: 0; }.rule-list li { gap: 12px; font-size: 12px; }.rule-list li span:last-child { max-width: 115px; font-size: 10px; }.studio-heading { margin: 15px 0; }.studio-heading h1 { font-size: 23px; }.studio-heading .back-link { margin-bottom: 6px; }.studio-header { border-radius: 0; border-width: 0 0 1px; margin: 0; padding: 14px 0 18px; box-shadow: none; }.studio-grid { gap: 9px; grid-template-columns: minmax(160px,.85fr) minmax(260px,1.6fr) minmax(180px,1fr); margin-top: 10px; }.editor textarea { height: 360px; min-height: 360px; }.outline li { padding-top: 10px; padding-bottom: 10px; font-size: 11px; }.outline li:before { top: 10px; }
@media(min-width:801px) { .scanner-filters>div { display: flex; }.scanner-filters:not([open])>div { display: flex; }.scanner-filters summary { display: none; } }
@media(min-width:801px) and (max-width:1000px) { .overview-rail { grid-template-columns: 1fr 1fr; }.studio-grid { grid-template-columns: 170px minmax(0,1fr); }.studio-grid .source-panel { grid-column: 1/-1; }.scanner-layout { grid-template-columns: minmax(0,1fr); }.scanner-rail { grid-template-columns: 1fr 1fr; } }
@media(max-width:800px) {
 .hero { min-height: 102px; }.metrics article { min-height: 100px; }.metrics p { font-size: 9px; }.metrics img { width: 30px; height: 30px; }.metrics strong { font-size: 27px; }.metrics strong.metric-text { font-size: 13px; }.overview-rail { grid-template-columns: 1fr; }.overview-grid>.panel { min-height: 0; }.mobile-workspace { max-width: 90px; }.mobile-header { min-height: 74px; }.mobile-brand img { width: 156px; }.help-strip { display: grid; grid-template-columns: 38px minmax(0,1fr); }.help-strip>.button { grid-column: 2; margin: 0; justify-self: start; }.help-fox { display: none; }.profile-identity { gap: 14px; }.profile-identity h2 { font-size: 16px; }.profile-tabs { gap: 14px; }.profile-tabs small { font-size: 10px; }.scanner-search { gap: 8px; }.scanner-search>button { padding: 10px 12px; }.scanner-filters>div { flex-direction: column; align-items: stretch; }.scanner-filters label { min-width: 0; }.scanner-layout { grid-template-columns: 1fr; }.scanner-card { padding: 15px; }.scanner-card-heading { gap: 10px; flex-wrap: wrap; }.scanner-card-heading>div { min-width: 180px; }.scanner-card-heading>.badge { margin-left: 50px; }.scanner-card-footer { align-items: flex-start; flex-direction: column; }.scanner-card-footer .button { width: 100%; }.scanner-count { font-size: 12px; }.opportunity-columns { grid-template-columns: 1fr; gap: 8px; }.rule-list li span:last-child { max-width: none; }.studio-grid { grid-template-columns: 1fr; }.studio-header { flex-wrap: wrap; }.outline li { min-height: 62px; }.studio-heading h1 { font-size: 23px; }
}

/* Board 08's native desktop panel is 975px wide: retain all three columns there. */
@media(min-width:901px) and (max-width:1000px) {
 .studio-grid { grid-template-columns: minmax(150px,.85fr) minmax(240px,1.6fr) minmax(170px,1fr); }
 .studio-grid .source-panel { grid-column: auto; }
}

/* Match the native Board 03 rail and Board 08 single workspace header. */
@media(min-width:1001px) {
 .overview-rail { grid-template-rows: minmax(0,1fr) auto; }
 .deadlines-panel { display: flex; flex-direction: column; }
 .evidence-panel .panel-title { gap: 6px; }
 .evidence-panel .panel-title h2 { font-size: 13px; }
 .evidence-panel .panel-title a { font-size: 9px; }
}
@media(min-width:801px) {
 body[data-route="applications"] .topbar { display: none; }
 .studio-heading { margin: 9px 0 0; }
 .studio-heading .back-link { margin: 0; }
 .studio-heading h1 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 .studio-header { padding: 8px 0 3px; }
 .studio-grid { margin-top: 0; }
 .editor { padding: 20px 18px 16px; }
 .editor label { font-size: 22px; }
 .source-card { margin-top: 14px; padding-top: 10px; padding-bottom: 10px; }
 .source-panel>p { margin-top: 12px; }
 .source-panel>label { margin-top: 16px; }
}

@media(max-width:800px) {
 .application-readiness { padding: 17px 14px; }
 .application-state { align-items: flex-start; flex-wrap: wrap; }
 .application-state>button { width: 100%; }
 .application-summary { grid-template-columns: 1fr 1fr; }
 .application-package-grid { grid-template-columns: 1fr; }
 .application-package-actions { align-items: stretch; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { .state-spinner { animation: none; } }


/* Board 03: purposeful empty/profile/draft states in the existing approved columns.
   No new dashboard rows, fictional deadlines or fabricated AI reviews. */
.overview-placeholder { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; align-items: start; min-width: 0; padding: 20px 13px; border: 1px solid #dfedf1; border-radius: 9px; background: #f6fbfc; }
.overview-placeholder > img { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #e0f4f2; }
.overview-placeholder-copy { min-width: 0; }
.overview-placeholder strong { display: block; color: var(--navy); font-size: 13px; font-weight: 650; line-height: 1.4; }
.overview-placeholder p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.overview-next-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 8px 0; color: var(--teal-dark); font-size: 12px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.overview-next-link:hover { text-decoration: underline; }
.overview-match-heading { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 12px; }
.overview-match-heading > img { width: 38px; height: 38px; flex: 0 0 auto; padding: 9px; border-radius: 10px; background: #e0f4f2; }
.overview-match-title { min-width: 0; }
.overview-eyebrow { display: block; color: var(--teal-dark); font-size: 9px; font-weight: 700; line-height: 1.4; letter-spacing: .07em; }
.overview-match-title h3, .overview-progress h3 { margin: 5px 0 0; color: var(--navy); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.overview-match .badge { margin-top: 2px; }
.opportunity-card .overview-screening-summary { color: var(--navy); font-size: 11px; line-height: 1.65; }
.opportunity-card .overview-source-date { color: var(--muted); font-size: 10px; }
.opportunity-card .overview-stale { color: #975200; }
.overview-progress .progress-track { margin: 24px 0 14px; }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workflow-heading .eyebrow { margin-bottom: 10px; }
.workflow-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 12px 0 24px; }
.workflow-tabs a { display: flex; align-items: center; min-height: 44px; padding: 10px 2px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.workflow-tabs a[aria-current] { color: var(--teal-dark); border-color: var(--teal); }
.review-stages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.review-stages article { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.review-stages p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.stage-number { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--teal-dark); background: #e6f6f6; font-weight: 600; }
.workflow-notice { padding: 15px 18px; margin: 20px 0; border: 1px solid #daedf6; background: #edf7fb; border-radius: 8px; color: #355571; font-size: 12px; line-height: 1.65; }
.workflow-columns { display: grid; grid-template-columns: 1.05fr 1.2fr .9fr; gap: 18px; align-items: start; }
.workflow-columns > .panel { min-width: 0; padding: 20px; }
.workflow-columns .panel-title { margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.workflow-columns .panel-title img { width: 21px; height: 21px; }
.workflow-title { font-size: 16px; font-weight: 600; }
.workflow-columns .badge, .workflow-project .badge { white-space: normal; }
.workflow-stat { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.workflow-stat span { color: var(--muted); font-size: 12px; }
.workflow-stat strong { font-size: 23px; font-weight: 600; }
.workflow-gaps { padding-left: 18px; margin: 17px 0; font-size: 12px; line-height: 1.75; }
.workflow-gaps li + li { margin-top: 13px; }
.workflow-facts { margin: 0; }
.workflow-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.workflow-facts dt { color: var(--muted); font-size: 11px; }
.workflow-facts dd { margin: 6px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.workflow-columns .button { margin-top: 12px; }
.workflow-project { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.workflow-project h2 { font-size: 22px; }
.progress-columns { grid-template-columns: 1.3fr 1fr .9fr; }
.workflow-milestones { padding: 0; margin: 0; list-style: none; }
.workflow-milestones li { display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.workflow-milestones a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; }
@media(max-width:1100px) and (min-width:801px) {
 .workflow-columns { gap: 12px; }
 .workflow-columns > .panel { padding: 16px 12px; }
 .review-stages article { padding: 13px 10px; gap: 8px; }
 .review-stages h2 { font-size: 12px; }
}
@media(max-width:800px) {
 .workflow-heading { align-items: stretch; flex-direction: column; gap: 18px; }
 .workflow-heading .button { align-self: flex-start; }
 .workflow-tabs { gap: 22px; margin-bottom: 20px; }
 .workflow-columns { grid-template-columns: 1fr; gap: 16px; }
 .workflow-columns > .panel { padding: 18px 16px; }
 .review-stages { grid-template-columns: 1fr; gap: 10px; }
 .review-stages article { padding: 13px 14px; }
 .review-stages p { margin-top: 2px; }
 .workflow-project { align-items: flex-start; flex-direction: column; }
 .workflow-project h2 { font-size: 20px; }
 .workflow-stat { margin-top: 18px; }
}
.progress-track .progress-current::before { border-color: var(--teal); background: #e6f6f6; }
@media(max-width: 800px) {
  .overview-placeholder { grid-template-columns: 36px minmax(0,1fr); gap: 11px; padding: 16px 12px; }
  .overview-placeholder > img { width: 35px; height: 35px; padding: 8px; }
  .overview-placeholder p { font-size: 11px; }
  .overview-match-heading > img { width: 35px; height: 35px; }
}

/* Board14 alerts and help: native information surfaces. No phantom live feed. */
.mobile-alert-link { display: none; }
.board14-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.board14-heading .button { flex-shrink: 0; }
.board14-heading .eyebrow { margin: 0 0 5px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.board14-alert-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(240px, .75fr); gap: 16px; align-items: start; }
.board14-inbox { min-height: 560px; padding: 23px 24px; }
.board14-inbox .panel-title { margin-bottom: 4px; }
.board14-inbox .panel-title h2 { font-size: 19px; }
.board14-filters { display: flex; align-items: stretch; gap: 6px; margin: 20px 0 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.board14-filters button { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.board14-filters button:hover { background: #f3fafb; color: var(--navy); box-shadow: none; }
.board14-filters button[aria-pressed="true"] { border-bottom-color: var(--teal); color: var(--teal-dark); background: #f3fafb; }
.board14-filters button:focus-visible, .mobile-alert-link:focus-visible { outline: 3px solid #ffab57; outline-offset: 2px; }
.board14-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 360px; padding: 34px 18px; }
.board14-empty img { width: 56px; height: 56px; padding: 11px; border-radius: 50%; background: #e6f7f8; }
.board14-empty h3 { margin: 14px 0 6px; font-size: 20px; }
.board14-empty > p { max-width: 440px; margin: 6px auto; color: var(--muted); font-size: 12px; }
.board14-empty .callout { max-width: 480px; margin: 16px auto; text-align: left; }
.board14-quick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.board14-rail { display: grid; gap: 16px; }
.board14-rail .panel { min-height: 185px; padding: 20px; }
.board14-rail .panel p { margin-top: 12px; }
.board14-rail .panel-link { text-align: left; }
.board14-fox-strip { display: flex; justify-content: space-between; align-items: center; min-height: 138px; margin-top: 18px; padding: 18px 24px; overflow: hidden; border: 1px solid #e0f1f4; border-radius: 11px; background: #eef9fc; }
.board14-fox-strip h2 { font-size: 17px; }
.board14-fox-strip p { max-width: 550px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.board14-fox-strip img { width: 220px; height: 110px; margin: -15px -9px -16px 14px; flex-shrink: 0; object-fit: contain; }
.board14-help-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 170px; margin-bottom: 24px; padding: 25px 28px; border: 1px solid #e0f1f4; border-radius: 12px; background: #eef9fc; overflow: hidden; }
.board14-help-hero > div { max-width: 520px; }
.board14-help-hero h2 { font-size: 27px; line-height: 1.22; }
.board14-help-hero p { margin: 9px 0 15px; color: var(--muted); font-size: 13px; }
.board14-help-hero img { flex: 0 1 36%; min-width: 0; max-width: 388px; height: 155px; object-fit: contain; }
.board14-topic-heading { margin: 12px 0 15px; font-size: 19px; }
.board14-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.board14-topic { display: flex; flex-direction: column; align-items: flex-start; min-height: 240px; padding: 24px; }
.board14-topic img { width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: #ebf7fc; }
.board14-topic h3 { margin: 14px 0 9px; font-size: 16px; }
.board14-topic p { margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.board14-topic a { margin-top: auto; font-size: 12px; font-weight: 600; }
.board14-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.board14-support-grid .panel { padding: 23px; }
.board14-resources { padding-left: 20px; line-height: 2.4; }
.board14-resources a { font-size: 12px; }
@media(max-width: 1056px) and (min-width:801px) {
  .board14-alert-layout { grid-template-columns: minmax(0,1fr) minmax(190px,.65fr); }
  .board14-inbox { padding: 18px; }
  .board14-rail .panel { padding: 16px; }
  .board14-topic { padding: 18px; }
}
@media(max-width: 800px) {
  .mobile-alert-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 40px; min-height: 40px; color: var(--teal-dark); font-size: 11px; font-weight: 650; }
  .mobile-alert-link.active { border-bottom: 2px solid var(--teal); }
  .board14-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .board14-alert-layout, .board14-topics, .board14-support-grid { grid-template-columns: minmax(0,1fr); }
  .board14-inbox { min-height: 420px; padding: 18px 14px; }
  .board14-inbox .panel-title h2 { font-size: 16px; }
  .board14-filters { margin-top: 15px; gap: 0; }
  .board14-filters button { padding: 10px; font-size: 11px; }
  .board14-empty { min-height: 310px; padding: 25px 8px; }
  .board14-empty h3 { font-size: 17px; }
  .board14-empty .callout { padding: 10px; }
  .board14-quick-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .board14-fox-strip { padding: 18px 14px; }
  .board14-fox-strip h2 { font-size: 14px; }
  .board14-fox-strip p { font-size: 11px; }
  .board14-fox-strip img { width: 105px; height: 100px; }
  .board14-help-hero { padding: 21px 17px; }
  .board14-help-hero h2 { font-size: 20px; }
  .board14-help-hero img { display: none; }
  .board14-topic { min-height: 185px; padding: 20px; }
  .board14-topic h3 { margin: 11px 0 6px; }
  .board14-support-grid .panel { padding: 19px; }
}
@media(max-width:365px) {
  .mobile-alert-link { min-width: 32px; font-size: 10px; }
  .board14-fox-strip img { display: none; }
  .board14-filters button { font-size: 10px; padding: 10px 7px; }
}


/* Board13 account and workspace: no fake team, billing or preference controls. */
.board13-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.board13-heading .eyebrow, .board13-intro .eyebrow { color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.board13-heading .button { flex-shrink: 0; }
.board13-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 168px; padding: 22px 26px; margin-bottom: 22px; border: 1px solid #e0f1f4; border-radius: 12px; background: #eef9fc; overflow: hidden; }
.board13-intro h2 { font-size: 23px; margin: 7px 0; }
.board13-intro p:not(.eyebrow) { max-width: 590px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.board13-intro img { width: 29%; max-width: 330px; min-width: 0; height: 136px; object-fit: contain; }
.board13-tabs { display: flex; flex-wrap: nowrap; gap: 5px; padding: 0 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 18px; }
.board13-tabs button { flex: 0 0 auto; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 650; }
.board13-tabs button[aria-pressed="true"] { border-bottom-color: var(--teal); color: var(--teal-dark); background: #f3fafb; }
.board13-tabs button:hover { background: #f3fafb; box-shadow: none; }
.board13-tabs button:focus-visible { outline: 3px solid #ffab57; outline-offset: -4px; }
[data-account-panel][hidden] { display: none !important; }
.board13-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(220px,.7fr); align-items: start; gap: 16px; }
.board13-main-panel { min-height: 395px; padding: 25px 27px; }
.board13-main-panel .panel-title { margin-bottom: 19px; }
.board13-main-panel .panel-title h2 { font-size: 20px; }
.board13-main-panel .callout { margin: 20px 0; }
.board13-details { margin: 0; }
.board13-details > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.board13-details dt { color: var(--muted); font-size: 12px; flex: 0 0 35%; }
.board13-details dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; text-align: right; }
.board13-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.board13-rail { display: grid; gap: 16px; }
.board13-rail .panel { padding: 23px; }
.board13-rail .panel h2 { font-size: 16px; margin-bottom: 12px; }
.board13-rail .panel p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.board13-placeholder { display: flex; align-items: center; gap: 16px; margin: 30px 0; padding: 20px; border-radius: 10px; background: #f3fafb; }
.board13-placeholder img { flex: 0 0 52px; padding: 11px; border-radius: 50%; background: #e2f4f6; }
.board13-placeholder h3, .board13-info-grid h3 { font-size: 14px; margin-bottom: 8px; }
.board13-placeholder p, .board13-info-grid p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.board13-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 25px 0; }
.board13-info-grid > div { padding: 19px; border: 1px solid #e1edf0; border-radius: 10px; }
@media (max-width: 1056px) and (min-width: 801px) {
  .board13-layout { grid-template-columns: minmax(0,1.3fr) minmax(180px,.7fr); }
  .board13-main-panel, .board13-rail .panel { padding: 18px; }
  .board13-tabs button { padding: 10px 11px; }
  .board13-info-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 800px) {
  .board13-heading { flex-direction: column; align-items: flex-start; }
  .board13-intro { padding: 19px 16px; }
  .board13-intro h2 { font-size: 19px; }
  .board13-intro img { display: none; }
  .board13-tabs { gap: 0; margin: 0 -5px 16px; }
  .board13-tabs button { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .board13-layout { grid-template-columns: minmax(0,1fr); }
  .board13-main-panel, .board13-rail .panel { padding: 19px 16px; }
  .board13-main-panel { min-height: 330px; }
  .board13-info-grid { grid-template-columns: minmax(0,1fr); }
  .board13-actions { flex-direction: column; }
  .board13-placeholder { padding: 16px; gap: 12px; }
}
@media (max-width:365px) {
  .board13-tabs button { padding: 10px 9px; }
  .board13-details > div { flex-direction: column; gap: 5px; }
  .board13-details dd { text-align: left; }
}


/* Board08: bounded saved-evidence inventory; no connected document upload or review. */
.evidence-plan {margin:16px 0; padding:13px; background:var(--surface); border:1px solid var(--line); border-radius:8px;}
.evidence-plan h3 {margin:0 0 5px; font-size:14px;}
.evidence-plan .subtle {margin:5px 0;}
.evidence-plan button {margin:8px 0; min-height:44px;}
.evidence-plan #evidence-plan-status {font-size:12px; color:var(--muted); line-height:1.5;}
.evidence-plan ul {padding-left:17px; margin:8px 0 0; font-size:12px; overflow-wrap:anywhere;}
.evidence-plan li {padding:5px 0; border-top:1px solid var(--line);}

/* Source-only EIS listings deliberately reuse the approved scanner-card grammar. */
.scanner-source-list { display: grid; gap: 14px; margin-top: 14px; }
.scanner-source-list:empty { display: none; }
.source-preview-checks { margin: 8px 0; font-size: 12px; color: var(--muted); }
.source-preview-checks summary { cursor: pointer; color: var(--teal-dark); }
.source-preview-checks .rule-list { margin: 8px 0; }
/* Board08 editing affordances on the approved light working surface. */
.studio-format-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:14px; padding:10px; border-radius:8px; border:1px solid var(--line); background:var(--surface); }
.studio-format-label { flex:1 1 120px; font-size:12px; font-weight:700; color:var(--navy); }
.studio-format-toolbar button { min-height:44px; padding:9px 13px; font-size:12px; }
.studio-format-status { margin:5px 0 0; line-height:1.5; font-size:11px; }
@media (max-width:365px) { .studio-format-label { flex-basis:100%; } .studio-format-toolbar button { flex:1 1 96px; } }

/* Board08 mobile derivative; preserve the approved desktop grid and original artwork. */
.studio-topic-nav, .studio-topic-return { display: none; }
@media (max-width: 800px) {
  .studio-grid > .editor { order: 1; min-width: 0; }
  .studio-grid > .outline-panel { order: 2; min-width: 0; }
  .studio-grid > .source-panel { order: 3; min-width: 0; }
  .studio-topic-nav { display: block; margin: 10px 0 8px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .studio-topic-nav > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 700; }
  .studio-topic-nav > summary::after { content: '+'; margin-left: auto; font-size: 19px; }
  .studio-topic-nav[open] > summary::after { content: '−'; }
  .studio-topic-nav[open] > summary { border-bottom: 1px solid var(--line); }
  .studio-topic-nav > summary:focus-visible { outline: 3px solid #ffab57; outline-offset: -3px; }
  .studio-topic-nav > label { display: block; margin: 12px 14px 6px; font-size: 12px; font-weight: 600; }
  .studio-topic-nav select { width: calc(100% - 28px); margin: 0 14px; min-height: 44px; color: var(--navy); background: #fff; }
  .studio-topic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 14px 0; }
  .studio-topic-actions button { flex: 1 1 98px; min-height: 44px; min-width: 0; padding: 10px 7px; font-size: 12px; }
  #studio-topic-help { margin: 11px 14px 0; font-size: 12px; line-height: 1.5; font-weight: 600; }
  .studio-topic-note { margin: 7px 14px 14px; font-size: 10px; }
  .studio-grid .editor textarea { min-height: 310px; margin-top: 12px; }
  .studio-grid .outline-panel .outline { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
  .studio-topic-return { display: inline-flex; width: 100%; margin-top: 12px; }
}
@media (max-width: 365px) {
  .studio-grid .outline-panel .outline { grid-template-columns: 1fr; }
}

/* Board08 mobile writing-focus derivative: keep the ORIGINAL single revision-safe
   Save submitter visible during editing, rather than adding a second submit path.
   Brand header and bottom navigation keep their independent stacking order. */
@media (max-width: 800px) {
  body[data-route="applications"] #draft-form > .studio-header {
    position: sticky;
    top: 76px;
    z-index: 25;
    background: #fff;
    box-shadow: 0 3px 12px #06204713;
  }
  body[data-route="applications"] #draft-text { scroll-margin-top: 180px; }
}

