@charset "UTF-8";
@font-face {
  font-family: "Source Sans 3";
  src: url("/static/fonts/source-sans-3.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --sc-canvas: #f2f6f4;
  --sc-surface: #ffffff;
  --sc-ink: #263238;
  --sc-ink-soft: #5f6c72;
  --sc-accent: #245d56;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Source Sans 3", "Segoe UI", sans-serif;
  --sc-font-text: var(--sc-font-display);
  --sc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --paper: var(--sc-canvas);
  --white: var(--sc-surface);
  --surface: #f4f7f6;
  --ink: var(--sc-ink);
  --muted: var(--sc-ink-soft);
  --green: var(--sc-accent);
  --green-hover: #194c46;
  --lime: #e8f1ee;
  --line: #dfe5e8;
  --amber: #80561d;
  --danger: #a1322c;
  --radius: 12px;
  font-family: var(--sc-font-text);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  accent-color: var(--green);
  caret-color: var(--green);
}
::selection {
  color: var(--green);
  background: #d5e8e0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
select:disabled {
  opacity: 0.7;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  font-weight: 620;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}
p {
  line-height: 1.6;
  text-wrap: pretty;
}
small,
.small {
  font-size: 14px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.loading {
  padding: 48px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: #fff;
  padding: 12px;
  clip-path: inset(50%);
}
.skip-link:focus {
  top: 12px;
  clip-path: none;
}
.primary,
.secondary,
.danger,
.text-button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms var(--sc-ease-out);
}
.primary:active:not(:disabled),
.secondary:active:not(:disabled),
.text-button:active:not(:disabled),
.choice-action:active:not(:disabled) {
  transform: translateY(1px);
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: var(--green-hover);
}
.secondary {
  background: #fff;
  border-color: #cbd5d9;
  color: var(--ink);
}
.secondary:hover {
  background: var(--surface);
  border-color: #a8b6ba;
}
.danger {
  background: #fff;
  border-color: #dec1bd;
  color: var(--danger);
}
.danger:hover {
  background: #fff2ef;
}
.text-button {
  background: transparent;
  color: var(--green);
  padding: 8px 10px;
}
.text-button:hover {
  background: var(--lime);
}
.full {
  width: 100%;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.25;
  min-width: 0;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lime);
  flex-shrink: 0;
}
.ui-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.auth {
  min-height: 100dvh;
  background: var(--paper);
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: auto;
  padding: 32px 48px;
}
.auth-layout {
  max-width: 1100px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 72px;
  padding: 24px 48px 64px;
}
.auth-intro {
  padding: 32px 0;
}
.auth-intro h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  letter-spacing: -1px;
  max-width: 430px;
  margin-bottom: 16px;
}
.auth-description {
  max-width: 420px;
  font-size: 18px;
  color: var(--muted);
}
.auth-workflow {
  margin: 40px 0 24px;
}
.auth-workflow > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.auth-workflow dt {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.auth-workflow dd {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 370px;
}
.auth-bottom {
  color: var(--muted);
  font-size: 14px;
  max-width: 390px;
}
.auth-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 12px 32px #245d560b;
}
.auth-form h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.auth-form > p {
  font-size: 15px;
  margin-bottom: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #83929a;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #6a757a;
  opacity: 1;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field textarea.quote-input {
  min-height: 76px;
  font-size: 15px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  margin: 16px 0;
}
.check-label input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--green);
}
.auth-footer {
  margin-top: 20px;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.sidebar .brand {
  padding: 0 4px;
  margin-bottom: 40px;
  font-size: 16px;
}
.child-select {
  padding: 0 6px 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.child-select label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.child-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5d9;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 10px;
}
.child-select .text-button {
  font-size: 13px;
  margin-top: 4px;
  padding-left: 0;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 12px;
  text-align: left;
  color: #48575e;
  border-radius: 8px;
  font-size: 15px;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}
.nav button:hover {
  background: #edf0f2;
}
.nav button.active {
  background: var(--green);
  color: var(--sc-accent-ink);
  font-weight: 650;
}
.nav button .ui-icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 6px 0;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.sidebar-bottom .text-button {
  text-align: left;
  padding-left: 0;
}
.account-email {
  font-size: 13px;
}
.workspace {
  padding: 32px clamp(24px, 3.6vw, 56px) 56px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  background: var(--white);
  min-height: 100dvh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.date-label {
  text-transform: capitalize;
}
.local-badge {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.local-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.page-heading > div {
  min-width: 0;
}
.page-heading p {
  max-width: 65ch;
}
.page-heading h1 {
  margin-bottom: 8px;
}
.page-heading p {
  margin: 0;
  font-size: 15px;
}
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 36px;
  align-items: start;
}
.today-main {
  min-width: 0;
}
.today-context {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.section-title h2 {
  margin: 0;
}
.section-title + p {
  margin: 10px 0 0;
}
.plan-duration {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.session-plan {
  border-top: 2px solid var(--green);
  padding-top: 24px;
}
.priority-list {
  counter-reset: concepts;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.priority-item {
  counter-increment: concepts;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.priority-item:last-child {
  border-bottom: 1px solid var(--line);
}
.priority-item::before {
  content: counter(concepts, decimal-leading-zero);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  min-width: 20px;
}
.priority-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.priority-item small {
  color: var(--muted);
  display: block;
  font-size: 14px;
}
.plan-footer {
  display: flex;
  align-items: center;
  gap: 18px;
}
.plan-footer .primary {
  flex-shrink: 0;
}
.plan-footer .helper {
  max-width: 240px;
  margin: 0;
}
.ongoing-info {
  border-left: 2px solid var(--green);
  padding: 12px 16px;
  background: var(--surface);
  margin: 24px 0;
}
.learning-overview {
  margin-top: 44px;
}
.overview-list {
  margin-top: 20px;
}
.overview-group {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.overview-label h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.overview-label > span {
  font-size: 13px;
}
.overview-concepts {
  min-width: 0;
}
.concept-link {
  display: flex;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  width: 100%;
  padding: 10px 8px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.concept-link:hover {
  background: var(--surface);
}
.concept-link small {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  padding: 8px 0;
  margin-bottom: 0;
}
.overview-concepts .empty {
  padding: 6px 8px;
  font-size: 14px;
}
.recent-session {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.session-date {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 12px;
}
.context-section {
  margin-bottom: 32px;
}
.context-section h2 {
  font-size: 18px;
  margin-bottom: 18px;
}
.today-context .text-button {
  padding-left: 0;
  text-align: left;
  font-size: 14px;
}
.week-stats {
  margin: 0 0 12px;
}
.week-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.week-stats dt {
  color: var(--muted);
  font-size: 14px;
}
.week-stats dd {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.panel {
  padding: 24px 0;
  min-width: 0;
}
.panel h2 {
  margin-bottom: 16px;
}
.note {
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface);
  border-left: 2px solid #9cb7b0;
  padding: 12px 14px;
  color: #435d56;
}
.note.warning {
  background: #fcf6eb;
  border-left-color: #b89355;
  color: var(--amber);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 32px 0 16px;
}
.section-heading h2 {
  margin: 0;
}
.progress-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.progress-item strong {
  font-weight: 600;
}
.progress-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.curiosity-quote {
  margin: 16px 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #96b4ac;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.curiosity-quote p {
  margin-bottom: 8px;
}
.curiosity-quote small {
  color: var(--muted);
  font-size: 13px;
}
.badge {
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
  background: var(--lime);
  color: #365d4c;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}
.badge.gap,
.badge.needs_review {
  background: #fcf3e4;
  color: var(--amber);
}
.badge.learning {
  background: #eef2f5;
  color: #456278;
}
.badge.not_tested {
  background: #f0f2f3;
  color: #59656c;
}
.topic-card {
  padding: 0;
  margin-bottom: 32px;
}
.topic-heading {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topic-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
}
.topic-heading .eyebrow {
  margin-bottom: 0;
}
.concept-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.concept-row button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  margin-left: -8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.concept-row button:hover {
  background: var(--surface);
}
.prereq {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.concept-row .meta {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 4px;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar input,
.toolbar select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #83929a;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-item strong {
  font-weight: 600;
}
.history-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.report-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 20px 0 32px;
  gap: 24px;
}
.report-numbers b {
  font-size: 32px;
  font-weight: 600;
  display: block;
  font-variant-numeric: tabular-nums;
}
.report-numbers span {
  font-size: 14px;
  color: var(--muted);
}
.report-section {
  margin: 32px 0;
}
.report-section h2 {
  font-size: 18px;
}
.strategy-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.strategy-row small {
  display: block;
  color: var(--muted);
}
.interest-list {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.interest-tag {
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
}
.interest-tag small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}
.row-grid > .panel + .panel {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.session-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
  gap: 24px;
}
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 400px;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow: auto;
  padding: 4px;
}
.bubble {
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 0 8px 8px;
  max-width: 90%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.6;
}
.bubble.user {
  background: var(--lime);
  align-self: flex-end;
  border-radius: 8px 0 8px 8px;
}
.bubble-label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}
.chat-form {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.chat-form .field {
  margin-bottom: 12px;
}
.chat-form textarea {
  min-height: 90px;
}
.brief-aside {
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.brief-aside ol {
  padding-left: 22px;
}
.brief-aside li {
  padding-left: 4px;
  margin-bottom: 20px;
}
.brief-aside small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.brief-aside h3 {
  font-size: 16px;
  margin-top: 24px;
}
.analysis-card {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 24px 0 8px;
  margin-bottom: 16px;
}
.analysis-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.analysis-card .card-top h3 {
  margin: 0;
  font-size: 18px;
}
.analysis-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
}
.analysis-fields .wide {
  grid-column: 1 / -1;
}
.delete-item {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--danger);
  font-size: 14px;
  padding: 8px 10px;
  min-height: 44px;
}
.delete-item:hover {
  background: #fff2ef;
}
.review-intro {
  max-width: 780px;
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  background: #fff;
  border: 1px solid #83929a;
  box-shadow: 0 4px 16px #26323812;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  z-index: 2;
}
.sticky-actions .field {
  margin: 0;
  max-width: 130px;
}
.goal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 48px;
  padding: 12px 0;
  font-size: 16px;
}
.goal-row input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.goal-row.done {
  text-decoration: line-through;
  color: var(--muted);
}
.observation-row {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.observation-row p {
  margin-bottom: 4px;
}
.settings-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 820px;
}
.settings-section:last-child {
  border: 0;
  margin: 0;
}
.welcome-panel {
  max-width: 850px;
}
.welcome-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.welcome-choice {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.welcome-choice p {
  font-size: 16px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  color: var(--ink);
  background: #fff;
  overflow: auto;
  box-shadow: 0 16px 48px #26323818;
}
dialog[open] {
  animation: dialog-enter 140ms ease-out;
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
dialog::backdrop {
  background: #26323855;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-top h2 {
  font-size: 24px;
  margin: 8px 0 0;
}
.dialog-close {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  padding: 8px 10px;
}
.dialog-close:hover {
  background: var(--surface);
}
.evidence-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.evidence-item blockquote {
  margin: 12px 0;
  border-left: 2px solid #96b4ac;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.evidence-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.facts b {
  font-size: 28px;
  font-weight: 600;
  display: block;
  font-variant-numeric: tabular-nums;
}
.facts small {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(620px, 90vw);
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 20px #26323818;
  z-index: 200;
  font-size: 15px;
  line-height: 1.5;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: var(--danger);
}
.inline-error {
  color: var(--danger);
  font-size: 15px;
}
.data-note {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 18px;
  color: var(--muted);
}
.session-completed {
  background: var(--lime);
  padding: 14px 18px;
  border-left: 2px solid var(--green);
  margin-bottom: 24px;
  font-size: 15px;
}
.helper {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .workspace {
    padding: 24px 28px 48px;
  }
  .today-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .today-context {
    padding-left: 24px;
  }
  .overview-group {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 12px;
  }
  .concept-link {
    display: block;
  }
  .concept-link small {
    display: block;
    text-align: left;
    margin-top: 2px;
  }
  .plan-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .plan-footer .helper {
    max-width: none;
  }
}
@media (max-width: 1000px) {
  .today-layout {
    grid-template-columns: 1fr;
  }
  .today-context {
    border-left: 0;
    padding-left: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .today-context .note {
    grid-column: 1 / -1;
  }
  .session-layout {
    grid-template-columns: 1fr;
  }
  .brief-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .auth-layout {
    gap: 40px;
    padding: 24px 32px 48px;
    margin-top: 24px;
  }
  .auth-panel {
    padding: 28px;
  }
  .concept-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
  }
  .concept-row .prereq {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 6px;
  }
}
@media (max-width: 760px) {
  .auth-header {
    padding: 24px;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 8px 24px 40px;
    gap: 24px;
    max-width: 540px;
  }
  .auth-intro {
    padding: 0;
  }
  .auth-intro h1 {
    font-size: 30px;
    max-width: none;
    margin-bottom: 12px;
  }
  .auth-description {
    font-size: 16px;
    margin: 0;
  }
  .auth-workflow,
  .auth-bottom {
    display: none;
  }
  .auth-panel {
    width: 100%;
    padding: 24px;
  }
  .auth-form > p {
    margin-bottom: 24px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 20px 20px 12px;
    display: block;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin-bottom: 20px;
    padding: 0;
  }
  .child-select {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 0;
    border: 0;
    margin-bottom: 12px;
  }
  .child-select label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .child-select .text-button {
    padding: 8px 10px;
    margin: 0;
  }
  .nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 3px;
    margin: 0 -3px;
  }
  .nav button {
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
  }
  .sidebar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0;
    gap: 12px;
  }
  .account-email {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-bottom .text-button {
    font-size: 13px;
    white-space: nowrap;
    padding: 8px;
  }
  .workspace {
    padding: 20px 20px 40px;
  }
  .topbar {
    font-size: 12px;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
  .local-badge {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .button-row {
    max-width: 100%;
  }
  .today-layout {
    gap: 28px;
  }
  .session-plan {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
  }
  .session-plan .plan-footer {
    order: 1;
    margin-top: 20px;
  }
  .session-plan .priority-list,
  .session-plan .ongoing-info {
    order: 2;
    margin-bottom: 0;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .section-title .text-button {
    font-size: 14px;
    padding: 8px;
  }
  .learning-overview {
    margin-top: 36px;
  }
  .overview-group {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .overview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .overview-label h3 {
    margin: 0;
    font-size: 16px;
  }
  .concept-link {
    display: flex;
    padding: 10px 0;
  }
  .concept-link small {
    text-align: right;
    font-size: 13px;
  }
  .overview-concepts .empty {
    padding: 0;
  }
  .today-context {
    display: block;
  }
  .context-section {
    margin-bottom: 28px;
  }
  .row-grid,
  .welcome-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .row-grid > .panel + .panel {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .panel {
    padding: 20px 0;
  }
  .analysis-fields {
    grid-template-columns: 1fr;
  }
  .analysis-fields .wide {
    grid-column: auto;
  }
  .sticky-actions {
    flex-wrap: wrap;
    bottom: 8px;
    padding: 14px;
    gap: 12px;
  }
  .sticky-actions .primary {
    flex: 1;
  }
  .bubble {
    max-width: 95%;
    font-size: 15px;
    padding: 14px;
  }
  .chat-panel {
    padding: 16px;
  }
  .report-numbers {
    gap: 16px;
  }
  .report-numbers b {
    font-size: 28px;
  }
  .report-numbers span {
    font-size: 13px;
  }
  .history-item {
    align-items: flex-start;
  }
  .history-item .button-row {
    flex-direction: column;
  }
  .history-item .secondary {
    font-size: 14px;
    padding: 8px 12px;
  }
  .toolbar input {
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .topic-heading h2 {
    font-size: 19px;
  }
  .concept-row button {
    font-size: 15px;
  }
  .badge {
    font-size: 12px;
    padding: 4px 6px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-top h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading .button-row,
  .sticky-actions,
  #toast {
    display: none;
  }
  .shell {
    display: block;
  }
  .workspace {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  .report-section {
    break-inside: avoid;
  }
  body {
    background: #fff;
  }
}

.nav[hidden] {
  display: none;
}
.nav-more {
  margin: 8px 0;
}
.nav-more > summary {
  padding: 12px;
  font-size: 14px;
}
.nav-more .nav {
  padding-top: 0;
  border-top: 0;
}
.coach-feedback {
  padding: 16px 20px;
  background: var(--lime);
  border: 1px solid #c1d7ce;
  border-radius: 8px;
  white-space: pre-wrap;
  max-width: 65ch;
}
.learning-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.learning-home-main {
  min-width: 0;
}
.learning-home-main > .learning-section:first-child,
.learning-context > .learning-section:first-child {
  margin-top: 0;
}
.learning-context {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  min-width: 0;
}
.learning-context .section-title {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.learning-context .learning-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.context-actions {
  display: grid;
  gap: 12px;
}
.learning-section {
  margin: 40px 0;
}
.learning-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #dfe5e8);
}
.learning-row > div:first-child {
  min-width: 0;
  flex: 1;
}
.learning-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.resource-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}
.resource-summary > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}
.resource-summary strong {
  font-size: 18px;
  font-weight: 600;
}
.choice-list,
.child-actions {
  display: grid;
  gap: 12px;
}
.choice-action {
  text-align: left;
  min-height: 64px;
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green);
  border-radius: 8px;
  transition:
    background-color 140ms ease,
    transform 140ms var(--sc-ease-out);
}
.choice-action:hover {
  background: #e8f1ee;
}
.child-workspace {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px;
}
.child-sheet {
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px #245d560b;
  min-width: 0;
}
.child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  margin-bottom: 24px;
}
.child-header .brand {
  font-size: 17px;
}
.child-greeting p {
  margin-bottom: 12px;
}
.child-greeting h1 {
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 0;
}
.subject-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 16px 0;
}
.subject-stats dt {
  color: #5f6c72;
  font-size: 14px;
}
.subject-stats dd {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.grade-timeline {
  list-style: none;
  padding: 0;
}
.grade-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #dfe5e8;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  color: #245d56;
  font-weight: 600;
}
.source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow-y: auto;
}
.coach-workspace {
  max-width: 960px;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.coach-turn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  padding-bottom: 24px;
}
.coach-question {
  min-width: 0;
  padding-top: 12px;
}
.coach-question > p {
  margin-bottom: 12px;
}
.coach-question h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.35;
  max-width: 48ch;
  overflow-wrap: anywhere;
}
.answer-sheet {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.answer-sheet .field {
  margin-bottom: 16px;
}
.answer-sheet .field textarea {
  min-height: 120px;
  border-color: #83929a;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
}
.answer-sheet .primary {
  width: auto;
  min-width: 180px;
}
.voice-panel {
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.coach-turn .voice-panel {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #ffffff;
}
.coach-turn .voice-panel .button-row {
  display: grid;
  gap: 8px;
}
.voice-panel .secondary {
  color: var(--green);
}
.voice-panel[data-voice-state="recording"],
.voice-panel[data-voice-state="speaking"] {
  border-color: var(--green);
}
.voice-panel [data-action="voice-record"][aria-pressed="true"] {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.voice-panel [data-action="voice-record"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.voice-panel [data-action="voice-record"][aria-pressed="true"]::before {
  background: currentColor;
}
.voice-panel .check-label {
  margin: 12px 0 0;
}
.voice-panel [role="status"]:empty {
  display: none;
}
.voice-info {
  margin: 8px 0 0;
  font-size: 14px;
}
.voice-info summary {
  padding: 8px 0;
  font-size: 14px;
}
.voice-panel .helper {
  margin-bottom: 0;
}
.voice-panel [hidden] {
  display: none;
}
.coach-secondary {
  justify-content: space-between;
  margin: 16px 0;
}
.child-actions {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
}
.child-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 20px 4px;
}
.choice-copy {
  flex: 1;
  min-width: 0;
}
.choice-title {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
}
.choice-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}
.choice-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.choice-symbol .ui-icon {
  width: 24px;
  height: 24px;
}
.child-actions > .child-choice {
  flex-wrap: wrap;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.child-actions > .child-choice .choice-copy {
  flex-basis: calc(100% - 80px);
}
.child-actions > .child-choice .choice-title {
  font-size: 26px;
}
.child-choice.featured {
  background: var(--green);
  color: var(--sc-accent-ink);
  border-color: var(--green);
}
.child-choice.featured .choice-description {
  color: #e0eee8;
}
.child-other-actions {
  min-width: 0;
}
.child-other-actions .child-choice + .child-choice {
  border-top: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .child-choice:hover {
    background: var(--surface);
  }
  .child-choice.featured:hover {
    background: var(--green-hover);
  }
}
.learning-row details {
  margin-bottom: 0;
}
.learning-section .chat-log {
  max-height: 540px;
}
.sidebar {
  overflow-y: auto;
}
@media (max-width: 1100px) {
  .learning-home-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .learning-context {
    padding: 24px 0 0;
    margin-top: 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .context-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .coach-turn {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .coach-turn .voice-panel .button-row {
    display: flex;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .child-workspace {
    padding: 16px;
  }
  .child-sheet {
    padding: 24px 20px;
  }
  .child-header {
    align-items: flex-start;
    padding: 0;
    margin-bottom: 20px;
  }
  .child-header .brand {
    font-size: 15px;
  }
  .child-header .brand small {
    font-size: 11px;
  }
  .child-header .brand-symbol {
    display: none;
  }
  .child-header .button-row {
    flex-wrap: nowrap;
    gap: 0;
  }
  .child-header .text-button {
    padding: 8px;
    font-size: 14px;
  }
  .child-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .child-actions > .child-choice {
    padding: 24px 16px;
    flex-wrap: nowrap;
  }
  .child-actions > .child-choice .choice-title {
    font-size: 24px;
  }
  .choice-title {
    font-size: 19px;
  }
  .choice-description {
    font-size: 14px;
  }
  .choice-symbol {
    width: 28px;
  }
  .child-choice {
    gap: 12px;
    padding: 18px 0;
  }
  .child-other-actions .child-choice > .ui-icon {
    width: 16px;
    height: 16px;
  }
  .child-greeting p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .learning-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .learning-row .button-row {
    justify-content: flex-start;
  }
  .learning-section {
    margin: 24px 0;
  }
  .coach-question h2 {
    font-size: 24px;
  }
  .coach-turn {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 20px;
  }
  .coach-turn .voice-panel {
    padding: 12px;
  }
  .coach-turn .voice-panel .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .answer-sheet .primary {
    width: 100%;
    min-width: 0;
  }
  .voice-panel .check-label {
    font-size: 14px;
  }
  .subject-stats {
    gap: 20px;
  }
  .subject-stats dd {
    font-size: 24px;
  }
  .coach-secondary {
    flex-direction: column;
    align-items: stretch;
  }
}
.budget-notice {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider, #dfe5e8);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.budget-notice small {
  color: #5f6c72;
}
.budget-notice.low {
  color: #80561d;
}
.budget-notice.exhausted {
  color: #a1322c;
}
