:root {
  color-scheme: light;
  --sc-navy-950: #061321;
  --sc-navy-900: #0a1d31;
  --sc-navy-800: #12304b;
  --sc-navy-700: #1a4565;
  --sc-blue: #3b82f6;
  --sc-sky: #55b7ff;
  --sc-teal: #20bfa9;
  --sc-teal-soft: #dcfaf5;
  --sc-orange: #ff9a3c;
  --sc-orange-strong: #f57920;
  --sc-orange-soft: #fff1df;
  --sc-red: #d9485f;
  --sc-red-soft: #ffe8ec;
  --sc-green: #23865b;
  --sc-green-soft: #e1f7ec;
  --sc-yellow: #b7791f;
  --sc-yellow-soft: #fff7d6;
  --sc-ink: #142033;
  --sc-muted: #617087;
  --sc-line: #dce4ed;
  --sc-line-strong: #c6d2df;
  --sc-canvas: #f4f7fa;
  --sc-card: #ffffff;
  --sc-card-soft: #f9fbfd;
  --sc-shadow-sm: 0 8px 24px rgba(6, 24, 42, .08);
  --sc-shadow-md: 0 20px 56px rgba(6, 24, 42, .14);
  --sc-shadow-lg: 0 34px 90px rgba(4, 16, 30, .24);
  --sc-radius-sm: 12px;
  --sc-radius-md: 20px;
  --sc-radius-lg: 30px;
  --sc-max: 1220px;
  --sc-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sc-ink);
  background: var(--sc-canvas);
  font-family: var(--sc-font);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
