:root {
  color-scheme: light;
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --ink: #20242a;
  --muted: #667085;
  --line: #d9dee7;
  --line-soft: #e8edf4;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --accent: #1f7a5c;
  --accent-strong: #165f47;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --violet: #6d28d9;
  --teal-soft: #e8f6f1;
  --blue-soft: #eef4ff;
  --amber-soft: #fff7ed;
  --danger: #b42318;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.09);
}


* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fafc 0, #eef3f7 320px, #f5f7fb 100%);
  color: var(--ink);
  line-height: 1.45;
}

.app {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.access-gate {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
  display: grid;
  gap: 28px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand span {
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-brand strong {
  font-size: 16px;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header nav a,
.nav-admin {
  border-radius: 7px;
  background: transparent;
  color: #475467;
  padding: 9px 10px;
  min-height: 0;
  box-shadow: none;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.site-header nav a:hover,
.nav-admin:hover {
  background: #eef2f6;
  color: var(--ink);
  transform: none;
}

.home-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 26px;
  align-items: center;
}

.home-copy {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.home-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #475467;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
}

.home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-points span {
  border: 1px solid #cfe7da;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--accent-strong);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.home-section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: grid;
  gap: 20px;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.section-heading h2 {
  font-size: 24px;
}

.home-card-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-card-grid article,
.privacy-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  min-width: 0;
}

.home-card-grid article {
  display: grid;
  gap: 10px;
}

.home-card-grid article > strong {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef2f6;
  color: #475467;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.home-card-grid h3,
.privacy-grid h3 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
}

.home-card-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-grid ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #475467;
  line-height: 1.75;
  word-break: keep-all;
}

.usage-section {
  gap: 22px;
}

.usage-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.usage-guide-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.usage-guide-grid span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef4ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.usage-guide-grid h3,
.usage-criteria h3 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
}

.usage-guide-grid p,
.usage-criteria p {
  margin: 0;
  color: #5b6678;
  line-height: 1.65;
  word-break: keep-all;
}

.usage-criteria {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
}

.usage-criteria article {
  border: 1px solid #d8e8de;
  border-radius: 8px;
  background: #f8fcfa;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.criteria-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.criteria-pills span {
  border-radius: 999px;
  background: #eef2f6;
  color: #465568;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.criteria-pills .good {
  background: #ecfdf3;
  color: #027a48;
}

.criteria-pills .warn {
  background: #fff7ed;
  color: #b45309;
}

.criteria-pills .danger {
  background: #fff1f3;
  color: #be123c;
}

.access-card,
.admin-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.access-card {
  padding: 26px;
  display: grid;
  gap: 18px;
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.access-card p:not(.eyebrow),
.admin-head p {
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

.access-card label,
.admin-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.access-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px 11px;
}

.admin-panel {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.admin-head,
.admin-auth {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.admin-auth {
  justify-content: flex-start;
}

.admin-auth label {
  width: min(280px, 100%);
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-create {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.admin-create h3 {
  margin: 0;
  font-size: 16px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 1440px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.admin-table thead th {
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.admin-table td strong,
.admin-table td span,
.admin-table td em {
  display: block;
}

.admin-table td em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.admin-code {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.admin-status {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef2f6;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.admin-status.good {
  background: #e9f7ef;
  color: #16803c;
}

.admin-status.warn {
  background: #fff1f0;
  color: var(--danger);
}

.admin-inline-input,
.admin-inline-select,
.admin-inline-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-inline-input,
.admin-inline-select {
  min-height: 34px;
  padding: 7px 9px;
}

.admin-inline-textarea {
  min-height: 58px;
  padding: 8px 9px;
  resize: vertical;
}

.admin-inline-input + .admin-inline-input,
.admin-inline-input + .admin-inline-textarea,
.admin-mini-label + .admin-mini-label {
  margin-top: 8px;
}

.admin-mini-label {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.admin-mini-label:first-of-type {
  margin-top: 8px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-badge {
  border: 1px solid #cfe7da;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--accent-strong);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.topbar,
.toolbar,
.workspace,
.actions,
.tabs {
  display: flex;
  gap: 12px;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  font-size: 18px;
  word-break: keep-all;
}

.topbar p,
.hint,
.result {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sync-notice {
  margin-top: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.sync-notice strong {
  display: block;
  color: #1d2939;
  font-size: 15px;
  font-weight: 900;
}

.sync-notice p {
  margin-top: 5px;
  color: #475467;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sync-notice.is-loading {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.sync-notice.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sync-notice.is-success strong {
  color: #166534;
}

.sync-notice.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
}

.sync-notice.is-warning strong {
  color: #9a3412;
}

.sync-notice.is-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.sync-notice.is-error strong {
  color: #991b1b;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button.secondary {
  background: #e7eaef;
  color: var(--ink);
}

button.secondary:hover {
  background: #dce1e8;
}

button.danger {
  background: #fff1f0;
  color: var(--danger);
}

.update-notice-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.update-notice-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
}

.update-notice-box {
  border-top: 6px solid var(--signal);
  background: #fff;
}

.update-notice-head {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 28px 72px 26px 30px;
}

.update-notice-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
}

.update-notice-head h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}

.update-notice-head p {
  max-width: 540px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}

.update-notice-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.update-notice-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.update-notice-list {
  padding: 8px 30px 0;
}

.update-notice-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}

.update-notice-list article:last-child {
  border-bottom: 0;
}

.update-notice-list article > strong {
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.5;
}

.update-notice-list h3 {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.4;
}

.update-notice-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.update-notice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  background: #f7f9f8;
  padding: 16px 30px;
}

.update-notice-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5f57;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.update-notice-actions input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-strong);
}

.update-notice-actions button {
  min-width: 108px;
}

.print-choice-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.print-choice-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.print-choice-box {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #fff;
}

.print-choice-box h2 {
  font-size: 20px;
  line-height: 1.3;
}

.print-choice-box p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
  word-break: keep-all;
}

.print-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.print-choice-grid button {
  min-height: 96px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 6px;
  white-space: normal;
  text-align: left;
}

.print-choice-grid strong,
.print-choice-grid span {
  display: block;
}

.print-choice-grid span {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.82;
  word-break: keep-all;
}

.print-choice-actions {
  display: flex;
  justify-content: flex-end;
}

button.link-button,
button.cell-link {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
  white-space: normal;
}

button.link-button {
  font-weight: 700;
}

button.link-button:hover,
button.cell-link:hover {
  background: transparent;
  color: #0d3f30;
  transform: none;
}

.toolbar {
  align-items: end;
  margin-bottom: 16px;
}

.search {
  flex: 1;
}

.search span,
label {
  display: grid;
  gap: 6px;
  color: #4a5564;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 122, 92, 0.14);
  border-color: #8fc9b4;
}

textarea {
  resize: vertical;
}

.summary {
  min-width: 110px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: white;
  padding: 9px 12px;
  box-shadow: var(--shadow-sm);
}

.summary strong {
  font-size: 22px;
  margin-right: 4px;
}

.workspace {
  align-items: stretch;
  margin-bottom: 18px;
}

.sync-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
  gap: 16px;
}

.panel {
  flex: 1;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sync-panel {
  padding: 22px;
  gap: 16px;
  border-color: #d6e6dc;
  background:
    linear-gradient(180deg, rgba(232, 246, 241, 0.72), rgba(255, 255, 255, 0) 44%),
    #fff;
}

.sync-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.sync-panel-head h2 {
  font-size: 22px;
  line-height: 1.25;
}

.sync-security-badge {
  border: 1px solid #b8d7c4;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--accent-strong);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sync-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sync-process span {
  min-height: 40px;
  border: 1px solid #d8e8de;
  border-radius: 8px;
  background: #f8fcfa;
  color: #2f6b55;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.sync-actions {
  justify-content: stretch;
}

.sync-actions button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 12px 22px rgba(31, 122, 92, 0.18);
}

.sync-actions button:hover {
  background: linear-gradient(135deg, var(--accent-strong), #1d4ed8);
}

.guide-panel {
  flex: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quick-guide-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: quickGuide;
}

.quick-guide-list li {
  counter-increment: quickGuide;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px 11px 46px;
  position: relative;
  display: grid;
  gap: 3px;
}

.quick-guide-list li::before {
  content: counter(quickGuide);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e8f6f1;
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.quick-guide-list strong {
  color: #1f2937;
  font-size: 14px;
}

.quick-guide-list span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.guide-details {
  border: 1px solid #cfe7da;
  border-radius: 8px;
  background: #f7fcf9;
  overflow: hidden;
}

.guide-details summary {
  padding: 12px 14px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.guide-details summary::-webkit-details-marker {
  display: none;
}

.guide-details summary::after {
  content: "+";
  float: right;
  color: #475467;
}

.guide-details[open] summary::after {
  content: "-";
}

.guide-details > div {
  border-top: 1px solid #d8e8de;
  padding: 12px 14px;
  background: #fff;
}

.guide-details dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.guide-details dl > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.guide-details dt {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.guide-details dd {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tabs {
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.tab.active {
  background: #e8f6f1;
  color: var(--accent-strong);
}

.tab:hover {
  background: #f0faf7;
  color: var(--accent-strong);
}

.import-pane {
  display: none;
  gap: 10px;
}

.import-pane.active {
  display: grid;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #4a5564;
  font-weight: 700;
}

tbody tr:hover td,
tbody tr:hover th {
  background: #fbfdff;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.reading-panel {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.reading-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.reading-head > div,
.area-comparison-head > div,
.program-head > div,
.guidance-card-head > div {
  min-width: 0;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reading-card {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.reading-card h3,
.graph-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1f2937;
}

.section-title-inline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-title-inline h3 {
  margin: 0 0 4px;
}

.readin-dimension-feedback {
  grid-column: 1 / -1;
}

.readin-dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.readin-dimension-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-top: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.readin-dimension-card.good {
  border-top-color: var(--accent);
  background: #fbfefd;
}

.readin-dimension-card.warn {
  border-top-color: var(--amber);
  background: #fffdf9;
}

.readin-dimension-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.readin-dimension-card h4 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.3;
}

.readin-dimension-card span {
  flex: none;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.readin-dimension-card.good span {
  background: #ecfdf3;
  color: #027a48;
}

.readin-dimension-card.warn span {
  background: #fff3df;
  color: #9a3412;
}

.readin-dimension-card dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.readin-dimension-card dl div {
  display: grid;
  gap: 2px;
}

.readin-dimension-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.readin-dimension-card dd {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.readin-dimension-card p {
  margin: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  padding: 8px;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.detail-loading {
  min-height: 180px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #344054;
  text-align: center;
}

.detail-loading strong {
  color: #1f2937;
  font-size: 16px;
}

.detail-loading span {
  color: var(--muted);
  font-size: 13px;
}

.readin-activity-analysis {
  grid-column: 1 / -1;
  overflow: hidden;
}

.activity-decision,
.activity-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.activity-decision.good {
  background: #ecfdf3;
  color: #027a48;
}

.activity-decision.watch,
.activity-row-status.watch {
  background: #eff6ff;
  color: #1d4ed8;
}

.activity-row-status.good {
  background: #ecfdf3;
  color: #027a48;
}

.activity-row-status.caution {
  background: #fff7e8;
  color: #9a4b00;
}

.activity-row-status.danger {
  background: #fef3f2;
  color: #b42318;
}

.activity-decision.warn,
.activity-row-status.warn {
  background: #fff3df;
  color: #9a3412;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.activity-summary-grid > div {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.activity-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.activity-summary-grid strong {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.activity-summary-grid strong small,
.period-activity-table td small,
.period-level-table td small,
.activity-cell-value small {
  display: block;
  margin-top: 3px;
  color: #66756f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.activity-area-evaluation {
  margin: 0 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.activity-area-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.activity-area-head > div {
  min-width: 0;
}

.activity-area-head strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
}

.activity-area-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.activity-area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.activity-area-card {
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-top: 3px solid #98a2b3;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.activity-area-card.good {
  border-top-color: var(--accent);
}

.activity-area-card.watch {
  border-top-color: var(--blue);
}

.activity-area-card.warn {
  border-top-color: var(--amber);
}

.activity-area-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-area-card > div:first-child > strong {
  color: #1f2937;
  font-size: 14px;
}

.activity-area-card dl,
.activity-area-card dl > div {
  margin: 0;
  display: grid;
  gap: 3px;
}

.activity-area-card dl {
  gap: 9px;
}

.activity-area-card dt {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

.activity-area-card dd {
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.activity-decision-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #98a2b3;
  border-radius: 8px;
  background: var(--line-soft);
  margin-bottom: 14px;
}

.activity-decision-panel.good {
  border-left-color: var(--accent);
}

.activity-decision-panel.watch {
  border-left-color: var(--blue);
}

.activity-decision-panel.warn {
  border-left-color: var(--amber);
}

.activity-decision-panel > div {
  background: #fff;
  padding: 12px 14px;
}

.activity-decision-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.activity-decision-panel p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.activity-session-table-wrap {
  overflow-x: auto;
}

.activity-session-table {
  min-width: 980px;
  table-layout: fixed;
}

.activity-session-table th,
.activity-session-table td {
  text-align: center;
  vertical-align: middle;
}

.activity-session-table th:nth-child(1) {
  width: 10%;
}

.activity-session-table th:nth-child(2) {
  width: 18%;
}

.activity-session-table th:nth-child(3) {
  width: 8%;
}

.activity-session-table th:nth-child(4) {
  width: 11%;
}

.activity-session-table th:nth-child(5) {
  width: 41%;
}

.activity-session-table th:nth-child(6) {
  width: 12%;
}

.activity-session-table td > .activity-cell-value > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.activity-session-table td > .activity-cell-value > strong {
  display: block;
  color: #1f2937;
  line-height: 1.45;
  word-break: keep-all;
}

.activity-cell-value {
  display: block;
  min-width: 0;
}

.activity-set-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.activity-set-chip {
  min-width: 96px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.activity-set-chip.target {
  border-color: #8ec5ae;
  background: #f0fdf7;
}

.activity-set-chip.comfortable {
  border-color: #b7c7db;
  background: #f5f8fc;
}

.activity-set-chip strong {
  color: #475467;
  font-size: 10px;
}

.activity-set-chip em {
  color: #1f2937;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.activity-set-chip small {
  color: #9a4b00;
  font-size: 9px;
  line-height: 1.3;
}

.activity-basis-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.activity-method-guide {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.activity-method-guide summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.activity-method-guide-body {
  border-top: 1px solid var(--line-soft);
  padding: 14px;
}

.activity-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.activity-method-grid article {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.activity-method-grid strong,
.activity-method-grid span {
  display: block;
}

.activity-method-grid strong {
  color: #1f2937;
  font-size: 13px;
}

.activity-method-grid span {
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 900;
}

.activity-method-grid p,
.activity-method-guide-body > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
}

.activity-rule-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #344054;
  font-size: 12px;
  line-height: 1.6;
}

.activity-rule-list li + li {
  margin-top: 5px;
}

.section-title {
  margin: 4px 0 14px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.section-title h2 {
  color: #1f2937;
}

.reading-table {
  min-width: 560px;
}

.reading-table th,
.reading-table td {
  text-align: center;
  padding: 9px 8px;
}

.reading-table tbody th {
  background: #f0faf7;
  color: #344054;
  position: static;
}

.graph-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.growth-card {
  margin-top: 16px;
}

.growth-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 10px;
  margin-bottom: 12px;
}

.growth-summary div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0, #f8fafc 100%);
  display: grid;
  gap: 4px;
}

.growth-summary strong {
  font-size: 20px;
}

.growth-summary span {
  color: var(--muted);
  font-size: 13px;
}

.growth-summary em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 700;
}

.growth-table {
  min-width: 680px;
}

.growth-table tbody th {
  background: #f9fafb;
}

.growth-up td:nth-child(4),
.growth-up td:nth-child(5) {
  color: var(--accent-strong);
  font-weight: 700;
}

.growth-down td:nth-child(4),
.growth-down td:nth-child(5) {
  color: var(--danger);
  font-weight: 700;
}

.student-report-tabs {
  display: grid;
  gap: 16px;
}

.report-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.report-tab {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  white-space: normal;
  text-align: center;
}

.report-tab.active {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(22, 95, 71, 0.10);
}

.report-tab:hover {
  background: #fff;
  color: var(--accent-strong);
  transform: none;
}

.report-pane {
  display: grid;
  gap: 12px;
}

.report-pane[hidden] {
  display: none;
}

.report-detail-stack {
  display: grid;
  gap: 14px;
}

.guidance-section {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.report-pane > .guidance-section {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.guidance-priority {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.guidance-priority div,
.guidance-next,
.guidance-note,
.guidance-plan,
.guidance-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.guidance-priority div {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.guidance-priority span {
  color: var(--muted);
  font-size: 13px;
}

.guidance-priority strong {
  line-height: 1.45;
}

.guidance-next,
.guidance-note {
  padding: 14px;
  margin-bottom: 12px;
}

.guidance-next h3,
.guidance-note h3,
.guidance-card h3,
.guidance-card h4 {
  margin: 0;
}

.guidance-next h3,
.guidance-note h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.guidance-next ol,
.guidance-card ul {
  margin: 0;
  padding-left: 20px;
}

.guidance-next li,
.guidance-card li {
  margin: 5px 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.program-material-guide {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.program-material-guide > div:first-child {
  display: grid;
  gap: 4px;
}

.program-material-guide span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.program-material-guide h3 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
}

.program-material-guide p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.program-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.program-material-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.program-material-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
}

.program-material-grid ul {
  margin: 0;
  padding-left: 18px;
}

.program-material-grid li {
  margin: 4px 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
}

.guidance-card {
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.guidance-plan {
  padding: 0;
  margin-bottom: 12px;
  border: 0;
  background: transparent;
}

.guidance-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.guidance-card h3 {
  font-size: 16px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guidance-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.coaching-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.coaching-flow-card {
  position: relative;
  min-height: 108px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.coaching-flow-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #c9d4e5;
}

.coaching-flow-card:last-child::after {
  display: none;
}

.coaching-flow-card.area {
  background: linear-gradient(180deg, var(--teal-soft), #fff);
  border-color: #bde5d6;
}

.coaching-flow-card.therapy {
  background: linear-gradient(180deg, var(--blue-soft), #fff);
  border-color: #c8d9ff;
}

.coaching-flow-card.check {
  background: linear-gradient(180deg, var(--amber-soft), #fff);
  border-color: #fed7aa;
}

.coaching-flow-card span,
.coaching-panel h4,
.coaching-action-box h4 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.coaching-flow-card strong {
  color: #1f2937;
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.coaching-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.coaching-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.coaching-panel h4,
.coaching-action-box h4 {
  margin: 0 0 8px;
}

.coaching-insight-grid {
  display: grid;
  gap: 10px;
}

.coaching-insight-tile {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  gap: 6px;
  min-height: 92px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.coaching-insight-tile.reason {
  border-left: 4px solid var(--amber);
}

.coaching-insight-tile.direction {
  border-left: 4px solid var(--blue);
}

.coaching-insight-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coaching-insight-tile p,
.coaching-step p {
  margin: 0;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.coaching-insight-tile p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coaching-action-box {
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.coaching-timeline {
  display: grid;
  gap: 9px;
}

.coaching-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.coaching-step > span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.guidance-card h4 {
  color: #4a5564;
  font-size: 13px;
  margin-bottom: 6px;
}

.guidance-criteria {
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
  padding-top: 10px;
}

.guidance-criteria summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.guidance-criteria ul {
  margin-top: 8px;
}

.guidance-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guidance-plan-grid > div {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
}

.guidance-plan-grid h4 {
  margin: 0 0 7px;
  color: #4a5564;
  font-size: 13px;
}

.guidance-plan-grid ul,
.guidance-plan-grid ol {
  margin: 0;
  padding-left: 20px;
}

.guidance-plan-grid li {
  margin: 5px 0;
  line-height: 1.55;
}

.guidance-plan-wide {
  grid-column: 1 / -1;
}

.guidance-details {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}

.guidance-details summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 14px;
  font-weight: 800;
  color: #1f2937;
}

.guidance-details summary::-webkit-details-marker {
  display: none;
}

.guidance-details summary::after {
  content: "펼치기";
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guidance-details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.guidance-details[open] summary::after {
  content: "접기";
}

.guidance-details > .guidance-plan-grid,
.guidance-details > .guidance-grid,
.guidance-details > .area-comparison-panel {
  margin: 14px;
}

.guidance-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guidance-chip {
  border-radius: 999px;
  background: #eaf3ef;
  color: var(--accent-strong);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  text-align: center;
  border: 1px solid rgba(31, 122, 92, 0.14);
  line-height: 1.35;
}

.guidance-chip.warn {
  background: #fff4e5;
  color: #9a4b00;
}

.guidance-note {
  margin-top: 12px;
  background: #f9fafb;
}

.guidance-note p {
  line-height: 1.6;
}

.area-comparison-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}

.area-comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.area-comparison-head h3 {
  margin: 0;
  font-size: 18px;
}

.area-comparison-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.comparison-summary-card {
  min-width: 0;
  min-height: 112px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  text-align: left;
}

.comparison-summary-card.primary {
  border-left-color: var(--accent);
}

.comparison-summary-card.therapy {
  border-left-color: var(--blue);
}

.comparison-summary-card.coverage {
  border-left-color: var(--amber);
}

.comparison-summary-card.next {
  border-left-color: var(--violet);
}

.comparison-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.comparison-summary-card strong {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.comparison-summary-card em {
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.area-comparison-table {
  min-width: 1040px;
  table-layout: fixed;
}

.area-comparison-table th,
.area-comparison-table td {
  vertical-align: top;
  line-height: 1.5;
  border-right: 1px solid var(--line-soft);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.area-comparison-table thead th,
.area-comparison-table tbody th,
.area-comparison-table tbody td {
  text-align: center;
}

.area-comparison-table th:last-child,
.area-comparison-table td:last-child {
  border-right: 0;
}

.area-comparison-table thead th:nth-child(1),
.area-comparison-table tbody th {
  width: 9%;
}

.area-comparison-table thead th:nth-child(2),
.area-comparison-table tbody td:nth-child(2) {
  width: 15%;
}

.area-comparison-table thead th:nth-child(3),
.area-comparison-table tbody td:nth-child(3) {
  width: 28%;
}

.area-comparison-table thead th:nth-child(4),
.area-comparison-table tbody td:nth-child(4) {
  width: 16%;
}

.area-comparison-table thead th:nth-child(5),
.area-comparison-table tbody td:nth-child(5) {
  width: 32%;
}

.area-comparison-table tbody th {
  position: static;
  background: #f8fafc;
  text-align: center;
  vertical-align: middle;
}

.area-comparison-table tbody th strong,
.area-comparison-table tbody th span {
  display: block;
}

.area-comparison-table tbody th strong {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.3;
}

.area-comparison-table tbody th span {
  width: fit-content;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.area-comparison-table tbody th .area-score-badge {
  background: #eef2f6;
  color: #475467;
}

.area-comparison-table tbody th .area-condition-badge {
  font-weight: 900;
}

.area-comparison-table tbody th .area-condition-badge.good {
  background: #e9f7ef;
  color: #16803c;
}

.area-comparison-table tbody th .area-condition-badge.normal {
  background: #fff7ed;
  color: #b45309;
}

.area-comparison-table tbody th .area-condition-badge.caution {
  background: #fff1f0;
  color: var(--danger);
}

.area-comparison-table tbody th .area-condition-badge.muted {
  background: #eef2f6;
  color: #667085;
}

.area-comparison-table tr.area-row-weak > th {
  background: #fff7ed;
}

.area-comparison-table tr.area-row-weak > th .area-score-badge {
  background: #ffedd5;
  color: #9a3412;
}

.comparison-source-cell {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  min-height: 58px;
  text-align: center;
}

.comparison-source-cell strong {
  display: grid;
  gap: 2px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.comparison-source-cell strong span {
  display: block;
}

.comparison-source-cell em,
.muted-cell {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.comparison-source-cell em {
  width: 100%;
  max-width: 260px;
  border-radius: 7px;
  background: #f8fafc;
  padding: 7px 8px;
  text-align: left;
  line-height: 1.5;
  word-break: keep-all;
}

.comparison-source-cell small {
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
}

.muted-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 5px 9px;
}

.combined-program-list {
  display: grid;
  gap: 7px;
  text-align: left;
}

.combined-program-row {
  border: 1px solid var(--line-soft);
  border-left: 4px solid #98a2b3;
  border-radius: 7px;
  background: #fff;
  padding: 8px 9px;
}

.combined-program-row.watch {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.combined-program-row.warn {
  border-left-color: #dc2626;
  background: #fff7f6;
}

.combined-program-row.good {
  border-left-color: #16a34a;
}

.combined-program-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.combined-program-row strong {
  color: #1f2937;
  font-size: 12px;
}

.combined-program-row span {
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.combined-program-row p,
.combined-program-row small {
  margin: 5px 0 0;
  color: #475467;
  font-size: 11px;
  line-height: 1.45;
}

.combined-program-row small {
  display: block;
  color: #667085;
}

.dimension-summary-cell {
  display: grid;
  justify-items: stretch;
  gap: 8px;
  text-align: left;
}

.dimension-summary-cell > strong {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
}

.dimension-summary-cell > span,
.dimension-summary-cell > small {
  color: #667085;
  font-size: 11px;
}

.dimension-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.dimension-chip-grid span {
  min-width: 0;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  padding: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.dimension-chip-grid span.good {
  background: #eaf8ef;
  color: #16783a;
}

.dimension-chip-grid span.watch {
  background: #fff7e8;
  color: #a65308;
}

.dimension-chip-grid span.warn {
  background: #fff0ef;
  color: #b42318;
}

.dimension-chip-grid b {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.area-comparison-table tbody td.comparison-coaching {
  padding: 9px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: #344054;
  text-align: left;
  font-size: 13px;
  background: #fcfcfd;
}

.coaching-cell-structured {
  display: grid;
  gap: 8px;
}

.coaching-cell-section {
  border: 1px solid var(--line-soft);
  border-left: 4px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.coaching-cell-section.basis {
  border-left-color: #98a2b3;
  background: #fff;
}

.coaching-cell-section.action {
  border-left-color: var(--accent);
  background: #fff;
}

.coaching-cell-section.therapy {
  border-left-color: var(--blue);
  background: #fff;
}

.coaching-cell-section > span {
  width: fit-content;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.coaching-cell-section p,
.coaching-cell-section ul {
  margin: 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.coaching-cell-section ul {
  display: grid;
  gap: 3px;
  padding: 0;
  list-style: none;
}

.coaching-cell-section li {
  position: relative;
  padding-left: 11px;
}

.coaching-cell-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #98a2b3;
}

.score-guide {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.score-guide h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.score-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.score-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-guide-grid div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.score-guide-grid strong {
  font-size: 13px;
  color: #1f2937;
}

.score-guide-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.curriculum-diagnosis-panel {
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 15px;
  display: grid;
  gap: 13px;
}

.area-comparison-panel .curriculum-diagnosis-panel {
  margin: 12px 0;
}

.curriculum-diagnosis-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.curriculum-diagnosis-head span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.curriculum-diagnosis-head h3 {
  margin: 6px 0 4px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
}

.curriculum-diagnosis-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

.curriculum-diagnosis-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.curriculum-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.curriculum-card {
  min-height: 104px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 7px;
}

.curriculum-card.good {
  border-left-color: var(--accent);
}

.curriculum-card.normal,
.curriculum-card.check {
  border-left-color: #3b82f6;
}

.curriculum-card.warn {
  border-left-color: var(--amber);
}

.curriculum-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.curriculum-card strong {
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.curriculum-card em {
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  word-break: keep-all;
}

.curriculum-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.curriculum-two-column > div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.curriculum-two-column strong {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: 13px;
}

.curriculum-two-column ul {
  margin: 0;
  padding-left: 18px;
}

.curriculum-two-column li {
  margin: 4px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.curriculum-diagnosis-panel.compact .curriculum-card {
  min-height: 96px;
}

.therapy-summary {
  margin-top: 12px;
  border: 1px solid #cfe7da;
  border-radius: 8px;
  background: #f4fbf7;
  padding: 14px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.therapy-summary div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.therapy-summary strong {
  color: #155b36;
  font-size: 14px;
}

.therapy-summary span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.therapy-summary p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.help-popover {
  position: relative;
}

.help-popover summary {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #b8d7c4;
  background: #fff;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.help-popover summary::-webkit-details-marker {
  display: none;
}

.help-popover[open] summary {
  background: #eaf3ef;
}

.help-popover > div {
  position: absolute;
  right: 0;
  top: 34px;
  width: min(380px, 80vw);
  z-index: 10;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  padding: 12px;
  display: grid;
  gap: 7px;
}

.help-popover > div strong {
  color: #1f2937;
}

.help-popover > div p {
  color: #4a5564;
  font-size: 12px;
}

.graph-value-table {
  width: min(760px, 100%);
  min-width: 620px;
  margin-top: 10px;
}

.graph-value-table th,
.graph-value-table td {
  text-align: center;
}

.graph-value-table tbody th {
  position: static;
  background: #f9fafb;
  color: #344054;
}

.icks-section {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.icks-programs {
  display: grid;
  gap: 14px;
}

.icks-program {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.program-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.program-head h3 {
  margin: 0;
  font-size: 17px;
}

.program-head span,
.program-meta {
  color: var(--muted);
  font-size: 13px;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.program-meta span {
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  padding: 4px 8px;
  font-weight: 700;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.report-metrics div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0, #f8fafc 100%);
  padding: 12px;
  display: grid;
  gap: 3px;
  min-height: 84px;
}

.report-metrics strong {
  font-size: 22px;
  color: #1f2937;
}

.report-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.mini-table-wrap {
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.mini-table-wrap h4 {
  margin: 0;
  font-size: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mini-table-wrap h4 span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mini-table {
  min-width: 420px;
}

.wide-mini {
  min-width: 760px;
}

.mini-table th,
.mini-table td {
  padding: 8px 9px;
  text-align: center;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mini-table tbody th {
  position: static;
  background: #f8fafc;
  color: #344054;
}

.time-cell {
  min-width: 88px;
  display: grid;
  gap: 2px;
  text-align: center;
}

.time-cell span {
  font-weight: 800;
  color: #1f2937;
}

.time-cell em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.time-change {
  font-size: 12px;
  font-weight: 800;
}

.time-change.down {
  color: #16803c;
}

.time-change.up {
  color: var(--danger);
}

.time-change.same {
  color: var(--muted);
}

.book-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.book-summary h5 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #344054;
}

.book-summary-table {
  min-width: 360px;
}

.book-summary-table strong {
  color: #1f2937;
}

.book-change-table,
.segment-delta-table,
.segment-time-table {
  min-width: 820px;
}

.period-training-table {
  min-width: 980px;
}

.period-training-table th:first-child,
.period-training-table td:first-child {
  width: 104px;
}

.period-training-table .period-training-title {
  min-width: 220px;
  text-align: left;
}

.period-training-overflow,
.period-empty-hint {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.book-change-table th,
.book-change-table td,
.segment-delta-table th,
.segment-delta-table td,
.segment-time-table th,
.segment-time-table td {
  text-align: center;
  vertical-align: middle;
}

.book-change-table tbody th,
.segment-delta-table tbody th,
.segment-time-table tbody th {
  min-width: 130px;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.trend-badge.good {
  background: #e9f7ef;
  color: #16803c;
}

.trend-badge.warn {
  background: #fff1f0;
  color: var(--danger);
}

.trend-badge.same {
  color: var(--muted);
}

.summary-change {
  font-size: 12px;
  font-weight: 800;
}

.summary-change.up {
  color: var(--danger);
}

.summary-change.down {
  color: #16803c;
}

.summary-change.speed-up {
  color: #16803c;
}

.summary-change.speed-down {
  color: var(--danger);
}

.summary-change.same {
  color: var(--muted);
}

.listening-theme-list {
  display: grid;
  gap: 14px;
}

.listening-theme-block {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.listening-theme-block:first-child {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.listening-theme-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.listening-theme-head h4 {
  margin: 0;
  font-size: 15px;
}

.listening-theme-head span,
.listening-theme-stats {
  color: var(--muted);
  font-size: 12px;
}

.listening-theme-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.listening-theme-stats strong {
  color: #1f2937;
}

.listening-theme-stats span {
  border-radius: 999px;
  background: #f2f4f7;
  padding: 5px 8px;
}

.listening-table {
  min-width: 700px;
}

.listening-table tbody th {
  max-width: 260px;
  white-space: normal;
  line-height: 1.45;
}

.listening-table tbody th strong,
.listening-table tbody th span {
  display: block;
}

.listening-table tbody th span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.parent-report {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.parent-report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.parent-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.parent-report-actions button.active {
  background: #1f2937;
  color: #fff;
}

.parent-report-toolbar > div {
  display: grid;
  gap: 3px;
}

.parent-report-toolbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.parent-report-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.parent-report-toolbar strong {
  color: #1f2937;
  font-size: 16px;
}

.parent-edit-hint {
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
}

.parent-report.is-editing .report-editable {
  border-radius: 5px;
  outline: 1px dashed rgba(245, 158, 11, 0.72);
  outline-offset: 3px;
  background: rgba(255, 251, 235, 0.82);
  cursor: text;
}

.parent-report.is-editing .report-editable:focus {
  outline: 2px solid #2563eb;
  background: #fff;
}

.parent-report.is-editing .parent-message-box p.report-editable {
  min-height: 92px;
  padding: 10px;
  border: 1px solid #fde68a;
  background: #fff;
}

.parent-report-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.10), rgba(37, 99, 235, 0.08)),
    #f8fafc;
  border: 1px solid #dfe8ef;
  padding: 22px;
}

.parent-report-header p {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.parent-report-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
  line-height: 1.25;
  word-break: keep-all;
}

.parent-report-header span {
  display: block;
  margin-top: 8px;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.parent-report-header dl {
  display: grid;
  gap: 8px;
  min-width: 180px;
  margin: 0;
}

.parent-report-header dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(71, 84, 103, 0.16);
  padding-bottom: 6px;
}

.parent-report-header dt,
.parent-report-header dd {
  margin: 0;
  font-size: 13px;
}

.parent-report-header dt {
  color: var(--muted);
  font-weight: 800;
}

.parent-report-header dd {
  color: #1f2937;
  font-weight: 900;
}

.parent-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.parent-metric {
  min-height: 118px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.parent-metric.good {
  border-left-color: var(--accent);
  background: #fbfefd;
}

.parent-metric.warn {
  border-left-color: var(--amber);
  background: #fffdf9;
}

.parent-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.parent-metric strong {
  color: #1f2937;
  font-size: 22px;
  line-height: 1.25;
  word-break: keep-all;
}

.parent-metric em {
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-core-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.parent-core-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-top: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.parent-core-card.doing {
  border-top-color: #3b82f6;
}

.parent-core-card.good {
  border-top-color: var(--accent);
  background: #fbfefd;
}

.parent-core-card.warn {
  border-top-color: var(--amber);
  background: #fffdf9;
}

.parent-core-card.plan {
  border-top-color: #7c3aed;
}

.parent-core-card h4 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.parent-core-card ul {
  margin: 0;
  padding-left: 18px;
}

.parent-core-card li {
  margin: 5px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-simple-section {
  background: #fbfcfe;
}

.parent-simple-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.parent-simple-col-label {
  width: 150px;
}

.parent-simple-col-state {
  width: 300px;
}

.parent-simple-table th,
.parent-simple-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.parent-simple-table thead th {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.parent-simple-table tbody th {
  text-align: left;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-simple-table td {
  color: #344054;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-simple-cell {
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: left;
}

.parent-simple-cell strong {
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.parent-simple-cell span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.parent-simple-cell.good strong {
  color: var(--accent-strong);
}

.parent-simple-cell.warn strong {
  color: var(--amber);
}

.parent-simple-cell.muted strong {
  color: #667085;
}

.parent-visual-section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.parent-visual-section .parent-section-title span {
  width: auto;
  padding: 0 10px;
}

.parent-visual-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.parent-chart-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.parent-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.parent-chart-head h5 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
}

.parent-chart-head strong {
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.parent-chart-head strong.good {
  background: #e9f7ef;
  color: #16803c;
}

.parent-chart-head strong.warn {
  background: #fff1f0;
  color: var(--danger);
}

.parent-bar-stack {
  display: grid;
  gap: 12px;
}

.parent-horizontal-bar {
  display: grid;
  gap: 7px;
}

.parent-horizontal-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.parent-horizontal-bar span,
.parent-horizontal-bar em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.parent-horizontal-bar strong {
  color: #1f2937;
  font-size: 13px;
}

.parent-horizontal-bar i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.parent-horizontal-bar b {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: #98a2b3;
}

.parent-horizontal-bar.current b {
  background: var(--accent);
}

.parent-horizontal-bar.previous b {
  background: #8ea0b8;
}

.parent-column-chart {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 6px 4px 0;
}

.parent-column {
  height: 150px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 5px;
}

.parent-column i {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  background: #eef2f6;
  overflow: hidden;
}

.parent-column b {
  display: block;
  width: 100%;
  height: var(--bar);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #59a383, var(--accent));
}

.parent-column strong {
  color: #1f2937;
  font-size: 13px;
}

.parent-column span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.parent-delta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.parent-delta-chip {
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.parent-delta-chip.good {
  background: #e9f7ef;
  color: #16803c;
}

.parent-delta-chip.warn {
  background: #fff1f0;
  color: var(--danger);
}

.parent-trend-wrap {
  margin-top: 0;
}

.parent-trend-table {
  min-width: 760px;
}

.parent-trend-table th,
.parent-trend-table td {
  text-align: center;
}

.parent-good-text {
  color: #16803c;
  font-weight: 900;
}

.parent-warn-text {
  color: var(--danger);
  font-weight: 900;
}

.parent-speed-section {
  background: #fff;
}

.parent-speed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.parent-speed-program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.parent-speed-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-top: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.parent-speed-card.good {
  border-top-color: var(--accent);
}

.parent-speed-card.warn {
  border-top-color: var(--amber);
}

.parent-speed-card.check {
  border-top-color: #3b82f6;
}

.parent-speed-card.readin {
  background: #fbfcfe;
}

.parent-readin-estimate-basis {
  border: 1px solid #cfe5db;
  border-radius: 8px;
  background: #f4fbf8;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.parent-readin-estimate-basis strong {
  color: #067647;
  font-size: 12px;
}

.parent-readin-estimate-basis span,
.parent-readin-estimate-basis small {
  color: #475467;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-speed-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.parent-speed-card-head h5 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
}

.parent-speed-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-speed-main,
.parent-speed-status {
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.parent-speed-status.good {
  background: #e9f7ef;
  color: #16803c;
}

.parent-speed-status.warn {
  background: #fff7ed;
  color: #b45309;
}

.parent-speed-status.check {
  background: #eff6ff;
  color: #1d4ed8;
}

.parent-speed-bars {
  display: grid;
  gap: 8px;
}

.parent-speed-bar {
  display: grid;
  grid-template-columns: 68px 1fr 72px;
  gap: 8px;
  align-items: center;
}

.parent-speed-bar span,
.parent-speed-bar strong {
  font-size: 12px;
  line-height: 1.3;
}

.parent-speed-bar span {
  color: var(--muted);
  font-weight: 900;
}

.parent-speed-bar strong {
  color: #1f2937;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.parent-speed-bar i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.parent-speed-bar b {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: #98a2b3;
}

.parent-speed-bar.student b {
  background: var(--accent);
}

.parent-speed-bar.grade b {
  background: #3b82f6;
}

.parent-speed-bar.level b {
  background: #9ca3af;
}

.parent-speed-gaps {
  margin: 0;
  display: grid;
  gap: 6px;
}

.parent-speed-gaps div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eef2f6;
  padding-top: 6px;
}

.parent-speed-gaps dt,
.parent-speed-gaps dd {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.parent-speed-gaps dt {
  font-weight: 800;
}

.parent-speed-gaps dd {
  color: #1f2937;
  font-weight: 900;
  text-align: right;
}

.parent-readin-speed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.parent-readin-speed-list div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 4px;
}

.parent-readin-speed-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.parent-readin-speed-list strong {
  color: #1f2937;
  font-size: 14px;
}

.parent-target-speed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.parent-target-speed div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.parent-target-speed span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.parent-target-speed strong {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.2;
}

.parent-speed-note {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.parent-speed-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  scrollbar-gutter: stable both-edges;
}

.parent-speed-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.parent-speed-table .speed-col-program {
  width: 10%;
}

.parent-speed-table .speed-col-title {
  width: 14%;
}

.parent-speed-table .speed-col-value {
  width: 8%;
}

.parent-speed-table .speed-col-target {
  width: 12%;
}

.parent-speed-table .speed-col-band {
  width: 10%;
}

.parent-speed-table .speed-col-judge {
  width: 9%;
}

.parent-speed-table .speed-col-apply {
  width: 21%;
}

.parent-speed-table th,
.parent-speed-table td {
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}

.parent-speed-table tbody th {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-speed-table td:last-child {
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-table-scroll-hint {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

.parent-speed-notes {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
  display: grid;
  gap: 7px;
}

.parent-speed-notes strong {
  color: #344054;
  font-size: 13px;
}

.parent-speed-notes ul {
  margin: 0;
  padding-left: 18px;
}

.parent-speed-notes li {
  margin: 4px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

.speed-benchmark-guide {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.speed-benchmark-guide summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.speed-benchmark-guide summary::-webkit-details-marker {
  display: none;
}

.speed-benchmark-guide summary::after {
  content: "+";
  float: right;
  color: var(--accent-strong);
  font-weight: 900;
}

.speed-benchmark-guide[open] summary::after {
  content: "-";
}

.speed-benchmark-grid {
  border-top: 1px solid #e7edf4;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.speed-benchmark-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.speed-benchmark-grid > div > strong {
  color: #1f2937;
  font-size: 13px;
}

.speed-benchmark-grid .mini-table {
  min-width: 0;
}

.speed-benchmark-grid .mini-table th,
.speed-benchmark-grid .mini-table td {
  padding: 8px;
  font-size: 12px;
}

.speed-benchmark-inline-note {
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
}

.page-density-benchmark {
  border-top: 1px solid #e7edf4;
  padding: 14px 12px;
  display: grid;
  gap: 10px;
  background: #f8fbfa;
}

.page-density-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.page-density-heading > div {
  display: grid;
  gap: 3px;
}

.page-density-heading span,
.page-density-heading p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.page-density-heading strong {
  color: #1f2937;
  font-size: 15px;
}

.page-density-formula,
.page-density-caution {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page-density-formula {
  border-left: 3px solid #138564;
  background: #fff;
  padding: 8px 10px;
  font-weight: 800;
}

.page-density-level-table {
  min-width: 680px;
}

.page-density-level-table th,
.page-density-level-table td,
.page-density-samples .mini-table th,
.page-density-samples .mini-table td {
  padding: 8px;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

.page-density-level-table td:last-child {
  min-width: 190px;
}

.page-density-level-table td small {
  display: block;
  margin-top: 4px;
  color: #667085;
  line-height: 1.4;
}

.density-evidence {
  display: inline-block;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.density-evidence.verified {
  background: #e8f6ef;
  color: #067647;
}

.density-evidence.grade-proxy {
  background: #fff4e5;
  color: #b54708;
}

.page-density-samples {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.page-density-samples summary {
  padding: 10px 12px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.page-density-samples .mini-table-wrap {
  border-top: 1px solid #e7edf4;
  margin: 0;
}

.page-density-samples .mini-table {
  min-width: 760px;
}

.speed-benchmark-source {
  border-top: 1px solid #e7edf4;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfcfe;
}

.speed-benchmark-source > strong {
  color: #1f2937;
  font-size: 13px;
}

.speed-benchmark-source ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.speed-benchmark-source li {
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.speed-reference-head {
  border-top: 1px solid #e7edf4;
  padding-top: 10px;
  display: grid;
  gap: 4px;
}

.speed-reference-head strong {
  color: #1f2937;
  font-size: 13px;
}

.speed-reference-head span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.speed-reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.speed-reference-list a {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.speed-reference-list a:hover {
  border-color: #b8d8cb;
  background: #f7fcfa;
}

.speed-reference-list strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.speed-reference-list span {
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.speed-reference-list em {
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.speed-benchmark-guide > p {
  margin: 0;
  border-top: 1px solid #e7edf4;
  padding: 10px 12px 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.parent-section-lead {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.parent-program-monthly-section {
  background: #fff;
}

.parent-program-monthly-list {
  display: grid;
  gap: 14px;
}

.parent-program-monthly-card {
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.parent-program-monthly-card.good {
  border-left-color: var(--accent);
}

.parent-program-monthly-card.warn {
  border-left-color: var(--amber);
}

.parent-program-monthly-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.parent-program-monthly-head h5 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
}

.parent-program-monthly-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.parent-program-monthly-head span {
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.parent-program-monthly-card.good .parent-program-monthly-head span {
  background: #e9f7ef;
  color: #16803c;
}

.parent-program-monthly-card.warn .parent-program-monthly-head span {
  background: #fff7ed;
  color: #b45309;
}

.parent-program-monthly-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.parent-progress-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.parent-progress-pills span {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.parent-progress-pills strong {
  color: #1f2937;
  font-size: 12px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-program-monthly-summary > div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.parent-program-monthly-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: 13px;
}

.parent-program-monthly-summary ul {
  margin: 0;
  padding-left: 18px;
}

.parent-program-monthly-summary li {
  margin: 4px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

.parent-program-monthly-table-wrap {
  margin-top: 0;
}

.parent-program-monthly-table {
  min-width: 980px;
}

.parent-program-monthly-table th,
.parent-program-monthly-table td {
  text-align: center;
  vertical-align: middle;
}

.parent-month-cell {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.parent-month-cell strong {
  color: #1f2937;
  font-size: 13px;
}

.parent-position-cell {
  display: grid;
  gap: 3px;
  justify-items: center;
  line-height: 1.4;
}

.parent-position-cell strong {
  color: #1f2937;
  font-size: 12px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-position-cell em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-table-delta {
  border-radius: 999px;
  background: #eef2f6;
  color: #667085;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.parent-table-delta.good {
  background: #e9f7ef;
  color: #16803c;
}

.parent-table-delta.warn {
  background: #fff1f0;
  color: var(--danger);
}

.parent-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.parent-report-section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.parent-report-section.focus {
  background: #fffdf9;
  border-color: #f3dfbf;
}

.parent-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.parent-section-title span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef2f6;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.parent-section-title h4,
.parent-message-box h4,
.parent-program-card h4 {
  margin: 0;
  color: #1f2937;
}

.parent-report-section ul,
.parent-report-section ol {
  margin: 0;
  padding-left: 20px;
}

.parent-report-section li {
  margin: 6px 0;
  color: #344054;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.parent-program-card {
  border: 1px solid var(--line-soft);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 9px;
  min-height: 132px;
}

.parent-program-card.good {
  border-left-color: var(--accent);
}

.parent-program-card.warn {
  border-left-color: var(--amber);
}

.parent-program-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.parent-program-card h4 {
  font-size: 15px;
}

.parent-program-card span {
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.parent-program-card.good span {
  background: #e9f7ef;
  color: #16803c;
}

.parent-program-card.warn span {
  background: #fff7ed;
  color: #b45309;
}

.parent-program-card p,
.parent-program-card em {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-program-card em {
  color: var(--muted);
  font-style: normal;
}

.parent-program-progress {
  margin: 0;
  display: grid;
  gap: 6px;
}

.parent-program-progress div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: start;
}

.parent-program-progress dt,
.parent-program-progress dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-program-progress dt {
  color: var(--muted);
  font-weight: 900;
}

.parent-program-progress dd {
  color: #1f2937;
  font-weight: 800;
}

.parent-message-box {
  border: 1px solid #cfe7da;
  border-radius: 8px;
  background: #f4fbf7;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.parent-message-box p {
  color: #2f3b45;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.parent-detail-drawer {
  border: 1px solid #dfe8ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.parent-detail-drawer summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  color: #344054;
  font-size: 14px;
  font-weight: 900;
}

.parent-detail-drawer summary::-webkit-details-marker {
  display: none;
}

.parent-detail-drawer summary::after {
  content: "+";
  float: right;
  color: var(--accent-strong);
  font-weight: 900;
}

.parent-detail-drawer[open] summary::after {
  content: "-";
}

.parent-detail-drawer > div {
  border-top: 1px solid #e7edf4;
  padding: 14px;
  display: grid;
  gap: 14px;
  background: #f8fafc;
  min-width: 0;
}

.parent-report {
  max-width: 1120px;
  margin: 0 auto;
  border-color: #d6dee8;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  padding: 26px;
  gap: 20px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.parent-report-toolbar {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.parent-report-toolbar strong {
  font-size: 17px;
}

.parent-report-actions button {
  min-height: 38px;
  border-radius: 8px;
}

.parent-report-header {
  min-height: 190px;
  align-items: stretch;
  border: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22, 95, 71, 0.96), rgba(37, 99, 235, 0.86)),
    #165f47;
  padding: 28px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.parent-report-header p,
.parent-report-header h3,
.parent-report-header span,
.parent-report-header dt,
.parent-report-header dd {
  color: #fff;
}

.parent-report-header p {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}

.parent-report-header h3 {
  margin-top: 18px;
  max-width: 680px;
  font-size: 34px;
}

.parent-report-header span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.parent-report-header dl {
  align-self: stretch;
  min-width: 240px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 16px;
  align-content: center;
}

.parent-report-header dl div {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.parent-report-header dt {
  color: rgba(255, 255, 255, 0.7);
}

.parent-summary-grid {
  gap: 12px;
}

.parent-metric {
  min-height: 136px;
  border-left: 0;
  border-top: 4px solid #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.parent-metric.good {
  border-top-color: var(--accent);
}

.parent-metric.warn {
  border-top-color: var(--amber);
}

.parent-metric strong {
  font-size: 24px;
}

.parent-core-summary {
  gap: 12px;
}

.parent-core-card {
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.parent-simple-section,
.parent-report-section,
.parent-message-box {
  border-color: #dde5ef;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.parent-simple-section {
  background: #fff;
}

.parent-simple-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.parent-simple-table thead th {
  background: #f1f5f9;
  color: #344054;
}

.parent-simple-table tbody th {
  background: #f8fafc;
}

.parent-simple-table tbody tr + tr th,
.parent-simple-table tbody tr + tr td {
  border-top: 1px solid #e7edf4;
}

.parent-section-title {
  align-items: flex-start;
}

.parent-section-title span {
  flex: 0 0 auto;
  background: #e8f6f1;
  color: var(--accent-strong);
}

.parent-program-grid {
  gap: 12px;
}

.parent-program-card {
  border-left-width: 0;
  border-top: 4px solid #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.parent-program-card.good {
  border-top-color: var(--accent);
}

.parent-program-card.warn {
  border-top-color: var(--amber);
}

.parent-message-box {
  background:
    linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
  padding: 18px;
}

.parent-message-box h4 {
  color: var(--accent-strong);
}

@media print {
  body {
    background: #fff;
  }

  .app {
    width: 100%;
    padding: 0;
  }

  .topbar,
  .toolbar,
  .workspace,
  .table-wrap,
  .reading-head,
  .report-tab-list,
  .section-title,
  .parent-report-toolbar,
  .parent-edit-hint {
    display: none !important;
  }

  .print-choice-dialog,
  .update-notice-dialog {
    display: none !important;
  }

  #readingPanel,
  .parent-report,
  .report-pane {
    border: 0 !important;
    box-shadow: none !important;
  }

  .report-pane:not([data-report-pane="parentReport"]) {
    display: none !important;
  }

  .parent-report {
    max-width: none;
    padding: 0;
    background: #fff;
  }

  .parent-report.is-editing .report-editable {
    outline: 0 !important;
    background: transparent !important;
  }

  .parent-report-header,
  .parent-metric,
  .parent-core-card,
  .parent-visual-section,
  .curriculum-diagnosis-panel,
  .parent-chart-card,
  .parent-speed-section,
  .parent-speed-card,
  .parent-program-monthly-card,
  .parent-report-section,
  .parent-program-card,
  .parent-message-box {
    break-inside: avoid;
  }

  .parent-report-header {
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid #d6dee8 !important;
    box-shadow: none !important;
  }

  .parent-report-header p,
  .parent-report-header h3,
  .parent-report-header span,
  .parent-report-header dt,
  .parent-report-header dd {
    color: #111827 !important;
  }

  .parent-report-header dl {
    background: #f8fafc !important;
  }
}

/* Analysis language and state hierarchy */
.usage-criteria {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-criteria article strong {
  color: #22332d;
}

.program-material-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-analysis-context {
  margin: -2px 0 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.program-head .program-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.program-head .program-state.good {
  border-color: #b7ddcc;
  background: #edf8f3;
  color: #17624c;
}

.program-head .program-state.check {
  border-color: #c8d8ec;
  background: #f2f6fc;
  color: #315d8a;
}

.parent-detail-drawer > div > .parent-report-section:first-child {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .program-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .usage-criteria {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .program-material-grid {
    grid-template-columns: 1fr;
  }
}

/* Date-scoped Readin activity imported from the source step=3 filter. */
.readin-period-activity {
  grid-column: 1 / -1;
  overflow: hidden;
}

.detail-loading.compact {
  min-height: 112px;
  border: 0;
}

.period-activity-summary > div:last-child strong {
  font-size: 13px;
  line-height: 1.5;
}

.period-activity-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  align-self: start;
  height: fit-content;
  min-height: 0;
  margin-top: 2px;
}

.period-activity-table {
  min-width: 1080px;
  height: auto;
  table-layout: fixed;
}

.period-activity-table thead,
.period-activity-table tbody,
.period-activity-table tr {
  height: auto;
}

.period-activity-table th,
.period-activity-table td {
  height: auto;
  min-height: 0;
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
}

.period-activity-table th:nth-child(1) { width: 11%; }
.period-activity-table th:nth-child(2) { width: 23%; }
.period-activity-table th:nth-child(3) { width: 9%; }
.period-activity-table th:nth-child(4) { width: 12%; }
.period-activity-table th:nth-child(5) { width: 10%; }
.period-activity-table th:nth-child(6) { width: 12%; }
.period-activity-table th:nth-child(7) { width: 10%; }
.period-activity-table th:nth-child(8) { width: 13%; }

.period-activity-table td strong,
.period-activity-table td small {
  display: block;
}

.period-level-comparison {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  background: #fbfdfc;
}

.period-level-comparison-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.period-level-comparison-head h4,
.period-level-comparison-head p {
  margin: 0;
}

.period-level-comparison-head h4 {
  color: #173e32;
  font-size: 15px;
}

.period-level-comparison-head p {
  margin-top: 4px;
  color: #66756f;
  font-size: 12px;
  line-height: 1.55;
}

.period-level-table-wrap {
  overflow-x: auto;
}

.period-level-table {
  min-width: 980px;
  table-layout: fixed;
}

.period-level-table th,
.period-level-table td {
  text-align: center;
  vertical-align: middle;
}

.period-level-table thead th:nth-child(1) { width: 17%; }
.period-level-table thead th:nth-child(2) { width: 11%; }
.period-level-table thead th:nth-child(3),
.period-level-table thead th:nth-child(4) { width: 9%; }
.period-level-table thead th:nth-child(5),
.period-level-table thead th:nth-child(6),
.period-level-table thead th:nth-child(7) { width: 13%; }
.period-level-table thead th:nth-child(8) { width: 11%; }

.period-level-table tbody th strong,
.period-level-table tbody th small {
  display: block;
}

.period-level-table tbody th small {
  margin-top: 4px;
  color: #66756f;
  font-size: 10px;
  font-weight: 700;
}

.period-level-table tr.current th,
.period-level-table tr.current td {
  background: #eef8f3;
}

.period-level-deltas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.period-level-deltas > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  background: #fff;
}

.period-level-deltas span {
  color: #66756f;
  font-size: 11px;
  font-weight: 800;
}

.period-level-deltas strong {
  color: #173e32;
  font-size: 14px;
}

.period-level-note {
  margin: 9px 0 0;
  padding-left: 10px;
  border-left: 3px solid #7cae9b;
  color: #475d55;
  font-size: 12px;
  line-height: 1.55;
}

.period-level-calculation {
  margin: 9px 0 0;
  color: #66756f;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .period-level-comparison-head {
    display: grid;
  }

  .period-level-comparison-head .activity-decision {
    justify-self: start;
  }

  .period-level-deltas {
    grid-template-columns: 1fr;
  }
}

.period-activity-table td strong {
  color: #1d2b26;
  line-height: 1.45;
  word-break: keep-all;
}

.period-activity-table td small {
  margin-top: 3px;
  color: #77827d;
  font-size: 10px;
}

/* Student report period selector */
.report-period-control {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(540px, 1.6fr);
  gap: 12px 24px;
  align-items: center;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #d7e1dc;
  background: #f8faf9;
}

.report-period-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-period-summary span,
.report-period-custom label span {
  color: #66736e;
  font-size: 12px;
  font-weight: 700;
}

.report-period-summary strong {
  color: #1d2b26;
  font-size: 17px;
  line-height: 1.35;
}

.report-period-summary em {
  color: #17624c;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.report-period-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.report-period-presets {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #d7e1dc;
  border-radius: 7px;
  background: #eef3f1;
}

.report-period-presets button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #596760;
  box-shadow: none;
  white-space: nowrap;
}

.report-period-presets button:hover,
.report-period-presets button.active {
  background: #fff;
  color: #17624c;
  box-shadow: 0 1px 4px rgba(27, 52, 43, 0.1);
  transform: none;
}

.report-period-custom {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.report-period-custom label {
  display: grid;
  gap: 4px;
}

.report-period-custom input {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cbd8d2;
  border-radius: 5px;
  background: #fff;
  color: #26332e;
  font: inherit;
}

.report-period-custom i {
  align-self: center;
  padding-top: 16px;
  color: #7b8782;
  font-style: normal;
}

.report-period-custom button {
  min-width: 66px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
}

.report-period-note,
.report-period-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.report-period-note {
  color: #6b7772;
}

.report-level-change {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #efc58f;
  border-left: 4px solid #c76b16;
  border-radius: 8px;
  background: #fff8ed;
}

.report-level-change.selected {
  border-color: #add1c2;
  border-left-color: #23795f;
  background: #f1f8f5;
}

.report-level-change-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-level-change-copy strong {
  color: #7a3d0b;
  font-size: 14px;
}

.report-level-change.selected .report-level-change-copy strong {
  color: #17624c;
}

.report-level-change-copy span {
  color: #34463f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.report-level-change-copy p {
  margin: 0;
  color: #69766f;
  font-size: 11px;
  line-height: 1.5;
}

.report-level-options {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.report-level-options button {
  min-width: 138px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid #d7c4aa;
  border-radius: 8px;
  background: #fff;
  color: #45544e;
  box-shadow: none;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
}

.report-level-options button:hover,
.report-level-options button.active {
  border-color: #23795f;
  background: #e9f5f0;
  color: #17624c;
  transform: none;
}

.report-level-options button strong {
  font-size: 14px;
}

.report-level-options button small {
  color: #738078;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.within-period-level-comparison {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(80, 111, 99, 0.2);
}

.within-period-level-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.within-period-level-head > div {
  display: grid;
  gap: 3px;
}

.within-period-level-head strong {
  color: #263b33;
  font-size: 13px;
}

.within-period-level-head span {
  color: #69766f;
  font-size: 11px;
  line-height: 1.5;
}

.within-period-level-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e4df;
  border-radius: 7px;
  background: #fff;
}

.within-period-level-table {
  min-width: 1060px;
  table-layout: fixed;
}

.within-period-level-table th,
.within-period-level-table td {
  padding: 9px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 11px;
}

.within-period-level-table thead th:nth-child(1) { width: 9%; }
.within-period-level-table thead th:nth-child(2) { width: 17%; }
.within-period-level-table thead th:nth-child(3),
.within-period-level-table thead th:nth-child(4) { width: 8%; }
.within-period-level-table thead th:nth-child(5) { width: 11%; }
.within-period-level-table thead th:nth-child(6) { width: 15%; }
.within-period-level-table thead th:nth-child(7),
.within-period-level-table thead th:nth-child(8) { width: 11%; }
.within-period-level-table thead th:nth-child(9) { width: 10%; }

.within-period-level-table td strong,
.within-period-level-table td small,
.within-period-level-table th strong,
.within-period-level-table th small {
  display: block;
}

.within-period-level-table td small,
.within-period-level-table th small {
  margin-top: 3px;
  color: #66756f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.within-period-level-table .current-level-label {
  width: max-content;
  margin: 4px auto 0;
  border-radius: 999px;
  background: #d9f1e5;
  color: #176044;
  padding: 2px 6px;
}

.within-period-level-table .level-speed-unavailable {
  color: #7a8580;
  font-weight: 800;
}

.within-period-level-table tr.current th,
.within-period-level-table tr.current td {
  background: #eef8f3;
}

.within-period-level-deltas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.within-period-level-deltas > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d9e4df;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
}

.within-period-level-deltas span {
  color: #6b7772;
  font-size: 10px;
  font-weight: 800;
}

.within-period-level-deltas strong {
  color: #183d32;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.within-period-level-note {
  margin: 8px 0 0;
  color: #5e6e67;
  font-size: 11px;
  line-height: 1.55;
}

.readin-level-selection-empty {
  min-height: 120px;
  border: 1px dashed #dfb678;
  border-radius: 8px;
  background: #fffaf2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
}

.readin-level-selection-empty strong {
  color: #7a3d0b;
  font-size: 15px;
}

.readin-level-selection-empty span {
  color: #69766f;
  font-size: 12px;
  line-height: 1.5;
}

.report-period-error {
  min-height: 0;
  color: #b23a32;
  font-weight: 700;
}

.report-period-error:empty {
  display: none;
}

@media (max-width: 1120px) {
  .report-period-control {
    grid-template-columns: 1fr;
  }

  .report-period-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .report-level-change {
    grid-template-columns: 1fr;
  }

  .report-level-options {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .report-period-control {
    padding: 16px;
  }

  .report-period-actions,
  .report-period-presets,
  .report-period-custom {
    width: 100%;
  }

  .report-period-presets button {
    flex: 1 1 0;
    padding: 0 7px;
  }

  .report-period-custom {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .report-period-custom button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .report-level-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .report-level-options button {
    min-width: 0;
    width: 100%;
  }

  .within-period-level-head {
    display: grid;
  }

  .within-period-level-head .activity-decision {
    justify-self: start;
  }

  .within-period-level-deltas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .within-period-level-deltas {
    grid-template-columns: 1fr;
  }
}

@media print {
  .report-period-control {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .page-density-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .parent-speed-table {
    width: 880px;
    min-width: 880px;
  }

  .access-gate {
    width: min(100% - 24px, 720px);
    padding-top: 12px;
  }

  .site-header,
  .topbar,
  .toolbar,
  .admin-head,
  .admin-auth {
    display: grid;
    align-items: start;
  }

  .workspace,
  .sync-workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 10px;
  }

  .home-copy h1 {
    font-size: 36px;
  }

  .home-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .home-section,
  .access-card,
  .admin-panel,
  .sync-panel {
    padding: 18px;
  }

  .sync-panel-head {
    display: grid;
  }

  .sync-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-guide-grid,
  .usage-criteria,
  .privacy-grid,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-details dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    min-width: 0;
  }

  .reading-head,
  .reading-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .growth-summary {
    grid-template-columns: 1fr;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }

  .book-summary-grid {
    grid-template-columns: 1fr;
  }

  .guidance-priority,
  .guidance-grid,
    .guidance-plan-grid,
    .guidance-columns,
    .program-material-grid,
    .coaching-flow,
    .coaching-visual-grid,
    .readin-dimension-grid,
    .activity-summary-grid,
    .activity-area-grid,
    .activity-decision-panel,
    .activity-method-grid,
    .comparison-summary-grid,
    .score-guide-grid,
    .parent-summary-grid,
    .parent-core-summary,
    .parent-visual-grid,
    .curriculum-card-grid,
    .curriculum-two-column,
    .parent-speed-grid,
    .speed-benchmark-grid,
    .parent-readin-speed-list,
    .parent-progress-pills,
    .parent-program-monthly-summary,
    .parent-report-grid,
    .parent-program-grid,
    .speed-reference-list,
    .home-card-grid,
    .privacy-grid,
    .print-choice-grid {
    grid-template-columns: 1fr;
  }

  .update-notice-head {
    padding: 24px 60px 22px 22px;
  }

  .activity-area-head {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-area-head .activity-decision {
    align-self: flex-start;
  }

  .update-notice-head h2 {
    font-size: 20px;
  }

  .update-notice-list {
    padding: 6px 22px 0;
  }

  .update-notice-list article {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 0;
  }

  .update-notice-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 15px 22px 20px;
  }

  .update-notice-actions button {
    width: 100%;
  }

  .parent-report-header,
  .parent-report-toolbar {
    display: grid;
    align-items: start;
  }

  .parent-report {
    padding: 16px;
  }

  .parent-report-header {
    min-height: 0;
    padding: 20px;
  }

  .parent-report-header h3 {
    font-size: 27px;
  }

  .parent-report-header dl {
    min-width: 0;
    width: 100%;
  }

  .coaching-flow-card::after {
    display: none;
  }

  .listening-theme-head {
    display: grid;
  }

  .listening-theme-stats {
    justify-content: flex-start;
  }

  .activity-session-table-wrap {
    overflow: visible;
  }

  .activity-session-table,
  .activity-session-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .activity-session-table thead {
    display: none;
  }

  .activity-session-table tr {
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
  }

  .activity-session-table td,
  .activity-session-table td:nth-child(n) {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    width: auto;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 12px;
    text-align: left;
  }

  .activity-session-table td:last-child {
    border-bottom: 0;
  }

  .activity-session-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.45;
  }

  .activity-cell-value {
    min-width: 0;
    color: #344054;
    line-height: 1.45;
  }

  .activity-session-table td > .activity-cell-value > small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
  }

  .activity-session-table .activity-set-list {
    justify-content: flex-start;
  }
}

/* Editorial data-report design system, inspired by contemporary report and
   professional-service work featured by Awwwards. */
:root {
  --ink: #10201a;
  --muted: #5e6964;
  --line: #cfd7d2;
  --line-soft: #e3e8e4;
  --bg: #edf1ed;
  --panel: #ffffff;
  --panel-soft: #f5f7f4;
  --accent: #176b4d;
  --accent-strong: #0c5139;
  --signal: #c8f560;
  --signal-soft: #efffd0;
  --blue: #265fb5;
  --blue-soft: #edf4ff;
  --amber: #a95f18;
  --amber-soft: #fff5e9;
  --rose: #ae3e53;
  --violet: #6553a2;
  --teal-soft: #e7f5ee;
  --danger: #a8322b;
  --shadow-sm: 0 2px 8px rgba(16, 32, 26, 0.05);
  --shadow-md: 0 18px 48px rgba(16, 32, 26, 0.11);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  border-color: var(--line);
  background: #f3f5f3;
}

button.secondary:hover {
  border-color: #aeb9b2;
  background: #e9edea;
}

input,
select,
textarea {
  min-height: 44px;
  border-color: #bcc7c0;
  border-radius: 5px;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(23, 107, 77, 0.13);
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-gate {
  width: min(1360px, calc(100% - 32px));
  gap: 0;
  padding: 0 0 72px;
}

.site-header {
  top: 0;
  border: 0;
  border-radius: 0 0 6px 6px;
  background: var(--ink);
  padding: 12px 18px;
  box-shadow: none;
  backdrop-filter: none;
}

.site-brand {
  color: #fff;
}

.site-brand span {
  border: 1px solid var(--signal);
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
  padding: 7px 10px;
}

.site-brand strong {
  color: #fff;
  font-size: 15px;
}

.site-header nav {
  gap: 2px;
}

.site-header nav a,
.site-header .nav-admin {
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.74);
  padding: 9px 12px;
}

.site-header nav a:hover,
.site-header .nav-admin:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.home-hero {
  position: relative;
  min-height: 560px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  background: #f8faf7;
  padding: 48px;
  overflow: hidden;
  align-items: stretch;
}

.home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 63%;
  width: 1px;
  background: var(--line);
}

.home-copy {
  z-index: 1;
  align-content: center;
  max-width: 700px;
}

.home-copy h1 {
  max-width: 680px;
  color: var(--ink);
  font-size: 60px;
  font-weight: 900;
  line-height: 1.04;
}

.home-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: #48554f;
  font-size: 17px;
  line-height: 1.7;
}

.home-points {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.home-points span {
  flex: 1 1 150px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  text-align: center;
}

.home-points span:last-child {
  border-right: 0;
}

.access-card {
  z-index: 1;
  align-self: center;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 30px;
  box-shadow: 0 20px 46px rgba(16, 32, 26, 0.18);
}

.access-card .eyebrow {
  color: var(--signal);
}

.access-card h2 {
  color: #fff;
  font-size: 25px;
}

.access-card p,
.access-card label {
  color: rgba(255, 255, 255, 0.72);
}

.access-card input {
  border-color: rgba(255, 255, 255, 0.24);
  background: #fff;
  color: var(--ink);
}

.access-card button {
  width: 100%;
  min-height: 48px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 900;
}

.access-card button:hover {
  background: #b4e747;
}

.home-section {
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 42px 0;
}

.section-heading {
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.section-heading .eyebrow {
  padding-top: 7px;
}

.section-heading h2 {
  max-width: 780px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
}

.home-card-grid,
.privacy-grid,
.usage-guide-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-card-grid article,
.privacy-grid article,
.usage-guide-grid article {
  min-height: 190px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
  padding: 22px;
}

.home-card-grid article:last-child,
.privacy-grid article:last-child,
.usage-guide-grid article:last-child {
  border-right: 0;
}

.home-card-grid article > strong,
.usage-guide-grid article > span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.usage-criteria {
  gap: 12px;
}

.usage-criteria article {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.criteria-pills {
  gap: 6px;
}

.criteria-pills span {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #4a5751;
}

.criteria-pills span.good {
  border-color: #9dcab5;
  background: var(--teal-soft);
}

.criteria-pills span.warn {
  border-color: #e3bb8f;
  background: var(--amber-soft);
}

.criteria-pills span.danger {
  border-color: #d9a7ae;
  background: #fff1f2;
}

.privacy-section {
  margin-bottom: 0;
}

.admin-panel {
  margin-top: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.app {
  width: min(1520px, calc(100% - 28px));
  padding: 14px 0 56px;
}

.topbar {
  position: relative;
  min-height: 112px;
  margin-bottom: 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: var(--ink);
  color: #fff;
  padding: 22px 24px 22px 32px;
  box-shadow: none;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 16px;
  width: 4px;
  background: var(--signal);
}

.topbar h1 {
  color: #fff;
  font-size: 28px;
}

.topbar p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.owner-badge {
  border: 0;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
}

.topbar .secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.topbar .secondary:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.toolbar {
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  padding: 14px;
}

.toolbar .search {
  align-content: end;
}

.toolbar .summary {
  min-width: 112px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 16px;
  box-shadow: none;
}

.toolbar .summary strong {
  color: var(--ink);
  font-size: 25px;
}

.sync-workspace {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 12px;
}

.panel {
  border-radius: 6px;
  box-shadow: none;
}

.sync-panel {
  position: relative;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 28px;
  overflow: hidden;
}

.sync-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 5px;
  background: var(--signal);
}

.sync-panel .eyebrow {
  color: var(--signal);
}

.sync-panel h2 {
  color: #fff;
  font-size: 25px;
}

.sync-panel .hint,
.sync-panel .result,
.sync-panel label {
  color: rgba(255, 255, 255, 0.7);
}

.sync-security-badge {
  border: 1px solid rgba(200, 245, 96, 0.44);
  border-radius: 4px;
  background: rgba(200, 245, 96, 0.08);
  color: var(--signal);
}

.sync-process {
  counter-reset: syncStep;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.sync-process span {
  counter-increment: syncStep;
  min-height: 58px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  place-items: center start;
  padding: 8px 10px 8px 34px;
  text-align: left;
  position: relative;
}

.sync-process span:last-child {
  border-right: 0;
}

.sync-process span::before {
  content: counter(syncStep, decimal-leading-zero);
  position: absolute;
  left: 10px;
  color: var(--signal);
  font-size: 10px;
  font-weight: 900;
}

.sync-panel input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: #fff;
}

.sync-actions button {
  min-height: 54px;
  border: 1px solid var(--signal);
  border-radius: 5px;
  background: var(--signal);
  color: var(--ink);
  box-shadow: none;
}

.sync-actions button:hover {
  border-color: #b4e747;
  background: #b4e747;
}

.sync-notice {
  border-radius: 5px;
  box-shadow: none;
}

.guide-panel {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  background: #fff;
  padding: 24px;
}

.guide-panel h2 {
  color: var(--ink);
  font-size: 21px;
}

.quick-guide-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.quick-guide-list li {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 10px 14px 48px;
}

.quick-guide-list li::before {
  top: 15px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--signal-soft);
  color: var(--ink);
}

.guide-details {
  border-color: var(--line);
  border-radius: 4px;
  background: var(--panel-soft);
}

.guide-details summary {
  color: var(--ink);
}

.table-wrap {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 5px;
  box-shadow: none;
}

.table-wrap table thead th {
  background: #e9eeea;
  color: #39463f;
  font-size: 12px;
  text-transform: uppercase;
}

.table-wrap table tbody tr:nth-child(even) {
  background: #fafbf9;
}

.table-wrap table tbody tr:hover {
  background: var(--signal-soft);
}

.table-wrap button.cell-link {
  color: var(--accent-strong);
  font-weight: 900;
  text-underline-offset: 3px;
}

.reading-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  border-radius: 5px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.reading-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.reading-head h2 {
  color: var(--ink);
  font-size: 24px;
}

.report-tab-list {
  flex-wrap: nowrap;
  gap: 0;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  padding: 4px;
  overflow-x: auto;
  box-shadow: none;
}

.report-tab {
  flex: 0 0 auto;
  min-height: 43px;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.65);
}

.report-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.report-tab.active {
  border: 0;
  background: var(--signal);
  color: var(--ink);
  box-shadow: none;
}

.report-pane {
  gap: 16px;
}

.report-pane > .section-title,
.report-pane > .section-title-inline {
  border-left-color: var(--accent);
}

.guidance-section,
.guidance-priority > div,
.guidance-next,
.guidance-note,
.guidance-card,
.guidance-details,
.area-comparison-panel,
.curriculum-diagnosis-panel,
.coaching-panel,
.program-material-guide,
.icks-report,
.reading-card,
.growth-card,
.score-guide {
  border-radius: 5px;
  box-shadow: none;
}

.guidance-priority > div,
.guidance-next,
.guidance-note,
.guidance-card,
.reading-card,
.growth-card {
  border-color: var(--line);
}

.comparison-summary-card,
.curriculum-card,
.coaching-flow-card,
.readin-dimension-card,
.parent-speed-card,
.parent-chart-card,
.parent-core-card {
  border-radius: 5px;
  box-shadow: none;
}

.mini-table-wrap {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: none;
}

.mini-table thead th {
  background: #e9eeea;
  color: #35423b;
}

.mini-table tbody tr:nth-child(even) {
  background: #fafbf9;
}

.parent-report {
  max-width: 1120px;
  border: 1px solid #bfc9c2;
  border-radius: 5px;
  background: #fff;
  padding: 30px;
  gap: 22px;
  box-shadow: 0 24px 64px rgba(16, 32, 26, 0.11);
}

.parent-report-toolbar {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f1f4f1;
  padding: 13px 14px;
}

.parent-report-toolbar strong {
  color: var(--ink);
}

.parent-report-actions button {
  border-radius: 4px;
}

.parent-report-header {
  position: relative;
  min-height: 210px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 32px;
  box-shadow: none;
  overflow: hidden;
}

.parent-report-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background: var(--signal);
}

.parent-report-header::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 28px;
  width: 34%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.parent-report-header p {
  border: 1px solid rgba(200, 245, 96, 0.48);
  border-radius: 3px;
  color: var(--signal);
}

.parent-report-header h3 {
  color: #fff;
  font-size: 36px;
}

.parent-report-header span {
  color: rgba(255, 255, 255, 0.72);
}

.parent-report-header dl {
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.parent-summary-grid {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.parent-metric {
  min-height: 132px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.parent-metric:last-child {
  border-right: 0;
}

.parent-metric.good {
  background: #f8fbf9;
}

.parent-metric.warn {
  background: #fffaf3;
}

.parent-section-title {
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.parent-section-title > span {
  width: 31px;
  height: 31px;
  border-radius: 3px;
  background: var(--signal);
  color: var(--ink);
}

.parent-report-section,
.parent-simple-section,
.parent-visual-section,
.parent-message-box {
  border-color: var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.parent-report-section.focus {
  border-top: 4px solid var(--accent);
}

.parent-simple-table thead th,
.parent-speed-table thead th,
.parent-trend-table thead th {
  background: #e9eeea;
  color: #35423b;
}

.parent-simple-table tbody th,
.parent-speed-table tbody th,
.parent-trend-table tbody th {
  background: #f5f7f4;
}

.parent-speed-bar {
  background: #e6ebe7;
}

.parent-speed-bar.student b {
  background: var(--accent);
}

.parent-speed-bar.grade b {
  background: var(--blue);
}

.parent-speed-bar.level b {
  background: #7c8580;
}

.parent-message-box {
  border-left: 5px solid var(--accent);
  background: #f3f8f5;
}

.print-choice-dialog {
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.print-choice-box {
  border-top: 5px solid var(--signal);
}

@media (prefers-reduced-motion: no-preference) {
  .reading-panel:not([hidden]),
  .report-pane:not([hidden]) > :first-child,
  .sync-notice:not([hidden]) {
    animation: editorial-rise 220ms ease-out both;
  }

  @keyframes editorial-rise {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .access-gate {
    width: min(100% - 18px, 720px);
    padding-top: 0;
  }

  .site-header {
    position: relative;
    display: grid;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-header nav a,
  .site-header .nav-admin {
    flex: 0 0 auto;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .home-hero::after {
    display: none;
  }

  .home-copy h1 {
    font-size: 42px;
  }

  .access-card {
    padding: 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .home-card-grid,
  .privacy-grid,
  .usage-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-card-grid article,
  .privacy-grid article,
  .usage-guide-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-card-grid article:last-child,
  .privacy-grid article:last-child,
  .usage-guide-grid article:last-child {
    border-bottom: 0;
  }

  .app {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .search {
    grid-column: 1 / -1;
  }

  .toolbar .summary {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .sync-workspace {
    grid-template-columns: 1fr;
  }

  .sync-panel {
    padding: 22px;
  }

  .sync-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sync-process span:nth-child(2) {
    border-right: 0;
  }

  .sync-process span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .reading-panel {
    padding: 14px;
  }

  .report-tab-list {
    flex-wrap: nowrap;
  }

  .parent-report {
    border: 0;
    padding: 14px;
  }

  .parent-report-header {
    min-height: 0;
    padding: 24px;
  }

  .parent-report-header h3 {
    font-size: 29px;
  }

  .parent-summary-grid {
    grid-template-columns: 1fr;
  }

  .parent-metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .parent-metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .home-copy h1 {
    font-size: 34px;
  }

  .home-hero {
    padding: 20px;
  }

  .home-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .topbar {
    padding: 20px 16px 20px 28px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .owner-badge {
    grid-column: 1 / -1;
  }

  .sync-panel-head {
    display: grid;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .parent-report {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .parent-report-header {
    border-radius: 0 !important;
    background: var(--ink) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .parent-report-header::before,
  .parent-section-title > span {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Refined education analytics visual system */
:root {
  --ink: #1d2b27;
  --muted: #64716d;
  --line: #d9e2de;
  --line-soft: #e9efec;
  --bg: #f3f6f5;
  --panel: #ffffff;
  --panel-soft: #f7f9f8;
  --accent: #17624c;
  --accent-strong: #0f4f3c;
  --signal: #d7a842;
  --signal-soft: #fff7e4;
  --blue: #3568ad;
  --blue-soft: #edf4ff;
  --amber: #a96917;
  --amber-soft: #fff5e5;
  --rose: #a8465a;
  --violet: #6657a4;
  --teal-soft: #eaf5f0;
  --danger: #a6423b;
  --shadow-sm: 0 3px 12px rgba(27, 52, 43, 0.06);
  --shadow-md: 0 16px 42px rgba(27, 52, 43, 0.1);
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
}

button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button.secondary {
  border-color: #cbd7d2;
  background: #fff;
  color: #33443e;
}

button.secondary:hover {
  border-color: #9fb4ab;
  background: #f4f8f6;
  color: var(--accent-strong);
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #cdd8d3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 52, 43, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4e8a75;
  outline: 3px solid rgba(23, 98, 76, 0.12);
  box-shadow: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-gate,
.app {
  width: min(1480px, calc(100% - 40px));
  margin: 20px auto 56px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 70px;
  padding: 12px 18px;
  border: 1px solid rgba(204, 216, 211, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(27, 52, 43, 0.08);
  backdrop-filter: blur(14px);
}

.site-brand {
  color: var(--ink);
}

.site-brand span {
  min-width: 70px;
  padding: 9px 12px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.site-brand strong {
  display: block;
  font-size: 17px;
}

.site-header nav {
  gap: 6px;
}

.site-header nav a,
.site-header .nav-admin {
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #53625d;
  font-size: 13px;
  font-weight: 700;
}

.site-header nav a:hover,
.site-header .nav-admin:hover {
  background: #edf4f1;
  color: var(--accent);
  transform: none;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  min-height: 540px;
  margin-top: 18px;
  padding: 62px;
  gap: 56px;
  border: 1px solid #d7e2dd;
  border-radius: 8px;
  background: #eaf3ef;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent);
}

.home-hero::after {
  display: none;
}

.home-copy {
  align-self: center;
}

.home-copy .eyebrow {
  display: inline-flex;
  justify-self: start;
  width: auto;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
}

.home-copy h1 {
  max-width: 760px;
  margin: 20px 0;
  color: #17362d;
  font-size: 48px;
  line-height: 1.16;
  font-weight: 800;
}

.home-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #52635d;
  font-size: 17px;
  line-height: 1.8;
}

.home-points {
  border: 0;
  gap: 8px;
}

.home-points span {
  padding: 10px 12px;
  border: 1px solid #cbdad4;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #40524b;
}

.access-card {
  align-self: center;
  padding: 34px;
  gap: 22px;
  border: 1px solid #d2ded9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.access-card::before {
  display: none;
}

.access-card h2 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 28px;
}

.access-card p,
.access-card label {
  color: #65736e;
}

.access-card input {
  border-color: #cbd7d2;
  background: #f9fbfa;
  color: var(--ink);
}

.access-card button {
  background: var(--accent);
  color: #fff;
}

.home-section {
  margin-top: 18px;
  padding: 54px 48px;
  border: 1px solid #dae3df;
  border-radius: 8px;
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 30px;
}

.home-card-grid,
.usage-guide-grid {
  gap: 14px;
}

.home-card-grid article,
.usage-guide-grid article,
.privacy-grid article,
.usage-criteria article {
  border: 1px solid #dce5e1;
  border-radius: 7px;
  background: #f9fbfa;
  box-shadow: none;
}

.home-card-grid article {
  padding: 28px;
}

.home-card-grid article > strong,
.usage-guide-grid article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e6f2ed;
  color: var(--accent);
  font-size: 13px;
}

.usage-guide-grid article {
  border-top: 3px solid #7ca795;
}

.usage-guide-grid article:nth-child(2) {
  border-top-color: #6588bc;
}

.usage-guide-grid article:nth-child(3) {
  border-top-color: #c79a43;
}

.usage-guide-grid article:nth-child(4) {
  border-top-color: #8a73ad;
}

.usage-criteria {
  gap: 14px;
}

.criteria-pills span {
  border-radius: 5px;
}

.privacy-section {
  background: #f8faf9;
}

.admin-panel {
  border: 1px solid #d4dfda;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.topbar {
  position: relative;
  min-height: 112px;
  padding: 25px 30px 25px 36px;
  gap: 24px;
  border: 1px solid #d6e0dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.topbar h1 {
  color: var(--ink);
  font-size: 27px;
}

.topbar p {
  color: #65736e;
}

.topbar .secondary {
  border-color: #ced9d4;
  background: #f8faf9;
  color: #3e5049;
}

.owner-badge {
  border: 1px solid #cce0d7;
  border-radius: 5px;
  background: #eaf5f0;
  color: var(--accent-strong);
}

.toolbar {
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid #dbe4e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.toolbar .search input {
  background: #f7f9f8;
}

.summary {
  min-width: 90px;
  padding: 8px 14px;
  border-left: 1px solid #dfe7e3;
}

.summary strong {
  color: var(--accent);
}

.sync-workspace {
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
  gap: 14px;
  margin-top: 14px;
}

.sync-workspace .panel {
  border: 1px solid #d8e2dd;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.sync-panel {
  padding: 30px;
  background: #fff;
  color: var(--ink);
}

.sync-panel::after {
  display: none;
}

.sync-panel h2 {
  color: var(--ink);
  font-size: 25px;
}

.sync-panel .hint,
.sync-panel label {
  color: #65736e;
}

.sync-security-badge {
  border: 1px solid #c6ddd3;
  border-radius: 5px;
  background: #edf7f2;
  color: var(--accent);
}

.sync-process {
  overflow: hidden;
  border: 1px solid #dce5e1;
  border-radius: 6px;
  background: #f8faf9;
}

.sync-process span {
  position: relative;
  min-height: 58px;
  padding: 20px 10px 15px 34px;
  border-color: #dce5e1;
  color: #53635d;
}

.sync-process span::before {
  position: absolute;
  left: 12px;
  top: 19px;
  color: var(--accent);
}

.sync-panel input {
  background: #f9fbfa;
}

.sync-actions button {
  background: var(--accent);
  color: #fff;
}

.guide-panel {
  padding: 30px;
  background: #f7faf8;
}

.guide-panel h2 {
  font-size: 23px;
}

.quick-guide-list {
  border-top: 1px solid #dbe4df;
}

.quick-guide-list li {
  border-bottom: 1px solid #dbe4df;
}

.quick-guide-list li::before {
  background: #e6f2ed;
  color: var(--accent);
}

.guide-details {
  border: 1px solid #d7e1dc;
  border-radius: 6px;
  background: #fff;
}

.table-wrap {
  margin-top: 14px;
  border: 1px solid #d8e2dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.table-wrap table {
  border-top: 0;
}

.table-wrap th {
  height: 52px;
  background: #edf3f0;
  color: #43534d;
}

.table-wrap tbody tr:nth-child(even) {
  background: #fafcfb;
}

.table-wrap tbody tr:hover {
  background: #edf6f2;
}

.table-wrap td {
  border-color: #e3e9e6;
}

.table-wrap td button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.reading-panel {
  margin-top: 16px;
  padding: 0;
  border: 1px solid #d4dfda;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.reading-head {
  padding: 24px 28px;
  border-bottom: 1px solid #dce5e1;
  background: #f8faf9;
}

.reading-head h2 {
  font-size: 25px;
}

#readingBody {
  padding: 24px 28px 34px;
}

.student-report-tabs {
  overflow: hidden;
  border: 1px solid #d7e1dc;
  border-radius: 7px;
  background: #fff;
}

.report-tab-list {
  padding: 5px;
  gap: 4px;
  border: 0;
  background: #f1f5f3;
}

.report-tab {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #586660;
}

.report-tab:hover {
  background: #e7efeb;
  color: var(--accent-strong);
  transform: none;
}

.report-tab.active,
.report-tab[aria-selected="true"] {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 5px rgba(27, 52, 43, 0.09);
}

.report-panes {
  padding: 24px 0 0;
}

.report-pane > h2,
.report-pane > .section-title {
  padding-left: 15px;
  border-left: 4px solid var(--accent);
}

.reading-card,
.coaching-panel,
.comparison-coaching,
.icks-report,
.listening-report,
.parent-report-section,
.parent-visual-section {
  border: 1px solid #dbe4e0;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.comparison-summary-grid,
.coaching-flow,
.coaching-insight-grid {
  gap: 12px;
}

.comparison-summary-card,
.coaching-flow-card,
.coaching-insight-tile {
  border: 1px solid #dbe4e0;
  border-radius: 6px;
  background: #f8faf9;
  box-shadow: none;
}

.comparison-summary-card.primary,
.coaching-flow-card:first-child {
  border-top: 3px solid var(--accent);
}

.comparison-summary-card.coverage,
.coaching-flow-card:nth-child(2) {
  border-top: 3px solid var(--blue);
}

.comparison-summary-card.therapy,
.coaching-flow-card:nth-child(3) {
  border-top: 3px solid var(--signal);
}

.coaching-insight-tile,
.coaching-cell-structured,
.coaching-action-box {
  background: #fafcfb;
}

.coaching-step {
  background: var(--accent);
}

.mini-table-wrap,
.reading-table,
.area-comparison-table {
  border: 1px solid #dbe4e0;
  border-radius: 6px;
}

.mini-table th,
.reading-table th {
  background: #edf3f0;
  color: #43534d;
}

.mini-table td,
.reading-table td {
  border-color: #e2e9e6;
}

.parent-report {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #d4dfda;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 52, 43, 0.08);
}

.parent-report-toolbar {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dce5e1;
  border-radius: 6px;
  background: #f7f9f8;
}

.parent-report-header {
  position: relative;
  min-height: 190px;
  padding: 32px;
  border: 1px solid #cbdcd4;
  border-radius: 7px;
  background: #eaf4ef;
  color: var(--ink);
}

.parent-report-header::before {
  inset: 0 auto 0 0;
  width: 6px;
  height: auto;
  background: var(--accent);
}

.parent-report-header::after {
  display: none;
}

.parent-report-header .eyebrow,
.parent-report-header p,
.parent-report-header dt,
.parent-report-header dd,
.parent-report-header span {
  color: #4f625b;
}

.parent-report-header h3 {
  color: #17362d;
  font-size: 34px;
}

.parent-report-header dl {
  border-color: #bcd1c8;
  background: rgba(255, 255, 255, 0.54);
}

.parent-summary-grid {
  margin-top: 14px;
  border: 1px solid #d8e2dd;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.parent-metric {
  min-height: 130px;
  padding: 22px;
  border-color: #dfe7e3;
  background: #fff;
}

.parent-metric:nth-child(2) {
  background: #f3f7fb;
}

.parent-metric:nth-child(3) {
  background: #f5f8f6;
}

.parent-metric:nth-child(4) {
  background: #fff9ed;
}

.parent-metric strong {
  color: var(--ink);
}

.parent-core-summary,
.parent-program-grid,
.parent-visual-grid {
  gap: 12px;
}

.parent-core-card,
.parent-program-card,
.parent-chart-card,
.parent-speed-card {
  border: 1px solid #dbe4e0;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.parent-core-card {
  border-top-width: 3px;
}

.parent-core-card.good {
  border-top-color: var(--accent);
}

.parent-core-card.warn {
  border-top-color: var(--signal);
}

.parent-core-card.danger {
  border-top-color: var(--rose);
}

.parent-section-title {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce5e1;
}

.parent-section-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e6f2ed;
  color: var(--accent);
}

.parent-section-title h4 {
  color: var(--ink);
}

.parent-detail-drawer {
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  background: #fff;
}

.parent-detail-drawer > summary {
  background: #f7f9f8;
  color: #33463f;
}

.parent-message-box {
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  background: #f1f7f4;
}

.print-choice-box {
  border: 1px solid #d5dfdb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .access-gate,
  .app {
    width: min(100% - 24px, 1480px);
    margin-top: 12px;
  }

  .site-header {
    position: static;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px;
    gap: 30px;
  }

  .home-copy h1 {
    max-width: 620px;
    font-size: 39px;
  }

  .access-card {
    width: 100%;
  }

  .home-section {
    padding: 38px 28px;
  }

  .sync-workspace {
    grid-template-columns: 1fr;
  }

  .parent-report {
    padding: 18px;
  }

  .parent-report-header::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .access-gate,
  .app {
    width: min(100% - 16px, 1480px);
  }

  .site-header {
    padding: 12px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-header nav a,
  .site-header .nav-admin {
    flex: 0 0 auto;
  }

  .home-hero {
    padding: 28px 20px;
  }

  .home-copy h1 {
    font-size: 34px;
  }

  .home-points {
    grid-template-columns: 1fr;
  }

  .access-card {
    padding: 26px 22px;
  }

  .topbar,
  .toolbar,
  .sync-panel,
  .guide-panel,
  #readingBody {
    padding-left: 18px;
    padding-right: 18px;
  }

  .report-tab-list {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .report-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .parent-report {
    padding: 10px;
  }

  .parent-report-header {
    padding: 24px 20px;
  }

  .parent-report-header h3 {
    font-size: 28px;
  }
}

@media print {
  .parent-report {
    max-width: none;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .parent-report-header {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    min-height: 180px !important;
    border: 1px solid #bfcfc8 !important;
    background: #eaf4ef !important;
    color: var(--ink) !important;
  }

  .parent-report-header h3 {
    color: #17362d !important;
  }

  .parent-report-header::before {
    background: var(--accent) !important;
  }

  .parent-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .parent-metric {
    min-height: 118px !important;
    border-right: 1px solid #dfe7e3 !important;
    border-bottom: 0 !important;
  }

  .parent-metric:last-child {
    border-right: 0 !important;
  }

  .parent-simple-section .mini-table-wrap,
  .parent-speed-table-wrap {
    overflow: visible !important;
  }

  .parent-simple-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .parent-simple-col-label {
    width: 24% !important;
  }

  .parent-simple-col-state {
    width: 38% !important;
  }

  .parent-simple-col-note {
    width: 38% !important;
  }

  .parent-simple-table th,
  .parent-simple-table td {
    padding: 12px 10px !important;
    font-size: 11px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .parent-speed-section {
    break-inside: auto !important;
  }

  .parent-speed-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .parent-speed-table th,
  .parent-speed-table td {
    padding: 7px 3px !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .parent-speed-table td:last-child {
    font-size: 8px !important;
    line-height: 1.35 !important;
  }

  .parent-speed-table .parent-position-cell strong,
  .parent-speed-table .parent-position-cell em {
    font-size: 8px !important;
  }

  .parent-table-scroll-hint {
    display: none !important;
  }
}

/* Parent report period comparison */
.parent-report-basis-note {
  margin: 10px 2px 0;
  color: #64716c;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.parent-period-comparison {
  margin-top: 14px;
  border: 1px solid #d8e2dd;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.parent-period-comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e1e8e5;
  background: #f6f9f7;
}

.parent-period-comparison-head > div {
  display: grid;
  gap: 3px;
}

.parent-period-comparison-head span {
  color: #17624c;
  font-size: 11px;
  font-weight: 800;
}

.parent-period-comparison-head h4,
.parent-period-comparison-head p {
  margin: 0;
}

.parent-period-comparison-head h4 {
  color: #22332d;
  font-size: 18px;
}

.parent-period-comparison-head p {
  color: #64716c;
  font-size: 12px;
  text-align: right;
}

.parent-period-comparison-head p strong {
  color: #263a33;
}

.parent-period-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.parent-period-metric {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 112px;
  padding: 18px 16px;
  border-right: 1px solid #e2e9e6;
}

.parent-period-metric:last-child {
  border-right: 0;
}

.parent-period-metric span {
  color: #68766f;
  font-size: 12px;
  font-weight: 800;
}

.parent-period-metric strong {
  color: #22332d;
  font-size: 21px;
  line-height: 1.25;
}

.parent-period-metric em {
  color: #77827d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  word-break: keep-all;
}

.parent-period-metric.good strong,
.parent-period-metric.good em {
  color: #16724f;
}

.parent-period-metric.warn strong,
.parent-period-metric.warn em {
  color: #a45118;
}

.parent-period-comparison-note {
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid #e8eeeb;
  background: #fbfcfc;
  color: #68766f;
  font-size: 12px;
}

@media (max-width: 980px) {
  .parent-period-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-period-metric {
    border-bottom: 1px solid #e2e9e6;
  }

  .parent-period-metric:nth-child(2n) {
    border-right: 0;
  }

  .parent-period-metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .parent-period-comparison-head {
    display: grid;
    gap: 8px;
  }

  .parent-period-comparison-head p {
    text-align: left;
  }
}

@media print {
  .parent-report-basis-note,
  .parent-period-comparison {
    break-inside: avoid;
  }

  .parent-period-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .parent-period-metric {
    min-height: 96px;
    padding: 12px 10px;
    border-right: 1px solid #e2e9e6 !important;
    border-bottom: 0 !important;
  }

  .parent-period-metric:last-child {
    border-right: 0 !important;
  }
}

/* Parent report reading-speed transfer */
.parent-transfer-section {
  margin-top: 14px;
  padding: 20px;
}

.parent-transfer-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.parent-transfer-basis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.parent-transfer-basis article {
  min-width: 0;
  border: 1px solid #dce5e1;
  border-radius: 6px;
  background: #f8faf9;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.parent-transfer-basis article.ready {
  border-color: #b8d9ca;
  background: #eff8f4;
}

.parent-transfer-basis article.pending {
  border-color: #e8d1b9;
  background: #fff8f1;
}

.parent-transfer-basis span,
.parent-transfer-basis small {
  color: #65736d;
  font-size: 10px;
  line-height: 1.45;
}

.parent-transfer-basis strong {
  color: #20342d;
  font-size: 15px;
  line-height: 1.4;
}

.parent-transfer-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(130px, 0.9fr) 34px minmax(145px, 0.95fr) minmax(190px, 1.25fr);
  align-items: stretch;
  min-width: 0;
  border: 1px solid #dce5e1;
  border-left: 4px solid #8fa49b;
  border-radius: 6px;
  background: #fbfcfc;
  overflow: hidden;
}

.parent-transfer-row.good {
  border-left-color: #187653;
}

.parent-transfer-row.check {
  border-left-color: #2773a9;
}

.parent-transfer-row.warn {
  border-left-color: #b15a1f;
}

.parent-transfer-source,
.parent-transfer-value,
.parent-transfer-result {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 16px;
}

.parent-transfer-source,
.parent-transfer-value {
  border-right: 1px solid #e3eae7;
}

.parent-transfer-source span,
.parent-transfer-value span {
  color: #65736d;
  font-size: 11px;
  font-weight: 800;
}

.parent-transfer-source strong,
.parent-transfer-value strong,
.parent-transfer-result > strong {
  color: #20342d;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.parent-transfer-source p,
.parent-transfer-result p,
.parent-transfer-value small {
  margin: 0;
  color: #67756f;
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
}

.parent-transfer-value.readin {
  background: #f1f7f4;
}

.parent-transfer-three-minute {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid #d6e3dd;
}

.parent-transfer-three-minute > span {
  color: #326650;
}

.parent-transfer-three-minute > strong {
  color: #204c3a;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.parent-transfer-period-average {
  margin-top: 4px !important;
  padding-top: 6px;
  border-top: 1px dashed #c9d9d2;
  color: #326650 !important;
}

.parent-transfer-arrow {
  display: grid;
  place-items: center;
  border-right: 1px solid #e3eae7;
  color: #2773a9;
  font-size: 22px;
  font-weight: 800;
}

.parent-transfer-result {
  justify-items: start;
  background: #fff;
}

.parent-transfer-note {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #8ba69a;
  background: #f5f8f7;
  color: #5f6e68;
  font-size: 11px;
  line-height: 1.55;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .parent-transfer-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .parent-transfer-arrow {
    display: none;
  }

  .parent-transfer-result {
    grid-column: 1 / -1;
    border-top: 1px solid #e3eae7;
  }
}

@media (max-width: 620px) {
  .parent-transfer-section {
    padding: 14px;
  }

  .parent-transfer-row {
    grid-template-columns: 1fr;
  }

  .parent-transfer-basis {
    grid-template-columns: 1fr;
  }

  .parent-transfer-source,
  .parent-transfer-value {
    border-right: 0;
    border-bottom: 1px solid #e3eae7;
  }

  .parent-transfer-result {
    grid-column: auto;
    border-top: 0;
  }
}

@media print {
  .parent-transfer-section,
  .parent-transfer-row {
    break-inside: avoid;
  }

  .parent-transfer-basis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .parent-transfer-section {
    padding: 12px !important;
  }

  .parent-transfer-row {
    grid-template-columns: 1.25fr 0.85fr 22px 0.9fr 1.2fr !important;
  }

  .parent-transfer-source,
  .parent-transfer-value,
  .parent-transfer-result {
    padding: 10px !important;
  }

  .parent-transfer-source strong,
  .parent-transfer-value strong,
  .parent-transfer-result > strong {
    font-size: 11px !important;
  }

  .parent-transfer-source p,
  .parent-transfer-result p,
  .parent-transfer-value small,
  .parent-transfer-note {
    font-size: 8px !important;
  }
}