::selection { color: #fff; background: var(--sc-navy-700); }

.sc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sc-shell { width: min(var(--sc-max), calc(100% - 40px)); margin: 0 auto; }
.sc-topbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sc-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--sc-orange), var(--sc-orange-strong));
  box-shadow: 0 10px 24px rgba(245, 121, 32, .28);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.sc-brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: -3px;
  top: -3px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: var(--sc-teal);
}
.sc-brand-copy { display: grid; min-width: 0; line-height: 1.12; }
.sc-brand-copy strong { font-size: .98rem; letter-spacing: .03em; }
.sc-brand-copy span { color: var(--sc-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.sc-actions { display: flex; align-items: center; gap: 10px; }
.sc-icon-button, .sc-ghost-button, .sc-primary-button, .sc-secondary-button, .sc-danger-button, .sc-success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.sc-icon-button { width: 44px; padding: 0; color: var(--sc-navy-800); background: rgba(255,255,255,.88); border: 1px solid var(--sc-line); }
.sc-ghost-button { color: var(--sc-navy-800); background: rgba(255,255,255,.72); border: 1px solid var(--sc-line); }
.sc-primary-button { color: #fff; background: linear-gradient(135deg, var(--sc-navy-800), var(--sc-navy-700)); box-shadow: 0 10px 28px rgba(10, 29, 49, .18); }
.sc-secondary-button { color: var(--sc-navy-800); background: #edf3f8; }
.sc-success-button { color: #fff; background: var(--sc-green); }
.sc-danger-button { color: #fff; background: var(--sc-red); }
.sc-icon-button:hover, .sc-ghost-button:hover, .sc-primary-button:hover, .sc-secondary-button:hover, .sc-success-button:hover, .sc-danger-button:hover { transform: translateY(-1px); }
.sc-icon-button:focus-visible, .sc-ghost-button:focus-visible, .sc-primary-button:focus-visible, .sc-secondary-button:focus-visible, .sc-success-button:focus-visible, .sc-danger-button:focus-visible,
.sc-lang-switch button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .28);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }

.sc-lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--sc-line);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 7px 22px rgba(7, 27, 46, .06);
}
.sc-lang-switch button {
  min-width: 48px;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--sc-muted);
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
}
.sc-lang-switch button[aria-pressed="true"] { color: #fff; background: var(--sc-navy-800); box-shadow: 0 6px 16px rgba(10, 29, 49, .18); }

.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--sc-navy-700);
  background: #edf4fa;
  border: 1px solid #d8e7f3;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .01em;
}
.sc-chip.orange { color: #9a4c0f; background: var(--sc-orange-soft); border-color: #ffd9b4; }
.sc-chip.teal { color: #116c62; background: var(--sc-teal-soft); border-color: #b7eee5; }
.sc-chip.red { color: #a82c42; background: var(--sc-red-soft); border-color: #ffcbd5; }
.sc-chip.green { color: #176a49; background: var(--sc-green-soft); border-color: #bfe6d2; }

/* Portal */
.portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(85, 183, 255, .18), transparent 28rem),
    radial-gradient(circle at 93% 10%, rgba(255, 154, 60, .16), transparent 25rem),
    linear-gradient(180deg, #f9fbfd 0, #f2f6fa 58%, #f7f9fb 100%);
}
.portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image: linear-gradient(rgba(18,48,75,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,48,75,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
}
.portal-nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220,228,237,.8); background: rgba(249,251,253,.82); backdrop-filter: blur(18px); }
.portal-nav .sc-topbar { width: min(var(--sc-max), calc(100% - 40px)); margin: 0 auto; }
.portal-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.portal-links a { padding: 9px 12px; border-radius: 10px; color: var(--sc-muted); text-decoration: none; font-size: .86rem; font-weight: 800; }
.portal-links a:hover { color: var(--sc-navy-800); background: #fff; }
.portal-hero { position: relative; padding: clamp(54px, 8vw, 100px) 0 52px; overflow: hidden; }
.portal-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--sc-navy-700); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.portal-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sc-orange), var(--sc-teal)); }
.portal-hero h1 { max-width: 760px; margin: 0; color: var(--sc-navy-900); font-size: clamp(2.55rem, 6.2vw, 5.75rem); line-height: .98; letter-spacing: -.055em; }
.portal-hero h1 em { color: var(--sc-orange-strong); font-style: normal; }
.portal-lead { max-width: 680px; margin: 22px 0 0; color: #4d6078; font-size: clamp(1.02rem, 1.7vw, 1.22rem); line-height: 1.68; }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.portal-hero-actions .sc-primary-button { min-height: 50px; padding: 13px 20px; }
.portal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.portal-access-note { display: flex; align-items: center; gap: 8px; max-width: 700px; margin: 13px 0 0; color: var(--sc-muted); font-size: .82rem; font-weight: 750; }

.portal-section { position: relative; padding: 60px 0 68px; }
.portal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.portal-section-head h2 { margin: 0; color: var(--sc-navy-900); font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.portal-section-head p { max-width: 580px; margin: 0; color: var(--sc-muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-card { position: relative; display: flex; flex-direction: column; min-height: 365px; padding: 24px; border: 1px solid rgba(198,210,223,.78); border-radius: 26px; color: inherit; background: rgba(255,255,255,.88); box-shadow: var(--sc-shadow-sm); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.module-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -100px; border-radius: 50%; background: radial-gradient(circle, var(--card-glow, rgba(59,130,246,.16)), transparent 68%); }
.module-card:hover { transform: translateY(-5px); border-color: var(--sc-line-strong); box-shadow: var(--sc-shadow-md); }
.module-card.sop { --card-glow: rgba(32,191,169,.28); }
.module-card.obap { --card-glow: rgba(255,154,60,.32); }
.module-card.safety { --card-glow: rgba(32,191,169,.26); }
.module-card.engineering { --card-glow: rgba(85,183,255,.27); }
.module-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--card-a, var(--sc-navy-800)), var(--card-b, var(--sc-navy-700))); box-shadow: 0 13px 28px rgba(7,27,46,.18); font-size: 1.45rem; }
.module-card.sop .module-icon { --card-a: #139f90; --card-b: #2fc9b5; }
.module-card.obap .module-icon { --card-a: #f57920; --card-b: #ffb15e; }
.module-card.safety .module-icon { --card-a: #12304b; --card-b: #20bfa9; }
.module-card.engineering .module-icon { --card-a: #15557f; --card-b: #55b7ff; }
.module-card h3 { margin: 24px 0 11px; color: var(--sc-navy-900); font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; }
.module-card p { margin: 0; color: var(--sc-muted); }
.module-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; color: var(--sc-navy-800); font-weight: 900; }
.module-cta span:last-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #edf3f8; transition: transform .2s ease; }
.module-card:hover .module-cta span:last-child { transform: translateX(3px); }

.workflow-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--sc-line); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--sc-shadow-sm); overflow: hidden; }
.workflow-step { position: relative; padding: 26px; }
.workflow-step + .workflow-step { border-left: 1px solid var(--sc-line); }
.workflow-step small { color: var(--sc-orange-strong); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.workflow-step h3 { margin: 10px 0 8px; color: var(--sc-navy-900); }
.workflow-step p { margin: 0; color: var(--sc-muted); }
.portal-footer { padding: 34px 0 46px; border-top: 1px solid var(--sc-line); color: var(--sc-muted); font-size: .84rem; }
.portal-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }


/* Protected module access */
.access-protected-page { min-height: 100dvh; }
.access-gate[hidden], [data-access-content][hidden], [data-access-lock][hidden] { display: none !important; }
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: auto;
  color: #fff;
  background:
    radial-gradient(circle at 12% 4%, rgba(85,183,255,.25), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(255,154,60,.22), transparent 28rem),
    linear-gradient(145deg, #061321 0, #0a2740 58%, #0f555a 100%);
}
.access-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
}
.access-gate-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(980px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
}
.access-gate-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.access-gate-topbar .sc-brand-copy strong { color: #fff; }
.access-gate-topbar .sc-brand-copy span { color: rgba(255,255,255,.56); }
.access-gate-topbar .sc-lang-switch { color: #fff; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.access-gate-topbar .sc-lang-switch button { color: rgba(255,255,255,.64); }
.access-gate-topbar .sc-lang-switch button[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.18); }
.access-gate-card {
  align-self: center;
  width: min(690px, 100%);
  margin: 24px auto 68px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  color: var(--sc-ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 36px 100px rgba(0,0,0,.35);
  backdrop-filter: blur(20px);
}
.access-lock-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 19px;
  color: transparent;
  background: linear-gradient(145deg, var(--sc-navy-800), #176b70);
  box-shadow: 0 14px 30px rgba(8,42,63,.22);
  font-size: 0;
}
.access-lock-mark::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 11px;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
}
.access-lock-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 10px;
  width: 32px;
  height: 25px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--sc-orange), var(--sc-orange-strong));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.24);
}
.access-gate-card h1 { margin: 0; color: var(--sc-navy-900); font-size: clamp(2.15rem, 6vw, 3.65rem); line-height: 1.02; letter-spacing: -.045em; }
.access-gate-lead { margin: 18px 0 0; color: var(--sc-muted); font-size: 1rem; line-height: 1.75; }
.access-form { margin-top: 30px; }
.access-form > label { display: block; margin-bottom: 8px; color: var(--sc-navy-800); font-size: .84rem; font-weight: 900; }
.access-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.access-input-row input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 13px;
  color: var(--sc-ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(6,24,42,.05);
}
.access-input-row input[aria-invalid="true"] { border-color: var(--sc-red); box-shadow: 0 0 0 3px rgba(217,72,95,.12); }
.access-input-row .sc-primary-button { min-height: 50px; padding-inline: 20px; white-space: nowrap; }
.access-help { margin: 11px 0 0; color: var(--sc-muted); font-size: .78rem; }
.access-status { margin: 13px 0 0; padding: 10px 12px; border-radius: 11px; color: #116c62; background: var(--sc-teal-soft); font-size: .82rem; font-weight: 800; }
.access-status.is-error { color: #a82c42; background: var(--sc-red-soft); }
.access-home-link { margin-top: 22px; }
.access-lock-button { flex: 0 0 auto; }
html[data-access-state="locked"] .access-gate { display: block; }
html[data-access-state="unlocked"] .access-gate { display: none !important; }

/* Deck */
.deck-page { height: 100dvh; overflow: hidden; color: #eaf2f8; background: radial-gradient(circle at 12% 4%, #173d5c 0, var(--sc-navy-950) 46%, #030b13 100%); }
.deck-app { height: 100dvh; display: grid; grid-template-rows: 64px minmax(0, 1fr) 62px; }
.deck-toolbar { z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,17,29,.72); backdrop-filter: blur(18px); }
.deck-toolbar .sc-topbar { width: min(1500px, calc(100% - 28px)); height: 64px; margin: 0 auto; }
.deck-toolbar .sc-brand-copy strong { color: #fff; }
.deck-toolbar .sc-brand-copy span { color: rgba(255,255,255,.48); }
.deck-toolbar .sc-icon-button, .deck-toolbar .sc-ghost-button, .deck-toolbar .sc-lang-switch { color: #eaf2f8; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.07); }
.deck-toolbar .sc-lang-switch button { color: rgba(255,255,255,.62); }
.deck-toolbar .sc-lang-switch button[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.16); }
.deck-route-link { min-height: 38px; padding: 8px 12px; font-size: .76rem; white-space: nowrap; }
.deck-module-label { min-width: 0; max-width: 520px; overflow: hidden; color: rgba(255,255,255,.75); text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.deck-workspace { position: relative; display: grid; place-items: center; min-height: 0; padding: 16px 24px; overflow: hidden; }
.deck-workspace::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle at center, #000, transparent 75%); }
.deck-stage { position: relative; width: min(1460px, calc(100vw - 48px)); height: min(calc(100dvh - 158px), calc((100vw - 48px) * .5625)); min-height: 420px; aspect-ratio: 16 / 9; border-radius: 28px; background: #fff; box-shadow: 0 34px 100px rgba(0,0,0,.44); overflow: hidden; isolation: isolate; }
.deck-slide { position: absolute; inset: 0; display: none; padding: clamp(32px, 4vw, 66px) clamp(34px, 5.4vw, 82px); color: var(--sc-ink); background:
  radial-gradient(circle at 100% 0%, var(--slide-glow, rgba(85,183,255,.13)), transparent 36%),
  linear-gradient(145deg, #fff 0, #f7fafc 55%, #eef4f8 100%); overflow: auto; scrollbar-width: thin; }
.deck-slide.is-active { display: block; animation: deck-in .35s ease both; }
@keyframes deck-in { from { opacity: .25; transform: translateX(16px) scale(.995); } to { opacity: 1; transform: none; } }
.deck-slide[data-theme="dark"] { color: #fff; --slide-glow: rgba(255,154,60,.24); background: radial-gradient(circle at 12% 2%, rgba(255,154,60,.22), transparent 32%), linear-gradient(145deg, #07192a, #113957 62%, #0b253a); }
.deck-slide[data-theme="orange"] { --slide-glow: rgba(255,154,60,.27); }
.deck-slide[data-theme="teal"] { --slide-glow: rgba(32,191,169,.24); }
.deck-slide[data-theme="red"] { --slide-glow: rgba(217,72,95,.2); }
.deck-slide::after { content: attr(data-page); position: absolute; right: 30px; bottom: 24px; color: var(--sc-muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.deck-slide[data-theme="dark"]::after { color: rgba(255,255,255,.5); }
.slide-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--sc-orange-strong); font-size: .76rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.slide-kicker::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: currentColor; }
.deck-slide[data-accent="teal"] .slide-kicker { color: #138f82; }
.deck-slide[data-theme="dark"] .slide-kicker { color: #ffc276; }
.slide-title { max-width: 1130px; margin: 0; color: var(--sc-navy-900); font-size: clamp(2rem, 4.2vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; }
.deck-slide[data-theme="dark"] .slide-title { color: #fff; }
.slide-lead { max-width: 1050px; margin: 18px 0 0; color: #53677f; font-size: clamp(1rem, 1.55vw, 1.34rem); line-height: 1.62; }
.deck-slide[data-theme="dark"] .slide-lead { color: rgba(255,255,255,.72); }
.slide-content { display: grid; gap: 20px; margin-top: clamp(22px, 3vw, 38px); }
.slide-content.compact { gap: 14px; margin-top: 20px; }
.slide-quote { position: relative; padding: clamp(24px, 3.4vw, 42px); border-radius: 25px; color: var(--sc-navy-900); background: rgba(255,255,255,.82); border: 1px solid rgba(198,210,223,.72); box-shadow: var(--sc-shadow-sm); font-size: clamp(1.24rem, 2.25vw, 2.15rem); line-height: 1.4; font-weight: 900; letter-spacing: -.02em; }
.deck-slide[data-theme="dark"] .slide-quote { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); box-shadow: none; }
.slide-banner { padding: 14px 18px; border-left: 4px solid var(--sc-orange); border-radius: 10px 16px 16px 10px; color: #71400f; background: var(--sc-orange-soft); font-weight: 800; }
.slide-banner.teal { color: #0f625a; background: var(--sc-teal-soft); border-color: var(--sc-teal); }
.slide-banner.red { color: #8f2437; background: var(--sc-red-soft); border-color: var(--sc-red); }
.slide-banner.dark { color: rgba(255,255,255,.82); background: rgba(255,255,255,.1); border-color: var(--sc-orange); }
.slide-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: 16px; }
.slide-card { position: relative; min-width: 0; padding: clamp(18px, 2.2vw, 28px); border-radius: 21px; background: rgba(255,255,255,.82); border: 1px solid rgba(198,210,223,.72); box-shadow: var(--sc-shadow-sm); overflow: hidden; }
.slide-card::before { content: ""; position: absolute; width: 110px; height: 110px; right: -45px; top: -52px; border-radius: 50%; background: radial-gradient(circle, var(--card-glow, rgba(85,183,255,.22)), transparent 70%); }
.slide-card.orange { --card-glow: rgba(255,154,60,.32); }
.slide-card.teal { --card-glow: rgba(32,191,169,.3); }
.slide-card.red { --card-glow: rgba(217,72,95,.25); }
.slide-card.green { --card-glow: rgba(35,134,91,.24); }
.deck-slide[data-theme="dark"] .slide-card { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); box-shadow: none; }
.slide-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 14px; color: #fff; background: var(--sc-navy-800); font-size: 1.15rem; }
.slide-card.orange .slide-card-icon { background: var(--sc-orange-strong); }
.slide-card.teal .slide-card-icon { background: #138f82; }
.slide-card.red .slide-card-icon { background: var(--sc-red); }
.slide-card.green .slide-card-icon { background: var(--sc-green); }
.slide-card h3 { position: relative; margin: 0 0 8px; color: var(--sc-navy-800); font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.25; }
.deck-slide[data-theme="dark"] .slide-card h3 { color: #fff; }
.slide-card p { position: relative; margin: 0; color: #5a6d84; font-size: clamp(.84rem, 1.15vw, 1.04rem); line-height: 1.55; }
.deck-slide[data-theme="dark"] .slide-card p { color: rgba(255,255,255,.7); }
.slide-card .card-meta { display: block; margin-top: 12px; color: var(--sc-orange-strong); font-size: .76rem; font-weight: 900; }
.deck-slide[data-theme="dark"] .slide-card .card-meta { color: #ffc276; }
.slide-list-wrap { display: grid; gap: 9px; }
.slide-list-title { margin: 0 0 3px; color: var(--sc-navy-800); font-size: 1.05rem; }
.deck-slide[data-theme="dark"] .slide-list-title { color: #fff; }
.slide-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.slide-list li { position: relative; padding: 10px 12px 10px 38px; border-radius: 13px; color: #344b65; background: rgba(255,255,255,.7); border: 1px solid #e2eaf1; font-weight: 720; }
.slide-list li::before { content: "✓"; position: absolute; left: 11px; top: 10px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #fff; background: var(--sc-teal); font-size: .66rem; font-weight: 900; }
.slide-list.avoid li::before { content: "×"; background: var(--sc-red); }
.deck-slide[data-theme="dark"] .slide-list li { color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.slide-table-wrap { overflow-x: auto; border: 1px solid var(--sc-line); border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: var(--sc-shadow-sm); }
.slide-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.slide-table th, .slide-table td { padding: 12px 15px; border-bottom: 1px solid var(--sc-line); text-align: left; vertical-align: top; font-size: clamp(.77rem, .98vw, .95rem); line-height: 1.42; }
.slide-table th { color: var(--sc-navy-700); background: #edf4f9; font-weight: 900; }
.slide-table td:first-child { color: var(--sc-navy-800); font-weight: 850; }
.slide-table tr:last-child td { border-bottom: 0; }
.deck-slide[data-theme="dark"] .slide-table-wrap { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); box-shadow: none; }
.deck-slide[data-theme="dark"] .slide-table th { color: #fff; background: rgba(255,255,255,.1); }
.deck-slide[data-theme="dark"] .slide-table td { color: rgba(255,255,255,.74); border-color: rgba(255,255,255,.1); }
.deck-slide[data-theme="dark"] .slide-table td:first-child { color: #fff; }
.slide-pipeline { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.slide-pipeline-item { position: relative; display: grid; place-items: center; flex: 1 0 130px; min-height: 72px; padding: 12px 24px 12px 14px; border-radius: 15px; color: var(--sc-navy-800); background: #fff; border: 1px solid var(--sc-line); font-size: .88rem; font-weight: 900; text-align: center; box-shadow: var(--sc-shadow-sm); }
.slide-pipeline-item:not(:last-child)::after { content: "›"; position: absolute; right: 7px; color: var(--sc-orange-strong); font-size: 1.5rem; }
.deck-slide[data-theme="dark"] .slide-pipeline-item { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); box-shadow: none; }
.slide-stats { display: grid; grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); gap: 14px; }
.slide-stat { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--sc-line); box-shadow: var(--sc-shadow-sm); }
.slide-stat b { display: block; color: var(--sc-navy-800); font-size: clamp(1.6rem, 3vw, 3.15rem); line-height: 1; letter-spacing: -.04em; }
.slide-stat span { display: block; margin-top: 8px; color: var(--sc-muted); font-size: .82rem; font-weight: 780; }
.deck-slide[data-theme="dark"] .slide-stat { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); box-shadow: none; }
.deck-slide[data-theme="dark"] .slide-stat b { color: #fff; }
.deck-slide[data-theme="dark"] .slide-stat span { color: rgba(255,255,255,.65); }
.slide-code { margin: 0; padding: clamp(20px, 3vw, 34px); border-radius: 20px; color: #d9eefc; background: #0a1d31; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sc-shadow-md); overflow: auto; white-space: pre-wrap; font: 700 clamp(.73rem, 1vw, .94rem)/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.slide-note { color: var(--sc-muted); font-size: .83rem; }
.deck-bottom { z-index: 50; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(240px, 520px) minmax(140px, 1fr); align-items: center; gap: 18px; padding: 8px 18px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,17,29,.78); backdrop-filter: blur(18px); }
.deck-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.deck-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sc-orange), var(--sc-teal)); transition: width .25s ease; }
.deck-counter { margin-top: 6px; color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 800; text-align: center; }
.deck-nav-side { display: flex; align-items: center; gap: 9px; }
.deck-nav-side:last-child { justify-content: flex-end; }
.deck-nav-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-weight: 850; }
.deck-nav-button:hover { background: rgba(255,255,255,.13); }
.deck-nav-button:focus-visible { outline: 3px solid rgba(85,183,255,.35); outline-offset: 2px; }
.deck-nav-button:disabled { opacity: .35; cursor: not-allowed; }
.deck-dialog { width: min(920px, calc(100% - 28px)); max-height: min(82dvh, 760px); padding: 0; border: 0; border-radius: 24px; color: var(--sc-ink); background: #fff; box-shadow: 0 30px 110px rgba(0,0,0,.48); overflow: hidden; }
.deck-dialog::backdrop { background: rgba(1,7,12,.68); backdrop-filter: blur(8px); }
.deck-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--sc-line); }
.deck-dialog-head h2 { margin: 0; color: var(--sc-navy-900); font-size: 1.15rem; }
.deck-outline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 65dvh; padding: 14px; overflow: auto; }
.deck-outline button { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; min-height: 58px; padding: 10px; border: 1px solid var(--sc-line); border-radius: 14px; color: var(--sc-ink); background: #fff; cursor: pointer; text-align: left; }
.deck-outline button:hover, .deck-outline button[aria-current="true"] { border-color: #a9bed1; background: #f1f6fa; }
.deck-outline b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--sc-navy-700); background: #e8f1f7; }
.deck-outline span { font-size: .84rem; font-weight: 760; line-height: 1.3; }

/* Exam */
.exam-page { min-height: 100vh; background: radial-gradient(circle at 8% 0%, rgba(32,191,169,.12), transparent 28rem), radial-gradient(circle at 96% 8%, rgba(255,154,60,.14), transparent 25rem), var(--sc-canvas); }
.exam-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(220,228,237,.85); background: rgba(248,251,253,.88); backdrop-filter: blur(18px); }
.exam-header .sc-topbar { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.exam-main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.exam-hero { position: relative; padding: clamp(26px, 4vw, 46px); border-radius: 28px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(255,154,60,.34), transparent 35%), linear-gradient(145deg, var(--sc-navy-900), #123f61 62%, #176b70); box-shadow: var(--sc-shadow-md); overflow: hidden; }
.exam-hero::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 32px 32px; }
.exam-hero > * { position: relative; z-index: 1; }
.exam-hero .slide-kicker { color: #ffc276; }
.exam-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.exam-hero p { max-width: 850px; margin: 16px 0 0; color: rgba(255,255,255,.72); }
.exam-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.exam-badges .sc-chip { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.17); }
.exam-panel, .question-card, .result-card { border: 1px solid var(--sc-line); border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: var(--sc-shadow-sm); }
.exam-panel { padding: clamp(22px, 3vw, 32px); margin-top: 22px; }
.exam-panel h2, .result-card h2 { margin: 0 0 16px; color: var(--sc-navy-900); font-size: clamp(1.35rem, 2.5vw, 2rem); }
.exam-notice { margin: 14px 0 20px; padding: 15px 17px; border-left: 4px solid var(--sc-yellow); border-radius: 10px 15px 15px 10px; color: #69480e; background: var(--sc-yellow-soft); }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.exam-field label { display: block; margin-bottom: 6px; color: var(--sc-navy-800); font-weight: 850; }
.exam-field input, .exam-field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--sc-line-strong); border-radius: 13px; color: var(--sc-ink); background: #fff; }
.exam-field input::placeholder { color: #96a2b1; }
.exam-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
.exam-check input { margin-top: 6px; }
.exam-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.exam-actions button { min-height: 48px; }
.exam-details { margin-top: 18px; border-top: 1px dashed var(--sc-line-strong); padding-top: 14px; }
.exam-details summary { cursor: pointer; color: var(--sc-navy-700); font-weight: 850; }
.quiz-shell { display: none; }
.exam-status { position: sticky; top: 74px; z-index: 40; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--sc-line); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: var(--sc-shadow-sm); backdrop-filter: blur(16px); }
.exam-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--sc-navy-800); font-size: .86rem; font-weight: 850; }
.exam-timer.is-warning { color: var(--sc-red); }
.exam-progress { height: 7px; margin-top: 9px; border-radius: 999px; background: #e7edf3; overflow: hidden; }
.exam-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sc-teal), var(--sc-blue)); transition: width .2s ease; }
.exam-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 11px; padding: 13px 16px; border-radius: 15px; color: var(--sc-navy-800); background: #eaf2f8; border: 1px solid #d5e3ee; }
.exam-section-heading h2 { margin: 0; font-size: 1.12rem; }
.question-card { padding: clamp(18px, 2.6vw, 26px); margin-bottom: 13px; box-shadow: none; }
.question-card.is-unanswered { border-color: #d5a33a; box-shadow: 0 0 0 3px rgba(183,121,31,.12); }
.question-card.is-correct { border-color: #8bc9ad; }
.question-card.is-wrong { border-color: #e4a0ac; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; color: var(--sc-muted); font-size: .78rem; }
.question-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.question-card fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.question-card legend { width: 100%; margin-bottom: 12px; color: var(--sc-navy-900); font-size: clamp(1rem, 1.6vw, 1.16rem); font-weight: 850; line-height: 1.55; }
.exam-option { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 12px 13px; border: 1px solid #e0e7ee; border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.exam-option:hover { border-color: #b7c7d5; background: #f7fafc; transform: translateX(2px); }
.exam-option input { margin-top: 5px; flex: 0 0 auto; }
.exam-option b { color: var(--sc-navy-700); }
.exam-option.is-correct { border-color: #87c4a5; background: var(--sc-green-soft); }
.exam-option.is-wrong { border-color: #df97a4; background: var(--sc-red-soft); }
.question-analysis { display: none; margin-top: 13px; padding: 14px 16px; border-left: 4px solid var(--sc-orange); border-radius: 9px 14px 14px 9px; background: var(--sc-orange-soft); }
.question-analysis b { color: #81420d; }
.question-analysis small { display: block; margin-top: 6px; color: #7d6a57; }
.result-section { display: none; }
.result-card { padding: clamp(22px, 3.5vw, 38px); margin-top: 22px; }
.result-score { color: var(--sc-navy-900); font-size: clamp(3rem, 8vw, 6rem); font-weight: 950; line-height: 1; letter-spacing: -.06em; }
.result-pass { color: var(--sc-green); font-size: 1.15rem; font-weight: 900; }
.result-fail { color: var(--sc-red); font-size: 1.15rem; font-weight: 900; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin: 20px 0; }
.result-metric { padding: 14px; border: 1px solid var(--sc-line); border-radius: 15px; background: var(--sc-card-soft); }
.result-metric span { color: var(--sc-muted); font-size: .77rem; }
.result-metric b { display: block; margin-top: 4px; color: var(--sc-navy-800); font-size: 1.08rem; }
.result-table-wrap { overflow-x: auto; border: 1px solid var(--sc-line); border-radius: 15px; }
.result-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.result-table th, .result-table td { padding: 10px 12px; border-bottom: 1px solid var(--sc-line); text-align: left; }
.result-table th { color: var(--sc-navy-700); background: #eaf2f8; }
.result-table tr:last-child td { border-bottom: 0; }
.exam-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.exam-signatures div { min-height: 48px; padding-top: 8px; border-top: 1px solid #5e6b7a; color: var(--sc-muted); font-size: .83rem; }
.exam-footnote { margin-top: 20px; color: var(--sc-muted); font-size: .82rem; }
.exam-action-status { min-height: 1.4em; margin: 10px 0 0; color: var(--sc-muted); font-size: .84rem; }
.review-section[hidden] { display: none !important; }
.review-section { margin-top: 22px; scroll-margin-top: 82px; }
.review-card { padding: clamp(22px, 3.5vw, 34px); border: 1px solid var(--sc-line); border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: var(--sc-shadow-sm); }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.review-head h2 { margin: 0; color: var(--sc-navy-900); font-size: clamp(1.35rem, 2.5vw, 2rem); }
.review-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 12px 14px; border: 1px solid var(--sc-line); border-radius: 15px; background: var(--sc-card-soft); }
.review-toolbar label { color: var(--sc-navy-800); font-weight: 850; }
.review-toolbar select { min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--sc-line-strong); border-radius: 11px; color: var(--sc-ink); background: #fff; }
.review-toolbar span { margin-left: auto; color: var(--sc-muted); font-size: .82rem; font-weight: 760; }
.review-question h3 { margin: 0 0 13px; color: var(--sc-navy-900); font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.55; }
.review-options { display: grid; gap: 7px; }
.review-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.review-option small { flex: 0 0 auto; color: var(--sc-muted); font-weight: 800; }
.review-option.is-correct { border-color: #87c4a5; background: var(--sc-green-soft); }
.review-option.is-wrong { border-color: #df97a4; background: var(--sc-red-soft); }
.review-analysis { display: block; }
.review-empty { padding: 28px; border: 1px dashed var(--sc-line-strong); border-radius: 15px; color: var(--sc-muted); text-align: center; background: var(--sc-card-soft); }
.review-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.review-pagination span { min-width: 110px; color: var(--sc-muted); font-size: .84rem; font-weight: 800; text-align: center; }
.print-report { display: none; }


@media (max-width: 1180px) and (min-width: 981px) {
  .workflow-strip { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--sc-line); }
  .workflow-step:nth-child(4) { border-top: 1px solid var(--sc-line); }
  .deck-route-link { display: none; }
}


@media (max-width: 720px) {
  .access-gate-shell { width: min(100% - 24px, 680px); }
  .access-gate-topbar { min-height: 64px; }
  .access-gate-topbar .sc-brand-copy span { display: none; }
  .access-gate-card { margin: 14px auto 28px; padding: 24px 20px; border-radius: 23px; }
  .access-lock-mark { width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px; }
  .access-lock-mark::before { left: 15px; top: 9px; width: 20px; height: 20px; }
  .access-lock-mark::after { left: 11px; bottom: 8px; width: 28px; height: 23px; }
  .access-input-row { grid-template-columns: 1fr; }
  .access-input-row .sc-primary-button, .access-home-link { width: 100%; }
  .portal-access-note { align-items: flex-start; }
}

@media (max-width: 980px) {
  .portal-links { display: none; }
  .portal-hero-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; }
  .workflow-strip { grid-template-columns: 1fr; }
  .workflow-step + .workflow-step { border-left: 0; border-top: 1px solid var(--sc-line); }
  .workflow-step:nth-child(3), .workflow-step:nth-child(4) { border-left: 0; }
  .deck-stage { min-height: 0; }
  .deck-module-label, .deck-route-link { display: none; }
  .slide-grid[style*="--columns:4"], .slide-grid[style*="--columns: 4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px), (orientation: portrait) and (max-width: 1000px) {
  .sc-shell { width: min(100% - 26px, var(--sc-max)); }
  .sc-brand-copy span { display: none; }
  .sc-brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .portal-nav .sc-topbar { width: min(100% - 24px, var(--sc-max)); min-height: 60px; }
  .portal-hero { padding: 50px 0 40px; }
  .portal-hero h1 { font-size: clamp(2.35rem, 12vw, 4.2rem); }
  .portal-lead { font-size: 1rem; }
  .portal-section { padding: 48px 0; }
  .portal-section-head { display: grid; }
  .module-card { padding: 22px; border-radius: 22px; }

  .deck-app { grid-template-rows: 58px minmax(0, 1fr) 58px; }
  .deck-toolbar .sc-topbar { width: calc(100% - 18px); height: 58px; }
  .deck-toolbar .sc-brand-copy { display: none; }
  .deck-toolbar .sc-actions { gap: 6px; }
  .deck-toolbar .sc-icon-button { width: 38px; min-height: 38px; }
  .deck-toolbar .sc-lang-switch button { min-width: 40px; min-height: 32px; padding: 5px 7px; }
  .deck-workspace { display: block; padding: 0; }
  .deck-stage { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .deck-slide { padding: 26px 18px 52px; }
  .deck-slide::after { right: 17px; bottom: 16px; }
  .slide-kicker { margin-bottom: 9px; font-size: .68rem; }
  .slide-title { font-size: clamp(1.75rem, 8vw, 2.8rem); }
  .slide-lead { margin-top: 12px; font-size: .95rem; }
  .slide-content { margin-top: 20px; gap: 13px; }
  .slide-grid, .slide-grid[style] { grid-template-columns: 1fr; gap: 11px; }
  .slide-card { padding: 17px; border-radius: 17px; }
  .slide-card-icon { width: 36px; height: 36px; margin-bottom: 11px; }
  .slide-card h3 { font-size: 1.05rem; }
  .slide-card p { font-size: .9rem; }
  .slide-quote { padding: 21px; font-size: 1.3rem; }
  .slide-table-wrap { border-radius: 14px; }
  .slide-table th, .slide-table td { padding: 9px 10px; font-size: .78rem; }
  .slide-pipeline-item { flex-basis: 120px; min-height: 62px; font-size: .78rem; }
  .slide-stats, .slide-stats[style] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-code { padding: 17px; font-size: .7rem; }
  .deck-bottom { grid-template-columns: 1fr auto 1fr; gap: 7px; padding: 7px 9px; }
  .deck-nav-button { min-width: 42px; min-height: 40px; padding: 7px 10px; }
  .deck-nav-button .label { display: none; }
  .deck-counter { display: none; }
  .deck-outline { grid-template-columns: 1fr; }

  .exam-header .sc-topbar, .exam-main { width: calc(100% - 22px); }
  .exam-header .sc-topbar { min-height: 60px; }
  .exam-header .sc-brand-copy span { display: none; }
  .exam-main { padding-top: 20px; }
  .exam-hero { border-radius: 21px; }
  .exam-hero h1 { font-size: 2.15rem; }
  .exam-panel, .question-card, .result-card { border-radius: 17px; }
  .exam-grid, .result-metrics, .exam-signatures { grid-template-columns: 1fr; }
  .review-head { display: grid; }
  .review-toolbar { align-items: stretch; }
  .review-toolbar select { width: 100%; }
  .review-toolbar span { width: 100%; margin-left: 0; }
  .review-option { display: grid; }
  .exam-status { top: 66px; padding: 10px 12px; }
  .exam-status-row { font-size: .76rem; }
  .exam-actions { display: grid; grid-template-columns: 1fr; }
  .exam-actions button, .exam-actions a { width: 100%; }
}

@media (max-width: 420px) {
  .sc-lang-switch button { min-width: 42px; }
  .slide-stats, .slide-stats[style] { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { width: auto !important; min-height: 0 !important; background: #fff !important; }
  body > *:not(#printReport) { display: none !important; }
  #printReport { display: block !important; color: #111; background: #fff; font-family: Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
  .print-report-sheet { width: 100%; font-size: 9.5pt; line-height: 1.45; }
  .print-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 2px solid #102f4a; }
  .print-report-kicker { font-size: 8pt; font-weight: 900; letter-spacing: .16em; }
  .print-report-header h1 { margin: 4px 0 0; color: #102f4a; font-size: 20pt; line-height: 1.15; }
  .print-report-result { min-width: 118px; padding: 10px 12px; border: 1px solid #99a9b8; border-radius: 8px; text-align: right; }
  .print-report-result b { display: block; font-size: 18pt; line-height: 1; }
  .print-report-result span { display: block; margin-top: 5px; font-weight: 800; }
  .print-report-result.is-pass { border-color: #2f805d; color: #176a49; }
  .print-report-result.is-fail { border-color: #a83b4e; color: #8f2437; }
  .print-report-rule { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid #178f82; background: #edf8f5; }
  .print-report-section { margin-top: 14px; }
  .print-report-section h2 { margin: 0 0 7px; color: #102f4a; font-size: 12pt; }
  .print-meta-table, .print-data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .print-meta-table th, .print-meta-table td, .print-data-table th, .print-data-table td { padding: 5px 6px; border: 1px solid #cbd4dd; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .print-meta-table th { width: 22%; color: #334b62; background: #eef3f6; }
  .print-data-table th { color: #203b53; background: #e9f0f5; }
  .print-data-table th:first-child { width: 9%; }
  .print-data-table thead { display: table-header-group; }
  .print-data-table tr { break-inside: avoid; }
  .print-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .print-summary-grid div { padding: 8px; border: 1px solid #cbd4dd; border-radius: 6px; }
  .print-summary-grid span { display: block; color: #596979; font-size: 8pt; }
  .print-summary-grid b { display: block; margin-top: 3px; color: #102f4a; font-size: 12pt; }
  .print-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; break-inside: avoid; }
  .print-signatures div { min-height: 34px; padding-top: 6px; border-top: 1px solid #555; color: #555; }
  .print-report footer { margin-top: 14px; padding-top: 7px; border-top: 1px solid #ccd5de; color: #66717d; font-size: 8pt; }
}


/* Mobile chrome refinements */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1000px) {
  .deck-slide::after { display: none; }
  .deck-counter { display: block; margin-top: 4px; }
}

@media (max-width: 420px) {
  .exam-header .sc-ghost-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
  }
  .exam-header .sc-ghost-button span:not([aria-hidden="true"]) { display: none; }
}

/* Automatic density fit for landscape presentation mode. Scroll remains the fallback. */
@media (min-width: 721px) and (orientation: landscape) {
  .deck-slide.is-dense {
    padding: clamp(24px, 3vw, 48px) clamp(30px, 4.4vw, 66px);
  }
  .deck-slide.is-dense .slide-kicker { margin-bottom: 9px; font-size: .7rem; }
  .deck-slide.is-dense .slide-title { font-size: clamp(1.85rem, 3.45vw, 3.55rem); }
  .deck-slide.is-dense .slide-lead { margin-top: 11px; font-size: clamp(.9rem, 1.25vw, 1.12rem); line-height: 1.5; }
  .deck-slide.is-dense .slide-content { margin-top: 17px; gap: 13px; }
  .deck-slide.is-dense .slide-content.compact { margin-top: 13px; gap: 10px; }
  .deck-slide.is-dense .slide-grid { gap: 11px; }
  .deck-slide.is-dense .slide-card { padding: clamp(13px, 1.55vw, 19px); border-radius: 17px; }
  .deck-slide.is-dense .slide-card-icon { width: 34px; height: 34px; margin-bottom: 9px; border-radius: 11px; font-size: .95rem; }
  .deck-slide.is-dense .slide-card h3 { margin-bottom: 5px; font-size: clamp(.88rem, 1.2vw, 1.08rem); }
  .deck-slide.is-dense .slide-card p { font-size: clamp(.74rem, .9vw, .88rem); line-height: 1.43; }
  .deck-slide.is-dense .slide-card .card-meta { margin-top: 7px; font-size: .7rem; }
  .deck-slide.is-dense .slide-list { gap: 6px; }
  .deck-slide.is-dense .slide-list li { padding: 8px 10px 8px 34px; font-size: .84rem; }
  .deck-slide.is-dense .slide-list li::before { top: 8px; }
  .deck-slide.is-dense .slide-table th,
  .deck-slide.is-dense .slide-table td { padding: 9px 11px; font-size: clamp(.7rem, .82vw, .82rem); line-height: 1.35; }
  .deck-slide.is-dense .slide-banner { padding: 11px 15px; font-size: .84rem; }
  .deck-slide.is-dense .slide-stat { padding: 14px; }
  .deck-slide.is-dense .slide-stat b { font-size: clamp(1.4rem, 2.4vw, 2.5rem); }

  .deck-slide.is-xdense {
    padding: 20px clamp(26px, 3.7vw, 54px) 24px;
  }
  .deck-slide.is-xdense .slide-kicker { margin-bottom: 7px; }
  .deck-slide.is-xdense .slide-title { font-size: clamp(1.72rem, 3vw, 3rem); }
  .deck-slide.is-xdense .slide-lead { margin-top: 8px; font-size: clamp(.82rem, 1.05vw, 1rem); line-height: 1.42; }
  .deck-slide.is-xdense .slide-content,
  .deck-slide.is-xdense .slide-content.compact { margin-top: 11px; gap: 8px; }
  .deck-slide.is-xdense .slide-grid { gap: 8px; }
  .deck-slide.is-xdense .slide-card { padding: 11px 13px; border-radius: 14px; }
  .deck-slide.is-xdense .slide-card-icon { width: 30px; height: 30px; margin-bottom: 6px; }
  .deck-slide.is-xdense .slide-card h3 { margin-bottom: 3px; font-size: clamp(.8rem, 1vw, .96rem); }
  .deck-slide.is-xdense .slide-card p { font-size: clamp(.69rem, .78vw, .79rem); line-height: 1.34; }
  .deck-slide.is-xdense .slide-list li { padding-top: 6px; padding-bottom: 6px; font-size: .76rem; line-height: 1.35; }
  .deck-slide.is-xdense .slide-list li::before { top: 6px; }
  .deck-slide.is-xdense .slide-table th,
  .deck-slide.is-xdense .slide-table td { padding: 7px 9px; font-size: clamp(.66rem, .72vw, .75rem); line-height: 1.28; }
  .deck-slide.is-xdense .slide-banner { padding: 9px 13px; font-size: .76rem; }
}

/* =========================================================
   Support tools base · fully static local-PDF workflow
   ========================================================= */
.activity-page { min-height: 100vh; background:
  radial-gradient(circle at 10% -10%, rgba(32,191,169,.14), transparent 34%),
  radial-gradient(circle at 92% 0%, rgba(255,154,60,.13), transparent 32%),
  var(--sc-canvas); }
.activity-header { position: sticky; top: 0; z-index: 80; padding: 0 24px; border-bottom: 1px solid rgba(198,210,223,.88); background: rgba(244,247,250,.91); backdrop-filter: blur(18px); }
.activity-header .sc-topbar { width: min(var(--sc-max), 100%); margin: 0 auto; }
.activity-main { width: min(1320px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 80px; }
.activity-shell { display: grid; gap: 22px; }
.activity-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); gap: 24px; align-items: end; padding: clamp(26px,4vw,46px); border: 1px solid rgba(255,255,255,.9); border-radius: 32px; color: #fff; background: linear-gradient(135deg,var(--sc-navy-950),var(--sc-navy-800) 70%,#166a70); box-shadow: var(--sc-shadow-md); overflow: hidden; }
.activity-hero h1 { margin: 8px 0 12px; font-size: clamp(2rem,4.5vw,4.2rem); line-height: 1.05; letter-spacing: -.045em; }
.activity-hero p { max-width: 850px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(.98rem,1.35vw,1.16rem); }
.activity-hero .slide-kicker { color: #78ead9; }
.activity-principles { display: grid; gap: 9px; }
.activity-principles span { padding: 12px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); font-size: .88rem; font-weight: 800; }
.activity-privacy-banner { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1px solid #bfe9df; border-radius: 18px; background: var(--sc-teal-soft); color: #176b62; }
.activity-privacy-banner strong { flex: 0 0 auto; color: var(--sc-navy-800); }
.activity-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 7px; border: 1px solid var(--sc-line); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: var(--sc-shadow-sm); }
.activity-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 10px 12px; border: 0; border-radius: 14px; color: var(--sc-muted); background: transparent; cursor: pointer; font-weight: 850; }
.activity-tabs button small { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--sc-navy-700); background: #e9f0f6; }
.activity-tabs button.is-active { color: #fff; background: linear-gradient(135deg,var(--sc-navy-800),var(--sc-navy-700)); box-shadow: 0 10px 24px rgba(10,29,49,.19); }
.activity-tabs button.is-active small { color: var(--sc-navy-900); background: var(--sc-orange); }
.activity-panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 4px; }
.activity-panel-head h2 { margin: 2px 0 6px; color: var(--sc-navy-900); font-size: clamp(1.65rem,3vw,2.45rem); line-height: 1.12; letter-spacing: -.03em; }
.activity-panel-head p { max-width: 840px; margin: 0; color: var(--sc-muted); }
.activity-local-badge { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #bde8df; border-radius: 999px; color: #176b62; background: var(--sc-teal-soft); font-size: .76rem; font-weight: 850; }
.activity-work-grid { display: grid; grid-template-columns: minmax(280px,.68fr) minmax(0,1.32fr); gap: 18px; align-items: start; }
.activity-card { min-width: 0; padding: clamp(20px,3vw,30px); border: 1px solid var(--sc-line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--sc-shadow-sm); }
.activity-card h3 { margin: 0 0 14px; color: var(--sc-navy-800); font-size: 1.23rem; }
.activity-card h3:not(:first-child) { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--sc-line); }
.activity-card h4 { margin: 0 0 8px; color: var(--sc-navy-800); }
.activity-card > p { color: var(--sc-muted); }
.activity-form-grid { display: grid; gap: 16px; }
.activity-form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.activity-inline-grid { display: grid; gap: 12px; margin-top: 18px; }
.activity-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.activity-label { color: var(--sc-navy-800); font-size: .88rem; font-weight: 850; }
.activity-label em { margin-left: 4px; color: var(--sc-red); font-style: normal; }
.activity-field input,.activity-field select,.activity-field textarea,.activity-photo-card input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--sc-line-strong); border-radius: 12px; color: var(--sc-ink); background: #fff; }
.activity-field textarea { resize: vertical; }
.activity-field small { color: var(--sc-muted); font-size: .76rem; line-height: 1.5; }
.activity-field input:disabled,.activity-field select:disabled { color: var(--sc-navy-700); background: #edf2f6; }
.activity-facts { display: grid; gap: 10px; margin: 20px 0; padding: 18px; border: 1px solid #f2d6af; border-radius: 18px; background: var(--sc-orange-soft); }
.activity-facts p { margin: 0 0 4px; color: #81522c; font-size: .86rem; }
.activity-facts label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; color: #503824; font-size: .86rem; }
.activity-facts input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--sc-navy-800); }
.activity-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.activity-status { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; color: var(--sc-navy-800); background: #e9f0f6; font-size: .86rem; font-weight: 700; }
.activity-status.is-success { color: #176748; background: var(--sc-green-soft); }
.activity-status.is-error { color: #a52f45; background: var(--sc-red-soft); }
.activity-import-summary { display: grid; gap: 3px; margin-top: 16px; padding: 14px; border: 1px solid #bfe9df; border-radius: 14px; color: #176b62; background: var(--sc-teal-soft); overflow-wrap: anywhere; }
.activity-import-summary strong { color: var(--sc-navy-800); }
.activity-empty-state { display: grid; gap: 8px; place-content: center; min-height: 260px; padding: 30px; border: 2px dashed var(--sc-line-strong); border-radius: 20px; color: var(--sc-muted); text-align: center; }
.activity-empty-state strong { color: var(--sc-navy-800); font-size: 1.08rem; }
.activity-question-list { display: grid; gap: 13px; }
.activity-question { margin: 0; padding: 17px; border: 1px solid var(--sc-line); border-radius: 17px; background: var(--sc-card-soft); }
.activity-question legend { padding: 0 6px; color: var(--sc-navy-800); font-weight: 850; }
.activity-question p { margin: 6px 0 14px; color: #3f5066; font-size: .88rem; }
.activity-question-options { display: flex; flex-wrap: wrap; gap: 9px; }
.activity-question-options label { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 7px 12px; border: 1px solid var(--sc-line); border-radius: 11px; background: #fff; cursor: pointer; font-weight: 750; }
.activity-question-options input { width: 17px; height: 17px; accent-color: var(--sc-teal); }
.activity-signature-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; }
.activity-signature-preview { display: grid; place-items: center; min-height: 120px; overflow: hidden; border: 2px dashed var(--sc-line-strong); border-radius: 16px; color: var(--sc-muted); background: #fff; }
.activity-signature-preview img { max-height: 110px; object-fit: contain; }
.activity-signature-dialog { width: min(980px,calc(100vw - 24px)); max-width: none; padding: 0; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--sc-shadow-lg); }
.activity-signature-dialog::backdrop { background: rgba(3,14,25,.74); backdrop-filter: blur(5px); }
.activity-signature-dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; color: #fff; background: var(--sc-navy-900); }
.activity-signature-dialog-head div { display: grid; }
.activity-signature-dialog-head span { color: rgba(255,255,255,.68); font-size: .78rem; }
.activity-signature-dialog-head button { width: 40px; height: 40px; border: 0; border-radius: 11px; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; font-size: 1.4rem; }
#signatureCanvas { display: block; width: calc(100% - 32px); height: min(52vh,440px); margin: 16px; border: 2px dashed var(--sc-line-strong); border-radius: 17px; background: repeating-linear-gradient(0deg,#fff,#fff 39px,#eef2f6 40px); }
.activity-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 0 16px 16px; }
.activity-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.activity-results-head h3 { margin: 0; }
.activity-results-head p { margin: 4px 0 0; color: var(--sc-muted); }
.activity-table-wrap { overflow: auto; border: 1px solid var(--sc-line); border-radius: 15px; }
.activity-data-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .84rem; }
.activity-data-table th,.activity-data-table td { padding: 10px 11px; border-bottom: 1px solid var(--sc-line); text-align: left; vertical-align: top; }
.activity-data-table th { position: sticky; top: 0; color: var(--sc-navy-800); background: #edf3f8; }
.activity-data-table tr.is-invalid { background: var(--sc-red-soft); }
.activity-data-table tr.is-warning { background: var(--sc-yellow-soft); }
.activity-data-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sc-teal); }
.activity-photo-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.activity-photo-card { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--sc-line); border-radius: 16px; background: var(--sc-card-soft); }
.activity-photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; background: #e9eef3; }
.activity-photo-card div { display: grid; gap: 5px; }
.activity-photo-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sc-navy-800); font-size: .82rem; }
.activity-photo-card small { color: var(--sc-muted); font-size: .72rem; }
.activity-photo-card input { min-height: 39px; font-size: .8rem; }
@media (max-width: 980px) {
  .activity-hero { grid-template-columns: 1fr; }
  .activity-principles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-work-grid { grid-template-columns: 1fr; }
  .activity-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-photo-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .activity-header { padding: 0 12px; }
  .activity-main { width: min(100% - 20px,1320px); padding-top: 20px; }
  .activity-hero { padding: 24px 20px; border-radius: 23px; }
  .activity-principles,.activity-form-grid.two,.activity-photo-list { grid-template-columns: 1fr; }
  .activity-tabs { gap: 5px; padding: 5px; }
  .activity-tabs button { min-height: 49px; padding: 7px; font-size: .8rem; }
  .activity-tabs button small { display: none; }
  .activity-panel-head { display: grid; }
  .activity-local-badge { justify-self: start; }
  .activity-card { padding: 18px; border-radius: 19px; }
  .activity-signature-summary { grid-template-columns: 1fr; }
  .activity-results-head { align-items: stretch; flex-direction: column; }
  .activity-actions > * { flex: 1 1 auto; }
  .activity-header .sc-brand-copy span { display: none; }
}
.module-card.activity-support { grid-column: 1 / -1; background: linear-gradient(135deg,#ffffff,#f0fbf8); border-color: #bfe9df; }
.module-card.activity-support .module-icon { width: 54px; font-size: .72rem; letter-spacing: .02em; background: linear-gradient(145deg,var(--sc-teal),#167a71); }
@media (max-width: 760px) { .module-card.activity-support { grid-column: auto; } }

@media (max-width: 520px) {
  .activity-header .sc-topbar {
    gap: 0.35rem;
    padding-inline: 0.4rem;
  }
  .activity-header .sc-brand {
    min-width: 0;
    gap: 0.35rem;
  }
  .activity-header .sc-brand-copy > span {
    display: none;
  }
  .activity-header .sc-actions {
    gap: 0.25rem;
  }
  .activity-header .sc-ghost-button {
    min-width: 2.5rem;
    padding: 0.62rem 0.72rem;
  }
  .activity-header .sc-ghost-button span:not([aria-hidden]) {
    display: none;
  }
}

/* =========================================================
   Support Tools V4.2.7 · activity + weekly/stage PDF assistants
   ========================================================= */
.activity-tabs { grid-template-columns: repeat(6,minmax(0,1fr)); }
.activity-status.is-warning { color: #8a5a13; background: var(--sc-yellow-soft); }
.activity-help-inline { margin: 10px 0 0; color: var(--sc-muted); font-size: .82rem; line-height: 1.55; }
.activity-form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.activity-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 13px 15px; border: 1px solid var(--sc-line); border-radius: 14px; background: var(--sc-card-soft); color: var(--sc-navy-800); font-weight: 750; }
.activity-checkbox-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--sc-teal); }
.report-import-card { display: grid; gap: 12px; }
.report-attendance-wrap { overflow: auto; border: 1px solid var(--sc-line); border-radius: 15px; }
.report-attendance-table { min-width: 790px; }
.report-attendance-table input[type="time"] { min-width: 118px; min-height: 38px; padding: 6px 8px; border: 1px solid var(--sc-line-strong); border-radius: 9px; }
.report-attendance-table tr.is-invalid { background: var(--sc-red-soft); }
.report-attendance-table tr.is-hackday:not(.is-invalid) { background: var(--sc-teal-soft); }
.report-attendance-table tr.is-hackday td:nth-child(6) { font-weight: 850; }
.report-attendance-note { margin: .45rem .15rem 0; color: var(--sc-muted); font-size: .76rem; line-height: 1.45; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0 20px; }
.report-summary-grid-six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.report-summary-grid > div { display: grid; gap: 4px; min-height: 86px; padding: 14px; border: 1px solid var(--sc-line); border-radius: 15px; background: var(--sc-card-soft); }
.report-summary-grid span { color: var(--sc-muted); font-size: .76rem; }
.report-summary-grid strong { color: var(--sc-navy-900); font-size: 1.25rem; overflow-wrap: anywhere; }
.report-progress-block,.report-score-block { margin: 0 0 18px; padding: 18px; border: 1px solid var(--sc-line); border-radius: 18px; background: var(--sc-card-soft); }
.report-progress-block h4,.report-score-block h4 { margin-bottom: 14px; }
.report-score-grid { grid-template-columns: minmax(150px,.28fr) minmax(0,1fr); }
.report-score-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 16px 18px; border: 1px solid #bfe9df; border-radius: 16px; background: var(--sc-teal-soft); color: #176b62; font-weight: 800; }
.report-score-total strong { color: var(--sc-navy-900); font-size: 1.3rem; }
.report-character-line { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; color: var(--sc-muted); font-size: .76rem; }
.report-character-line strong.is-over { color: var(--sc-red); }
#reportSignatureCanvas { display: block; width: calc(100% - 32px); height: min(52vh,440px); margin: 16px; border: 2px dashed var(--sc-line-strong); border-radius: 17px; background: repeating-linear-gradient(0deg,#fff,#fff 39px,#eef2f6 40px); }
.module-card.activity-support .module-icon { width: 64px; }

@media (max-width: 1180px) {
  .activity-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-summary-grid-six { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .activity-form-grid.three,.report-plan-grid { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-score-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .activity-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-summary-grid,.report-summary-grid-six { grid-template-columns: 1fr; }
  .report-score-total { align-items: flex-start; flex-direction: column; }
}

.report-detail-card {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--sc-line, #d7e0e9);
  border-radius: 1rem;
  background: #f8fbfd;
  overflow: hidden;
}
.report-detail-card > summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 800;
  color: var(--sc-navy, #102f4a);
  user-select: none;
}
.report-detail-card[open] > summary {
  border-bottom: 1px solid var(--sc-line, #d7e0e9);
  background: #eef5fa;
}
.report-detail-card .activity-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* =========================================================
   Support Tools V4.2.7 · compact, aligned, responsive forms
   ========================================================= */
.activity-main {
  width: min(calc(100% - 32px), 1440px);
}
.activity-hero-compact {
  min-height: 0;
  padding: 24px 28px;
}
.activity-hero-compact h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
}
.activity-hero-compact p {
  max-width: 720px;
  margin: 8px 0 0;
}
.activity-panel-head {
  margin-bottom: 14px;
}
.activity-panel-head h2 {
  margin-bottom: 6px;
}
.activity-panel-head p {
  max-width: 900px;
  margin: 0;
}
.activity-card {
  padding: clamp(18px, 2.2vw, 30px);
}
.activity-form-card > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.activity-form-card > h3::before {
  content: "";
  width: 4px;
  height: 1.2em;
  border-radius: 999px;
  background: var(--sc-teal);
}
.activity-form-grid {
  align-items: start;
  gap: 14px 18px;
}
.activity-form-grid.two {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}
.activity-form-grid.three {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.activity-form-grid > .activity-field.is-wide,
.activity-form-grid > .is-wide {
  grid-column: 1 / -1;
}
.activity-field {
  min-width: 0;
  gap: 7px;
}
.activity-label {
  min-height: 1.45em;
  line-height: 1.35;
}
.activity-field input,
.activity-field select,
.activity-field textarea,
.activity-photo-card input {
  border-radius: 10px;
  border-color: #c7d2de;
  box-shadow: inset 0 1px 1px rgba(16, 47, 74, .03);
}
.activity-field input,
.activity-field select {
  min-height: 48px;
}
.activity-field textarea {
  min-height: 118px;
  padding: 12px 14px;
  line-height: 1.62;
}
.activity-field textarea[rows="6"],
.activity-field textarea[rows="10"] {
  min-height: 170px;
}
.activity-field input:focus,
.activity-field select:focus,
.activity-field textarea:focus,
.activity-table-input:focus {
  border-color: var(--sc-teal);
  outline: 3px solid rgba(23, 143, 130, .12);
  box-shadow: none;
}
.report-progress-block,
.report-score-block {
  padding: 20px;
  border-radius: 14px;
  background: #fbfcfd;
}
.report-progress-block .activity-form-grid,
.report-plan-grid,
.report-score-grid {
  grid-template-columns: 1fr !important;
}
.report-score-block .activity-field:first-child {
  max-width: 220px;
}
.activity-table-wrap,
.report-attendance-wrap {
  border-radius: 12px;
  border-color: #cbd5df;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 40, 65, .04);
}
.activity-data-table,
.report-attendance-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.activity-data-table th,
.activity-data-table td {
  padding: 11px 12px;
  border-right: 1px solid #d9e1e8;
  border-bottom: 1px solid #d9e1e8;
  line-height: 1.42;
}
.activity-data-table th:last-child,
.activity-data-table td:last-child {
  border-right: 0;
}
.activity-data-table tbody tr:last-child td {
  border-bottom: 0;
}
.activity-data-table th {
  background: #edf3f7;
  font-weight: 850;
  white-space: nowrap;
}
.activity-data-table tbody tr:nth-child(even):not(.is-warning) {
  background: #f9fbfc;
}
.activity-data-table tr.is-ready {
  background: #f2fbf7;
}
.activity-data-table tr.is-warning {
  background: #fff8df;
}
.activity-data-table tr.is-invalid {
  background: #fff2f3;
}
.activity-table-input {
  width: 100%;
  min-width: 110px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #c7d2de;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.activity-roster-table th:first-child,
.activity-roster-table td:first-child {
  width: 72px;
  text-align: center;
}
.activity-roster-table th:nth-child(2) { min-width: 180px; }
.activity-roster-table th:nth-child(3) { min-width: 145px; }
.activity-roster-table th:nth-child(4) { min-width: 190px; }
.activity-roster-table th:nth-child(5) { min-width: 120px; }
.activity-roster-table th:nth-child(6) { min-width: 260px; }
.report-attendance-table input[type="time"] {
  width: 100%;
  min-width: 112px;
  border-radius: 7px;
}
.activity-actions {
  margin-top: 20px;
}
.activity-import-summary,
.activity-status {
  border-radius: 10px;
}
.report-summary-grid > div {
  border-radius: 11px;
  background: #f8fafc;
}
.report-detail-card {
  border-radius: 12px;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .activity-main { width: min(calc(100% - 28px), 1180px); }
  .activity-form-grid.three { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .activity-card { padding: 24px; }
}
@media (max-width: 900px) {
  .activity-main { width: min(calc(100% - 22px), 900px); }
  .activity-form-grid.two,
  .activity-form-grid.three { grid-template-columns: 1fr; }
  .activity-form-grid > * { grid-column: 1; }
  .activity-hero-compact { padding: 20px 22px; }
  .activity-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .activity-data-table { min-width: 760px; }
}
@media (max-width: 600px) {
  .activity-main { width: calc(100% - 12px); padding-top: 12px; }
  .activity-hero-compact { padding: 18px 16px; border-radius: 16px; }
  .activity-hero-compact p { font-size: .9rem; }
  .activity-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-tabs button { min-height: 46px; padding: 8px 6px; }
  .activity-card { padding: 15px; border-radius: 14px; }
  .activity-form-card > h3 { font-size: 1.08rem; }
  .activity-field input,
  .activity-field select { min-height: 46px; }
  .activity-field textarea { min-height: 132px; }
  .activity-actions { display: grid; grid-template-columns: 1fr; }
  .activity-actions > * { width: 100%; }
  .activity-results-head { gap: 10px; }
  .report-progress-block,
  .report-score-block { padding: 14px; }
  .report-summary-grid > div { min-height: 72px; padding: 11px; }
}

/* =========================================================
   Legacy V5.3.1 homepage baseline · support tools business UI v4.2.7
   ========================================================= */
.activity-main { width: min(1440px, calc(100% - 32px)); padding-top: 26px; }
.activity-shell { gap: 16px; }
.activity-hero.activity-hero-compact {
  display: block;
  padding: 24px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sc-navy-950), var(--sc-navy-800));
}
.activity-hero.activity-hero-compact h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.activity-hero.activity-hero-compact p { max-width: none; font-size: .96rem; }
.activity-work-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.activity-panel-head { margin: 4px 0 0; padding: 6px 2px; }
.activity-panel-head h2 { margin: 0 0 4px; font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
.activity-panel-head p { font-size: .9rem; line-height: 1.5; }
.activity-card { padding: clamp(18px, 2.2vw, 26px); border-radius: 18px; box-shadow: 0 8px 24px rgba(12, 38, 62, .06); }
.activity-card h3 { margin-bottom: 12px; font-size: 1.08rem; }
.activity-card h3:not(:first-child) { margin-top: 22px; padding-top: 18px; }
.activity-form-grid { gap: 14px 16px; }
.activity-field.is-wide { grid-column: 1 / -1; }
.activity-field input,
.activity-field select,
.activity-field textarea,
.activity-photo-card input {
  border-radius: 8px;
  border-color: #c8d3df;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 47, 74, .035);
}
.activity-field input:focus,
.activity-field select:focus,
.activity-field textarea:focus,
.activity-table-input:focus {
  outline: 2px solid rgba(23, 143, 130, .18);
  border-color: var(--sc-teal);
}
.activity-field textarea { min-height: 118px; line-height: 1.62; }
.activity-label { font-size: .84rem; }
.activity-field small { font-size: .72rem; }
.activity-actions { margin-top: 18px; }
.activity-tabs { gap: 6px; padding: 5px; border-radius: 16px; }
.activity-tabs button { min-height: 50px; border-radius: 11px; font-size: .84rem; }
.activity-tabs button small { width: 24px; height: 24px; border-radius: 7px; }
.activity-help-inline { margin: 8px 0 0; font-size: .76rem; }
.activity-status { border-radius: 8px; }
.activity-status.is-error { color: #a52f45; background: var(--sc-red-soft); }

/* Spreadsheet-like tables */
.activity-table-wrap,
.report-attendance-wrap {
  border: 1px solid #bfcbd8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(12, 38, 62, .045);
}
.activity-data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  font-size: .82rem;
}
.activity-data-table th,
.activity-data-table td {
  padding: 9px 10px;
  border: 1px solid #d2dbe5;
  vertical-align: middle;
  line-height: 1.42;
}
.activity-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #18344e;
  background: #eaf0f6;
  font-weight: 850;
  white-space: nowrap;
}
.activity-data-table tbody tr:nth-child(even) { background: #fbfcfe; }
.activity-data-table tr.is-ready { background: #f4fbf8; }
.activity-data-table tr.is-review,
.activity-data-table tr.is-warning,
.activity-data-table tr.is-invalid { background: #fff7e8; }
.activity-data-table tbody tr:hover { background: #eef7fb; }
.activity-data-table input[type="checkbox"] { width: 18px; height: 18px; }
.activity-table-input {
  width: 100%;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  font: inherit;
}
.activity-table-input.is-short { min-width: 72px; max-width: 92px; }
.activity-table-edit-stack { display: grid; gap: 4px; min-width: 150px; }
.activity-table-file { color: var(--sc-muted); font-size: .68rem; overflow-wrap: anywhere; }
.activity-review-note { color: #82500d; font-size: .76rem; }
.activity-ready-note { color: #247752; font-size: .76rem; }
.activity-roster-table { min-width: 1080px; }
.activity-roster-table th:nth-child(1) { width: 70px; }
.activity-roster-table th:nth-child(3) { width: 100px; }
.activity-roster-table th:nth-child(5) { width: 150px; }
.report-monthly-review-table { min-width: 980px; }
.report-attendance-table { min-width: 760px; table-layout: fixed; }
.report-attendance-table th:nth-child(1) { width: 70px; }
.report-attendance-table th:nth-child(2) { width: 130px; }
.report-attendance-table th:nth-child(3) { width: 90px; }
.report-attendance-table th:nth-child(4),
.report-attendance-table th:nth-child(5) { width: 135px; }
.report-attendance-table th:nth-child(6) { width: 105px; }
.report-attendance-table input[type="time"] {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  background: #fff;
}
.report-attendance-table td:first-child { text-align: center; }

/* Large writing areas use the full row */
.report-progress-block,
.report-score-block { padding: 16px; border-radius: 12px; }
.report-progress-block .activity-form-grid,
.report-score-block .activity-form-grid,
.report-plan-grid { grid-template-columns: minmax(0, 1fr); }
.report-score-grid .activity-field:first-child { max-width: 220px; }
.report-summary-grid > div { min-height: 76px; border-radius: 10px; }
.report-score-total { border-radius: 10px; }
.activity-signature-preview { border-radius: 10px; }
.activity-import-summary { border-radius: 9px; }
.activity-facts { border-radius: 12px; }

/* Compact access gate: guidance appears only when access is required. */
.access-gate-card { max-width: 620px; }
.access-gate-card > .slide-kicker,
.access-gate-card > .access-gate-lead,
.access-gate-card .access-help { display: none !important; }
.access-gate-card h1 { margin-bottom: 20px; }
.access-gate-topbar .sc-brand-copy span { color: var(--sc-muted); }

@media (max-width: 1100px) {
  .activity-main { width: min(100% - 24px, 1440px); }
  .activity-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .activity-main { width: min(100% - 20px, 1440px); padding-top: 18px; }
  .activity-form-grid.two,
  .activity-form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .activity-field.is-wide { grid-column: auto; }
  .activity-hero.activity-hero-compact { padding: 20px; }
  .activity-card { padding: 17px; }
  .report-summary-grid,
  .report-summary-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-results-head { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .activity-main { width: min(100% - 14px, 1440px); }
  .activity-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-tabs button { min-height: 46px; padding: 7px 5px; font-size: .76rem; }
  .activity-tabs button small { display: none; }
  .activity-hero.activity-hero-compact { padding: 18px 16px; border-radius: 16px; }
  .activity-card { padding: 14px; border-radius: 14px; }
  .activity-field input,
  .activity-field select,
  .activity-field textarea { font-size: 16px; }
  .activity-actions { display: grid; grid-template-columns: 1fr; }
  .activity-actions > * { width: 100%; }
  .report-summary-grid,
  .report-summary-grid-six { grid-template-columns: 1fr; }
  .activity-signature-summary { grid-template-columns: 1fr; }
  .activity-table-wrap,
  .report-attendance-wrap { border-radius: 8px; }
  .activity-data-table { font-size: .76rem; }
  .activity-data-table th,
  .activity-data-table td { padding: 7px 8px; }
}

/* V4.2.5 inherited form polish: consistent forms on desktop, iPad and phone */
.activity-form-grid {
  align-items: stretch;
}
.activity-form-grid > .activity-field {
  height: 100%;
}
.activity-form-grid > .activity-field > input,
.activity-form-grid > .activity-field > select {
  margin-top: auto;
}
.activity-form-grid > .activity-field.is-wide {
  width: 100%;
}
.activity-field textarea {
  width: 100%;
  min-height: 132px;
}
.activity-field textarea[rows="6"],
.activity-field textarea[rows="10"] {
  min-height: 190px;
}
.activity-inline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.activity-data-table,
.report-attendance-table {
  font-variant-numeric: tabular-nums;
}
.activity-data-table th {
  text-align: center;
  letter-spacing: .01em;
}
.activity-data-table td {
  background-clip: padding-box;
}
.activity-data-table tr.is-warning td {
  background: #fff8e6;
}
.activity-data-table tr.is-ready td {
  background: #f4fbf8;
}
.activity-data-table tbody tr:hover td {
  background: #eef7fb;
}
.report-attendance-table td:nth-child(2),
.report-attendance-table td:nth-child(3),
.report-attendance-table td:nth-child(6),
.report-monthly-review-table td:nth-child(1),
.activity-roster-table td:nth-child(1),
.activity-roster-table td:nth-child(3),
.activity-roster-table td:nth-child(5) {
  text-align: center;
}
.activity-table-input {
  box-sizing: border-box;
}
.activity-review-note,
.activity-ready-note {
  display: block;
  line-height: 1.5;
}
.activity-question {
  border-radius: 12px;
}
.activity-question-options label {
  min-width: 118px;
  justify-content: center;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .activity-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .activity-inline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-field textarea[rows="6"],
  .activity-field textarea[rows="10"] {
    min-height: 168px;
  }
}

@media (max-width: 560px) {
  .activity-panel-head p {
    font-size: .84rem;
  }
  .activity-question-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-question-options label {
    min-width: 0;
  }
  .activity-field textarea,
  .activity-field textarea[rows="6"],
  .activity-field textarea[rows="10"] {
    min-height: 150px;
  }
}

/* V4.2.5 mobile containment: wide tables scroll inside their cards, never the page. */
.activity-main,
.activity-shell,
.activity-shell > *,
[data-activity-panel],
[data-activity-panel] > *,
.activity-card,
.activity-form-grid,
.activity-form-grid > *,
.activity-tabs,
.activity-tabs > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.activity-tabs {
  width: 100%;
}
.activity-tabs button {
  min-width: 0;
  white-space: normal;
}
.activity-table-wrap,
.report-attendance-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* V4.2.5 compact-field review: one-line data stays one-line; only narrative content is tall. */
.activity-field.is-compact textarea,
.activity-field textarea[data-compact="true"] {
  min-height: 45px !important;
  height: 45px;
  max-height: 96px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
  resize: vertical;
}
.activity-field.is-compact {
  align-self: start;
}
.activity-field.is-compact textarea:focus {
  min-height: 45px !important;
}

@media (max-width: 560px) {
  .activity-field.is-compact textarea,
  .activity-field textarea[data-compact="true"] {
    min-height: 46px !important;
    height: 46px;
    max-height: 112px;
  }
}

/* V4.2.5 support-tool refinements */
.activity-readonly-output {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 12px;
  background: #f4f7fa;
  color: var(--sc-navy-900);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
#publishRevisionBox {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-card-soft);
}
.report-score-compact {
  padding: 14px 16px;
}
.report-score-inputs {
  margin-bottom: 12px;
}
.report-score-inputs .activity-field {
  max-width: none !important;
}
.report-support-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.report-support-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}
.report-support-card > img {
  width: 132px;
  height: 164px;
  object-fit: contain;
  background: #f4f7fa;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
}
.report-support-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.report-support-card-body strong,
.report-support-card-body small {
  overflow-wrap: anywhere;
}
.report-support-card-body input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 9px;
}
.report-support-remove {
  justify-self: start;
  min-height: 40px;
  padding: 8px 14px;
}
.report-attendance-table {
  min-width: 1040px !important;
  table-layout: fixed;
}
.report-attendance-table th:nth-child(1) { width: 62px !important; }
.report-attendance-table th:nth-child(2) { width: 122px !important; }
.report-attendance-table th:nth-child(3) { width: 145px !important; }
.report-attendance-table th:nth-child(4),
.report-attendance-table th:nth-child(5) { width: 118px !important; }
.report-attendance-table th:nth-child(6) { width: 210px !important; }
.report-attendance-table th:nth-child(7) { width: 92px !important; }
.report-attendance-table input[type="time"],
.report-attendance-table input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 9px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.report-attendance-table input:disabled {
  background: #f2f5f7;
  color: #7b8794;
}
.report-attendance-table td:nth-child(7) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .report-support-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .report-support-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .report-support-card > img {
    width: 92px;
    height: 122px;
  }
  .report-score-inputs { grid-template-columns: minmax(0, 1fr) !important; }
}

/* V4.2.7 weekly/stage-report layout review */
.report-collaboration-meta {
  margin-bottom: 14px;
}
.report-score-inputs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.report-score-inputs > .activity-field {
  width: 100%;
  min-width: 0;
}
.report-attendance-table {
  min-width: 760px !important;
  table-layout: fixed;
}
.report-attendance-table th:nth-child(1) { width: 62px !important; }
.report-attendance-table th:nth-child(2) { width: 122px !important; }
.report-attendance-table th:nth-child(3) { width: 150px !important; }
.report-attendance-table th:nth-child(4),
.report-attendance-table th:nth-child(5) { width: 140px !important; }
.report-attendance-table th:nth-child(6) { width: 96px !important; }
.report-attendance-table th,
.report-attendance-table td {
  box-sizing: border-box;
  overflow: hidden;
}
.report-attendance-table input[type="text"] {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  margin: 0;
}
.report-attendance-table td:nth-child(6) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .report-score-inputs {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* V4.2.5 tablet alignment: collaboration metadata and scores retain equal columns. */
.report-attendance-table {
  min-width: 700px !important;
}
.report-attendance-table th:nth-child(1) { width: 58px !important; }
.report-attendance-table th:nth-child(2) { width: 114px !important; }
.report-attendance-table th:nth-child(3) { width: 130px !important; }
.report-attendance-table th:nth-child(4),
.report-attendance-table th:nth-child(5) { width: 130px !important; }
.report-attendance-table th:nth-child(6) { width: 88px !important; }

@media (min-width: 641px) {
  .report-collaboration-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .report-collaboration-meta > *,
  .report-score-inputs > * {
    grid-column: auto !important;
  }
  .report-score-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .report-collaboration-meta,
  .report-score-inputs {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .report-collaboration-meta > *,
  .report-score-inputs > * {
    grid-column: 1 !important;
  }
}

/* V4.2.5 PDF generation success view */
[data-activity-panel].is-generation-success > :not(.activity-generation-success) {
  display: none !important;
}
.activity-generation-success {
  min-height: min(660px, calc(100vh - 190px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(36px, 7vw, 88px) 24px;
  border: 1px solid #cfe6dd;
  border-radius: 24px;
  background: linear-gradient(180deg, #f5fffb 0%, #ffffff 72%);
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 48, 67, .08);
}
.activity-generation-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #178f82;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(23, 143, 130, .22);
}
.activity-generation-success-eyebrow {
  margin: 8px 0 0;
  color: #178f82;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
}
.activity-generation-success h2 {
  margin: 0;
  color: #102f4a;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.2;
}
.activity-generation-success-message {
  max-width: 720px;
  margin: 0;
  color: #5c6a7d;
  line-height: 1.65;
}
.activity-generation-success-file {
  display: block;
  max-width: min(100%, 760px);
  padding: 11px 16px;
  border: 1px solid #d7e3eb;
  border-radius: 10px;
  background: #f6f9fb;
  color: #17324a;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.activity-generation-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.activity-required-legend {
  margin: -2px 0 14px;
  color: #7a5060;
  font-size: 13px;
}
.activity-required-mark {
  margin-left: 4px;
  color: var(--sc-red);
  font-style: normal;
}
@media (max-width: 640px) {
  .activity-generation-success {
    min-height: calc(100vh - 160px);
    border-radius: 18px;
    padding: 34px 16px;
  }
  .activity-generation-success-actions {
    width: 100%;
    flex-direction: column;
  }
  .activity-generation-success-actions button {
    width: 100%;
  }
}


/* V4.2.5 block-level formal requirements and concise footer */
.report-block-requirement {
  margin: -8px 0 12px;
  color: var(--sc-muted);
  font-size: .8rem;
  line-height: 1.55;
}
.activity-version-footer {
  padding: 8px 4px 0;
  color: #8b98a7;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .report-block-requirement { margin-top: -6px; }
  .activity-version-footer { padding-bottom: 2px; }
}

/* V4.2.5 dense validation and imported-activity details */
.activity-status { white-space: pre-line; }
.activity-field.has-validation-error > input,
.activity-field.has-validation-error > select,
.activity-field.has-validation-error > textarea,
.activity-field [aria-invalid="true"] {
  border-color: #c93f56 !important;
  box-shadow: 0 0 0 3px rgba(201,63,86,.12) !important;
}
.activity-facts.has-validation-error {
  border-color: #c93f56;
  background: #fff2f4;
}
.activity-release-import-state.is-loaded,
.activity-import-summary:has(.activity-release-detail-grid) {
  display: grid;
  gap: .55rem;
  padding: .85rem 1rem;
}
.activity-import-summary-heading { color: #0f3b58; font-size: 1rem; }
.activity-import-summary-meta { color: #667588; overflow-wrap: anywhere; }
.activity-release-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d5dee8;
  border-radius: .55rem;
  background: #d5dee8;
}
.activity-release-detail-grid > div { min-width: 0; padding: .5rem .6rem; background: #fff; }
.activity-release-detail-grid dt { color: #5e6d80; font-size: .74rem; font-weight: 700; }
.activity-release-detail-grid dd { margin: .18rem 0 0; color: #12243a; font-size: .87rem; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 900px) { .activity-release-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .activity-release-detail-grid { grid-template-columns: 1fr; } }

/* V4.2.5 activity release validation and dense import review */
.activity-field.is-invalid > input,
.activity-field.is-invalid > select,
.activity-field.is-invalid > textarea,
.activity-field.is-invalid input,
.activity-field.is-invalid select,
.activity-field.is-invalid textarea {
  border-color: #c93f56 !important;
  box-shadow: 0 0 0 3px rgba(201,63,86,.12) !important;
}
.activity-facts.is-invalid {
  border-color: #c93f56 !important;
  background: #fff2f4 !important;
}
.activity-status { white-space: pre-line; overflow-wrap: anywhere; }
.activity-import-summary.activity-release-import-state,
.activity-empty-state.activity-release-import-state.is-loaded {
  text-align: left;
  color: inherit;
  background: #f8fbfd;
  border: 1px solid #cbd8e3;
  align-items: stretch;
  justify-items: stretch;
}
.activity-empty-state.activity-release-import-state.is-loaded strong,
.activity-empty-state.activity-release-import-state.is-loaded p {
  width: 100%;
}
#pubDescriptionCount.is-warning { color: #b13c52; font-weight: 800; }

/* V4.2.5 final responsive refinements */
.activity-character-count {
  display: block;
  min-height: 1.2em;
  margin-top: -2px;
  color: var(--sc-muted);
  font-size: .72rem;
  text-align: right;
}
.activity-character-count.is-wide { grid-column: 1 / -1; }
.activity-import-summary .activity-release-detail-grid,
.activity-empty-state .activity-release-detail-grid { width: 100%; }
.activity-import-summary-heading,
.activity-import-summary-meta { margin: 0; }
.activity-release-detail-grid > div:nth-child(12n + 1),
.activity-release-detail-grid > div:nth-child(12n + 2),
.activity-release-detail-grid > div:nth-child(12n + 3) { background: #fbfdfe; }
.activity-photo-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.activity-photo-card img { aspect-ratio: 210 / 297; object-fit: contain; }
.activity-photo-card input { min-width: 0; }
.activity-status.is-error,
.activity-status.is-warning { border: 1px solid currentColor; }
.activity-form-grid > .activity-character-count { align-self: start; }

@media (max-width: 1100px) {
  .activity-photo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .activity-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .activity-character-count.is-wide { grid-column: auto; }
  .activity-photo-list { grid-template-columns: 1fr; }
  .activity-release-detail-grid > div { padding: .46rem .54rem; }
}

/* Legacy V5.3.1 protected module-library baseline and Knowledge v1.3 reader */
.portal-v5 .module-card.activity-support { grid-column: auto; background: rgba(255,255,255,.88); border-color: rgba(198,210,223,.78); }
.portal-v5 .module-card.activity-support::before { --card-glow: rgba(255,154,60,.28); }
.portal-v5 .portal-section-head > p { max-width: 660px; margin: 0; color: var(--sc-muted); }

.methodology-page,
.knowledge-page { min-height: 100vh; background: radial-gradient(circle at 8% 0%, rgba(85,183,255,.13), transparent 28rem), radial-gradient(circle at 96% 10%, rgba(255,154,60,.12), transparent 24rem), var(--sc-canvas); }
.methodology-app,
.knowledge-app { min-height: 100vh; }
.module-toolbar { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(220,228,237,.86); background: rgba(248,251,253,.9); backdrop-filter: blur(18px); }
.module-toolbar .sc-topbar { width: min(1480px, calc(100% - 30px)); margin: 0 auto; }
.module-toolbar-title { flex: 1 1 auto; min-width: 0; padding: 0 18px; overflow: hidden; color: var(--sc-navy-700); text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 850; text-align: center; }
.module-toolbar .sc-actions { flex: 0 0 auto; }
.module-library { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0 72px; }
.module-library-hero { position: relative; padding: clamp(28px, 4.5vw, 50px); border-radius: 30px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(255,154,60,.3), transparent 34%), radial-gradient(circle at 0% 100%, rgba(32,191,169,.22), transparent 34%), linear-gradient(145deg, var(--sc-navy-950), #123f61 62%, #176b70); box-shadow: var(--sc-shadow-md); overflow: hidden; }
.module-library-hero::after { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(135deg, #000, transparent 72%); }
.module-library-hero > * { position: relative; z-index: 1; }
.module-library-hero .portal-eyebrow { color: #ffc276; }
.module-library-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 4.7vw, 4rem); line-height: 1.04; letter-spacing: -.043em; }
.module-library-hero > p { max-width: 840px; margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: clamp(.96rem, 1.4vw, 1.1rem); line-height: 1.66; }
.module-library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 780px; margin-top: 24px; }
.module-library-stats > div { padding: 15px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.09); backdrop-filter: blur(9px); }
.module-library-stats b { display: block; color: #fff; font-size: clamp(1.45rem, 3vw, 2.45rem); line-height: 1; letter-spacing: -.04em; }
.module-library-stats span { display: block; margin-top: 7px; color: rgba(255,255,255,.64); font-size: .76rem; font-weight: 800; }
.module-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 46px 0 18px; }
.module-section-head h2 { margin: 0; color: var(--sc-navy-900); font-size: clamp(1.65rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -.035em; }
.package-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.package-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 365px; padding: clamp(22px, 3vw, 30px); border: 1px solid rgba(198,210,223,.78); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: var(--sc-shadow-sm); overflow: hidden; }
.package-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -100px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(85,183,255,.22), transparent 69%); pointer-events: none; }
.package-card[data-accent="orange"]::before,
.knowledge-package-card::before { background: radial-gradient(circle, rgba(255,154,60,.27), transparent 69%); }
.package-card[data-accent="teal"]::before { background: radial-gradient(circle, rgba(32,191,169,.25), transparent 69%); }
.package-card > * { position: relative; z-index: 1; }
.package-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package-version { flex: 0 0 auto; color: var(--sc-muted); font-size: .78rem; font-weight: 900; }
.package-card h3 { margin: 21px 0 10px; color: var(--sc-navy-900); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.18; letter-spacing: -.025em; }
.package-card > p { margin: 0; color: var(--sc-muted); }
.package-card .package-subtitle { margin: -3px 0 10px; color: var(--sc-navy-700); font-weight: 800; }
.package-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.package-tags span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid #dbe6ee; border-radius: 999px; color: #526880; background: #f4f8fb; font-size: .73rem; font-weight: 760; }
.package-card-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 20px; color: var(--sc-muted); font-size: .8rem; font-weight: 780; }
.package-card-metrics span { display: inline-flex; align-items: baseline; gap: 3px; }
.package-card-metrics b { color: var(--sc-navy-800); font-size: 1.25rem; }
.package-open-button { align-self: flex-start; min-width: 150px; margin-top: 16px; }

/* Methodology deck library/viewer */
.methodology-viewer[hidden],
.methodology-page .module-library[hidden] { display: none !important; }
.methodology-viewer { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 62px; height: calc(100dvh - 69px); min-height: 0; color: #eaf2f8; background: radial-gradient(circle at 12% 4%, #173d5c 0, var(--sc-navy-950) 46%, #030b13 100%); overflow: hidden; }
.methodology-viewer:fullscreen { height: 100dvh; }
.methodology-viewer .deck-workspace { min-height: 0; }
.methodology-viewer .deck-stage { height: min(calc(100dvh - 165px), calc((100vw - 48px) * .5625)); }
.methodology-viewer:fullscreen .deck-stage { height: min(calc(100dvh - 94px), calc((100vw - 48px) * .5625)); }
.deck-loading { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 30px; color: #fff; background: rgba(3,11,19,.76); backdrop-filter: blur(10px); font-weight: 850; text-align: center; }
.deck-loading[hidden] { display: none !important; }
.methodology-viewer .deck-bottom { min-height: 62px; }
.deck-slide.is-dense { padding-top: 28px; padding-bottom: 42px; }
.deck-slide.is-dense .slide-title { font-size: clamp(1.75rem, 3.4vw, 3.45rem); }
.deck-slide.is-dense .slide-content { gap: 13px; margin-top: 18px; }
.deck-slide.is-dense .slide-card { padding: 16px 20px; }
.deck-slide.is-dense .slide-list { gap: 5px; }
.deck-slide.is-dense .slide-list li { padding-top: 7px; padding-bottom: 7px; }
.deck-slide.is-xdense { padding: 22px 38px 38px; }
.deck-slide.is-xdense .slide-title { font-size: clamp(1.55rem, 2.9vw, 2.8rem); }
.deck-slide.is-xdense .slide-lead { margin-top: 9px; font-size: .93rem; }
.deck-slide.is-xdense .slide-content { gap: 9px; margin-top: 12px; }
.deck-slide.is-xdense .slide-card { padding: 12px 16px; border-radius: 15px; }
.deck-slide.is-xdense .slide-card-icon { width: 32px; height: 32px; margin-bottom: 8px; }
.deck-slide.is-xdense .slide-card h3 { font-size: .98rem; }
.deck-slide.is-xdense .slide-card p,
.deck-slide.is-xdense .slide-list li { font-size: .78rem; }

/* Protected knowledge bookshelf/reader */
.knowledge-reader[hidden],
.knowledge-page .module-library[hidden] { display: none !important; }
.knowledge-reader { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(180px, 230px); height: calc(100dvh - 69px); min-height: 0; background: #f5f8fb; overflow: hidden; }
.knowledge-book-sidebar,
.knowledge-page-toc { min-width: 0; height: 100%; overflow: auto; scrollbar-width: thin; }
.knowledge-book-sidebar { padding: 22px 16px 42px; border-right: 1px solid var(--sc-line); background: #fff; }
.knowledge-sidebar-head { display: grid; gap: 5px; padding: 4px 7px 18px; border-bottom: 1px solid var(--sc-line); }
.knowledge-sidebar-head strong { color: var(--sc-navy-900); font-size: 1rem; line-height: 1.35; }
.knowledge-sidebar-head span { color: var(--sc-muted); font-size: .73rem; font-weight: 800; }
.knowledge-toc-part { margin-top: 22px; }
.knowledge-toc-part h2 { margin: 0 7px 8px; color: #8794a4; font-size: .68rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.knowledge-toc-part ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.knowledge-toc-part button { width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; color: #53677e; background: transparent; cursor: pointer; font-size: .79rem; font-weight: 720; line-height: 1.4; text-align: left; }
.knowledge-toc-part button:hover { color: var(--sc-navy-800); background: #f0f5f9; }
.knowledge-toc-part button[aria-current="page"] { color: #0f625a; background: var(--sc-teal-soft); box-shadow: inset 3px 0 0 var(--sc-teal); }
.knowledge-reading-column { min-width: 0; height: 100%; padding: 0 clamp(18px, 4vw, 58px) 70px; overflow: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.knowledge-loading { margin: 34px auto; padding: 15px 18px; border: 1px solid #cde1ec; border-radius: 15px; color: var(--sc-navy-700); background: #eef7fb; font-weight: 820; text-align: center; }
.knowledge-loading[hidden] { display: none !important; }
.knowledge-article { width: min(900px, 100%); min-height: calc(100% - 120px); margin: 0 auto; padding: clamp(34px, 6vw, 72px) 0 56px; color: #26374a; font-family: ui-serif, Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(.98rem, 1.12vw, 1.08rem); line-height: 1.82; overflow-wrap: anywhere; }
.knowledge-article > :first-child { margin-top: 0; }
.knowledge-article h1,
.knowledge-article h2,
.knowledge-article h3,
.knowledge-article h4 { scroll-margin-top: 90px; color: var(--sc-navy-900); font-family: var(--sc-font); line-height: 1.25; letter-spacing: -.025em; }
.knowledge-article h1 { margin: 0 0 24px; font-size: clamp(2.15rem, 5vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; }
.knowledge-article h2 { margin: 2.6em 0 .75em; padding-top: .2em; border-top: 1px solid #e4ebf1; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.knowledge-article h3 { margin: 2em 0 .65em; font-size: clamp(1.22rem, 2vw, 1.6rem); }
.knowledge-article h4 { margin: 1.65em 0 .55em; font-size: 1.08rem; }
.knowledge-article p { margin: 1em 0; }
.knowledge-article a { color: #156d92; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.knowledge-article a:hover { color: #0d4f6c; }
.knowledge-article strong { color: #152b3e; }
.knowledge-article ul,
.knowledge-article ol { padding-left: 1.5em; }
.knowledge-article li + li { margin-top: .35em; }
.knowledge-article blockquote { margin: 1.7em 0; padding: 1.1em 1.35em; border-left: 4px solid var(--sc-teal); border-radius: 0 16px 16px 0; color: #3f586d; background: #eef9f7; }
.knowledge-article blockquote > :first-child { margin-top: 0; }
.knowledge-article blockquote > :last-child { margin-bottom: 0; }
.knowledge-article hr { margin: 3em 0; border: 0; border-top: 1px solid var(--sc-line); }
.knowledge-article img { display: block; max-height: 75vh; margin: 1.5em auto; border-radius: 14px; box-shadow: var(--sc-shadow-sm); object-fit: contain; }
.knowledge-article figure { margin: 1.8em 0; }
.knowledge-article figcaption { margin-top: .7em; color: var(--sc-muted); font-family: var(--sc-font); font-size: .82rem; text-align: center; }
.knowledge-article table { width: 100%; border-collapse: collapse; font-family: var(--sc-font); font-size: .86rem; line-height: 1.55; }
.knowledge-article .table,
.knowledge-article .cell-output-display:has(table) { max-width: 100%; margin: 1.7em 0; overflow-x: auto; border: 1px solid var(--sc-line); border-radius: 15px; background: #fff; }
.knowledge-article th,
.knowledge-article td { padding: 10px 12px; border-right: 1px solid #e3e9ef; border-bottom: 1px solid #e3e9ef; text-align: left; vertical-align: top; }
.knowledge-article th { color: var(--sc-navy-700); background: #edf4f9; font-weight: 900; }
.knowledge-article tr:last-child td { border-bottom: 0; }
.knowledge-article th:last-child,
.knowledge-article td:last-child { border-right: 0; }
.knowledge-code-wrap { position: relative; margin: 1.6em 0; }
.knowledge-article pre { max-width: 100%; margin: 0; padding: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; color: #d9eefc; background: #0a1d31; box-shadow: var(--sc-shadow-sm); overflow: auto; white-space: pre; font: 650 .82rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.knowledge-article pre code { color: inherit; background: transparent; }
.knowledge-article :not(pre) > code { padding: .15em .4em; border: 1px solid #dbe5ed; border-radius: 6px; color: #9b3c55; background: #f4f7fa; font: 650 .86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.knowledge-code-copy { position: absolute; right: 9px; top: 9px; z-index: 2; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #eaf2f8; background: rgba(255,255,255,.1); cursor: pointer; font: 750 .72rem/1 var(--sc-font); }
.knowledge-code-copy:hover { background: rgba(255,255,255,.17); }
.knowledge-article details { margin: 1.4em 0; padding: 14px 16px; border: 1px solid var(--sc-line); border-radius: 14px; background: #fff; }
.knowledge-article summary { color: var(--sc-navy-700); cursor: pointer; font-family: var(--sc-font); font-weight: 850; }
.knowledge-article .quarto-title-block { margin-bottom: 2.6em; padding-bottom: 1.8em; border-bottom: 1px solid var(--sc-line); }
.knowledge-article .quarto-title-block .title { margin-bottom: .25em; }
.knowledge-article .subtitle { margin: 0; color: #526880; font-family: var(--sc-font); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; }
.knowledge-article .quarto-title-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; color: var(--sc-muted); font-family: var(--sc-font); font-size: .8rem; }
.knowledge-article .quarto-title-meta-heading { color: #8794a4; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.knowledge-article .quarto-page-breadcrumbs,
.knowledge-article .quarto-title-breadcrumbs { display: none; }
.knowledge-article .hero-panel { padding: clamp(20px, 4vw, 38px); border: 1px solid #cfe0ea; border-radius: 22px; background: radial-gradient(circle at 100% 0%, rgba(255,154,60,.18), transparent 34%), linear-gradient(145deg, #f8fbfd, #edf6f7); }
.knowledge-article .lead { color: #4c6177; font-family: var(--sc-font); font-size: 1.12rem; }
.knowledge-article .btn { display: inline-flex; align-items: center; min-height: 42px; margin: 5px 7px 5px 0; padding: 9px 14px; border: 1px solid var(--sc-line-strong); border-radius: 11px; color: var(--sc-navy-800); background: #fff; font-family: var(--sc-font); font-weight: 850; text-decoration: none; }
.knowledge-article .btn-primary { color: #fff; background: var(--sc-navy-800); border-color: var(--sc-navy-800); }
.knowledge-article .task-list { list-style: none; padding-left: 0; }
.knowledge-article .task-list input { margin-right: 8px; }
.knowledge-article .math { font-family: var(--sc-font); }
.knowledge-article .math.display { display: block; max-width: 100%; margin: 1.5em 0; padding: 12px 4px; overflow-x: auto; overflow-y: hidden; text-align: center; }
.knowledge-article .katex-display { margin: 0; }
.knowledge-article .mermaid,
.knowledge-article .mermaid-js { display: grid; place-items: center; max-width: 100%; margin: 1.8em 0; padding: 20px; border: 1px solid var(--sc-line); border-radius: 18px; color: var(--sc-ink); background: #fff; box-shadow: var(--sc-shadow-sm); overflow: auto; white-space: pre-wrap; }
.knowledge-article .mermaid svg,
.knowledge-article .mermaid-js svg { width: auto; max-width: 100%; height: auto; }
.knowledge-article .mermaid-error { color: var(--sc-red); border-color: #efb7c1; background: var(--sc-red-soft); }
.knowledge-page-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: min(900px, 100%); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--sc-line); }
.knowledge-page-navigation button { min-width: 0; min-height: 54px; white-space: normal; line-height: 1.35; }
.knowledge-page-navigation button:first-child { justify-content: flex-start; text-align: left; }
.knowledge-page-navigation button:last-child { justify-content: flex-end; text-align: right; }
.knowledge-page-toc { padding: 32px 18px 40px; border-left: 1px solid var(--sc-line); background: rgba(255,255,255,.72); }
.knowledge-page-toc > strong { display: block; margin-bottom: 12px; color: #8794a4; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.knowledge-page-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.knowledge-page-toc button { width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; color: #607389; background: transparent; cursor: pointer; font-size: .75rem; line-height: 1.4; text-align: left; }
.knowledge-page-toc button:hover { color: var(--sc-navy-800); background: #eef4f8; }
.knowledge-page-toc .level3 { padding-left: 12px; }
.knowledge-reader.reader-mode { grid-template-columns: minmax(0, 1fr); }
.knowledge-reader.reader-mode .knowledge-book-sidebar,
.knowledge-reader.reader-mode .knowledge-page-toc { display: none; }
.knowledge-reader.reader-mode .knowledge-reading-column { padding-inline: clamp(22px, 10vw, 180px); }

.knowledge-search-dialog { width: min(780px, calc(100% - 28px)); max-height: min(82dvh, 760px); padding: 0; border: 0; border-radius: 24px; color: var(--sc-ink); background: #fff; box-shadow: 0 30px 110px rgba(0,0,0,.4); overflow: hidden; }
.knowledge-search-dialog::backdrop { background: rgba(3,11,19,.62); backdrop-filter: blur(7px); }
.knowledge-search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid var(--sc-line); }
.knowledge-search-head .portal-eyebrow { margin-bottom: 7px; }
.knowledge-search-head h2 { margin: 0; color: var(--sc-navy-900); font-size: 1.45rem; }
.knowledge-search-input { display: block; padding: 17px 20px 10px; }
.knowledge-search-input input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--sc-line-strong); border-radius: 13px; color: var(--sc-ink); background: #fff; }
.knowledge-search-results { display: grid; gap: 8px; max-height: 55dvh; padding: 10px 20px 22px; overflow: auto; }
.knowledge-search-result { display: grid; gap: 5px; width: 100%; padding: 13px 14px; border: 1px solid var(--sc-line); border-radius: 13px; color: var(--sc-ink); background: #fff; cursor: pointer; text-align: left; }
.knowledge-search-result:hover { border-color: #aac1d1; background: #f5f9fb; }
.knowledge-search-result strong { color: var(--sc-navy-800); }
.knowledge-search-result span { color: var(--sc-muted); font-size: .8rem; line-height: 1.5; }
.knowledge-search-empty { margin: 8px 0; padding: 25px; border: 1px dashed var(--sc-line-strong); border-radius: 14px; color: var(--sc-muted); background: #f8fafc; text-align: center; }

@media (max-width: 1220px) {
  .knowledge-reader { grid-template-columns: 250px minmax(0, 1fr); }
  .knowledge-page-toc { display: none; }
}

@media (max-width: 900px) {
  .module-toolbar-title { display: none; }
  .module-toolbar .sc-topbar { width: calc(100% - 20px); }
  .module-toolbar .sc-brand-copy span { display: none; }
  .module-toolbar .sc-actions { gap: 6px; }
  .module-toolbar .sc-ghost-button { padding-inline: 10px; font-size: .78rem; }
  .module-library { width: min(100% - 26px, 1180px); padding-top: 28px; }
  .package-card-grid { grid-template-columns: 1fr; }
  .package-card { min-height: 0; }
  .knowledge-reader { position: relative; grid-template-columns: minmax(0, 1fr); }
  .knowledge-book-sidebar { position: absolute; left: 0; top: 0; bottom: 0; z-index: 50; width: min(330px, 86vw); transform: translateX(-105%); box-shadow: 20px 0 55px rgba(6,24,42,.2); transition: transform .22s ease; }
  .knowledge-reader.sidebar-open .knowledge-book-sidebar { transform: translateX(0); }
  .knowledge-reading-column { padding-inline: clamp(15px, 5vw, 42px); }
  .knowledge-reader.reader-mode .knowledge-reading-column { padding-inline: clamp(15px, 5vw, 42px); }
}

@media (max-width: 720px), (orientation: portrait) and (max-width: 1000px) {
  .portal-v5 .portal-section-head > p { font-size: .92rem; }
  .module-library-hero { padding: 26px 21px; border-radius: 23px; }
  .module-library-hero h1 { font-size: clamp(2rem, 10vw, 3.15rem); }
  .module-library-stats { grid-template-columns: 1fr; gap: 8px; margin-top: 23px; }
  .module-library-stats > div { padding: 12px 14px; }
  .module-library-stats b { display: inline; margin-right: 8px; font-size: 1.4rem; }
  .module-library-stats span { display: inline; }
  .module-section-head { margin-top: 38px; }
  .package-card { padding: 21px; border-radius: 21px; }
  .package-card h3 { margin-top: 20px; }
  .methodology-viewer { grid-template-rows: minmax(0, 1fr) 58px; height: calc(100dvh - 69px); }
  .methodology-viewer .deck-stage,
  .methodology-viewer:fullscreen .deck-stage { width: 100%; height: 100%; min-height: 0; border-radius: 0; aspect-ratio: auto; }
  .methodology-viewer .deck-workspace { padding: 0; }
  .methodology-viewer .deck-bottom { min-height: 58px; }
  .knowledge-reader { height: calc(100dvh - 69px); }
  .knowledge-reading-column { padding: 0 16px 46px; }
  .knowledge-article { padding: 32px 0 42px; font-size: .98rem; }
  .knowledge-article h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .knowledge-article h2 { font-size: 1.55rem; }
  .knowledge-article pre { padding: 18px 14px; font-size: .74rem; }
  .knowledge-page-navigation { grid-template-columns: 1fr; }
  .knowledge-page-navigation button { width: 100%; justify-content: center !important; text-align: center !important; }
  .knowledge-search-head { padding: 18px; }
  .knowledge-search-input { padding-inline: 14px; }
  .knowledge-search-results { padding-inline: 14px; }
}

@media (max-width: 520px) {
  .module-toolbar .sc-actions > .sc-ghost-button:not([hidden]) { width: 42px; min-width: 42px; padding: 0; overflow: hidden; white-space: nowrap; color: transparent; }
  .module-toolbar .sc-actions > .sc-ghost-button:not([hidden]) span[aria-hidden="true"] { color: var(--sc-navy-800); }
  .module-toolbar .module-next-button { display: none; }
  .module-toolbar .sc-lang-switch button { min-width: 38px; padding-inline: 7px; }
  .package-card-top { align-items: flex-start; }
  .package-card .sc-chip { white-space: normal; }
}

/* Author styles use flex/grid on many controls; keep the HTML hidden contract authoritative. */
[hidden] { display: none !important; }
.knowledge-card-grid:has(> :only-child) { grid-template-columns: minmax(0, 760px); }

/* Legacy V5.3.1 knowledge-learning and dual-scope-search baseline */
.knowledge-library-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; width:min(760px,100%); margin-top:22px; }
.knowledge-library-search input { min-width:0; min-height:52px; padding:12px 16px; border:1px solid rgba(255,255,255,.3); border-radius:14px; color:#102a43; background:rgba(255,255,255,.96); box-shadow:0 10px 30px rgba(0,0,0,.12); font:700 .95rem/1.3 var(--sc-font); }
.knowledge-library-search input::placeholder { color:#6f8091; }
.knowledge-library-search .sc-primary-button { min-height:52px; background:#ff9a3c; border-color:#ff9a3c; color:#102a43; }
.knowledge-card-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.knowledge-card-actions .package-open-button { margin-top:0; }
.knowledge-card-actions .sc-secondary-button { min-height:44px; }

.knowledge-sidebar-actions { display:grid; gap:9px; padding:14px 6px 4px; border-bottom:1px solid var(--sc-line); }
.knowledge-sidebar-actions > button { width:100%; min-height:44px; }
.knowledge-sidebar-progress { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; align-items:center; padding:10px 11px; border:1px solid #d5e2eb; border-radius:12px; color:#415a70; background:#f6fafc; cursor:pointer; text-align:left; font:760 .75rem/1.3 var(--sc-font); }
.knowledge-sidebar-progress strong { color:var(--sc-navy-800); font-size:.9rem; font-variant-numeric:tabular-nums; }
.knowledge-sidebar-progress i { grid-column:1/-1; display:block; height:6px; border-radius:999px; background:#dce8ef; overflow:hidden; }
.knowledge-sidebar-progress i b { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--sc-teal),#55b7ff); transition:width .22s ease; }
.knowledge-continue-button { justify-content:space-between; }
.knowledge-toc-part button { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; min-height:44px; }
.knowledge-toc-part button > span { min-width:0; }
.knowledge-toc-progress { flex:0 0 auto; min-width:2.6rem; padding:2px 6px; border-radius:999px; color:#61768a; background:#edf3f7; font-size:.66rem; font-variant-numeric:tabular-nums; text-align:center; }
.knowledge-toc-progress.is-complete { color:#08785f; background:#dff6ef; }

.knowledge-unit-toolbar { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:auto minmax(210px,1fr) auto auto; gap:9px; align-items:center; width:min(900px,100%); margin:0 auto; padding:12px 0; border-bottom:1px solid rgba(198,210,223,.9); background:linear-gradient(#f5f8fb 78%,rgba(245,248,251,.88)); backdrop-filter:blur(14px); }
.knowledge-unit-toolbar button { min-height:44px; }
.knowledge-unit-select select { width:100%; min-height:44px; padding:8px 36px 8px 12px; border:1px solid var(--sc-line-strong); border-radius:11px; color:var(--sc-navy-800); background:#fff; font:760 .82rem/1.35 var(--sc-font); }
.knowledge-unit-position { color:var(--sc-muted); font:800 .73rem/1.2 var(--sc-font); white-space:nowrap; }
.knowledge-article .scifn-learning-unit { scroll-margin-top:78px; }
.knowledge-article .scifn-learning-unit[hidden] { display:none !important; }
.knowledge-article .scifn-learning-meta { display:flex; flex-wrap:wrap; gap:7px; margin:-.3rem 0 1.35rem; font-family:var(--sc-font); }
.knowledge-article .scifn-learning-meta span { padding:4px 9px; border:1px solid #d8e4ec; border-radius:999px; color:#526b80; background:#f5f9fb; font-size:.76rem; font-weight:760; }
.knowledge-article .scifn-chapter-kicker { display:block; margin-bottom:.55rem; color:#c8641b; font-family:var(--sc-font); font-size:clamp(.82rem,1.2vw,1rem); font-weight:900; letter-spacing:.1em; text-transform:none; }
.knowledge-article .chapter-title { display:block; }

.knowledge-assessment { margin:2.2rem 0 .5rem; padding:18px; border:1px solid #badbd4; border-radius:18px; background:linear-gradient(145deg,#f4fbf9,#fff); font-family:var(--sc-font); }
.knowledge-assessment-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.knowledge-assessment-head h3 { margin:0 0 4px; color:var(--sc-navy-900); font-size:1.08rem; }
.knowledge-section-score { margin:0 !important; color:#62788c; font-size:.8rem; font-weight:720; }
.knowledge-reset-section { min-height:40px; padding:7px 10px; font-size:.75rem; }
.knowledge-article details.knowledge-question { margin:10px 0; padding:0; border:1px solid #d7e3eb; border-radius:14px; background:#fff; overflow:hidden; }
.knowledge-question > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; padding:11px 14px; list-style:none; }
.knowledge-question > summary::-webkit-details-marker { display:none; }
.knowledge-question > summary::before { content:"＋"; display:grid; place-items:center; flex:0 0 25px; width:25px; height:25px; border-radius:50%; color:#08785f; background:#e4f6f1; }
.knowledge-question[open] > summary::before { content:"−"; }
.knowledge-question.is-submitted > summary::before { content:"✓"; }
.knowledge-question-status { margin-left:auto; color:#687d90; font-size:.75rem; font-weight:700; text-align:right; }
.knowledge-question-body { padding:0 15px 16px; }
.knowledge-question-prompt { color:#20384d; font-weight:760; line-height:1.72; }
.knowledge-question fieldset { margin:0; padding:0; border:0; }
.knowledge-option { display:flex; align-items:flex-start; gap:10px; min-height:48px; margin:7px 0; padding:10px 12px; border:1px solid #d8e3eb; border-radius:11px; color:#344d63; background:#fff; cursor:pointer; font-size:.92rem; line-height:1.55; }
.knowledge-option:hover { border-color:#9fc8be; background:#f2faf8; }
.knowledge-option:has(input:checked) { border-color:#20bfa9; background:#eaf9f5; box-shadow:inset 0 0 0 1px #20bfa9; }
.knowledge-option input { flex:0 0 auto; width:18px; height:18px; margin-top:.2rem; accent-color:#159b87; }
.knowledge-question form > .sc-primary-button { min-height:44px; margin-top:10px; }
.knowledge-question-notice { margin:7px 0 0 !important; color:#a72f46; font-size:.82rem; font-weight:760; }
.knowledge-answer-feedback { margin-top:14px; padding:14px 15px; border-radius:12px; line-height:1.72; }
.knowledge-answer-feedback.is-correct { border:1px solid #70c7a5; background:#edf9f4; }
.knowledge-answer-feedback.is-incorrect { border:1px solid #e7b56e; background:#fff8ec; }
.knowledge-answer-feedback h4 { margin:.55rem 0 .3rem; font-size:.98rem; }
.knowledge-answer-feedback p { margin:.3rem 0 0; }
.knowledge-answer-score { color:var(--sc-navy-800); font-weight:850; }

.knowledge-table-scroll { max-width:100%; margin:1.8em 0; border:1px solid #cfdce6; border-radius:16px; background:#fff; box-shadow:0 8px 28px rgba(24,52,78,.08); overflow:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; }
.knowledge-article table.knowledge-table { width:100%; min-width:720px; margin:0; border-collapse:separate; border-spacing:0; font-size:clamp(.91rem,1vw,.98rem); line-height:1.62; }
.knowledge-article table.knowledge-table caption { padding:13px 15px; border-bottom:1px solid #d8e3eb; color:var(--sc-navy-800); background:#f5f9fb; font-size:.94rem; font-weight:880; text-align:left; caption-side:top; }
.knowledge-article table.knowledge-table th,
.knowledge-article table.knowledge-table td { min-width:8.5rem; padding:12px 14px; }
.knowledge-article table.knowledge-table thead th { position:sticky; top:0; z-index:1; color:#173b59; background:#eaf2f7; box-shadow:inset 0 -1px 0 #cad9e4; }
.knowledge-article table.knowledge-table tbody tr:nth-child(even) td { background:#f8fbfd; }
.knowledge-article table.knowledge-table tbody tr:hover td { background:#f0f8f6; }

.knowledge-article figure.knowledge-figure { max-width:100%; margin:2.2em 0; }
.knowledge-article figure.knowledge-diagram { padding:16px; border:1px solid #ccdbe5; border-radius:18px; background:#fff; box-shadow:0 10px 34px rgba(24,52,78,.09); overflow:auto; overscroll-behavior-inline:contain; }
.knowledge-article .knowledge-diagram .mermaid,
.knowledge-article .knowledge-diagram .mermaid-js { display:block; width:max-content; min-width:100%; margin:0; padding:8px; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--sc-ink); white-space:pre; }
.knowledge-article .knowledge-diagram svg { display:block; width:auto !important; min-width:760px; max-width:none !important; height:auto !important; margin:0 auto; font-size:18px !important; }
.knowledge-article .knowledge-diagram svg text,
.knowledge-article .knowledge-diagram svg .label,
.knowledge-article .knowledge-diagram svg .nodeLabel { font-size:17px !important; line-height:1.35 !important; }
.knowledge-article figure.knowledge-diagram figcaption { position:sticky; left:0; width:max-content; max-width:min(100%,760px); margin:12px auto 0; padding-top:10px; border-top:1px solid #e0e8ee; color:#4f687d; font-size:.9rem; font-weight:760; text-align:center; }

.knowledge-search-input { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
.knowledge-search-input .sc-primary-button { min-height:50px; }
.knowledge-search-result small { color:#8a5b2e; font-size:.7rem; font-weight:820; letter-spacing:.02em; }
.knowledge-search-result strong { line-height:1.45; }

.knowledge-progress-dialog { width:min(900px,calc(100% - 28px)); max-height:min(88dvh,820px); padding:22px; border:0; border-radius:24px; color:var(--sc-ink); background:#fff; box-shadow:0 30px 110px rgba(0,0,0,.4); overflow:auto; }
.knowledge-progress-dialog::backdrop { background:rgba(3,11,19,.62); backdrop-filter:blur(7px); }
.knowledge-progress-dialog > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:17px; border-bottom:1px solid var(--sc-line); }
.knowledge-progress-dialog h2 { margin:4px 0 5px; color:var(--sc-navy-900); font-size:1.65rem; }
.knowledge-progress-dialog header p { margin:0; color:var(--sc-muted); font-size:.83rem; }
.knowledge-progress-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0 12px; }
.knowledge-progress-metrics > div { padding:16px; border:1px solid #d9e4ec; border-radius:15px; background:#f7fafc; }
.knowledge-progress-metrics span,
.knowledge-progress-metrics small { display:block; color:#667d91; font-size:.76rem; }
.knowledge-progress-metrics strong { display:block; margin:5px 0 3px; color:var(--sc-navy-800); font-size:1.8rem; font-variant-numeric:tabular-nums; }
.knowledge-dashboard-bar { height:9px; border-radius:999px; background:#dfe9ef; overflow:hidden; }
.knowledge-dashboard-bar span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--sc-teal),#55b7ff); transition:width .22s ease; }
.knowledge-chapter-progress-list { display:grid; gap:7px; margin:18px 0; }
.knowledge-chapter-progress-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,180px) auto; gap:12px; align-items:center; min-height:54px; padding:9px 11px; border:1px solid #dce6ed; border-radius:12px; color:inherit; background:#fff; cursor:pointer; text-align:left; }
.knowledge-chapter-progress-row:hover { background:#f5f9fb; }
.knowledge-chapter-progress-row span { min-width:0; }
.knowledge-chapter-progress-row small,
.knowledge-chapter-progress-row strong { display:block; }
.knowledge-chapter-progress-row small { color:#8392a1; font-size:.67rem; }
.knowledge-chapter-progress-row strong { overflow:hidden; color:var(--sc-navy-800); font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.knowledge-chapter-progress-row i { display:block; height:6px; border-radius:999px; background:#dfe9ef; overflow:hidden; }
.knowledge-chapter-progress-row i b { display:block; height:100%; background:#20bfa9; }
.knowledge-chapter-progress-row em { color:#64798d; font-size:.75rem; font-style:normal; font-variant-numeric:tabular-nums; }
.knowledge-dashboard-actions { display:flex; flex-wrap:wrap; gap:9px; }
.knowledge-dashboard-actions > * { min-height:44px; }
.knowledge-import-label { cursor:pointer; }
.knowledge-progress-status { min-height:1.4em; margin:12px 0 0; color:#426378; font-size:.82rem; font-weight:720; }

@media (max-width:900px) {
  .knowledge-unit-toolbar { grid-template-columns:auto minmax(0,1fr) auto; }
  .knowledge-unit-position { grid-column:1/-1; grid-row:1; text-align:center; }
  .knowledge-unit-toolbar #knowledgePrevUnit { grid-column:1; }
  .knowledge-unit-toolbar .knowledge-unit-select { grid-column:2; }
  .knowledge-unit-toolbar #knowledgeNextUnit { grid-column:3; }
}

@media (max-width:720px) {
  .knowledge-library-search { grid-template-columns:1fr; }
  .knowledge-library-search button { width:100%; }
  .knowledge-unit-toolbar { position:sticky; grid-template-columns:1fr 1fr; padding:9px 0; }
  .knowledge-unit-position { grid-column:1/-1; }
  .knowledge-unit-select { grid-column:1/-1 !important; grid-row:2; }
  .knowledge-unit-toolbar #knowledgePrevUnit { grid-column:1; grid-row:3; }
  .knowledge-unit-toolbar #knowledgeNextUnit { grid-column:2; grid-row:3; }
  .knowledge-assessment { padding:14px; }
  .knowledge-assessment-head { flex-direction:column; }
  .knowledge-question > summary { align-items:flex-start; }
  .knowledge-question-status { max-width:48%; }
  .knowledge-option { font-size:.88rem; }
  .knowledge-article table.knowledge-table { min-width:660px; font-size:.91rem; }
  .knowledge-article .knowledge-diagram svg { min-width:680px; }
  .knowledge-progress-metrics { grid-template-columns:1fr; }
  .knowledge-chapter-progress-row { grid-template-columns:minmax(0,1fr) auto; }
  .knowledge-chapter-progress-row i { grid-column:1/-1; grid-row:2; }
  .knowledge-search-input { grid-template-columns:1fr; }
  .knowledge-search-input button { width:100%; }
}

@media print {
  .knowledge-unit-toolbar,
  .knowledge-assessment,
  .knowledge-sidebar-actions { display:none !important; }
  .knowledge-article .scifn-learning-unit { display:block !important; }
  .knowledge-table-scroll,
  .knowledge-article figure.knowledge-diagram { overflow:visible; box-shadow:none; }
}

/* V5.3 — search bars for methodology and knowledge */
.module-library-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; width: min(760px,100%); margin-top: 22px; }
.module-library-search input { min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; color: #102a43; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.12); font: 700 .95rem/1.3 var(--sc-font); }
.module-library-search input::placeholder { color: #6f8091; }
.module-library-search .sc-primary-button { min-height: 52px; background: #ff9a3c; border-color: #ff9a3c; color: #102a43; }
.knowledge-reader-search { width: min(900px,100%); margin: 18px auto 0; padding: 10px; border: 1px solid #d7e2ea; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(24,52,78,.07); }
.knowledge-reader-search input { min-height: 46px; border-color: #c9d7e1; box-shadow: none; }
.knowledge-reader-search .sc-primary-button { min-height: 46px; }

.module-search-dialog { width: min(780px,calc(100% - 28px)); max-height: min(82dvh,760px); padding: 0; border: 0; border-radius: 24px; color: var(--sc-ink); background: #fff; box-shadow: 0 30px 110px rgba(0,0,0,.4); overflow: hidden; }
.module-search-dialog::backdrop { background: rgba(3,11,19,.62); backdrop-filter: blur(7px); }
.module-search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid var(--sc-line); }
.module-search-head .portal-eyebrow { margin-bottom: 7px; }
.module-search-head h2 { margin: 0; color: var(--sc-navy-900); font-size: 1.45rem; }
.module-search-input { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 17px 20px 10px; }
.module-search-input input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--sc-line-strong); border-radius: 13px; color: var(--sc-ink); background: #fff; }
.module-search-input .sc-primary-button { min-height: 50px; }
.module-search-results { display: grid; gap: 8px; max-height: 55dvh; padding: 10px 20px 22px; overflow: auto; }
.module-search-result { display: grid; gap: 5px; width: 100%; padding: 13px 14px; border: 1px solid var(--sc-line); border-radius: 13px; color: var(--sc-ink); background: #fff; cursor: pointer; text-align: left; }
.module-search-result:hover { border-color: #aac1d1; background: #f5f9fb; }
.module-search-result small { color: #0e7367; font-size: .7rem; font-weight: 820; letter-spacing: .02em; }
.module-search-result strong { color: var(--sc-navy-800); line-height: 1.45; }
.module-search-result span { color: var(--sc-muted); font-size: .8rem; line-height: 1.5; }
.module-search-empty { margin: 8px 0; padding: 25px; border: 1px dashed var(--sc-line-strong); border-radius: 14px; color: var(--sc-muted); background: #f8fafc; text-align: center; }

@media (max-width: 720px) {
  .module-library-search { grid-template-columns: 1fr; }
  .module-library-search button { width: 100%; }
  .knowledge-reader-search { margin-top: 10px; padding: 8px; }
  .module-search-head { padding: 18px; }
  .module-search-input { grid-template-columns: 1fr; padding-inline: 14px; }
  .module-search-input button { width: 100%; }
  .module-search-results { padding-inline: 14px; }
}

@media print {
  .knowledge-reader-search { display: none !important; }
}

/* V5.3.2 — normative content-first laboratory UI */
.portal-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(85, 183, 255, .08), transparent 24rem),
    radial-gradient(circle at 94% 8%, rgba(255, 154, 60, .06), transparent 22rem),
    #f6f8fa;
}
.portal-page::before { display: none; }
.portal-nav { background: rgba(250, 252, 253, .96); backdrop-filter: blur(10px); box-shadow: none; }
.portal-hero { padding: clamp(54px, 7vw, 76px) 0 34px; overflow: visible; }
.portal-hero-content { max-width: 900px; }
.portal-eyebrow { margin-bottom: 12px; font-size: .74rem; letter-spacing: .11em; }
.portal-eyebrow::before { width: 24px; height: 2px; background: var(--sc-orange-strong); }
.portal-hero h1 { max-width: 880px; font-size: clamp(2.2rem, 4.8vw, 4.25rem); line-height: 1.04; letter-spacing: -.045em; }
.portal-lead { max-width: 760px; margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.6; }
.portal-hero-actions { margin-top: 24px; }
.portal-hero-actions .sc-primary-button,
.portal-hero-actions .sc-ghost-button { min-height: 48px; padding: 11px 17px; }
.portal-access-note { margin-top: 12px; }

.portal-section { padding: 38px 0 48px; }
.portal-section-head { margin-bottom: 18px; }
.portal-section-head-compact { display: block; }
.portal-section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); letter-spacing: -.025em; }
.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module-card {
  min-height: 248px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(6, 24, 42, .055);
  overflow: visible;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.module-card::before { display: none; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(6, 24, 42, .09); }
.portal-v5 .module-card.activity-support { background: #fff; border-color: rgba(198,210,223,.78); }
.module-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sc-navy-800);
  box-shadow: none;
  font-size: .78rem;
  letter-spacing: .04em;
}
.module-card.safety .module-icon,
.module-card.sop .module-icon { background: #176b70; }
.module-card.engineering .module-icon { background: #15557f; }
.module-card.activity-support .module-icon { background: #9a4c0f; }
.module-card h3 { margin: 17px 0 8px; font-size: 1.34rem; }
.module-card p { max-width: 620px; line-height: 1.56; }
.module-cta { padding-top: 17px; }
.module-cta span:last-child { width: 32px; height: 32px; }

.portal-research-section { padding: 8px 0 58px; }
.portal-research-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(6, 24, 42, .05);
}
.portal-research-copy h2 { margin: 7px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.025em; }
.portal-research-copy p { max-width: 760px; margin: 12px 0 0; color: var(--sc-muted); line-height: 1.65; }
.portal-research-copy .sc-primary-button { margin-top: 18px; }
.portal-research-path {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-research-path li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--sc-line); }
.portal-research-path li:first-child { border-top: 1px solid var(--sc-line); }
.portal-research-path span { color: #768795; font-size: .7rem; font-weight: 850; letter-spacing: .06em; }
.portal-research-path strong { color: var(--sc-navy-800); font-size: .86rem; }
.portal-footer { padding: 28px 0 34px; }

/* Methodology and knowledge: shallow, light, search-first module libraries. */
.methodology-page,
.knowledge-page { background: #f4f7fa; }
.module-library { padding: 30px 0 62px; }
.module-library-hero {
  padding: clamp(25px, 3.7vw, 36px);
  border: 1px solid var(--sc-line);
  border-radius: 20px;
  color: var(--sc-ink);
  background: #fff;
  box-shadow: 0 6px 22px rgba(6, 24, 42, .06);
}
.module-library-hero::before,
.module-library-hero::after { display: none; }
.module-library-hero .portal-eyebrow { color: var(--sc-navy-700); }
.module-library-hero h1 { max-width: 760px; color: var(--sc-navy-900); font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; }
.module-library-hero > p { max-width: 800px; margin-top: 11px; color: var(--sc-muted); font-size: 1rem; line-height: 1.6; }
.module-library-search { margin-top: 18px; }
.module-library-search input { min-height: 50px; border-color: var(--sc-line-strong); background: #fff; box-shadow: none; }
.module-library-search .sc-primary-button { min-height: 50px; color: #fff; background: var(--sc-navy-800); border-color: var(--sc-navy-800); }
.module-library-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: none; margin-top: 15px; }
.module-library-stats > span { color: var(--sc-muted); font-size: .8rem; font-weight: 760; }
.module-library-stats > span + span::before { content: "·"; margin-right: 18px; color: var(--sc-line-strong); }
.module-library-stats b { display: inline; color: var(--sc-navy-800); font-size: inherit; letter-spacing: 0; }
.module-section-head { margin: 32px 0 14px; }
.module-section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); letter-spacing: -.025em; }
.package-card-grid { gap: 16px; }
.package-card {
  min-height: 272px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(6, 24, 42, .055);
  overflow: visible;
}
.package-card::before { display: none; }
.package-card-top { justify-content: flex-end; min-height: 30px; }
.package-version { color: #176b62; background: #eaf7f4; border-color: #cbe9e2; }
.package-card h3 { margin: 13px 0 8px; font-size: clamp(1.28rem, 2vw, 1.58rem); }
.package-card > p { line-height: 1.56; }
.package-card .package-subtitle { margin: -1px 0 8px; font-size: .93rem; line-height: 1.55; }
.package-tags { margin-top: 12px; }
.package-tags span { min-height: 26px; padding: 3px 8px; border-radius: 8px; font-size: .7rem; }
.package-card-metrics { margin-top: auto; padding-top: 16px; }
.package-card-metrics b { font-size: 1rem; }
.package-open-button,
.knowledge-card-actions { margin-top: 14px; }
.knowledge-book-metrics { gap: 7px 14px; }

.exam-rule-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.83);
  font-size: .8rem;
  font-weight: 760;
}
.exam-rule-bar > span { display: inline-flex; align-items: center; }
.exam-rule-bar > span + span::before { content: "·"; margin: 0 10px; color: rgba(255,255,255,.42); }
.exam-rule-bar b { color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 1099px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-research-panel { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 759px) {
  .portal-hero { padding: 44px 0 28px; }
  .portal-hero h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .portal-section { padding: 32px 0 42px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; padding: 20px; border-radius: 17px; }
  .portal-research-panel { padding: 22px 20px; border-radius: 17px; }
  .module-library { width: min(100% - 24px, 1180px); padding-top: 22px; }
  .module-library-hero { padding: 24px 20px; border-radius: 18px; }
  .module-library-hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .module-library-search { grid-template-columns: 1fr; }
  .module-library-search button { width: 100%; }
  .module-library-stats > span + span::before { margin-right: 10px; }
  .package-card { padding: 20px; border-radius: 17px; }
}

@media (max-width: 519px) {
  .portal-hero-actions { display: grid; grid-template-columns: 1fr; }
  .portal-hero-actions a { width: 100%; }
  .exam-rule-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .exam-rule-bar > span + span::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .module-card,
  .package-card { transition: none; }
}

/* =========================================================
   Support Tools V4.3.1 · base support-tool layout and responsive containers
   ========================================================= */
.activity-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.activity-management-sections {
  display: grid;
  gap: 28px;
}
.activity-management-block {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
  box-shadow: 0 8px 24px rgba(12,38,62,.055);
}
.activity-management-block .activity-card {
  margin: 0;
}
.activity-subtool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px 0;
}
.activity-subtool-head small {
  display: block;
  margin-bottom: 5px;
  color: var(--sc-teal);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activity-subtool-head h3 {
  margin: 0 0 6px;
  color: var(--sc-navy-900);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.activity-subtool-head p {
  max-width: 900px;
  margin: 0;
  color: var(--sc-muted);
  font-size: .88rem;
  line-height: 1.65;
}
.report-week-display {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 7px 0 9px;
  padding: 9px 12px;
  border: 1px solid #bfd5e3;
  border-radius: 10px;
  color: var(--sc-navy-900);
  background: #eef6fa;
  font-size: clamp(.96rem, 1.4vw, 1.08rem);
  font-weight: 850;
  letter-spacing: .005em;
}
.report-week-field { grid-column: 1 / -1; }
.report-week-field > input[type="date"] { max-width: 420px; }
.report-collaboration-meta {
  margin-bottom: 14px;
}
.report-meeting-block {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #c7d5e2;
  border-radius: 14px;
  background: #f8fbfd;
}
.report-points-block {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #c7d5e2;
  border-radius: 14px;
  background: #f8fbfd;
}
.report-points-block h4 {
  margin: 0;
  color: var(--sc-navy-900);
  font-size: 1.02rem;
}
.report-points-grid { margin: 0; }
.report-points-confirmation {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c8d3df;
  border-radius: 10px;
  background: #fff;
  color: var(--sc-navy-800);
  font-size: .86rem;
  font-weight: 720;
  line-height: 1.45;
}
.report-points-confirmation input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--sc-teal);
}
.report-points-confirmation.is-required {
  border-color: #df9a4c;
  background: #fff8ef;
}
.report-points-confirmation.is-confirmed {
  border-color: #8ccfc4;
  background: #effaf7;
}
.report-meeting-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.report-meeting-head h4 {
  margin: 0 0 5px;
  color: var(--sc-navy-900);
  font-size: 1.02rem;
}
.report-meeting-head p {
  max-width: 850px;
  margin: 0;
  color: var(--sc-muted);
  font-size: .8rem;
  line-height: 1.55;
}
.report-meeting-wrap {
  margin: 0;
}
.report-meeting-table {
  min-width: 1180px;
  table-layout: fixed;
  font-size: .82rem;
}
.report-meeting-table th,
.report-meeting-table td { padding: 8px; vertical-align: top; }
.report-meeting-table th:nth-child(1) { width: 205px; }
.report-meeting-table th:nth-child(2) { width: 135px; }
.report-meeting-table th:nth-child(3) { width: 145px; }
.report-meeting-table th:nth-child(4) { width: 480px; }
.report-meeting-table th:nth-child(5) { width: 205px; }
.report-meeting-table input,
.report-meeting-table select,
.report-meeting-table textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d3df;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}
.report-meeting-table input,
.report-meeting-table select {
  min-height: 38px;
  padding: 6px 8px;
}
.report-meeting-table textarea {
  min-height: 78px;
  padding: 8px;
  resize: vertical;
  line-height: 1.45;
}
.report-meeting-table input:focus,
.report-meeting-table select:focus,
.report-meeting-table textarea:focus {
  outline: 2px solid rgba(23,143,130,.18);
  border-color: var(--sc-teal);
}
.report-meeting-table input:disabled,
.report-meeting-table select:disabled,
.report-meeting-table textarea:disabled {
  color: var(--sc-navy-900);
  -webkit-text-fill-color: var(--sc-navy-900);
  opacity: 1;
  background: #f3f8f7;
  border-color: #b9d9d2;
}
.report-meeting-table tr.is-confirmed { background: #f0faf7 !important; }
.report-meeting-count {
  display: block;
  margin-top: 4px;
  color: var(--sc-muted);
  text-align: right;
  font-size: .72rem;
}
.report-meeting-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.report-meeting-buttons button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 5px;
  font-size: .78rem;
  line-height: 1.15;
}
.report-meeting-actions {
  display: flex;
  justify-content: flex-end;
}
.report-meeting-actions > button { min-width: 132px; }
.report-meeting-remove {
  min-width: 0;
  padding-inline: 6px;
}
.report-stage-week-table {
  min-width: 1100px;
  table-layout: fixed;
}
.report-stage-week-table th:nth-child(1) { width: 110px; }
.report-stage-week-table th:nth-child(2) { width: 86px; }
.report-stage-week-table th:nth-child(3) { width: 90px; }
.report-stage-week-table th:nth-child(4) { width: 72px; }
.report-stage-week-table th:nth-child(5) { width: 300px; }
.report-stage-week-table th:nth-child(6) { width: 190px; }
.report-stage-week-table th:nth-child(7) { width: 115px; }
.report-stage-meeting-table {
  min-width: 1100px;
  table-layout: fixed;
}
.report-stage-meeting-table th:nth-child(1) { width: 105px; }
.report-stage-meeting-table th:nth-child(2) { width: 155px; }
.report-stage-meeting-table th:nth-child(3) { width: 125px; }
.report-stage-meeting-table th:nth-child(4) { width: 145px; }
.report-stage-meeting-table th:nth-child(5) { width: auto; min-width: 520px; }

.report-summary-grid:not(.report-summary-grid-six) {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 1100px) {
  .activity-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .activity-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-management-block { padding: 14px; border-radius: 14px; }
  .report-meeting-block { padding: 13px; }
  .report-points-block { padding: 13px; }
  .report-meeting-head { align-items: stretch; flex-direction: column; }
  .report-meeting-head > button { width: 100%; }
  .report-week-field > input[type="date"] { max-width: none; }
  .report-points-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Support Tools V4.3.1 · compact meeting time/actions,
   score evaluation and paired PC/tablet basic information
   ========================================================= */
.sc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.report-basic-info-grid { align-items: start; }
.report-week-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 2px 0 5px;
  border-bottom: 1px solid #d6e1e9;
}
.report-week-heading .activity-label { min-height: 0; margin: 0; flex: 0 0 auto; }
.report-week-display {
  display: inline;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--sc-navy-900);
  background: transparent;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  font-weight: 880;
  letter-spacing: .004em;
  overflow-wrap: anywhere;
}
.report-week-date-field { align-content: end; }
.report-week-date-field > input[type="date"] { width: 100%; max-width: none; margin-top: 0; }

.report-meeting-table {
  min-width: 1050px;
  table-layout: fixed;
}
.report-meeting-table th:nth-child(1) { width: 210px; }
.report-meeting-table th:nth-child(2) { width: 120px; }
.report-meeting-table th:nth-child(3) { width: 130px; }
.report-meeting-table th:nth-child(4) { width: 500px; }
.report-meeting-table th:nth-child(5) { width: 90px; }
.report-meeting-table td { vertical-align: top; }
.report-meeting-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}
.report-meeting-time-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.report-meeting-time-range > span {
  color: var(--sc-muted);
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}
.report-meeting-time-range select { min-height: 34px; padding: 5px 6px; font-size: .77rem; }
.report-meeting-table textarea { min-height: 92px; }
.report-meeting-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 5px;
}
.report-meeting-buttons button,
.report-meeting-actions > button {
  min-width: 0;
  min-height: 27px;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: .72rem;
  line-height: 1.05;
}
.report-meeting-actions { display: flex; justify-content: flex-end; }
.report-meeting-actions > button { width: auto; min-width: 88px; }
.report-meeting-remove { min-width: 0; padding-inline: 6px; }

.report-score-block.report-score-compact { padding: 13px 15px; }
.report-score-overall-grid {
  grid-template-columns: minmax(220px, .82fr) minmax(300px, 1fr);
  align-items: stretch;
  gap: 14px;
}
.report-score-choice {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.report-score-choice .activity-field { max-width: 260px; }
.report-self-assessment-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  justify-self: start;
}
.report-score-evaluation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #e3c394;
  border-radius: 9px;
  background: #fff8ef;
  color: var(--sc-navy-800);
  font-size: .82rem;
  line-height: 1.35;
}
.report-score-evaluation span { color: var(--sc-muted); font-weight: 750; }
.report-score-evaluation strong { color: var(--sc-orange-700, #9f4d12); font-weight: 850; }
.report-score-block .report-self-assessment-detail .activity-field { width: 100%; max-width: 560px; gap: 5px; }
.report-score-overall-grid textarea { min-height: 92px; max-height: 160px; }

.report-stage-meeting-table { min-width: 1100px; }
.report-stage-meeting-table th:nth-child(1) { width: 105px; }
.report-stage-meeting-table th:nth-child(2) { width: 185px; }
.report-stage-meeting-table th:nth-child(3) { width: 125px; }
.report-stage-meeting-table th:nth-child(4) { width: 145px; }
.report-stage-meeting-table th:nth-child(5) { width: auto; min-width: 490px; }
.report-stage-score-table { min-width: 940px; table-layout: fixed; }
.report-stage-score-table th:nth-child(1) { width: 105px; }
.report-stage-score-table th:nth-child(2) { width: 95px; }
.report-stage-score-table th:nth-child(3) { width: 180px; }
.report-stage-score-table th:nth-child(4) { width: auto; min-width: 520px; }

@media (min-width: 681px) {
  .report-basic-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .report-basic-info-grid > * { grid-column: auto !important; }
  .report-basic-info-grid > .report-week-heading { grid-column: 1 / -1 !important; }
  .report-score-block .report-score-overall-grid {
    grid-template-columns: minmax(220px, .82fr) minmax(300px, 1fr) !important;
  }
  .report-score-overall-grid > * { grid-column: auto !important; }
}

@media (max-width: 680px) {
  .report-basic-info-grid,
  .report-score-overall-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .report-week-heading { display: grid; gap: 4px; }
  .report-week-display { font-size: 1rem; line-height: 1.45; }
  .report-score-block.report-score-compact { padding: 12px; }
}
