:root {
  --ink: #153c3a;
  --muted: #607776;
  --green: #0d756d;
  --green-dark: #095d57;
  --mint: #dff5ed;
  --mint-2: #bfe9dd;
  --cream: #fff9ed;
  --peach: #ffd9bd;
  --yellow: #ffc857;
  --white: #ffffff;
  --danger: #c94b55;
  --shadow: 0 20px 60px rgba(24, 79, 74, .12);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 200, 87, .14), transparent 20rem),
    linear-gradient(180deg, #f8fffc 0%, #fffdfa 46%, #f1fbf7 100%);
  color: var(--ink);
  font-family: "Tajawal", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; }
button:focus-visible { outline: 4px solid rgba(255, 200, 87, .65); outline-offset: 3px; }
[hidden] { display: none !important; }

.audience-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(9,93,87,.96), rgba(21,60,58,.97));
}
.audience-dialog {
  width: min(720px, 100%);
  padding: 34px;
  border-radius: 32px;
  background: #fbfffd;
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
  text-align: center;
  animation: modalIn .3s ease-out;
}
.audience-brand {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-content: center;
  border-radius: 23px 23px 23px 8px;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 28px rgba(13,117,109,.23);
  transform: rotate(-4deg);
}
.audience-brand span, .audience-brand b { transform: rotate(4deg); }
.audience-brand span { font-size: 13px; }
.audience-brand b { font-size: 19px; }
.audience-kicker { color: var(--green); font-size: 14px; font-weight: 800; }
.audience-dialog h1, .audience-dialog h2 { margin: 8px 0 7px; color: var(--ink); font-size: clamp(30px, 5vw, 43px); line-height: 1.25; letter-spacing: -.025em; }
.audience-dialog > div > p { margin: 0 auto 23px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.audience-dialog .audience-tagline { margin-bottom: 4px; color: var(--green); font-size: 20px; font-weight: 800; }
.audience-role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.audience-role {
  min-height: 132px;
  padding: 17px 12px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 2px solid #dcebe7;
  border-radius: 22px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 9px 28px rgba(24,79,74,.07);
  transition: .2s ease;
}
.audience-role:hover { border-color: var(--green); background: var(--mint); transform: translateY(-3px); }
.audience-role:active { transform: scale(.98); }
.audience-role > span { font-size: 39px; }
.audience-role strong { font-size: 21px; }
.audience-role small { color: var(--muted); font-size: 13px; }
.audience-role.child-role { border-color: #f2d58f; background: #fffaf0; }
.audience-role.home-role { grid-column: auto; min-height: 105px; border-color: #91d6bd; background: #f1fcf7; }
#roleStep .entry-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.entry-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.entry-choice { min-height: 176px; padding: 22px 18px; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px solid #d9ebe6; border-radius: 22px; background: white; color: var(--ink); text-align: center; cursor: pointer; transition: .2s ease; }
.entry-choice:hover { border-color: var(--green); background: var(--mint); transform: translateY(-3px); }.entry-choice > span { font-size: 42px; }.entry-choice strong { font-size: 21px; }.entry-choice small { color: var(--muted); font-size: 14px; line-height: 1.6; }.entry-choice.guest-choice { border-color: #f0d58e; background: #fffaf0; }
.entry-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
#actionStep[data-entry-role="specialist"] .entry-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.entry-action { min-height: 132px; padding: 18px 15px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px solid #d9ebe6; border-radius: 18px; background: white; color: var(--ink); text-align: center; cursor: pointer; box-shadow: 0 8px 22px rgba(24,79,74,.06); transition: .2s ease; }
.entry-action:hover { border-color: var(--green); background: var(--mint); transform: translateY(-2px); }.entry-action > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); }.entry-action > span svg { width: 100%; height: 100%; display: block; }.entry-action strong { font-size: 18px; }.entry-action small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.entry-info-card { padding: 22px 18px; border: 1px solid #d9ebe6; border-radius: 20px; background: #fbfffd; }.entry-info-card > span { font-size: 38px; }.entry-info-card h3 { margin: 8px 0 6px; }.entry-info-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.entry-gate-active .topbar { visibility: hidden; }
.home-program-header { margin: 22px auto 0; width: min(1180px, calc(100% - 32px)); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 24px; color: white; background: linear-gradient(135deg, #0d756d, #15906e); box-shadow: var(--shadow); }
.home-program-header h1 { margin: 3px 0; font-size: 28px; }.home-program-header p { margin: 0; color: #dff7ed; }
.home-header-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-child-switcher { position: relative; min-width: 220px; color: var(--ink); }
.home-child-switcher summary { min-height: 58px; padding: 8px 12px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; background: white; cursor: pointer; list-style: none; }
.home-child-switcher summary::-webkit-details-marker { display: none; }.home-child-switcher summary small, .home-child-switcher summary b { display: block; }.home-child-switcher summary small { color: var(--muted); font-size: 11px; }.home-child-switcher summary i { color: var(--green); font-style: normal; font-size: 20px; }
.home-child-avatar, .home-child-menu button > span, .home-child-card-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: var(--yellow); font-size: 19px; font-weight: 900; }
.home-child-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 100%; padding: 8px; display: grid; gap: 4px; border: 1px solid #dcebe7; border-radius: 15px; background: white; box-shadow: 0 18px 40px rgba(15,62,58,.2); }
.home-child-menu button { min-height: 44px; padding: 7px 8px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: right; font: inherit; cursor: pointer; }.home-child-menu button:hover, .home-child-menu button.is-current { background: var(--mint); }.home-child-menu button > span { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }.home-child-menu button small { color: var(--green); }.home-child-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #e5efec; }
.home-program-header nav { display: flex; gap: 8px; }.home-program-header nav button { padding: 11px 15px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: white; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }.home-program-header nav button.is-active { color: var(--green); background: white; }
.home-onboarding, .home-journey, .home-today { width: min(1000px, calc(100% - 32px)); margin: 22px auto 50px; padding: 26px; border: 1px solid #dcebe7; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.home-onboarding > p, .home-journey > div > p, .home-today-title p { color: var(--muted); line-height: 1.7; }.home-step { display: inline-flex; padding: 7px 11px; border-radius: 99px; color: var(--green); background: var(--mint); font-weight: 800; }
.home-simple-form { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.home-simple-form label, .home-assessment-form label { display: grid; gap: 7px; font-weight: 700; }.home-simple-form input, .home-simple-form select, .home-assessment-form select { min-height: 48px; padding: 9px 12px; border: 1px solid #cfe2dd; border-radius: 12px; background: white; font: inherit; }.home-simple-form .primary-btn { grid-column: 1 / -1; }
.home-assessment-form { margin-top: 20px; display: grid; gap: 12px; }.home-assessment-form label { padding: 14px; grid-template-columns: 1fr minmax(210px, 280px); align-items: center; border: 1px solid #e2efeb; border-radius: 15px; }.home-suggestion-cards { margin-top: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.home-suggestion-cards article { padding: 18px; border: 1px solid #cfe7df; border-radius: 18px; background: #fbfffd; }.home-suggestion-cards article > span { display: inline-flex; padding: 5px 9px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 12px; font-weight: 800; }.home-suggestion-cards h3 { margin: 10px 0 7px; }.home-suggestion-cards p { min-height: 54px; margin: 0 0 10px; color: var(--muted); line-height: 1.65; }.home-suggestion-cards small { color: var(--green); }.home-plan-explanation { margin-top: 16px; padding: 13px 16px; border: 1px solid #dcebe7; border-radius: 14px; background: #f7fbfa; }.home-plan-explanation summary { color: var(--green); font-weight: 900; cursor: pointer; }.home-plan-explanation p, .home-plan-explanation li { color: var(--muted); line-height: 1.65; }.home-plan-explanation ul { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px 18px; }.home-plan-action { margin-top: 18px; }.home-plan-action .primary-btn { width: 100%; min-height: 52px; font-size: 17px; }
.home-journey-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.home-journey-grid article { position: relative; padding: 18px; border: 1px solid #e2efeb; border-radius: 19px; background: #fbfffd; }.home-journey-grid article.is-current { border-color: #77cbb0; background: #effbf6; }.home-journey-grid article > span { position: absolute; top: 12px; left: 12px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-weight: 800; }.home-journey-grid h3 { margin: 0 0 12px; }.home-journey-grid p { margin: 7px 0; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }.home-journey-grid small { color: var(--green); }
.home-state-legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }.home-state-legend span { padding: 6px 9px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 12px; font-weight: 700; }
.home-journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.home-journey-heading p { color: var(--muted); }
.home-today-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.home-daily-steps { margin-top: 22px; display: grid; gap: 10px; }.home-daily-steps article { padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; border: 1px solid #e2efeb; border-radius: 16px; }.home-daily-steps article > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); }.home-daily-steps h3 { margin: 3px 0 0; }.home-daily-steps small { color: var(--muted); }
.home-independence { margin-bottom: 15px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 15px; color: var(--green); background: var(--mint); }.home-real-world { margin-top: 22px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border: 2px dashed #82cbb3; border-radius: 20px; background: #f4fcf8; }.home-real-world h3 { margin: 5px 0; }.home-real-world p { margin: 0; color: var(--muted); }.home-real-world form { display: grid; gap: 7px; }.home-real-world button { padding: 9px 12px; border: 1px solid #b8dcd0; border-radius: 10px; color: var(--green); background: white; font: inherit; font-weight: 700; cursor: pointer; }.home-coach { padding: 12px 8px; text-align: center; }.home-coach > span { font-size: 58px; }.home-coach h3 { font-size: 25px; }.home-coach p { padding: 12px; border-radius: 13px; background: var(--mint); font-weight: 700; }
.home-talk-moment { margin-top: 20px; padding: 18px; display: flex; gap: 15px; align-items: center; border-radius: 18px; color: #513b12; background: #fff6d9; }.home-talk-moment > span { font-size: 38px; }.home-talk-moment h3 { margin: 5px 0; }.home-talk-moment p { margin: 0; }
.home-path-grid, .home-report-grid, .home-city-world { margin-top: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.home-path-grid article, .home-report-grid article { padding: 17px; border: 1px solid #e2efeb; border-radius: 17px; background: #fbfffd; }.home-path-grid article.is-selected { border-color: #72c8aa; background: #effbf6; }.home-path-grid p { min-height: 44px; color: var(--muted); line-height: 1.6; }
.home-weekly-report, .home-city { width: min(1000px, calc(100% - 32px)); margin: 22px auto 50px; padding: 26px; border: 1px solid #dcebe7; border-radius: 26px; background: white; box-shadow: var(--shadow); }.home-report-count { margin-top: 18px; padding: 15px; display: inline-flex; gap: 14px; align-items: center; border-radius: 15px; color: var(--green); background: var(--mint); }.home-report-count b { font-size: 27px; }.home-report-grid article:last-child { grid-column: 1 / -1; }.home-report-grid li { margin: 7px 0; }.home-weekly-report aside { margin-top: 18px; padding: 18px; border-radius: 17px; background: #fff7df; }
.home-city-world { grid-template-columns: repeat(3,1fr); }.home-city-world article { min-height: 145px; padding: 18px; display: grid; place-items: center; gap: 5px; border: 1px dashed #cddbd7; border-radius: 18px; filter: grayscale(1); opacity: .65; }.home-city-world article.is-unlocked { border-style: solid; border-color: #75c9ac; background: #effbf6; filter: none; opacity: 1; }.home-city-world span { font-size: 44px; }.home-city-world small { color: var(--muted); text-align: center; }
.home-children-management { width: min(1000px, calc(100% - 32px)); margin: 22px auto 50px; padding: 26px; border: 1px solid #dcebe7; border-radius: 26px; background: white; box-shadow: var(--shadow); }.home-management-note { color: var(--muted); }.home-children-grid { margin-top: 18px; display: grid; gap: 12px; }.home-child-card { padding: 17px; display: grid; grid-template-columns: 52px 1fr auto; align-items: start; gap: 14px; border: 1px solid #dcebe7; border-radius: 18px; background: #fbfffd; }.home-child-card.is-archived { opacity: .72; background: #f5f7f6; }.home-child-card-avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 22px; }.home-child-card h3 { margin: 3px 0 9px; }.home-child-card p { margin: 5px 0; color: var(--muted); font-size: 13px; }.home-child-card > div > small { color: var(--green); font-weight: 800; }.home-child-card-actions { min-width: 150px; display: grid; gap: 7px; }.home-child-card-actions button { min-height: 38px; }
.recognition-bank { width: min(1100px, calc(100% - 32px)); margin: 22px auto 50px; padding: 26px; border: 1px solid #dcebe7; border-radius: 26px; background: white; box-shadow: var(--shadow); }.recognition-bank > div:first-child > p { color: var(--muted); }.recognition-groups { margin-top: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.recognition-groups button { min-height: 170px; padding: 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 9px; border: 1px solid #dcebe7; border-radius: 18px; color: var(--ink); background: #fbfffd; text-align: right; font: inherit; cursor: pointer; }.recognition-groups button:hover { border-color: #77cbb0; background: #effbf6; transform: translateY(-2px); }.recognition-groups button > span { font-size: 25px; }.recognition-groups button small { color: var(--muted); }.recognition-groups img { grid-column: 1 / -1; width: 100%; height: 105px; object-fit: contain; border-radius: 12px; background: white; }.recognition-levels { display: flex; gap: 5px; }.recognition-levels button { padding: 8px 12px; border: 1px solid #cfe2dd; border-radius: 10px; color: var(--green); background: white; font: inherit; font-weight: 800; cursor: pointer; }.recognition-levels button.is-active { color: white; background: var(--green); }.recognition-item-sets { margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.recognition-item-sets > div { padding: 14px; border: 1px solid #e2efeb; border-radius: 16px; }.recognition-item-sets h3 { margin-bottom: 10px; font-size: 14px; }.recognition-item-sets > div > div { display: flex; flex-wrap: wrap; gap: 8px; }.recognition-item-sets span { width: 72px; display: grid; gap: 3px; text-align: center; font-size: 11px; }.recognition-item-sets img { width: 72px; height: 62px; object-fit: contain; border-radius: 9px; background: white; }.recognition-stages { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.recognition-stages button { min-height: 54px; padding: 8px; display: flex; align-items: center; gap: 8px; border: 1px solid #dcebe7; border-radius: 13px; background: white; color: var(--ink); text-align: right; font: inherit; cursor: pointer; }.recognition-stages button span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: var(--mint); font-weight: 800; }.recognition-stages button.is-active { border-color: #77cbb0; background: #effbf6; }.recognition-engine { margin: 18px 0; padding: 18px; border: 2px solid #93d5be; border-radius: 20px; background: #f8fffc; }.recognition-engine-head { display: flex; justify-content: space-between; gap: 12px; }.recognition-engine-head small { color: var(--green); font-weight: 800; }.recognition-engine-head h3 { margin: 4px 0; }.recognition-engine-head > b { align-self: start; padding: 6px 10px; border-radius: 99px; color: var(--green); background: var(--mint); }.recognition-instruction { text-align: center; font-size: 20px; font-weight: 800; }.recognition-focus { text-align: center; }.recognition-focus img { width: min(280px,100%); height: 230px; object-fit: contain; border-radius: 17px; background: white; }.recognition-focus h3 { font-size: 25px; }.recognition-focus > div { display: flex; justify-content: center; gap: 8px; }.recognition-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.recognition-options button { padding: 10px; display: grid; gap: 6px; border: 1px solid #dcebe7; border-radius: 16px; background: white; font: inherit; cursor: pointer; }.recognition-options img { width: 100%; height: 150px; object-fit: contain; }.recognition-feedback { min-height: 24px; margin-bottom: 0; color: var(--green); text-align: center; font-weight: 900; }.recognition-empty { margin: 16px 0; padding: 18px; border-radius: 15px; background: #fff8e5; color: #805d00; text-align: center; font-weight: 800; }
.audience-back { margin: 0 0 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; cursor: pointer; }
.audience-needs { display: grid; gap: 11px; }
.specialist-register-form { width: min(100%, 520px); margin: 18px auto 0; display: grid; gap: 12px; text-align: right; }
.specialist-register-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 800; }
.specialist-register-form input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #bddbd4; border-radius: 13px; background: white; color: var(--ink); font: inherit; font-size: 16px; }
.specialist-register-form input:focus { outline: 3px solid rgba(13,117,109,.14); border-color: var(--green); }
.specialist-register-form input[aria-invalid="true"] { border-color: #c85b54; box-shadow: 0 0 0 3px rgba(200,91,84,.1); }
.specialist-register-form .field-error { min-height: 16px; margin-top: -2px; }
.register-success { margin: 4px 0 0; padding: 11px 13px; border: 1px solid #9bd4bd; border-radius: 13px; color: #17684e; background: #effaf5; font-weight: 900; text-align: center; }
.specialist-register-form .register-enter { margin-top: 0; }
.audience-need {
  width: 100%;
  min-height: 74px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 2px solid #dcebe7;
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-align: right;
  cursor: pointer;
  transition: .2s ease;
}
.audience-need:hover { border-color: var(--green); background: var(--mint); transform: translateX(-3px); }
.audience-need > span:first-child { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--mint); font-size: 27px; }
.audience-need strong { display: block; font-size: 18px; }
.audience-need small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.audience-need .need-arrow { color: var(--green); font-size: 24px; font-weight: 800; }

.app-shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; overflow: hidden; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: right; }
.brand-mark { width: 54px; height: 54px; border-radius: 18px 18px 18px 7px; display: grid; place-content: center; line-height: .88; transform: rotate(-4deg); background: var(--green); color: white; box-shadow: 0 10px 24px rgba(13, 117, 109, .22); }
.brand-mark span, .brand-mark b { transform: rotate(4deg); }
.brand-mark span { font-size: 12px; }
.brand-mark b { font-size: 17px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy b { font-size: 21px; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.session-chip { min-width: 78px; padding: 10px 16px; display: flex; justify-content: center; gap: 8px; align-items: center; background: white; border: 1px solid #dcebe7; border-radius: 99px; box-shadow: 0 7px 24px rgba(24, 79, 74, .08); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.role-switch { min-height: 43px; padding: 8px 13px; display: flex; align-items: center; gap: 7px; border: 1px solid #dcebe7; border-radius: 99px; background: white; color: var(--green); cursor: pointer; }
.role-switch b { font-size: 12px; }
.voice-toggle { min-height: 43px; padding: 8px 14px; display: flex; align-items: center; gap: 7px; border: 1px solid #dcebe7; border-radius: 99px; background: white; color: var(--muted); cursor: pointer; }
.voice-toggle b { font-size: 12px; }
.voice-toggle.is-active { border-color: var(--mint-2); background: var(--mint); color: var(--green); }

.hero { min-height: 390px; border-radius: var(--radius-xl); padding: 42px 56px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; overflow: hidden; position: relative; background: var(--mint); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed rgba(13, 117, 109, .12); }
.hero::before { width: 240px; height: 240px; inset: -105px auto auto -60px; }
.hero::after { width: 360px; height: 360px; inset: auto -130px -190px auto; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; color: var(--green); font-size: 14px; font-weight: 800; letter-spacing: .03em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 16px 0 18px; color: var(--ink); font-size: clamp(39px, 5vw, 66px); line-height: 1.12; letter-spacing: -.045em; }
h1 em { color: var(--green); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; height: 9px; border-radius: 50%; background: var(--yellow); opacity: .5; left: 3px; right: 3px; bottom: -4px; transform: rotate(-1deg); }
.hero p { max-width: 510px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.level-box { margin-top: 20px; display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; }
.level-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.segmented { display: flex; gap: 5px; padding: 4px; background: rgba(13,117,109,.08); border-radius: 13px; }
.level-btn { border: 0; border-radius: 10px; padding: 9px 15px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: .2s ease; }
.level-btn.is-active { color: white; background: var(--green); box-shadow: 0 6px 14px rgba(13,117,109,.2); }

.mascot-card { position: relative; min-height: 290px; display: grid; place-items: center; }
.mascot { width: 218px; height: 268px; position: relative; filter: drop-shadow(0 28px 25px rgba(13, 117, 109, .16)); }
.mascot .face { width: 192px; height: 178px; border-radius: 48% 48% 44% 44%; position: absolute; top: 8px; right: 13px; background: #fff8ea; border: 7px solid var(--green); z-index: 2; }
.ear { width: 58px; height: 70px; border-radius: 50%; position: absolute; top: 40px; background: #fff8ea; border: 7px solid var(--green); }
.ear.left { left: -1px; transform: rotate(-18deg); }
.ear.right { right: -1px; transform: rotate(18deg); }
.eye { width: 15px; height: 20px; border-radius: 50%; background: var(--ink); position: absolute; top: 64px; }
.eye::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: white; position: absolute; top: 3px; left: 3px; }
.eye.one { right: 52px; }.eye.two { left: 52px; }
.smile { position: absolute; width: 54px; height: 30px; border: 5px solid var(--ink); border-top: 0; border-radius: 0 0 45px 45px; bottom: 37px; right: 61px; }
.body { width: 140px; height: 104px; position: absolute; bottom: 0; right: 39px; border-radius: 60px 60px 22px 22px; background: var(--green); }
.body::before { content: "💬"; position: absolute; font-size: 48px; right: 45px; top: 17px; filter: grayscale(1) brightness(5); }
.bubble { position: absolute; z-index: 3; padding: 11px 16px; background: white; border-radius: 16px 16px 5px 16px; font-weight: 800; color: var(--green); box-shadow: 0 10px 30px rgba(13,117,109,.12); animation: float 3s ease-in-out infinite; }
.bubble-one { top: 28px; right: 2px; }.bubble-two { bottom: 55px; left: 2px; animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }

.activities { padding: 34px 0 64px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.section-heading h2, .progress-copy h2 { margin: 7px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.time-pill { padding: 9px 15px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 13px; font-weight: 700; white-space: nowrap; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.activity-card { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; min-height: 250px; background: white; border: 1px solid #e2efeb; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 42px rgba(24, 79, 74, .07); transition: transform .25s ease, box-shadow .25s ease; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-visual { min-height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; }
.category-visual { background: var(--peach); }
.category-visual::before { content: ""; position: absolute; width: 180px; height: 180px; border: 35px solid rgba(255,255,255,.25); border-radius: 50%; }
.mini-card { width: 70px; height: 70px; display: grid; place-items: center; position: absolute; border-radius: 20px; background: white; font-size: 34px; box-shadow: 0 12px 24px rgba(111, 67, 31, .12); }
.mini-card:nth-child(1) { transform: translate(33px, -55px) rotate(8deg); }
.mini-card:nth-child(2) { transform: translate(-36px, 7px) rotate(-7deg); }
.mini-card:nth-child(3) { transform: translate(36px, 67px) rotate(5deg); color: var(--green); font-weight: 800; }
.puzzle-visual, .sound-visual, .memory-visual { background: #bce5de; }
.real-photo { position: absolute; inset: 0; background-image: url('assets/activities/animals-grid.webp'); background-repeat: no-repeat; background-size: 200% 200%; }
.dog-photo { background-position: 0 0; }.cat-photo { background-position: 100% 0; }.cow-photo { background-position: 0 100%; }.lion-photo { background-position: 100% 100%; }
.puzzle-grid-lines { position: absolute; inset: 16%; border: 3px solid rgba(255,255,255,.85); border-radius: 15px; box-shadow: 0 0 0 999px rgba(8,42,39,.09); }
.puzzle-grid-lines::before, .puzzle-grid-lines::after { content: ""; position: absolute; background: rgba(255,255,255,.9); }
.puzzle-grid-lines::before { width: 3px; inset-block: 0; left: calc(50% - 1px); }.puzzle-grid-lines::after { height: 3px; inset-inline: 0; top: calc(50% - 1px); }
.sound-visual .real-photo { filter: saturate(.88); }.sound-wave { position: absolute; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(8,42,39,.2); }
.sound-wave i { width: 5px; border-radius: 9px; background: var(--green); animation: wave 1s ease-in-out infinite; }.sound-wave i:nth-child(1) { height: 18px; }.sound-wave i:nth-child(2) { height: 34px; animation-delay: -.25s; }.sound-wave i:nth-child(3) { height: 25px; animation-delay: -.5s; }.sound-wave i:nth-child(4) { height: 14px; animation-delay: -.75s; }
@keyframes wave { 50% { transform: scaleY(.45); } }
.memory-visual .real-photo { filter: brightness(.72); }.memory-tile { position: absolute; width: 72px; height: 92px; display: grid; place-items: center; border: 3px solid white; border-radius: 16px; background: var(--green); color: white; font-size: 31px; font-weight: 800; box-shadow: 0 12px 24px rgba(8,42,39,.22); }.memory-tile.first { transform: translate(-28px, 14px) rotate(-9deg); }.memory-tile.second { transform: translate(28px, -13px) rotate(8deg); background: var(--yellow); }
.groups-visual { background: #f8ead1; }.group-thumb { width: 78px; height: 78px; position: absolute; border: 4px solid white; border-radius: 20px; background: url('assets/activities/category-grid.webp') no-repeat; background-size: 300% 300%; box-shadow: 0 12px 26px rgba(63,45,20,.16); }.group-thumb:nth-child(1) { transform: translate(30px,-58px) rotate(7deg); }.group-thumb:nth-child(2) { transform: translate(-34px,2px) rotate(-8deg); }.group-thumb:nth-child(3) { transform: translate(28px,64px) rotate(5deg); }
.crop-apple { background-position: 0 0 !important; }.crop-banana { background-position: 50% 0 !important; }.crop-grapes { background-position: 100% 0 !important; }.crop-carrot { background-position: 0 50% !important; }.crop-tomato { background-position: 50% 50% !important; }.crop-cucumber { background-position: 100% 50% !important; }.crop-dog { background-position: 0 100% !important; }.crop-cat { background-position: 50% 100% !important; }.crop-cow { background-position: 100% 100% !important; }
.card-content { padding: 22px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.skill-tag { padding: 6px 10px; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 12px; font-weight: 800; }
.card-content h3 { margin: 14px 0 7px; font-size: 24px; }
.card-content p { margin-bottom: 11px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.card-content .therapy-goal { margin: 0 0 14px; padding: 9px 10px; border-radius: 11px; background: #f4fbf8; color: #496663; font-size: 13px; }
.therapy-goal b { color: var(--green); }
.activity-meta { width: 100%; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.activity-meta span { padding: 5px 8px; border: 1px solid #dcebe7; border-radius: 8px; color: var(--muted); background: white; font-size: 12px; line-height: 1.35; }
.activity-meta b { color: var(--ink); }.activity-meta i { font-style: normal; }
.activity-performance { width: 100%; margin: 0 0 11px; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.activity-performance[hidden] { display: none; }
.activity-performance span { padding: 7px 9px; border-radius: 9px; background: #f4fbf8; }
.activity-performance small { display: block; color: var(--muted); font-size: 11px; }.activity-performance b { color: var(--green); font-size: 14px; }
.today-badge { position: absolute; z-index: 4; top: 12px; right: 12px; padding: 7px 10px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: 0 7px 18px rgba(80,56,9,.16); animation: gentlePulse 2.4s ease-in-out infinite; }
@keyframes gentlePulse { 50% { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(80,56,9,.2); } }
.card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-footer > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.primary-btn { min-height: 46px; border: 0; padding: 0 18px; border-radius: 13px; background: var(--green); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(13,117,109,.18); transition: .2s ease; }
.primary-btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.primary-btn:active { transform: translateY(0) scale(.98); }

.progress-section { margin-bottom: 80px; padding: 38px 42px; border-radius: var(--radius-xl); display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; background: var(--ink); color: white; }
.progress-copy .eyebrow { color: #8cdbca; }
.progress-copy p { margin: 12px 0 0; color: #c4d7d4; line-height: 1.7; }
.progress-panel { display: flex; align-items: center; gap: 28px; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.06); }
.progress-ring { --progress: 0; width: 108px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--progress) * 1%), rgba(255,255,255,.12) 0); }
.progress-ring::before { content: ""; position: absolute; width: 82px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.progress-ring div { position: relative; display: grid; text-align: center; line-height: 1; }
.progress-ring strong { font-size: 28px; }.progress-ring small { margin-top: 7px; color: #c4d7d4; }
.progress-list { flex: 1; display: grid; gap: 14px; }
.progress-list > div { display: grid; grid-template-columns: 13px 1fr; column-gap: 10px; }
.progress-list small { grid-column: 2; margin-top: 3px; color: #a9c1be; }
.status-dot { width: 11px; height: 11px; margin-top: 5px; border: 2px solid #6d8986; border-radius: 50%; }
.status-dot.done { border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,200,87,.14); }
footer { min-height: 80px; padding-block: 15px; border-top: 1px solid #dcebe7; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.credits { position: relative; text-align: center; }.credits summary { cursor: pointer; color: var(--green); font-weight: 700; }.credits div { position: absolute; width: 260px; bottom: 28px; left: 50%; padding: 12px; border: 1px solid #dcebe7; border-radius: 12px; background: white; box-shadow: var(--shadow); transform: translateX(-50%); }

.activity-overlay { position: fixed; inset: 0; z-index: 20; padding: 22px; display: grid; place-items: center; background: rgba(8, 42, 39, .72); backdrop-filter: blur(12px); }
.activity-modal { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; background: #fbfffd; border-radius: 30px; box-shadow: 0 30px 100px rgba(0,0,0,.24); animation: modalIn .3s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-header { padding: 22px 24px 17px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #dcebe7; border-radius: 14px; background: white; color: var(--ink); font-size: 27px; cursor: pointer; }
.modal-title-wrap small { color: var(--green); font-weight: 800; }.modal-title-wrap h2 { margin: 2px 0 0; font-size: 24px; }
.round-chip { padding: 8px 12px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 13px; font-weight: 800; }
.modal-progress { height: 5px; background: #e4efec; }.modal-progress span { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .35s ease; }
.attempt-recorder { padding: 9px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #dcebe7; background: #f4fbf8; }
.attempt-recorder label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.attempt-recorder select { min-height: 38px; padding: 6px 9px; border: 1px solid #cfe2dd; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.attempt-recorder .ghost-btn { min-height: 38px; }
.modal-body { padding: 28px 34px 34px; }
.instruction { margin: 0 auto 10px; text-align: center; color: var(--muted); font-weight: 600; }
.question-title { margin: 0 0 25px; text-align: center; font-size: clamp(24px, 5vw, 34px); }
.group-examples { margin: 20px auto 28px; display: flex; justify-content: center; gap: 14px; }
.example-item, .answer-card { display: grid; place-items: center; border: 2px solid #dcebe7; background: white; box-shadow: 0 10px 28px rgba(24,79,74,.07); }
.example-item { width: 118px; min-height: 118px; border-radius: 26px; font-size: 57px; }
.example-plus { align-self: center; color: #8da8a5; font-size: 25px; font-weight: 800; }
.answers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.answer-card { min-height: 116px; border-radius: 20px; cursor: pointer; transition: .18s ease; }
.answer-card .emoji { font-size: 45px; }.answer-card .label { margin-top: 6px; color: var(--muted); font-weight: 700; }
.answer-card:hover { transform: translateY(-3px); border-color: var(--mint-2); }
.answer-card.correct { border-color: #51b99b; background: #eafaf4; animation: pop .35s ease; }
.answer-card.wrong { border-color: #e78890; background: #fff0f1; animation: shake .3s ease; }
@keyframes pop { 50% { transform: scale(1.05); } } @keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.feedback { min-height: 72px; margin-top: 18px; padding: 14px 17px; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f0f7f5; color: var(--muted); }
.feedback strong { color: var(--ink); display: block; }.feedback p { margin: 3px 0 0; font-size: 13px; }.feedback .primary-btn { flex: 0 0 auto; }
.feedback-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.voice-replay { min-height: 42px; padding: 8px 12px; border: 1px solid #bcded5; border-radius: 12px; background: white; color: var(--green); font-weight: 800; cursor: pointer; }
.memory-praise { margin-top: 15px; }

.puzzle-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.moves { color: var(--muted); font-weight: 700; }.moves b { color: var(--green); font-size: 22px; }
.ghost-btn { border: 1px solid #cfe2dd; border-radius: 12px; padding: 9px 13px; color: var(--green); background: white; font-weight: 800; cursor: pointer; }
.puzzle-stage { width: min(440px, 100%); margin: 0 auto; position: relative; }
.puzzle-board { --cols: 2; --rows: 2; width: min(440px, 100%); aspect-ratio: calc(var(--cols) / var(--rows)); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); gap: 5px; padding: 5px; border-radius: 22px; background: #beddd7; box-shadow: inset 0 0 0 1px rgba(13,117,109,.08); touch-action: manipulation; overflow: hidden; }
.puzzle-piece { position: relative; min-width: 0; min-height: 0; border: 0; border-radius: 10px; background-color: white; background-image: var(--piece-image); background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%); background-repeat: no-repeat; cursor: grab; transition: transform .15s ease, box-shadow .15s ease; }
.puzzle-piece:active { cursor: grabbing; }.puzzle-piece.selected { z-index: 2; transform: scale(.94); box-shadow: 0 0 0 5px var(--yellow); }.puzzle-piece.hint { filter: saturate(.35); opacity: .62; }
.puzzle-hint-preview { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: white; box-shadow: 0 16px 42px rgba(17,65,61,.22); animation: hintReveal .2s ease-out; }
.puzzle-hint-preview img { width: 100%; height: 100%; object-fit: contain; background: white; }
.puzzle-hint-preview span { position: absolute; bottom: 10px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--green); font-size: 12px; font-weight: 900; }
@keyframes hintReveal { from { opacity: 0; transform: scale(.98); } }
.puzzle-help { margin: 15px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

.sound-stage { padding: 10px 0 24px; display: grid; place-items: center; text-align: center; }.sound-stage p { color: var(--muted); }.sound-play { width: 126px; height: 126px; margin: 9px 0 13px; border: 0; border-radius: 50%; background: var(--green); color: white; font-size: 48px; cursor: pointer; box-shadow: 0 0 0 13px var(--mint), 0 18px 45px rgba(13,117,109,.24); transition: .18s ease; }.sound-play:hover { transform: scale(1.04); }.sound-play.is-playing { animation: soundPulse 1s ease-in-out infinite; }.sound-play small { display: block; margin-top: -3px; font-size: 12px; font-weight: 800; }
@keyframes soundPulse { 50% { box-shadow: 0 0 0 20px rgba(191,233,221,.45), 0 18px 45px rgba(13,117,109,.24); } }
.animal-choices { display: grid; gap: 10px; }.animal-choices.choices-2 { grid-template-columns: repeat(2, 1fr); }.animal-choices.choices-4 { grid-template-columns: repeat(4, 1fr); }.animal-choice { min-height: 145px; padding: 0; overflow: hidden; position: relative; border: 3px solid white; border-radius: 18px; background: #dcebe7; cursor: pointer; box-shadow: 0 8px 24px rgba(24,79,74,.1); transition: .18s ease; }.animal-choice .animal-photo { position: absolute; inset: 0; background: url('assets/activities/animals-grid.webp') no-repeat; background-size: 200% 200%; }.animal-choice .animal-name { position: absolute; inset: auto 7px 7px; padding: 6px 5px; border-radius: 9px; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 800; }.animal-choice:hover { transform: translateY(-3px); }.animal-choice.correct { border-color: #51b99b; }.animal-choice.wrong { border-color: #e78890; animation: shake .3s ease; }
.animal-photo.dog { background-position: 0 0; }.animal-photo.cat { background-position: 100% 0; }.animal-photo.cow { background-position: 0 100%; }.animal-photo.lion { background-position: 100% 100%; }

.memory-stats { margin-bottom: 14px; display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; }.memory-stats b { color: var(--green); }.memory-board { width: min(500px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--memory-cols), 1fr); gap: 9px; }.memory-card-btn { aspect-ratio: .82; position: relative; border: 0; padding: 0; border-radius: 15px; background: transparent; cursor: pointer; perspective: 800px; }.memory-card-inner { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 8px 22px rgba(24,79,74,.13); transform-style: preserve-3d; transition: transform .35s ease; }.memory-card-btn.revealed .memory-card-inner, .memory-card-btn.matched .memory-card-inner { transform: rotateY(180deg); }.memory-front, .memory-back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; backface-visibility: hidden; overflow: hidden; }.memory-front { background: var(--green); color: rgba(255,255,255,.9); font-size: 29px; font-weight: 800; }.memory-back { transform: rotateY(180deg); background: #dcebe7; }.memory-back .animal-photo { position: absolute; inset: 0; background: url('assets/activities/animals-grid.webp') no-repeat; background-size: 200% 200%; }.memory-card-btn.matched { animation: matched .38s ease; }.memory-card-btn.matched .memory-card-inner { box-shadow: 0 0 0 4px var(--yellow), 0 8px 22px rgba(24,79,74,.13); }
.memory-back .animal-photo.dog { background-position: 0 0; }.memory-back .animal-photo.cat { background-position: 100% 0; }.memory-back .animal-photo.cow { background-position: 0 100%; }.memory-back .animal-photo.lion { background-position: 100% 100%; }
@keyframes matched { 50% { transform: scale(1.06); } }

.group-photo-row { margin: 22px auto 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.category-photo { aspect-ratio: 1; border: 3px solid white; border-radius: 20px; background: url('assets/activities/category-grid.webp') no-repeat; background-size: 300% 300%; box-shadow: 0 10px 28px rgba(24,79,74,.1); }.group-label-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.group-label-btn { min-height: 72px; padding: 10px; border: 2px solid #dcebe7; border-radius: 17px; background: white; color: var(--ink); font-weight: 800; font-size: 18px; cursor: pointer; transition: .18s ease; }.group-label-btn span { display: block; margin-bottom: 3px; font-size: 25px; }.group-label-btn:hover { transform: translateY(-3px); border-color: var(--mint-2); }.group-label-btn.correct { border-color: #51b99b; background: #eafaf4; }.group-label-btn.wrong { border-color: #e78890; background: #fff0f1; animation: shake .3s ease; }

.completion { padding: 20px 5px 8px; text-align: center; }
.completion-icon { width: 112px; height: 112px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 59px; animation: pop .45s ease; }
.completion h3 { margin-bottom: 8px; font-size: 31px; }.completion p { color: var(--muted); line-height: 1.7; }
.stars-row { margin: 20px 0 24px; font-size: 38px; letter-spacing: 5px; direction: ltr; }
.completion-actions { display: flex; justify-content: center; gap: 10px; }
.secondary-btn { min-height: 46px; border: 1px solid #cfe2dd; border-radius: 13px; padding: 0 17px; color: var(--green); background: white; font-weight: 800; cursor: pointer; }
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; min-width: 240px; padding: 13px 18px; text-align: center; border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 15px 44px rgba(0,0,0,.2); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .hero { padding: 44px; grid-template-columns: 1fr .75fr; }
  .activity-card { grid-template-columns: 1fr; }
  .card-visual { min-height: 190px; }
}
@media (max-width: 640px) {
  .audience-overlay { padding: 12px; }
  .audience-dialog { padding: 24px 16px; border-radius: 26px; }
  .audience-brand { width: 60px; height: 60px; margin-bottom: 10px; }
  .audience-dialog h1, .audience-dialog h2 { font-size: 29px; }
  .audience-dialog > div > p { margin-bottom: 17px; font-size: 15px; }
  .audience-role-grid { gap: 8px; }
  .audience-role { min-height: 112px; padding: 12px 7px; border-radius: 17px; }
  .audience-role > span { font-size: 31px; }
  .audience-role strong { font-size: 18px; }
  .audience-role small { font-size: 11px; }
  .entry-choice-grid { grid-template-columns: 1fr; gap: 10px; }.entry-choice { min-height: 125px; padding: 14px; }.entry-choice > span { font-size: 34px; }.entry-choice strong { font-size: 21px; }
  .audience-need { min-height: 68px; padding: 10px; grid-template-columns: 46px 1fr auto; gap: 9px; }
  .audience-need > span:first-child { width: 46px; height: 46px; font-size: 24px; }
  .audience-need strong { font-size: 16px; }
  .audience-need small { font-size: 12px; }
  .app-shell { padding: 0 16px; }
  .topbar { height: 84px; }.brand-mark { width: 47px; height: 47px; }.brand-copy b { font-size: 18px; }.brand-copy small { display: none; }.session-chip { min-width: 68px; padding: 9px 13px; }
  .voice-toggle { width: 43px; padding: 0; justify-content: center; }
  .voice-toggle b { display: none; }
  .role-switch { width: 43px; padding: 0; justify-content: center; }
  .role-switch-label { display: none; }
  .top-actions { gap: 5px; }
  .hero { min-height: auto; padding: 22px 18px 18px; display: block; }
  .hero h1 { margin: 8px 0 9px; font-size: 34px; }
  .hero p { font-size: 14px; line-height: 1.5; }.level-box { width: 100%; justify-content: space-between; margin-top: 13px; }.level-label { display: none; }.segmented { width: 100%; }.level-btn { flex: 1; padding-inline: 8px; }
  .mascot-card { display: none; }
  .activities { padding: 14px 0 48px; }.section-heading { align-items: start; margin-bottom: 12px; }.section-heading h2 { margin-top: 3px; font-size: 26px; }.time-pill { display: none; }.activity-grid { grid-template-columns: 1fr; gap: 14px; }.activity-card { grid-template-columns: 112px 1fr; min-height: 214px; }.card-visual { min-height: 100%; }.mini-card { width: 50px; height: 50px; font-size: 25px; }.card-content { padding: 18px 14px; }.card-content h3 { margin: 10px 0 5px; font-size: 19px; }.card-content p { margin-bottom: 7px; font-size: 12px; }.card-content .therapy-goal { margin-bottom: 9px; padding: 7px 8px; font-size: 11px; }.today-badge { top: 8px; right: 8px; font-size: 10px; }.card-footer { display: grid; }.card-footer > span { display: none; }.primary-btn { width: 100%; min-height: 42px; }.progress-section { padding: 30px 23px; grid-template-columns: 1fr; gap: 24px; }.progress-panel { gap: 18px; padding: 16px; }.progress-ring { width: 92px; }.progress-ring::before { width: 69px; }.progress-list b { font-size: 14px; }.progress-list small { font-size: 11px; }
  footer { font-size: 11px; flex-wrap: wrap; justify-content: center; }.credits { order: 3; width: 100%; }.credits div { bottom: 27px; }
  .activity-overlay { padding: 0; align-items: end; }.activity-modal { width: 100%; max-height: 94vh; border-radius: 28px 28px 0 0; }.modal-header { padding: 18px 17px 14px; grid-template-columns: 44px 1fr auto; }.modal-title-wrap h2 { font-size: 20px; }.modal-body { padding: 24px 17px 28px; }.example-item { width: 94px; min-height: 94px; font-size: 47px; }.answers-grid { gap: 8px; }.answer-card { min-height: 132px; padding: 9px 5px; }.answer-card .choice-photo { height: 84px; }.answer-card .label { font-size: 16px; }.answer-card .emoji { font-size: 39px; }.feedback { align-items: stretch; flex-direction: column; }.feedback .primary-btn { width: 100%; }.completion-actions { flex-direction: column; }.completion-actions button { width: 100%; }.animal-choices.choices-4 { grid-template-columns: repeat(2, 1fr); }.animal-choice { min-height: 130px; }.sound-play { width: 108px; height: 108px; }.memory-board { gap: 7px; }.group-photo-row { gap: 6px; }.category-photo { border-radius: 14px; }.group-label-choices { gap: 6px; }.group-label-btn { min-height: 65px; padding: 7px 3px; font-size: 14px; }
  .feedback-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .attempt-recorder { padding: 8px 12px; align-items: stretch; flex-direction: column; }.attempt-recorder label { justify-content: space-between; }.attempt-recorder select { flex: 1; }
}
@media (max-width: 390px) {
  .activity-card { grid-template-columns: 108px 1fr; }.card-content { padding-inline: 14px; }.card-content p { font-size: 13px; }.mini-card:nth-child(1) { transform: translate(23px, -48px) rotate(8deg); }.mini-card:nth-child(2) { transform: translate(-23px, 5px) rotate(-7deg); }.mini-card:nth-child(3) { transform: translate(23px, 58px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* أدوات القياس والجلسة والبازل المطوّرة */
.attempt-recorder { display:grid; gap:9px; }
.session-live-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; width:100%; }
.session-live-stats span { padding:6px 8px; border-radius:9px; background:#fff; font-size:12px; text-align:center; }
.session-live-stats small { display:block; color:var(--muted); }
.quick-performance { display:grid; grid-template-columns:repeat(9,1fr); gap:5px; }
.quick-performance button { min-height:38px; padding:5px; border:1px solid #cfe2dd; border-radius:9px; background:white; color:var(--ink); font:700 12px inherit; cursor:pointer; }
.quick-performance button.is-active { border-color:var(--green); background:var(--mint); }
.puzzle-board { --cols:2; --rows:2; aspect-ratio:calc(var(--cols) / var(--rows)); grid-template-columns:repeat(var(--cols),1fr); grid-template-rows:repeat(var(--rows),1fr); }
.puzzle-piece { background-size:calc(var(--cols) * 100%) calc(var(--rows) * 100%); }
.puzzle-levels { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-bottom:12px; }
.puzzle-levels button { padding:7px 10px; border:1px solid #cfe2dd; border-radius:99px; background:#fff; cursor:pointer; }
.puzzle-levels button.is-active { color:#fff; border-color:var(--green); background:var(--green); }
.therapy-question { margin:14px 0; padding:14px; border-radius:14px; background:var(--mint); }
.session-setup,.live-session,.session-summary,.home-clinic-comparison { padding:20px; border:1px solid #dcebe7; border-radius:20px; background:#fff; }
.session-flow,.summary-metrics,.live-session-context { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.session-flow span,.summary-metrics div,.live-session-context span { flex:1; min-width:120px; padding:10px; border-radius:12px; background:#f4fbf8; }
.goal-report-card { margin:16px 0; padding:16px; border:1px solid #dcebe7; border-radius:16px; }
.goal-journey { display:flex; align-items:center; gap:8px; }
.goal-journey span { flex:1; padding:10px; border-radius:12px; text-align:center; background:#f4fbf8; }
.goal-journey small { display:block; color:var(--muted); }
.report-bars label { display:grid; grid-template-columns:90px 1fr 45px; align-items:center; gap:8px; margin-top:10px; }
.report-bars label > i { height:10px; overflow:hidden; border-radius:99px; background:#e2eeeb; }
.report-bars em { display:block; height:100%; border-radius:inherit; background:var(--green); }
.backup-panel { margin-top:18px; padding:20px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #dcebe7; border-radius:20px; background:#fff; }
.backup-panel h2,.backup-panel p { margin:4px 0; }.backup-panel > div:last-child { display:flex; gap:8px; }.import-backup { display:inline-grid; place-items:center; cursor:pointer; }
@media (max-width:720px) { .session-live-stats { grid-template-columns:repeat(2,1fr); }.quick-performance { grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px) { .backup-panel,.backup-panel > div:last-child { align-items:stretch; flex-direction:column; }.backup-panel button,.backup-panel label { width:100%; } }
.backup-import-overlay { position:fixed; inset:0; z-index:120; padding:18px; display:grid; place-items:center; background:rgba(16, 48, 48, .48); }
.backup-import-overlay[hidden] { display:none; }
.backup-import-dialog { position:relative; width:min(100%, 520px); padding:34px 28px 26px; border:1px solid #dcebe7; border-radius:24px; background:#fff; box-shadow:0 24px 70px rgba(13, 69, 63, .24); text-align:center; }
.backup-import-close { position:absolute; inset-block-start:12px; inset-inline-start:14px; width:34px; height:34px; border:0; border-radius:50%; background:#f1f7f5; color:var(--muted); font-size:23px; line-height:1; cursor:pointer; }
.backup-import-icon { width:58px; height:58px; margin:0 auto 12px; display:grid; place-items:center; border-radius:18px; background:var(--mint); font-size:27px; }
.backup-import-dialog h2 { margin:0 0 10px; color:var(--ink); font-size:23px; }
.backup-import-dialog p { margin:0 auto; max-width:420px; color:var(--muted); line-height:1.8; }
.backup-import-actions { margin-top:22px; display:flex; justify-content:center; gap:10px; }
.backup-import-actions button { min-width:145px; }
@media (max-width: 960px) { .dashboard-context-expanded { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .workspace-nav { overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .workspace-nav button { scroll-snap-align: start; }.workspace-nav button.is-active { box-shadow: inset 0 -3px 0 var(--green); }
  .dashboard-context-expanded { grid-template-columns: 1fr; }
  .resume-dashboard { align-items: stretch; flex-direction: column; }.resume-dashboard .primary-btn { width: 100%; }
  .today-goals-dashboard { padding: 16px; }.today-goals-dashboard article { grid-template-columns: 28px 1fr; }.today-goals-dashboard article button { grid-column: 1 / -1; width: 100%; }
}

/* النسخة الموسعة: صور منفصلة، مستويات ثلاثة، وقسم تدريب */
.main-tabs {
  width: min(520px, 100%);
  margin: 0 auto 12px;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border: 1px solid #dcebe7;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 36px rgba(24,79,74,.08);
}
.selected-level { width: max-content; margin: 0 auto 18px; padding: 7px 12px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--mint-2); border-radius: 99px; background: #f7fffc; color: var(--green); }
.selected-level small { color: var(--muted); font-size: 12px; }
.selected-level strong { font-size: 14px; }
.section-tab {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}
.section-tab.is-active { background: var(--green); color: white; box-shadow: 0 8px 18px rgba(13,117,109,.2); }
.section-panel { animation: panelIn .28s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

.mini-card { object-fit: cover; padding: 0; overflow: hidden; border: 4px solid white; }
.mini-card.question { border: 0; }
.visual-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.group-thumb { background: white; object-fit: cover; }

.training-panel .section-heading { margin-bottom: 22px; }
.training-intro {
  margin-bottom: 22px;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #dff5ed, #fff8e9);
}
.training-badge { color: var(--green); font-size: 13px; font-weight: 800; }
.training-intro h3 { margin: 8px 0 6px; font-size: 27px; }
.training-intro p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.65; }
.training-path { flex: 0 0 auto; padding: 12px 16px; border-radius: 14px; background: white; color: var(--green); font-weight: 800; }
.training-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.training-card { position: relative; padding: 22px; border: 1px solid #e2efeb; border-radius: 23px; background: white; box-shadow: 0 12px 36px rgba(24,79,74,.07); }
.training-step { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-weight: 800; }
.training-card-photos { height: 145px; margin: -5px -5px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; background: var(--cream); overflow: hidden; }
.training-card-photos img { width: 44%; height: 115px; border-radius: 14px; object-fit: cover; background: white; }
.training-card-photos.single-preview img { width: min(190px, 72%); height: 125px; object-fit: contain; }
.training-sound-preview img { width: 30%; }
.training-card-photos .training-arrow { color: var(--green); font-size: 28px; font-weight: 800; }
.training-basket { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; background: var(--mint); font-size: 35px; }
.training-card h3 { margin: 0 0 7px; font-size: 21px; }
.training-card p { min-height: 70px; margin-bottom: 16px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.training-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.training-card-footer small { color: var(--green); font-weight: 800; }
.encyclopedia-training-card { border-color: #9dd9c5; background: linear-gradient(180deg,#fff 0%,#f3fcf8 100%); }
.encyclopedia-groups-head { margin-bottom: 18px; text-align: center; }
.encyclopedia-groups-head h3 { margin: 0 0 5px; font-size: 24px; }.encyclopedia-groups-head p { margin: 0; color: var(--muted); }
.encyclopedia-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.encyclopedia-group-card { padding: 12px; display: grid; grid-template-columns: 92px 1fr; gap: 11px; border: 1px solid #dcebe7; border-radius: 18px; background: white; }
.encyclopedia-group-card > img { width: 92px; height: 92px; grid-row: 1 / 3; object-fit: contain; border-radius: 13px; background: #f8fcfa; }
.encyclopedia-group-card > div > span { float: left; font-size: 20px; }.encyclopedia-group-card h3 { margin: 2px 0 4px; font-size: 17px; }.encyclopedia-group-card p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.encyclopedia-group-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }.encyclopedia-group-actions button { flex: 1 1 135px; min-height: 40px; }
.encyclopedia-mini-progress,.encyclopedia-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e6f1ee; }.encyclopedia-mini-progress i,.encyclopedia-progress i { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.encyclopedia-group-card.is-coming { opacity: .65; }.encyclopedia-group-card.is-coming > small { grid-column: 2; color: var(--muted); }
.encyclopedia-item-view { max-width: 570px; margin: 0 auto; display: grid; gap: 14px; text-align: center; }
.encyclopedia-item-view > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: right; }.encyclopedia-item-view > header b { display: block; margin-bottom: 6px; }
.encyclopedia-item-view figure { margin: 0; padding: 12px; border: 1px solid #dcebe7; border-radius: 24px; background: white; }
.encyclopedia-item-view figure img { width: 100%; height: min(48vh,420px); display: block; object-fit: contain; border-radius: 17px; background: white; }
.encyclopedia-item-view figcaption { margin-top: 10px; color: var(--ink); font-size: clamp(30px,6vw,48px); font-weight: 900; }
.encyclopedia-item-view > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.encyclopedia-item-view > nav button { width: 100%; min-height: 48px; }
.encyclopedia-listen { min-height: 52px; font-size: 17px; }.encyclopedia-state { color: var(--muted); }
.encyclopedia-stage-roadmap { margin: 0 0 16px; display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.encyclopedia-stage-roadmap span { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: #edf8f4; color: var(--green); font-size: 12px; font-weight: 900; }
.encyclopedia-search { margin: 0 0 14px; display: grid; gap: 6px; color: var(--ink); font-weight: 900; }.encyclopedia-search input { width: 100%; min-height: 46px; border: 1px solid #bfded5; border-radius: 13px; padding: 0 14px; font: inherit; }
.encyclopedia-tools { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }.encyclopedia-tools .encyclopedia-search { margin: 0; }
#encyclopediaSearchResults { margin-bottom: 14px; }.encyclopedia-search-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.encyclopedia-search-list button { display: grid; gap: 3px; text-align: right; padding: 10px; border: 1px solid #dcebe7; border-radius: 12px; background: white; color: var(--ink); }.encyclopedia-search-list small { color: var(--muted); }
.encyclopedia-editor { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.encyclopedia-editor label { display: grid; gap: 6px; color: var(--ink); font-weight: 900; }.encyclopedia-editor input,.encyclopedia-editor select,.encyclopedia-editor textarea { width: 100%; min-height: 44px; border: 1px solid #bfded5; border-radius: 12px; padding: 9px 11px; background: white; font: inherit; }.encyclopedia-editor textarea { min-height: 90px; resize: vertical; }.encyclopedia-editor small { color: var(--muted); font-weight: 600; }.editor-wide { grid-column: 1 / -1; }.editor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.guest-home { max-width: 1100px; margin: 0 auto; padding: 28px 22px 50px; }.guest-home-header { padding: 30px; border-radius: 26px; background: linear-gradient(135deg,#eaf9f3,#fff8e8); }.guest-home-header h1 { margin: 7px 0; color: var(--ink); }.guest-home-header p { margin: 0; color: var(--muted); }.guest-save-note { margin: 16px 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #ead89f; border-radius: 16px; background: #fffaf0; }.guest-save-note > span { font-size: 25px; }.guest-save-note div { flex: 1; }.guest-save-note p { margin: 3px 0 0; color: var(--muted); }.guest-free-library { padding: 24px 0; }.guest-session-chip { padding: 7px 11px; border-radius: 99px; background: #edf8f4; color: var(--green); font-weight: 900; }.guest-training-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.guest-training-grid article { display: grid; gap: 9px; padding: 20px; border: 1px solid #dcebe7; border-radius: 19px; background: white; }.guest-training-grid article > span { font-size: 30px; }.guest-training-grid h3,.guest-training-grid p { margin: 0; }.guest-training-grid p { color: var(--muted); line-height: 1.6; }.guest-training-grid .guest-locked { background: #f5f7f6; opacity: .8; }
.parent-encyclopedia-tip { padding: 10px 13px; border-radius: 13px; background: #fff7df; color: #684f0d; font-weight: 800; line-height: 1.7; }
.recognition-test,.encyclopedia-practice { max-width: 650px; margin: 0 auto; display: grid; gap: 14px; text-align: center; }.recognition-test > header { display: grid; gap: 7px; }.recognition-test > p,.encyclopedia-practice > p { margin: 0; color: var(--muted); }.recognition-test > h3 { margin: 0; color: var(--ink); font-size: clamp(28px,6vw,46px); }.recognition-replay { justify-self: center; }
.recognition-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.recognition-choices.choices-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }.recognition-choices.choices-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }.recognition-choice { min-height: 150px; padding: 8px; overflow: hidden; border: 2px solid #dcebe7; border-radius: 18px; background: white; }.recognition-choice img { width: 100%; height: 170px; object-fit: contain; background: white; }.recognition-choice.is-selected { border-color: var(--green); background: #edf8f4; }
.recognition-test-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }.recognition-test-footer span { color: var(--muted); font-weight: 800; }
.recognition-result { max-width: 610px; margin: 0 auto; display: grid; gap: 13px; text-align: center; }.recognition-result h3,.recognition-result h4,.recognition-result p { margin: 0; }.recognition-result section { padding: 13px; border-radius: 15px; background: #f3faf7; }.recognition-result .review-summary { background: #fff6e4; }
.encyclopedia-practice figure { margin: 0; padding: 10px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }.encyclopedia-practice figure img { width: 100%; height: min(46vh,390px); object-fit: contain; }.encyclopedia-practice figcaption { margin-top: 8px; font-size: 30px; font-weight: 900; }.practice-response { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.classification-practice .practice-response { grid-template-columns: repeat(2,1fr); }.practice-response button { min-height: 48px; border: 1px solid #b8d9d0; border-radius: 13px; background: white; color: var(--green); font-weight: 900; }.practice-response button.is-selected { background: var(--green); color: white; }
.assigned-training-library { display: grid; gap: 18px; }
.assigned-training-section { padding: 18px; border: 1px solid #e2efeb; border-radius: 22px; background: #fff; }
.assigned-training-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.assigned-training-heading h3 { margin: 0; font-size: 19px; }
.assigned-training-heading span { min-width: 30px; padding: 5px 9px; border-radius: 99px; text-align: center; color: var(--green); background: var(--mint); font-weight: 800; }
.assigned-training-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assigned-training-card { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #e6efec; border-radius: 17px; background: #fbfffd; }
.assigned-training-card h4 { margin: 7px 0 3px; font-size: 16px; }
.assigned-training-card p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.assigned-training-card small, .assigned-training-empty { color: var(--muted); }
.assigned-training-empty { margin: 0; padding: 10px 0; font-size: 13px; }

.group-examples { align-items: center; gap: 18px; }
.example-item { width: 148px; min-height: 158px; padding: 8px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 800; }
.choice-photo { width: 100%; height: 100px; display: block; border-radius: 16px; object-fit: cover; background: white; }
.answers-grid.choices-4 { grid-template-columns: repeat(4, 1fr); }
.answer-card { min-height: 146px; padding: 10px 8px; overflow: hidden; grid-template-rows: minmax(0,1fr) auto; gap: 5px; }
.answer-card .choice-photo { width: 100%; height: 94px; object-fit: contain; }
.answer-card .label { max-width: 100%; margin: 0 0 2px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.puzzle-board { direction: ltr; }
.puzzle-board:has(.puzzle-piece.solved) { gap: 0; padding: 0; background: transparent; box-shadow: none; }
.puzzle-piece.solved { border-radius: 0; cursor: default; animation: puzzleDone .35s ease; }
@keyframes puzzleDone { 50% { transform: scale(.97); } }
.next-stage-btn { min-width: 210px; box-shadow: 0 10px 26px rgba(13,117,109,.25); }

.animal-choices.choices-3 { grid-template-columns: repeat(3, 1fr); }
.animal-choice .animal-photo { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; background: white; }
.memory-back .memory-photo { width: 100%; height: 100%; object-fit: cover; background: white; }

.group-photo-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.group-photo-row.photos-4 { grid-template-columns: repeat(4, 1fr); }
.category-photo { margin: 0; padding: 8px; display: flex; flex-direction: column; aspect-ratio: auto; border: 2px solid #e1ece9; background: white; overflow: hidden; }
.category-photo .group-photo { width: 100%; aspect-ratio: 1; display: block; border-radius: 14px; object-fit: cover; background: white; }
.category-photo figcaption { padding: 7px 2px 1px; text-align: center; color: var(--ink); font-weight: 800; }
.group-label-choices.choices-4 { grid-template-columns: repeat(4, 1fr); }
.group-label-choices.choices-5 { grid-template-columns: repeat(5, 1fr); }

.training-lesson { text-align: center; }
.lesson-icon { width: 74px; height: 74px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 22px; background: var(--mint); font-size: 38px; }
.training-lesson > p { margin-bottom: 2px; color: var(--muted); }
.training-lesson > h3 { margin-bottom: 18px; color: var(--green); font-size: 34px; }
.training-single { width: min(320px, 100%); margin: 0 auto; padding: 10px; border: 2px solid #dcebe7; border-radius: 24px; background: white; box-shadow: 0 12px 32px rgba(24,79,74,.1); transition: .2s ease; }
.training-single.correct { border-color: #51b99b; background: #eafaf4; }
.training-single-photo { width: 100%; aspect-ratio: 1; display: block; border-radius: 17px; object-fit: contain; background: white; }
.training-single figcaption { padding: 9px 4px 3px; color: var(--ink); font-size: 22px; font-weight: 800; }
.training-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.training-photo-grid figure { margin: 0; padding: 7px; border: 1px solid #dcebe7; border-radius: 17px; background: white; }
.training-photo { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; object-fit: cover; }
.training-photo-grid figcaption { padding-top: 6px; font-weight: 800; }
.lesson-tip { margin: 18px 0; padding: 14px; border-radius: 14px; background: var(--cream); color: var(--muted); }
.lesson-tip strong { color: var(--ink); }
.lesson-next { width: min(300px, 100%); }
.sort-focus { width: 205px; margin: 10px auto 24px; padding: 9px; display: grid; gap: 8px; border: 2px solid var(--mint-2); border-radius: 24px; background: white; text-align: center; box-shadow: 0 12px 32px rgba(24,79,74,.1); }
.sort-photo { width: 100%; aspect-ratio: 1; border-radius: 17px; object-fit: cover; }
.sort-focus strong { font-size: 22px; }
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.build-choice { padding: 7px; border: 3px solid #e1ece9; border-radius: 18px; background: white; cursor: pointer; transition: .18s ease; }
.build-choice:hover { transform: translateY(-2px); }
.build-choice.selected { border-color: var(--yellow); background: #fff9e8; box-shadow: 0 0 0 3px rgba(255,200,87,.2); }
.build-choice.correct { border-color: #51b99b; background: #eafaf4; }
.build-photo { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; object-fit: cover; }
.build-choice span { display: block; padding-top: 5px; color: var(--ink); font-weight: 800; }
.training-sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.training-sound-card { padding: 8px; border: 2px solid #dcebe7; border-radius: 19px; background: white; text-align: center; transition: .18s ease; }
.training-sound-single { width: min(320px, 100%); margin: 0 auto; padding: 10px; box-shadow: 0 12px 32px rgba(24,79,74,.1); }
.training-sound-card.heard { border-color: #51b99b; background: #eafaf4; }
.training-sound-photo { width: 100%; aspect-ratio: 1; display: block; border-radius: 13px; object-fit: cover; background: white; }
.training-sound-card strong { display: block; padding: 7px 0 5px; }
.training-sound-play { width: 100%; min-height: 42px; border: 0; border-radius: 11px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.training-sound-play.is-playing { background: var(--yellow); color: var(--ink); }
.training-sound-footer { margin-top: 17px; }
.training-sound-footer .primary-btn:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 850px) {
  .training-grid { grid-template-columns: 1fr; }
  .training-card { display: grid; grid-template-columns: 165px 1fr; column-gap: 18px; }
  .training-card-photos { height: 150px; grid-row: 1 / 4; margin: 0; }
  .training-card h3, .training-card p { grid-column: 2; }
  .training-card-footer { grid-column: 2; }
}
@media (max-width: 640px) {
  .main-tabs { margin-bottom: 8px; }
  .section-tab { min-height: 48px; font-size: 15px; }
  .training-intro { padding: 21px; display: block; }
  .training-path { margin-top: 15px; display: inline-block; }
  .training-card { display: block; }
  .training-card-photos { height: 135px; margin-bottom: 17px; }
  .training-card-footer { display: flex; }
  .training-card h3 { display: block; }
  .training-card p { min-height: auto; display: block; }
  .encyclopedia-groups { grid-template-columns: 1fr; }
  .encyclopedia-item-view > header { grid-template-columns: 1fr auto; }
  .encyclopedia-item-view > header > button:first-child { grid-column: 1 / -1; }
  .encyclopedia-item-view figure img { height: min(45vh,360px); }
  .encyclopedia-search-list { grid-template-columns: 1fr 1fr; }
  .encyclopedia-tools,.encyclopedia-editor { grid-template-columns: 1fr; }.editor-wide { grid-column: auto; }
  .guest-home { padding: 18px 12px 35px; }.guest-home-header { padding: 22px 17px; }.guest-save-note { align-items: stretch; flex-wrap: wrap; }.guest-save-note button { width: 100%; }.guest-training-grid { grid-template-columns: 1fr; }
  .recognition-choices.choices-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }.recognition-choice { min-height: 118px; }.recognition-choice img { height: 128px; }
  .practice-response { grid-template-columns: 1fr; }.recognition-test-footer { align-items: stretch; flex-direction: column; }
  .level-btn { font-size: 13px; white-space: nowrap; }
  .level-btn span { display: none; }
  .group-examples { gap: 8px; }
  .example-item { width: 118px; min-height: 132px; padding: 6px; font-size: 13px; }
  .choice-photo { height: 78px; }
  .answers-grid.choices-4 { grid-template-columns: repeat(2, 1fr); }
  .answer-card .choice-photo { height: 88px; }
  .animal-choices.choices-3 { grid-template-columns: repeat(3, 1fr); }
  .animal-choices.choices-3 .animal-choice { min-height: 116px; }
  .group-photo-row.photos-4 { grid-template-columns: repeat(2, 1fr); }
  .group-label-choices.choices-4, .group-label-choices.choices-5 { grid-template-columns: repeat(2, 1fr); }
  .training-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .training-sound-grid { grid-template-columns: 1fr; }
  .training-sound-card { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; text-align: right; }
  .training-sound-photo { grid-row: 1 / 3; }
  .training-sound-card strong { align-self: end; padding: 0; }
  .training-sound-play { align-self: start; }
  .training-sound-card.training-sound-single { display: block; text-align: center; }
  .training-sound-card.training-sound-single .training-sound-photo { width: 100%; }
  .training-sound-card.training-sound-single strong { padding: 8px 0 6px; }
  .completion-actions { align-items: stretch; }
  .next-stage-btn { min-width: 0; }
}

/* بوابة البرنامج العامة وحالات الوصول */
.audience-dialog:has(.program-map-step:not([hidden])) { width: min(1120px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; text-align: right; }
.audience-dialog:has(#registerTypeStep:not([hidden])), .audience-dialog:has(#registerUnavailableStep:not([hidden])) { width: min(900px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; text-align: right; }
.audience-dialog:has(#subscriptionStep:not([hidden])) { width: min(1040px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; text-align: right; }
.program-map-step { width: 100%; }
.program-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.program-map-heading h1 { margin: 6px 0; }
.program-map-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.public-entry-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.public-entry-actions .primary-btn, .public-entry-actions .outline-btn { min-width: 142px; min-height: 48px; }
.register-type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 20px; }
.register-type-card { min-width: 0; min-height: 190px; padding: 20px 16px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px solid #d9ebe6; border-radius: 20px; background: white; color: var(--ink); text-align: center; cursor: pointer; box-shadow: 0 8px 22px rgba(24,79,74,.06); transition: .18s ease; }
.register-type-card:hover, .register-type-card:focus-visible { border-color: var(--green); background: var(--mint); transform: translateY(-2px); }
.register-type-card > span { font-size: 36px; }
.register-type-card strong { font-size: 19px; }
.register-type-card small { color: var(--muted); font-size: 14px; line-height: 1.6; }
#registerUnavailableStep > p { max-width: 600px; }
.program-map-group { margin: 18px 0 0; }
.program-map-group h2 { margin: 0 0 10px; font-size: 20px; }
.program-map-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.program-map-card { min-height: 148px; padding: 14px; display: grid; align-content: start; justify-items: start; gap: 6px; border: 1px solid #d9ebe6; border-radius: 17px; background: white; color: var(--ink); text-align: right; cursor: pointer; box-shadow: 0 7px 18px rgba(24,79,74,.05); transition: .18s ease; }
.program-map-card:hover,.program-map-card:focus-visible { border-color: var(--green); background: var(--mint); transform: translateY(-2px); }
.program-map-icon { font-size: 25px; }
.program-map-card strong { font-size: 16px; }
.program-map-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.program-map-card em { align-self: end; margin-top: auto; padding: 4px 8px; border-radius: 999px; background: #eef7f4; color: #17685f; font-size: 12px; font-style: normal; font-weight: 800; }
.trial-status-banner { margin: 0 0 12px !important; padding: 10px 14px; border: 1px solid #eed891; border-radius: 13px; background: #fff8e5; color: #66520d !important; font-size: 15px !important; font-weight: 900; }
.map-back-button { margin: 0 0 12px; }
.subscription-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 12px; }
.subscription-unavailable { max-width: 620px; margin: 0 auto !important; font-size: 14px !important; }
.subscription-choice-grid { margin: 20px 0 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 13px; }
.subscription-choice-card { min-width: 0; padding: 21px 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #d9ebe6; border-radius: 20px; background: white; box-shadow: 0 8px 22px rgba(24,79,74,.055); text-align: right; }
.subscription-choice-card > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); font-size: 23px; }
.subscription-choice-card h3 { margin: 12px 0 6px; font-size: 20px; line-height: 1.35; }
.subscription-choice-card p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.subscription-choice-card small { margin-bottom: 12px; color: #725c20; font-size: 13px; font-weight: 800; }
.subscription-choice-card button { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid #a9d5c8; border-radius: 12px; background: #eff9f4; color: var(--green-dark); font: inherit; font-weight: 900; cursor: pointer; }
.subscription-choice-card button:hover, .subscription-choice-card button:focus-visible { border-color: var(--green); background: var(--mint); }
.subscription-selection-notice { margin: 14px 0 !important; padding: 12px 15px; border: 1px solid #cce8dc; border-radius: 13px; background: #f1faf5; color: var(--green-dark) !important; font-weight: 800; line-height: 1.6; }
.subscription-return-map { display: block; margin: 12px auto 0; }
.program-map-shortcut-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.program-map-shortcut { min-height: 40px; padding: 8px 12px; border: 1px solid #b7d8cf; border-radius: 12px; background: white; color: #0b665e; font: inherit; font-weight: 900; cursor: pointer; }
.program-map-shortcut-status { color: var(--muted); font-size: 13px; font-weight: 800; }
.program-map-shortcut.in-header { min-height: 44px; padding: 8px 11px; font-size: 14px; }
.knowledge-browser-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.knowledge-browser-active .modal-progress { display: none; }
.knowledge-browser-note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.knowledge-group-grid,.knowledge-item-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.knowledge-group-card { position: relative; min-width: 0; min-height: 128px; padding: 17px 9px; display: grid; align-content: center; gap: 8px; justify-items: center; border: 1px solid #dcebe7; border-radius: 16px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.knowledge-group-card span { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 4px; border-radius: 10px; background: #f5faf8; }
.knowledge-group-card strong { font-size: 15px; }
.knowledge-group-card small { color: var(--muted); font-size: 12px; }
.knowledge-item-card { min-width: 0; margin: 0; padding: 9px; display: grid; grid-template-rows: 132px auto; align-items: center; gap: 6px; border: 1px solid #e0ebe8; border-radius: 15px; background: white; text-align: center; }
.knowledge-item-image { width: 100%; height: 132px; object-fit: contain; background: white; }
.knowledge-item-card figcaption { font-size: 15px; font-weight: 900; }
.guest-home-header .program-map-shortcut-row { margin-bottom: 0; }
@media (max-width: 850px) { .program-map-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .knowledge-group-grid,.knowledge-item-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .register-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .subscription-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .subscription-choice-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .audience-dialog:has(.program-map-step:not([hidden])) { max-height: calc(100dvh - 24px); }
  .audience-dialog:has(#registerTypeStep:not([hidden])), .audience-dialog:has(#registerUnavailableStep:not([hidden])) { max-height: calc(100dvh - 24px); }
  .audience-dialog:has(#subscriptionStep:not([hidden])) { max-height: calc(100dvh - 24px); }
  .program-map-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .public-entry-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .public-entry-actions .primary-btn, .public-entry-actions .outline-btn { width: 100%; min-width: 0; }
  .register-type-grid { grid-template-columns: 1fr; gap: 10px; }
  .subscription-choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .subscription-choice-card { padding: 17px 15px; }
  .subscription-choice-card h3 { margin-top: 8px; font-size: 18px; }
  .subscription-choice-card p { margin-bottom: 10px; font-size: 14px; }
  .register-type-card { min-height: 120px; padding: 15px 13px; border-radius: 17px; }
  .register-type-card > span { font-size: 30px; }
  .register-type-card strong { font-size: 18px; }
  .register-type-card small { font-size: 13px; }
  .program-map-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .program-map-card { min-height: 145px; padding: 11px; }
  .program-map-card strong { font-size: 15px; }
  .program-map-card small { font-size: 12px; }
  .knowledge-group-grid,.knowledge-item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .knowledge-item-card { grid-template-rows: 118px auto; padding: 7px; }
  .knowledge-item-image { height: 118px; }
  .program-map-shortcut.in-header { font-size: 13px; }
}

/* الصفحة الخارجية كصفحة تعريفية متكاملة، مع إبقاء الشاشات التالية كحوارات منفصلة */
.audience-overlay:has(.program-map-step:not([hidden])) {
  display: block;
  padding: 0;
  overflow-x: hidden;
  background: #fbfffd;
  color: var(--ink);
  overscroll-behavior-y: contain;
}
.audience-dialog:has(.program-map-step:not([hidden])) {
  width: min(1240px, 100%);
  min-height: 100dvh;
  max-height: none;
  margin-inline: auto;
  padding: 0 clamp(18px, 4vw, 54px) 36px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  text-align: right;
}
.audience-overlay:has(.program-map-step:not([hidden])) > .audience-dialog > .audience-brand { display: none; }
.landing-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8f1ee; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 900; }
.landing-brand-mark { width: 47px; height: 47px; display: grid; place-content: center; border-radius: 15px 15px 15px 5px; background: var(--green); color: white; line-height: 1.02; text-align: center; transform: rotate(-3deg); }
.landing-brand-mark > * { transform: rotate(3deg); }
.landing-brand-mark span { font-size: 11px; }
.landing-brand-mark b { font-size: 14px; }
.landing-brand-name { font-size: 19px; }
.landing-header .public-entry-actions { align-items: center; }
.landing-header .public-entry-actions .primary-btn, .landing-header .public-entry-actions .outline-btn { min-height: 43px; padding: 9px 17px; border-radius: 13px; }
.landing-trial-promo { margin-top: 18px; padding: 22px 27px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #cce8dc; border-radius: 23px; background: radial-gradient(circle at 5% 10%,rgba(255,200,87,.24),transparent 14rem),linear-gradient(110deg,#eaf8f1,#f3fbf7); }
.landing-trial-promo h1 { margin: 4px 0 3px; color: var(--ink); font-size: clamp(23px,3vw,31px); line-height: 1.3; }
.landing-trial-promo p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.landing-trial-promo button { min-width: 198px; min-height: 51px; padding: 11px 19px; border-radius: 14px; box-shadow: 0 8px 20px rgba(13,117,109,.18); font-weight: 900; }
.landing-hero { position: relative; min-height: 390px; margin-top: 24px; padding: clamp(28px, 5vw, 58px); display: grid; grid-template-columns: minmax(0,1.25fr) minmax(240px,.75fr); align-items: center; gap: 30px; overflow: hidden; border: 1px solid #d8eee6; border-radius: 30px; background: radial-gradient(circle at 8% 12%, rgba(255,200,87,.26), transparent 17rem), linear-gradient(120deg,#eefaf5,#f6fcf9 54%,#fff9ed); }
.landing-hero-copy { position: relative; z-index: 1; max-width: 680px; }
.landing-hero h1, .landing-hero h2 { max-width: 680px; margin: 11px 0 10px; font-size: clamp(34px, 5vw, 54px); line-height: 1.2; letter-spacing: -.03em; }
.landing-hero-copy > p { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.landing-hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.landing-hero-actions button { min-height: 50px; padding: 11px 21px; border-radius: 14px; font-weight: 900; }
.landing-primary-cta { box-shadow: 0 9px 22px rgba(13,117,109,.2); }
.landing-trial-note { display: block; margin-top: 12px; color: #52716e; font-size: 14px; line-height: 1.55; }
.landing-hero-art { position: relative; width: min(100%, 330px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.landing-art-orbit { position: absolute; border: 1px solid rgba(13,117,109,.2); border-radius: 50%; }
.landing-art-orbit-one { inset: 10%; }
.landing-art-orbit-two { inset: 22%; border-style: dashed; }
.landing-art-center { position: relative; z-index: 1; width: 132px; height: 132px; display: grid; align-content: center; justify-items: center; gap: 7px; border: 7px solid rgba(255,255,255,.75); border-radius: 42px 42px 42px 12px; background: linear-gradient(145deg,var(--green),var(--green-dark)); color: white; box-shadow: 0 16px 34px rgba(9,93,87,.22); transform: rotate(-4deg); }
.landing-art-mark { font-size: 22px; font-weight: 800; line-height: 1.15; text-align: center; }
.landing-art-center > span:last-child { font-size: 13px; }
.landing-art-node { position: absolute; z-index: 2; min-width: 82px; padding: 9px 12px; border: 1px solid #d4eae3; border-radius: 999px; background: white; color: var(--green-dark); box-shadow: 0 7px 20px rgba(24,79,74,.09); font-size: 14px; font-weight: 900; text-align: center; }
.landing-art-node-family { top: 11%; right: 10%; }
.landing-art-node-specialist { left: 2%; top: 47%; }
.landing-art-node-center { bottom: 9%; right: 12%; }
.landing-section { margin-top: 54px; scroll-margin-top: 18px; }
.landing-section-heading { margin-bottom: 18px; }
.landing-section-heading h2, .landing-trial-panel h2, .landing-final-cta h2 { margin: 5px 0 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.3; }
.landing-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.landing-benefit-card { min-height: 176px; padding: 20px 18px; border: 1px solid #e0eee9; border-radius: 20px; background: white; box-shadow: 0 7px 22px rgba(24,79,74,.045); }
.landing-line-icon, .landing-audience-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: #eaf8f2; color: var(--green); }
.landing-line-icon svg, .landing-audience-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-benefit-card h3, .landing-audience-card h3 { margin: 12px 0 4px; font-size: 18px; }
.landing-benefit-card p, .landing-audience-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.landing-trial-panel { margin-top: 40px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #eadba7; border-radius: 23px; background: linear-gradient(110deg,#fff8e7,#fffdf6); }
.landing-trial-label { color: #8a6912; font-size: 14px; font-weight: 900; }
.landing-trial-panel h2 { font-size: clamp(22px, 3vw, 30px); }
.landing-trial-panel p { max-width: 680px; margin: 7px 0 0; color: #71664b; font-size: 16px; line-height: 1.6; }
.landing-trial-panel button { min-width: 210px; min-height: 50px; padding: 11px 18px; border-radius: 14px; font-weight: 900; }
.program-map-group { margin-top: 38px; }
.program-map-group h2 { margin-bottom: 13px; font-size: 25px; }
.public-services-group .program-map-card { min-height: 164px; padding: 17px; }
.public-services-group .program-map-card strong { font-size: 18px; }
.public-services-group .program-map-card small { max-width: 32ch; font-size: 14px; line-height: 1.55; }
.public-services-group .program-map-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.program-map-group:not(.public-services-group) { padding-top: 4px; }
.landing-audiences { margin-top: 58px; }
.landing-audience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.landing-audience-card { min-height: 190px; padding: 22px; border: 1px solid #deede8; border-radius: 21px; background: white; box-shadow: 0 7px 22px rgba(24,79,74,.045); }
.landing-audience-icon { width: 49px; height: 49px; border-radius: 16px; }
.landing-audience-icon svg { width: 27px; height: 27px; }
.landing-audience-card h3 { font-size: 20px; }
.landing-trust { margin-top: 35px; padding: 18px 20px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px 24px; border-radius: 19px; background: #f1f8f5; }
.landing-trust-item { display: inline-flex; align-items: center; gap: 8px; color: #42615e; font-size: 15px; font-weight: 700; }
.landing-trust-item b { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: #d9f1e7; color: var(--green); font-size: 13px; }
.landing-final-cta { margin-top: 38px; padding: clamp(26px, 5vw, 44px); border-radius: 25px; background: linear-gradient(120deg,#0d756d,#095d57); color: white; text-align: center; }
.landing-final-cta .audience-kicker { color: #b8e5d5; }
.landing-final-cta h2 { color: white; }
.landing-final-cta > p { max-width: 720px; margin: 9px auto 0; color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.7; }
.landing-final-actions { margin-top: 20px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.landing-final-actions .primary-btn { min-height: 49px; padding: 10px 22px; border-radius: 14px; background: #ffc857; color: #253d39; font-weight: 900; }
.landing-login-link { padding: 10px; border: 0; background: transparent; color: white; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 900px) {
  .landing-hero { min-height: 350px; grid-template-columns: minmax(0,1.2fr) minmax(210px,.8fr); gap: 14px; }
  .landing-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .audience-dialog:has(.program-map-step:not([hidden])) { padding: 0 16px 24px; }
  .landing-header { min-height: 72px; gap: 9px; }
  .landing-brand { gap: 7px; }
  .landing-brand-mark { width: 39px; height: 39px; border-radius: 12px 12px 12px 4px; }
  .landing-brand-name { font-size: 16px; }
  .landing-header .public-entry-actions { gap: 7px; }
  .landing-header .public-entry-actions .primary-btn, .landing-header .public-entry-actions .outline-btn { min-height: 39px; padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .landing-trial-promo { margin-top: 13px; padding: 19px 17px; align-items: stretch; flex-direction: column; gap: 13px; border-radius: 19px; }
  .landing-trial-promo h1 { font-size: clamp(22px,6.6vw,28px); }
  .landing-trial-promo p { font-size: 14px; }
  .landing-trial-promo button { width: 100%; min-height: 47px; }
  .landing-hero { min-height: 0; margin-top: 15px; padding: 25px 20px; grid-template-columns: 1fr; gap: 0; border-radius: 23px; }
  .landing-hero h1, .landing-hero h2 { max-width: 520px; font-size: clamp(32px, 8vw, 41px); }
  .landing-hero-copy > p { font-size: 16px; }
  .landing-hero-art { position: absolute; width: 155px; right: auto; left: -24px; bottom: -36px; opacity: .2; }
  .landing-art-center { width: 94px; height: 94px; border-radius: 30px 30px 30px 9px; }
  .landing-art-mark { font-size: 16px; }
  .landing-art-center > span:last-child { font-size: 10px; }
  .landing-art-node { display: none; }
  .landing-hero-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; }
  .landing-hero-actions button { width: 100%; }
  .landing-trial-note { max-width: 95%; font-size: 13px; }
  .landing-section { margin-top: 37px; }
  .landing-benefit-grid { gap: 9px; }
  .landing-benefit-card { min-height: 160px; padding: 15px 13px; border-radius: 16px; }
  .landing-benefit-card h3 { font-size: 16px; }
  .landing-benefit-card p { font-size: 13px; }
  .landing-line-icon { width: 37px; height: 37px; border-radius: 12px; }
  .landing-line-icon svg { width: 21px; height: 21px; }
  .landing-trial-panel { margin-top: 28px; padding: 21px 18px; align-items: stretch; flex-direction: column; gap: 15px; border-radius: 19px; }
  .landing-trial-panel button { width: 100%; }
  .public-services-group .program-map-grid { grid-template-columns: 1fr; gap: 9px; }
  .public-services-group .program-map-card { min-height: 142px; }
  .landing-audience-grid { grid-template-columns: 1fr; gap: 9px; }
  .landing-audience-card { min-height: 0; padding: 17px; display: grid; grid-template-columns: 42px 1fr; column-gap: 13px; align-items: center; border-radius: 17px; }
  .landing-audience-icon { width: 42px; height: 42px; grid-row: span 2; border-radius: 13px; }
  .landing-audience-icon svg { width: 23px; height: 23px; }
  .landing-audience-card h3 { margin: 0 0 2px; font-size: 18px; }
  .landing-audience-card p { font-size: 14px; }
  .landing-trust { margin-top: 25px; padding: 16px; align-items: flex-start; flex-direction: column; }
  .landing-trust-item { font-size: 14px; }
  .landing-final-cta { margin-top: 26px; padding: 26px 18px; border-radius: 21px; }
  .landing-final-cta > p { font-size: 15px; }
  .landing-final-actions { align-items: stretch; flex-direction: column; }
  .landing-login-link { min-height: 44px; }
}
@media (max-width: 370px) {
  .audience-dialog:has(.program-map-step:not([hidden])) { padding-inline: 11px; }
  .landing-header { flex-wrap: wrap; padding-block: 10px; }
  .landing-header .public-entry-actions { flex: 1 1 100%; }
  .landing-brand-name { font-size: 17px; }
}

/* رحلة تعريفية قصيرة تركز على تجربة المنتج نفسها */
.landing-hero { min-height: 420px; grid-template-columns: minmax(0,1.15fr) minmax(270px,.85fr); align-items: center; gap: 20px; background: radial-gradient(circle at 86% 18%,rgba(255,200,87,.25),transparent 17rem),linear-gradient(125deg,#eaf8f2 0%,#f7fcf9 57%,#fff9ed 100%); animation: landingReveal .45s ease-out both; }
.landing-hero h1 { max-width: 660px; margin: 10px 0 12px; font-size: clamp(38px,5.2vw,58px); line-height: 1.17; }
.landing-hero-copy > p { font-size: clamp(17px,1.8vw,19px); }
.landing-hero-actions { margin-top: 22px; gap: 10px; }
.landing-hero-actions button { min-height: 50px; }
.landing-primary-cta { box-shadow: 0 9px 22px rgba(13,117,109,.19); }
.landing-hero-art { width: min(100%,340px); animation: landingReveal .55s .08s ease-out both; }
.landing-art-center { transform: none; animation: gentleFloat 4.5s ease-in-out infinite; }
.landing-art-node { min-width: 87px; border-color: #cae6dc; color: #095d57; }
.landing-art-node-family { top: 7%; right: 6%; }
.landing-art-node-specialist { top: 43%; left: -2%; }
.landing-art-node-center { bottom: 10%; right: 5%; }
.landing-art-roles { position: absolute; z-index: 3; right: 50%; bottom: 1%; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; color: #476865; font-size: 14px; font-weight: 800; transform: translateX(50%); }
.landing-art-roles i { width: 4px; height: 4px; border-radius: 50%; background: #d4ad46; }
.product-demo { margin-top: 36px; padding: clamp(22px,4vw,38px); border: 1px solid #dbece5; border-radius: 26px; background: #fff; box-shadow: 0 12px 35px rgba(24,79,74,.07); scroll-margin-top: 18px; }
.product-demo-heading { margin-bottom: 22px; }
.product-demo-heading h2 { margin: 5px 0 4px; font-size: clamp(26px,3.4vw,36px); line-height: 1.3; }
.product-demo-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.demo-progress-row { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.demo-progress-count { min-width: 48px; color: var(--green-dark); font-weight: 900; direction: ltr; text-align: center; }
.demo-progress-track { height: 8px; flex: 1; overflow: hidden; border-radius: 999px; background: #e9f2ef; }
.demo-progress-track > span { width: 33.333%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#0d756d,#42ad82); transition: width .28s ease; }
.demo-stage { min-height: 260px; padding: clamp(16px,3vw,25px); display: grid; grid-template-columns: minmax(0,.9fr) minmax(280px,1.1fr); align-items: center; gap: 22px; border: 1px solid #e5efeb; border-radius: 20px; background: linear-gradient(120deg,#f8fcfa,#fff); animation: landingReveal .28s ease-out both; }
.demo-step-copy { max-width: 470px; }
.demo-step-number { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eaf7f1; color: var(--green-dark); font-size: 14px; font-weight: 900; }
.demo-step-copy h3, .demo-complete h3 { margin: 12px 0 7px; font-size: clamp(22px,3vw,29px); line-height: 1.35; }
.demo-step-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.demo-knowledge-card { width: min(100%,270px); margin: 0 auto; padding: 13px; display: grid; justify-items: center; gap: 8px; border: 1px solid #e0ece7; border-radius: 19px; background: white; box-shadow: 0 8px 22px rgba(24,79,74,.06); }
.demo-knowledge-card img { width: 100%; height: 180px; object-fit: contain; border-radius: 13px; background: white; }
.demo-knowledge-card figcaption { display: grid; gap: 2px; color: var(--ink); font-size: 18px; font-weight: 900; text-align: center; }
.demo-knowledge-card figcaption small { color: var(--muted); font-size: 14px; font-weight: 600; }
.demo-choice-area { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 14px; }
.demo-choice { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 184px; padding: 13px 10px; display: grid; grid-template-rows: minmax(0,1fr) auto; justify-items: center; align-content: stretch; gap: 9px; border: 2px solid #dcebe6; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; touch-action: manipulation; transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.demo-choice:hover { border-color: #89c5ae; background: #f6fbf8; box-shadow: 0 5px 14px rgba(24,79,74,.07); transform: translateY(-2px); }
.demo-choice:focus-visible { outline: 3px solid rgba(255,200,87,.75); outline-offset: 2px; }
.demo-choice[aria-pressed="true"] { border-color: #0d756d; background: #eaf7f0; box-shadow: inset 0 0 0 1px #0d756d,0 5px 16px rgba(13,117,109,.12); }
.demo-choice[aria-pressed="true"]::after { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #0d756d; color: #fff; content: "✓"; font-size: 14px; font-weight: 900; line-height: 1; }
.demo-choice img { width: min(100%,142px); max-width: 100%; height: auto; aspect-ratio: 1; align-self: center; object-fit: contain; }
.demo-choice span { max-width: 100%; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; }
.demo-choice-feedback { margin: 10px 0 0; padding: 9px 12px; border-radius: 11px; background: #fff7e4; color: #705612; font-weight: 800; line-height: 1.5; }
.demo-choice-feedback.is-correct { background: #eaf8f1; color: var(--green-dark); }
.demo-plan-preview { width: min(100%,390px); margin-inline: auto; padding: 18px; border: 1px solid #dbe9e4; border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(24,79,74,.055); }
.demo-preview-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #edf2ef; color: var(--muted); font-size: 14px; font-weight: 800; }
.demo-preview-mark { color: #b7d9ce; font-size: 10px; letter-spacing: 3px; }
.demo-preview-body { margin: 16px 0; display: flex; align-items: center; gap: 12px; }
.demo-preview-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--green-dark); font-size: 22px; font-weight: 900; }
.demo-preview-body div { display: grid; gap: 3px; }
.demo-preview-body strong { font-size: 16px; }
.demo-preview-body div span { color: var(--muted); font-size: 15px; }
.demo-preview-steps { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 11px; border-radius: 12px; background: #f4f9f6; color: #42615e; font-size: 14px; font-weight: 800; }
.demo-preview-steps b { width: 16px; height: 1px; background: #b7d6cb; }
.demo-controls { margin-top: 17px; display: flex; justify-content: space-between; gap: 10px; }
.demo-controls button { min-width: 112px; min-height: 45px; padding: 9px 17px; border-radius: 12px; font-weight: 900; }
.demo-prev:disabled { opacity: .45; cursor: not-allowed; }
.demo-complete { padding: 26px 16px 10px; text-align: center; animation: landingReveal .3s ease-out both; }
.demo-complete-mark { width: 50px; height: 50px; margin: 0 auto; display: grid; place-items: center; border-radius: 17px; background: #e6f6ee; color: var(--green); font-size: 25px; font-weight: 900; }
.demo-complete h3 { margin: 9px 0 4px; }
.demo-complete p { max-width: 620px; margin: 0 auto 17px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.demo-complete > .primary-btn { min-height: 47px; padding: 10px 18px; border-radius: 13px; font-weight: 900; }
.demo-restart { display: block; margin: 9px auto 0; padding: 7px 12px; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.landing-benefit-card { transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.landing-benefit-card:hover { border-color: #b9dfd0; box-shadow: 0 10px 24px rgba(24,79,74,.08); transform: translateY(-2px); }
.landing-public-services { padding-top: 8px; }
.landing-public-services .landing-section-heading { margin-bottom: 0; }
.landing-public-services .program-map-group { margin-top: 12px; }
.landing-trial-section { margin-top: 48px; padding: clamp(22px,4vw,36px); display: grid; grid-template-columns: minmax(0,1.25fr) minmax(210px,.75fr) auto; align-items: center; gap: 20px; border: 1px solid #eadba7; border-radius: 24px; background: radial-gradient(circle at 7% 10%,rgba(255,200,87,.24),transparent 14rem),linear-gradient(115deg,#fff8e7,#fffdf8); }
.landing-trial-section h2 { margin: 4px 0 5px; font-size: clamp(24px,3vw,34px); line-height: 1.3; }
.landing-trial-section-copy p { max-width: 600px; margin: 0; color: #71664b; font-size: 16px; line-height: 1.6; }
.trial-inclusions { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; color: #5c563f; font-size: 15px; font-weight: 700; }
.trial-inclusions li { display: flex; align-items: center; gap: 8px; }
.trial-inclusions li::before { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e3f3e9; color: var(--green); content: "✓"; font-size: 12px; font-weight: 900; }
.landing-trial-section > button { min-width: 200px; min-height: 49px; padding: 10px 18px; border-radius: 14px; font-weight: 900; }
.landing-final-cta { margin-top: 42px; }
@keyframes landingReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gentleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 850px) {
  .landing-hero { min-height: 380px; grid-template-columns: minmax(0,1fr) minmax(230px,.8fr); }
  .demo-stage { grid-template-columns: minmax(0,.8fr) minmax(250px,1.2fr); }
  .demo-choice-area { gap: 11px; }
  .demo-choice { min-height: 174px; padding: 11px 8px; }
  .demo-choice img { width: min(100%,126px); }
  .landing-trial-section { grid-template-columns: minmax(0,1fr) minmax(190px,.8fr); }
  .landing-trial-section > button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .audience-dialog:has(.program-map-step:not([hidden])) { padding: 0 14px 26px; }
  .landing-header { min-height: 68px; }
  .landing-hero { min-height: 0; margin-top: 14px; padding: 23px 18px 18px; grid-template-columns: 1fr; gap: 2px; border-radius: 23px; }
  .landing-hero h1 { max-width: 520px; font-size: clamp(34px,8.5vw,43px); }
  .landing-hero-copy > p { font-size: 16px; }
  .landing-hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .landing-hero-actions button { width: 100%; min-height: 48px; padding-inline: 13px; }
  .landing-hero-art { position: relative; inset: auto; width: min(76vw,270px); margin: 16px auto 3px; opacity: 1; }
  .landing-art-center { width: 108px; height: 108px; border-radius: 34px 34px 34px 10px; }
  .landing-art-mark { font-size: 18px; }
  .landing-art-node { min-width: 76px; padding: 7px 10px; font-size: 14px; }
  .landing-art-node-family { top: 7%; right: 3%; }
  .landing-art-node-specialist { top: 43%; left: -2%; }
  .landing-art-node-center { bottom: 9%; right: 4%; }
  .landing-art-roles { bottom: -4%; gap: 6px; font-size: 14px; white-space: nowrap; }
  .product-demo { margin-top: 25px; padding: 19px 14px; border-radius: 21px; }
  .product-demo-heading { margin-bottom: 17px; }
  .product-demo-heading h2 { font-size: clamp(24px,7vw,30px); }
  .product-demo-heading p { font-size: 15px; }
  .demo-progress-row { margin-bottom: 13px; }
  .demo-stage { min-height: 0; padding: 16px 12px; grid-template-columns: 1fr; gap: 16px; border-radius: 16px; }
  .demo-step-copy h3 { margin-top: 9px; font-size: 23px; }
  .demo-step-copy p { font-size: 15px; }
  .demo-knowledge-card { width: min(100%,230px); }
  .demo-knowledge-card img { height: 156px; }
  .demo-choice-area { gap: 8px; }
  .demo-choice { min-height: 152px; padding: 9px 5px; gap: 8px; border-radius: 13px; }
  .demo-choice img { width: min(100%,92px); }
  .demo-choice span { font-size: 16px; }
  .demo-plan-preview { padding: 14px; }
  .demo-preview-steps { gap: 5px; padding: 9px 7px; font-size: 13px; }
  .demo-preview-steps b { width: 10px; }
  .demo-controls { margin-top: 12px; }
  .demo-controls button { min-width: 104px; min-height: 47px; }
  .demo-complete { padding: 22px 5px 3px; }
  .landing-section { margin-top: 34px; }
  .landing-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .landing-benefit-card { min-height: 155px; padding: 14px 12px; border-radius: 16px; }
  .landing-benefit-card h3 { margin-top: 9px; font-size: 17px; }
  .landing-benefit-card p { font-size: 14px; line-height: 1.5; }
  .landing-public-services .program-map-group { margin-top: 8px; }
  .landing-public-services .program-map-grid { grid-template-columns: 1fr; gap: 9px; }
  .landing-public-services .program-map-card { min-height: 128px; }
  .landing-trial-section { margin-top: 29px; padding: 21px 17px; grid-template-columns: 1fr; gap: 14px; border-radius: 20px; }
  .landing-trial-section-copy p { font-size: 15px; }
  .trial-inclusions { gap: 7px; font-size: 14px; }
  .landing-trial-section > button { width: 100%; grid-column: auto; }
  .landing-final-cta { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero, .landing-hero-art, .landing-art-center, .demo-stage, .demo-complete { animation: none !important; }
  .demo-progress-track > span, .demo-choice, .landing-benefit-card { transition: none !important; }
}

/* خريطة عالم المنصة ومسارات الدخول العامة */
.landing-header { gap: 16px; }
.landing-header-subscribe { min-height: 44px; padding: 9px 16px; border: 1px solid #c8e4d9; border-radius: 13px; background: #f2faf6; color: #095d57; font: inherit; font-weight: 900; cursor: pointer; }
.landing-header-subscribe:hover, .landing-header-subscribe:focus-visible { border-color: #0d756d; background: #e7f5ef; }
.landing-header-subscribe:focus-visible, .landing-text-action:focus-visible, .landing-final-secondary:focus-visible, .world-node:focus-visible, .landing-path-card:focus-visible { outline: 3px solid rgba(13,117,109,.4); outline-offset: 3px; }
.landing-hero { grid-template-columns: minmax(0,1fr) minmax(330px,.9fr); }
.landing-hero-note { margin-top: 12px !important; font-size: 14px !important; }
.landing-hero-actions .landing-text-action { border: 0; background: transparent; color: #095d57; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.landing-hero-art { width: min(100%, 440px); max-width: 440px; aspect-ratio: 1.08; }
.platform-map { position: relative; isolation: isolate; width: 100%; height: 100%; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); grid-template-areas: ". knowledge ." "family hub specialist" "activities . center"; align-items: center; justify-items: center; gap: 7px; }
.platform-map::before { position: absolute; z-index: -2; inset: 10%; border: 1px solid rgba(13,117,109,.13); border-radius: 50%; background: radial-gradient(circle,rgba(255,255,255,.87) 0 31%,rgba(232,247,239,.52) 32% 55%,rgba(255,255,255,0) 56%); content: ""; }
.platform-map-lines { position: absolute; z-index: -1; inset: 10%; width: 80%; height: 80%; overflow: visible; }
.platform-map-lines path { fill: none; stroke: #b7d9cd; stroke-width: .65; stroke-dasharray: 2 2; }
.world-node { width: min(100%,128px); min-height: 91px; padding: 9px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #cde5da; border-radius: 17px; background: rgba(255,255,255,.96); color: #274b46; font: inherit; text-align: center; cursor: pointer; box-shadow: 0 7px 20px rgba(31,86,75,.07); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.world-node:hover { transform: translateY(-2px); border-color: #83bfa9; box-shadow: 0 10px 22px rgba(31,86,75,.11); }
.world-node > span { color: #0d756d; font-size: 20px; line-height: 1.1; }
.world-node strong { font-size: 13px; line-height: 1.25; }
.world-node small { color: #657c77; font-size: 10.5px; line-height: 1.35; }
.world-node em { color: #0d756d; font-size: 10px; font-style: normal; font-weight: 900; }
.world-node-knowledge { grid-area: knowledge; }
.world-node-family { grid-area: family; }
.world-node-specialist { grid-area: specialist; }
.world-node-activities { grid-area: activities; }
.world-node-center { grid-area: center; }
.world-hub { grid-area: hub; width: 114px; min-height: 114px; padding: 13px 10px; display: grid; place-content: center; gap: 7px; border-radius: 36px 36px 36px 13px; background: linear-gradient(145deg,#0d756d,#095d57); color: white; text-align: center; box-shadow: 0 13px 28px rgba(9,93,87,.22); transform: rotate(-3deg); }
.world-hub-mark { font-size: 18px; font-weight: 900; line-height: 1.05; }
.world-hub small { font-size: 10px; line-height: 1.35; }
.platform-map-note { max-width: 360px; margin: -2px auto 0; color: #58736d; font-size: 13px; line-height: 1.5; text-align: center; }
.landing-paths { margin-top: 34px; }
.landing-section-heading > p { max-width: 720px; margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.landing-path-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.landing-path-card { min-height: 176px; padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid #dfebe6; border-radius: 19px; background: #fff; color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.landing-path-card:hover { transform: translateY(-2px); border-color: #a8d2c1; box-shadow: 0 10px 24px rgba(24,79,74,.07); }
.landing-path-card > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #edf7f2; color: #0d756d; font-size: 19px; }
.landing-path-card strong { font-size: 17px; }
.landing-path-card small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.landing-path-card em { margin-top: auto; color: #0d756d; font-size: 13px; font-style: normal; font-weight: 900; }
.landing-path-visitor { background: #f5faf7; }
.landing-start-here { padding: 22px 24px; border: 1px solid #e4eee9; border-radius: 22px; background: #fbfdfc; }
.landing-start-here .landing-section-heading h2 { font-size: clamp(23px,2.8vw,30px); }
.landing-start-actions { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.landing-start-actions button { min-height: 46px; padding: 9px 16px; border-radius: 13px; font-weight: 900; }
.landing-start-actions .landing-text-action { border: 0; background: transparent; color: #095d57; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.landing-trial-top { margin-top: 27px; }
.landing-subscription { margin-top: 40px; padding: 25px 28px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px 26px; border: 1px solid #dbece5; border-radius: 23px; background: #f7fbf9; }
.landing-subscription h2 { margin: 5px 0 3px; font-size: clamp(24px,3vw,32px); line-height: 1.3; }
.landing-subscription p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.landing-subscription ul { grid-column: 1; grid-row: 2; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.landing-subscription li { padding: 7px 12px; border: 1px solid #dbece5; border-radius: 999px; background: white; color: #42615b; font-size: 13px; font-weight: 800; }
.landing-subscription > button { grid-column: 2; grid-row: 1 / span 2; min-height: 46px; padding: 9px 16px; border-radius: 13px; font-weight: 900; }
.landing-final-actions .landing-final-secondary { min-height: 49px; padding: 10px 19px; border: 1px solid rgba(255,255,255,.46); border-radius: 14px; background: transparent; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.landing-final-actions .landing-final-secondary:hover { background: rgba(255,255,255,.1); }
.landing-final-cta { scroll-margin-top: 20px; }
@media (max-width: 980px) {
  .landing-hero { grid-template-columns: minmax(0,1fr) minmax(290px,.85fr); }
  .landing-path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .landing-header { align-items: flex-start; }
  .landing-header-subscribe { grid-column: 1 / -1; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero-art { position: relative; inset: auto; width: min(100%,390px); max-width: 390px; margin: 10px auto 0; opacity: 1; }
  .landing-path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-path-card { min-height: 164px; }
  .landing-subscription { grid-template-columns: 1fr; padding: 21px 18px; }
  .landing-subscription ul, .landing-subscription > button { grid-column: auto; grid-row: auto; }
  .landing-subscription > button { width: 100%; }
}
@media (max-width: 420px) {
  .landing-header .public-entry-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-header-subscribe { grid-column: 1 / -1; width: 100%; }
  .landing-hero-art { width: 100%; }
  .platform-map { padding: 10px 1px; gap: 4px; }
  .world-node { min-height: 80px; padding: 6px 3px; border-radius: 13px; }
  .world-node > span { font-size: 18px; }
  .world-node strong { font-size: 11.5px; }
  .world-node small { font-size: 9px; }
  .world-node em { font-size: 9px; }
  .world-hub { width: 91px; min-height: 91px; padding: 10px 6px; border-radius: 28px 28px 28px 10px; }
  .world-hub-mark { font-size: 15px; }
  .world-hub small { font-size: 9px; }
  .landing-path-grid { gap: 8px; }
  .landing-path-card { min-height: 167px; padding: 13px 11px; }
  .landing-path-card strong { font-size: 15px; }
  .landing-path-card small { font-size: 13px; }
  .landing-start-here { padding: 19px 15px; }
  .landing-start-actions { display: grid; grid-template-columns: 1fr; }
  .landing-start-actions button { width: 100%; }
  .landing-final-actions { display: grid; }
  .landing-final-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .world-node, .landing-path-card { transition: none !important; }
  .world-node:hover, .landing-path-card:hover { transform: none; }
}

/* مساحة إدارة الحالة والبرنامج العلاجي */
.professional-mode .app-shell { max-width: 1280px; }
.professional-mode .topbar { height: 88px; }
.workspace { padding: 8px 0 72px; }
.workspace-header { min-height: 190px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-radius: 30px; background: linear-gradient(135deg, #0d756d, #095d57); color: white; overflow: hidden; position: relative; }
.workspace-header::after { content: ""; position: absolute; width: 260px; height: 260px; left: -80px; bottom: -170px; border: 34px solid rgba(255,255,255,.07); border-radius: 50%; }
.workspace-header > * { position: relative; z-index: 1; }
.workspace-header .workspace-kicker { color: #bbebdf; }
.workspace-header h1 { margin: 8px 0 4px; color: white; font-size: clamp(34px, 5vw, 52px); }
.workspace-header p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; }
.workspace-header.dashboard-header { min-height: 154px; padding-block: 26px; }
.workspace-kicker { color: var(--green); font-size: 13px; font-weight: 800; }
.header-workflow { display: flex; align-items: center; gap: 12px; }
.workspace-home-btn { min-height: 48px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.38); border-radius: 14px; background: rgba(255,255,255,.12); color: white; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.workspace-home-btn:hover, .workspace-home-btn:focus-visible { background: white; color: var(--green); }
.header-session-btn { min-height: 48px; padding: 11px 18px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.active-child-chip { min-width: 280px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.child-avatar { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); color: var(--ink); font-size: 22px; font-weight: 800; }
.active-child-chip label { flex: 1; display: grid; gap: 2px; }
.active-child-chip small { color: rgba(255,255,255,.7); }
.active-child-chip b { font-size: 17px; }
.active-child-chip select { max-width: 150px; padding: 2px 22px 2px 3px; border: 0; outline: 0; background: transparent; color: white; font: inherit; font-weight: 800; cursor: pointer; }
.active-child-chip select option { color: var(--ink); background: white; }
.active-child-chip button { border: 0; padding: 8px 11px; border-radius: 10px; background: white; color: var(--green); font-weight: 800; cursor: pointer; }
.workspace-nav { margin: 16px 0 24px; padding: 8px; display: grid; grid-template-columns: repeat(10, minmax(92px, 1fr)); gap: 5px; border: 1px solid #dcebe7; border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(24,79,74,.06); overflow-x: auto; }
.workspace-nav button { min-height: 62px; padding: 8px 5px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.workspace-nav button span { font-size: 20px; }
.workspace-nav button.is-active { background: var(--mint); color: var(--green); }
.workspace-content { min-height: 440px; }
.section-toolbar { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-toolbar h2 { margin: 6px 0 0; font-size: clamp(27px, 4vw, 38px); }
.outline-btn { min-height: 44px; padding: 9px 15px; border: 2px solid var(--mint-2); border-radius: 13px; background: white; color: var(--green); font-weight: 800; cursor: pointer; }
.score-pill { min-width: 112px; padding: 10px 15px; display: grid; text-align: center; border-radius: 17px; background: var(--mint); }
.score-pill small { color: var(--muted); }
.score-pill strong { color: var(--green); font-size: 25px; }
.progress-average-pill .progress-unavailable-score { font-size: 16px; line-height: 1.45; white-space: nowrap; }
.dashboard-summary { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dashboard-summary > div { min-height: 120px; padding: 21px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.dashboard-summary span { color: var(--muted); font-weight: 700; }
.dashboard-summary strong { grid-row: 1 / 3; grid-column: 2; color: var(--green); font-size: 38px; }
.dashboard-summary small { color: var(--muted); }
.dashboard-context { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dashboard-context article { min-height: 112px; padding: 18px; display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 12px; border: 1px solid #dcebe7; border-radius: 20px; background: #f7fbfa; }
.dashboard-context .context-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); font-size: 22px; }
.dashboard-context small, .dashboard-context b, .dashboard-context p { display: block; }
.dashboard-context small { margin-bottom: 5px; color: var(--muted); font-weight: 700; }
.dashboard-context b { line-height: 1.45; }
.dashboard-context p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.dashboard-context-expanded { grid-template-columns: repeat(4, 1fr); }
.dashboard-context-expanded article { min-height: 154px; }
.dashboard-status-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-status-card { min-height: 190px; padding: 20px; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: 12px; border: 1px solid #dcebe7; border-radius: 22px; background: white; color: var(--ink); text-align: right; cursor: pointer; box-shadow: 0 10px 30px rgba(24,79,74,.06); font: inherit; transition: .2s ease; }
.dashboard-status-card:hover { transform: translateY(-3px); border-color: var(--mint-2); box-shadow: var(--shadow); }
.dashboard-status-card:focus-visible { outline: 3px solid rgba(22,135,123,.25); outline-offset: 3px; }
.dashboard-status-card .context-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--mint); font-size: 22px; }
.dashboard-status-copy { min-width: 0; display: grid; align-content: start; gap: 5px; }
.dashboard-status-copy small { color: var(--muted); font-weight: 800; }
.dashboard-status-copy strong { line-height: 1.45; overflow-wrap: anywhere; }
.dashboard-status-copy > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.dashboard-card-action { grid-column: 1 / -1; align-self: end; color: var(--green); font-size: 13px; font-weight: 800; }
.dashboard-mini-btn { margin-top: 9px; padding: 7px 10px; border: 1px solid var(--green); border-radius: 9px; background: white; color: var(--green); font: 800 12px inherit; cursor: pointer; }
.dashboard-warning { margin-bottom: 14px; padding: 12px 15px; border: 1px solid #f0d38b; border-radius: 14px; background: #fff9e8; color: #725515; font-weight: 800; }
.resume-dashboard { margin-bottom: 16px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 20px; background: var(--cream); }
.resume-dashboard small,.resume-dashboard b,.resume-dashboard span { display: block; }.resume-dashboard small,.resume-dashboard span { color: var(--muted); }.resume-dashboard b { margin: 4px 0; }
.today-goals-dashboard { margin: 0 0 20px; padding: 20px; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.today-goals-dashboard h2 { margin: 4px 0 14px; }.today-goals-dashboard article { padding: 10px 0; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid #edf3f1; }
.today-goals-dashboard article > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); }.today-goals-dashboard article span,.today-goals-dashboard article small { display: block; }.today-goals-dashboard article small { margin-top: 3px; color: var(--muted); }
.dashboard-empty-child { padding: 45px 20px; text-align: center; border: 1px solid #dcebe7; border-radius: 22px; background: white; }.dashboard-empty-child > span { font-size: 42px; }.dashboard-empty-child p { color: var(--muted); }
.specialist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.specialist-card { min-height: 144px; padding: 19px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; border: 1px solid #dcebe7; border-radius: 22px; background: white; color: var(--ink); text-align: right; cursor: pointer; box-shadow: 0 10px 30px rgba(24,79,74,.06); transition: .2s ease; }
.specialist-card:hover { transform: translateY(-3px); border-color: var(--mint-2); box-shadow: var(--shadow); }
.specialist-card .specialist-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--mint); font-size: 25px; }
.specialist-card strong, .specialist-card small { display: block; }
.specialist-card strong { margin-bottom: 4px; font-size: 18px; }
.specialist-card small { color: var(--muted); line-height: 1.45; }
.specialist-card i { color: var(--green); font-size: 22px; font-style: normal; }
.dashboard-lower { margin-top: 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.focus-card, .mini-progress-card { padding: 24px; border-radius: 24px; }
.focus-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--cream); }
.focus-card h2 { margin: 7px 0 5px; }
.focus-card p { margin: 0; color: var(--muted); }
.mini-progress-card { background: white; border: 1px solid #dcebe7; }
.mini-progress-card h3 { margin-bottom: 16px; }
.child-file-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.children-list, .child-record { border: 1px solid #dcebe7; border-radius: 24px; background: white; }
.children-list { padding: 16px; align-self: start; }
.children-list h3 { padding: 4px 4px 12px; margin: 0; }
.children-search { margin-bottom: 13px; display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.children-search input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cfe2dd; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
#childrenListItems { display: grid; gap: 5px; }
.children-search-empty { margin: 12px 4px 2px; color: var(--muted); font-size: 13px; }
.child-list-item { width: 100%; padding: 9px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 15px; background: transparent; color: var(--ink); text-align: right; cursor: pointer; }
.child-list-item.is-active { background: var(--mint); }
.child-list-item .child-avatar { width: 42px; height: 42px; font-size: 18px; }
.child-list-item b, .child-list-item small { display: block; }
.child-list-item small { color: var(--muted); font-size: 11px; }
.child-record { padding: 26px; }
.record-top { margin-bottom: 22px; display: flex; align-items: center; gap: 17px; }
.record-heading { min-width: 0; flex: 1; }
.record-top-action { margin-inline-start: auto; align-self: start; }
.record-top h2 { margin: 4px 0; font-size: 30px; }
.record-top p { margin: 0 0 7px; color: var(--muted); }
.profile-placeholder { width: 96px; height: 110px; flex: 0 0 auto; display: grid; place-items: center; align-content: center; border-radius: 24px; background: var(--mint); }
.profile-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-placeholder span { font-size: 42px; font-weight: 800; }
.profile-placeholder small { color: var(--muted); }
.record-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.record-meta span { padding: 6px 10px; border-radius: 10px; background: var(--cream); color: var(--green); font-size: 13px; font-weight: 800; }
.session-count { padding: 6px 10px; border-radius: 10px; background: var(--cream); font-size: 13px; font-weight: 800; }
.child-details-view { padding: 20px; border: 1px solid #dcebe7; border-radius: 20px; background: #f7fbfa; }
.child-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.child-info-grid > div { min-height: 70px; padding: 12px 14px; border: 1px solid #e0eee9; border-radius: 14px; background: white; }
.child-info-grid > div.wide-field { grid-column: 1 / -1; }
.child-info-grid small, .child-info-grid b { display: block; }
.child-info-grid small { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.child-info-grid b { line-height: 1.55; overflow-wrap: anywhere; }
.record-form { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; border-radius: 20px; background: #f7fbfa; }
.record-form label, .add-goal-form label, .homework-form label, .report-filter label, .session-notes, .parent-task label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.record-form input, .record-form textarea, .add-goal-form input, .add-goal-form select, .add-goal-form textarea, .homework-form input, .homework-form textarea, .homework-form select, .report-filter input, .session-notes textarea, .parent-task textarea, .parent-task input, .parent-task select, .assistance-select select, .skill-search input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfe2dd; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.record-form textarea, .homework-form textarea, .session-notes textarea, .parent-task textarea { min-height: 82px; resize: vertical; }
.record-form .wide-field, .record-form .consent-field { grid-column: 1 / -1; }
.consent-field { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.consent-field input { width: 20px; min-height: 20px; }
.record-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; gap: 9px; }
.save-record { justify-self: start; }
.calculated-age-field { min-height: 46px; padding: 9px 12px; display: grid; gap: 2px; align-content: center; border: 1px solid #dcebe7; border-radius: 12px; background: #edf8f4; }
.calculated-age-field small { color: var(--muted); font-size: 12px; font-weight: 800; }
.calculated-age-field b { color: var(--green); }
.current-level { margin-top: 24px; }
.current-level h3 { margin: 5px 0 18px; font-size: 25px; }
.current-level-heading { margin-bottom: 14px; }
.child-level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.child-level-card { min-height: 145px; padding: 16px; display: grid; grid-template-columns: 42px 1fr; align-content: start; align-items: start; gap: 10px; border: 1px solid #dcebe7; border-radius: 18px; background: white; color: var(--ink); text-align: right; }
button.child-level-card { font: inherit; cursor: pointer; transition: .18s ease; }
button.child-level-card:hover { transform: translateY(-2px); border-color: var(--mint-2); box-shadow: var(--shadow); }
.child-level-card .context-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); font-size: 20px; }
.child-level-card > span:last-child { min-width: 0; display: grid; gap: 5px; }
.child-level-card small, .child-level-card strong, .child-level-card em { display: block; }
.child-level-card small { color: var(--muted); font-size: 12px; font-weight: 800; }
.child-level-card strong { line-height: 1.45; overflow-wrap: anywhere; }
.child-level-card em { color: var(--green); font-size: 12px; font-style: normal; line-height: 1.45; }
.clinical-progress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 20px; }
.clinical-row > div:first-child { margin-bottom: 5px; display: flex; justify-content: space-between; gap: 12px; }
.clinical-row span { color: var(--muted); font-weight: 700; }
.clinical-row b { color: var(--green); }
.clinical-track { height: 10px; border-radius: 99px; background: #e9f2ef; overflow: hidden; }
.clinical-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green), #55bda2); }
.clinical-progress.compact { grid-template-columns: 1fr; gap: 10px; }
.clinical-progress.compact .clinical-track { height: 7px; }
.assessment-toolbar { align-items: flex-start; }
.assessment-child-context { margin: 7px 0 0; color: var(--muted); }
.assessment-child-context strong { color: var(--green); }
.assessment-toolbar-meta { display: flex; align-items: stretch; gap: 10px; }
.assessment-progress-summary { min-width: 210px; padding: 11px 14px; display: grid; gap: 4px; border: 1px solid #dcebe7; border-radius: 15px; background: #f7fbfa; }
.assessment-progress-summary small { color: var(--muted); font-weight: 700; }
.assessment-progress-summary strong { color: var(--green); font-size: 14px; }
.assessment-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.domain-list { position: sticky; top: 18px; padding: 9px; display: grid; gap: 4px; align-self: start; border: 1px solid #dcebe7; border-radius: 20px; background: white; max-height: 650px; overflow-y: auto; }
.domain-list button { min-height: 47px; padding: 8px 11px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: right; font-weight: 800; cursor: pointer; }
.domain-list button .domain-icon { font-size: 20px; }
.domain-list button .domain-name { min-width: 0; }
.domain-list button.is-active { background: var(--mint); color: var(--green); }
.assessment-domain-status { white-space: nowrap; color: #7b9690; font-size: 10px; font-weight: 800; }
.assessment-domain-status.in-progress { color: #a87300; }
.assessment-domain-status.complete { color: var(--green); }
.assessment-sheet { padding: 26px; border: 1px solid #dcebe7; border-radius: 24px; background: white; }
.assessment-title { display: flex; align-items: center; gap: 12px; }
.assessment-title > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; background: var(--mint); font-size: 29px; }
.assessment-title small, .assessment-title h3 { display: block; margin: 0; }
.assessment-title small { color: var(--muted); }
.assessment-title h3 { font-size: 25px; }
.assessment-section-progress { margin-top: 4px !important; color: var(--green) !important; font-weight: 800; }
.assessment-save-status { margin-inline-start: auto; padding: 6px 10px; border-radius: 99px; background: #e5f6ef; color: var(--green) !important; font-size: 12px; font-weight: 800; white-space: nowrap; }
.assessment-help { margin: 18px 0; padding: 13px 15px; border-radius: 13px; background: var(--cream); color: var(--muted); }
.skill-checklist { display: grid; gap: 12px; }
.skill-row { padding: 17px; display: grid; gap: 13px; border: 1px solid #e2efeb; border-radius: 17px; }
.skill-row > div:first-child { display: flex; justify-content: space-between; gap: 15px; }
.skill-row small { color: var(--green); }
.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.status-buttons button { min-height: 36px; padding: 7px 10px; border: 1px solid #d4e5e1; border-radius: 10px; background: #f8fbfa; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.status-buttons button.is-selected { border-color: var(--green); background: var(--green); color: white; }
.plan-toolbar { align-items: end; }
.plan-child-context { margin: 7px 0 0; color: var(--muted); }
.plan-child-context strong { color: var(--green); }
.goal-summary-panel, .plan-goals-section { margin: 18px 0; padding: 20px; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.goal-summary-panel h3, .plan-section-heading h3 { margin: 4px 0 0; }
.goal-summary-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-summary-grid div { padding: 14px; border-radius: 15px; background: var(--mint); }
.goal-summary-grid small, .goal-summary-grid strong { display: block; }
.goal-summary-grid small { color: var(--muted); font-size: 12px; }
.goal-summary-grid strong { margin-top: 4px; color: var(--green); font-size: 24px; }
.plan-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.plan-section-heading > small { color: var(--muted); }
.goal-edit-trigger { margin-inline-start: auto; white-space: nowrap; }
.goal-assessment-insight { margin: 14px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfe8df; border-radius: 15px; background: #f5fcf9; }
.goal-assessment-insight > span { font-size: 22px; }
.goal-assessment-insight p { flex: 1; margin: 0; }
.goal-assessment-insight b, .goal-assessment-insight small { display: block; }
.goal-assessment-insight small { margin-top: 3px; color: var(--muted); }
.goal-assessment-insight em { color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.goal-review-alert { margin-top: 14px; padding: 11px 13px; border: 1px solid #efd58a; border-radius: 13px; background: #fff9e9; color: #7a5500; font-size: 13px; font-weight: 800; }
.goal-fieldset { min-width: 0; margin: 0; padding: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border: 1px solid #dcebe7; border-radius: 16px; }
.goal-fieldset legend { padding: 0 7px; color: var(--green); font-size: 13px; font-weight: 900; }
.goal-fieldset label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.goal-fieldset .wide-goal-field { grid-column: span 3; }
.goal-fieldset .full-goal-field { grid-column: 1 / -1; }
.goal-fieldset input, .goal-fieldset select, .goal-fieldset textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: inherit; }
.goal-fieldset textarea { min-height: 76px; resize: vertical; }
.field-error { min-height: 15px; color: #b34b45; font-size: 11px; font-weight: 800; }
.goal-fieldset input[aria-invalid="true"], .goal-fieldset select[aria-invalid="true"], .goal-fieldset textarea[aria-invalid="true"] { border-color: #c85b54; box-shadow: 0 0 0 3px rgba(200,91,84,.1); }
.goal-form-actions { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; }
.goal-edit-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #b9d8d0; }
.goal-edit-form > div:first-child { grid-column: 1 / -1; }
.goal-edit-form .goal-fieldset { grid-column: 1 / -1; }
.goal-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.goal-card { padding: 22px; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.goal-head { display: flex; gap: 11px; }
.goal-head > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--cream); font-size: 23px; }
.goal-head small { color: var(--green); font-weight: 800; }
.goal-head h3 { margin: 4px 0 17px; font-size: 18px; line-height: 1.5; }
.goal-measures { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.goal-measures > div { padding: 12px; border-radius: 14px; background: #f7fbfa; }
.goal-measures span, .goal-measures b { display: block; }
.goal-measures span { color: var(--muted); font-size: 12px; }
.goal-measures b { margin: 4px 0 7px; color: var(--green); font-size: 23px; }
.goal-measures i, .goal-progress-list i { height: 7px; display: block; border-radius: 99px; background: #e1ece9; overflow: hidden; }
.goal-measures em, .goal-progress-list em { height: 100%; display: block; background: var(--green); }
.goal-measures .target-track em { background: var(--yellow); }
.assistance-select { margin-top: 14px; display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.add-goal-form, .homework-form { margin-top: 18px; padding: 22px; display: grid; grid-template-columns: 1.6fr .7fr .7fr 1fr auto; gap: 12px; align-items: end; border-radius: 22px; background: var(--mint); }
.add-goal-form > div, .homework-form > div { grid-column: 1 / -1; }
.add-goal-form h3, .homework-form h3 { margin: 5px 0 4px; }
.homework-form-state { grid-column: 1 / -1; color: var(--muted); font-weight: 800; }
.homework-context-action { grid-column: 1 / -1; width: fit-content; }
.homework-form .primary-btn:disabled { opacity: .5; cursor: not-allowed; }
.manual-decision-note { margin-bottom: 18px; padding: 14px 17px; display: flex; gap: 11px; align-items: center; border: 1px solid #f0d58e; border-radius: 17px; background: #fff9e9; }
.manual-decision-note span { font-size: 28px; }.manual-decision-note p { margin: 0; color: var(--muted); }.manual-decision-note b { color: var(--ink); }
.measurable-goal-list { grid-template-columns: 1fr; }
.measurable-goal { border-right: 5px solid #d9e6e3; }.measurable-goal.is-approved { border-right-color: var(--green); }.measurable-goal.is-draft { border-right-color: var(--yellow); }
.goal-state-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }.goal-state-line b { padding: 5px 8px; border-radius: 99px; background: var(--cream); color: #7a5500; font-size: 11px; }
.goal-head p { margin: 0; color: var(--muted); font-size: 13px; }.goal-head code { color: var(--green); font-size: 11px; direction: ltr; }
.goal-level-path { margin: 15px 0; padding: 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; border-radius: 15px; background: #f7fbfa; text-align: center; }.goal-level-path span { display: grid; gap: 3px; }.goal-level-path small { color: var(--muted); }.goal-level-path i { color: var(--green); font-style: normal; font-size: 22px; }
.goal-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }.goal-metrics div { padding: 11px; border: 1px solid #e2efeb; border-radius: 13px; background: white; }.goal-metrics small, .goal-metrics b { display: block; }.goal-metrics small { color: var(--muted); font-size: 11px; }.goal-metrics b { margin-top: 4px; color: var(--green); font-size: 16px; }
.goal-decision { margin-top: 15px; display: grid; grid-template-columns: .7fr 1.7fr auto; gap: 11px; align-items: end; }.goal-decision label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }.goal-decision select, .goal-decision textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; font: inherit; }.goal-decision textarea { min-height: 70px; resize: vertical; }
.measurable-goal-form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.measurable-goal-form > .goal-fieldset { grid-column: 1 / -1; }
.measurable-goal-form > .goal-fieldset:nth-of-type(1) { grid-template-columns: minmax(0, .3fr) minmax(0, .7fr); }
.measurable-goal-form > .goal-fieldset:nth-of-type(1) .wide-goal-field { grid-column: auto; }
.measurable-goal-form > .goal-fieldset:nth-of-type(2) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.measurable-goal-form > .goal-fieldset:nth-of-type(3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.measurable-goal-form > .goal-fieldset:nth-of-type(4) { grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr); }
.measurable-goal-form select { min-width: 0; text-overflow: clip; white-space: normal; }
.session-child-context { margin: 7px 0 0; color: var(--muted); }
.session-child-context strong { color: var(--green); }
.session-setup { display: grid; gap: 18px; }
.session-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; }
.session-step { min-width: 0; padding: 12px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #dcebe7; border-radius: 14px; background: #f7fbfa; color: var(--muted); }
.session-step b { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e5efec; color: var(--muted); }
.session-step em { font-style: normal; font-size: 12px; font-weight: 800; line-height: 1.35; }
.session-step.is-current { border-color: #e1bf61; background: #fffaf0; color: #7a5500; }
.session-step.is-current b { background: #e1bf61; color: white; }
.session-step.is-complete { border-color: #b9dfd2; background: #effaf6; color: var(--green); }
.session-step.is-complete b { background: var(--green); color: white; }
.session-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.session-setup-grid label, .session-notes { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.session-setup-grid select, .session-notes textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfe2dd; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.session-setup-grid select:disabled { background: #f1f6f4; color: var(--muted); cursor: not-allowed; }
.session-blocked-state { padding: 16px; display: grid; gap: 7px; border: 1px solid #efd58a; border-radius: 15px; background: #fffaf0; }
.session-blocked-state strong { color: #7a5500; }
.session-blocked-state p { margin: 0; color: var(--muted); }
.session-blocked-state .outline-btn { width: fit-content; }
.session-setup-actions { display: flex; align-items: center; gap: 13px; }
.session-setup-actions .primary-btn:disabled { opacity: .5; cursor: not-allowed; }
.setup-warning { color: #7a5500; font-weight: 800; }
.session-setup-actions .setup-warning[hidden] { display: none; }
.baseline-area { margin-top: 15px; padding: 13px; border: 1px dashed #b9d8d0; border-radius: 15px; background: #fbfffd; }.baseline-empty { display: flex; align-items: center; gap: 9px; }.baseline-empty > span { font-size: 25px; }.baseline-empty p, .baseline-empty small { margin: 0; display: block; }.baseline-empty small { margin-top: 2px; color: var(--muted); }.baseline-summary { margin-bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.baseline-summary div { padding: 9px; border-radius: 11px; background: var(--mint); }.baseline-summary small, .baseline-summary b { display: block; }.baseline-summary small { color: var(--muted); font-size: 11px; }.baseline-summary b { margin-top: 3px; color: var(--green); }
.baseline-form-host { margin-top: 12px; }.baseline-form { padding: 14px; border-radius: 14px; background: white; box-shadow: 0 10px 28px rgba(24,79,74,.08); }.baseline-form-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.baseline-form-head h4 { margin: 3px 0 0; }.baseline-form > p { color: var(--muted); font-size: 13px; }.baseline-attempts { display: grid; gap: 8px; margin: 12px 0; }.baseline-attempt { padding: 9px; display: grid; grid-template-columns: 34px repeat(4, 1fr); align-items: end; gap: 7px; border: 1px solid #e2efeb; border-radius: 12px; }.baseline-attempt > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--green); }.baseline-attempt label { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }.baseline-attempt select, .baseline-attempt input, .baseline-form-head select { width: 100%; min-height: 40px; padding: 7px; border: 1px solid #cfe2dd; border-radius: 9px; background: white; font: inherit; }
.skill-search { width: min(480px, 100%); min-width: min(280px, 100%); flex: 1 1 360px; padding: 0 12px; display: flex; align-items: center; gap: 5px; border: 1px solid #cfe2dd; border-radius: 14px; background: white; }
.skill-search input { border: 0; outline: 0; }
.library-structure-note { margin-bottom: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid #dcebe7; border-radius: 16px; background: var(--mint); }
.library-filters { margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.library-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.library-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: 700 13px inherit; }
.library-filters .outline-btn { min-height: 42px; white-space: nowrap; }
.skill-domain-structure { margin: 0 0 18px; padding: 17px; border: 1px solid #dcebe7; border-radius: 21px; background: #f8fcfa; }
.skill-domain-structure-head { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.skill-domain-structure-head h3 { margin: 3px 0 5px; font-size: 21px; }
.skill-domain-structure-head p { margin: 0; color: var(--muted); font-size: 13px; }
.skill-domain-structure-head .outline-btn.is-active { border-color: var(--green); background: var(--mint); color: var(--green); }
.skill-domain-structure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.skill-domain-structure-card { min-width: 0; min-height: 52px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #dcebe7; border-radius: 13px; background: white; color: var(--ink); text-align: start; cursor: pointer; }
.skill-domain-structure-card strong { font-size: 14px; line-height: 1.35; }
.skill-domain-structure-card small { color: var(--green); font-weight: 800; }
.skill-domain-structure-card.is-active { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 2px rgba(13,117,109,.08); }
.skill-subdomain-choices { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dcebe7; display: grid; gap: 10px; }
.skill-subdomain-choices h4 { margin: 3px 0 4px; font-size: 17px; }
.skill-subdomain-choices p { margin: 0; color: var(--muted); font-size: 13px; }
.skill-subdomain-choices-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-subdomain-choice { min-height: 38px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dcebe7; border-radius: 12px; background: white; color: var(--ink); font: 800 13px inherit; cursor: pointer; }
.skill-subdomain-choice b { min-width: 22px; padding: 2px 5px; border-radius: 99px; background: #f2f8f6; color: var(--green); font-size: 11px; text-align: center; }
.skill-subdomain-choice.is-active { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: 0 0 0 2px rgba(13,117,109,.08); }
.skill-admin-panel { margin: 0 0 18px; border: 1px solid #cfe2dd; border-radius: 17px; background: #f8fcfa; overflow: hidden; }
.skill-admin-panel > summary { padding: 13px 16px; color: var(--ink); font-weight: 900; cursor: pointer; }
.skill-admin-panel > summary small { margin-inline-start: 8px; color: var(--muted); font-weight: 700; }
.skill-admin-tools { padding: 0 16px 16px; display: grid; gap: 12px; }
.skill-admin-tools p { margin: 0; color: var(--muted); font-size: 13px; }
.skill-admin-actions, .skill-admin-form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.skill-import-label { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.skill-admin-form { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 1px solid #dcebe7; border-radius: 14px; background: white; }
.skill-admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.skill-admin-form input, .skill-admin-form select, .skill-admin-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 10px; color: var(--ink); background: white; font: 700 13px inherit; }
.skill-admin-form textarea { min-height: 72px; resize: vertical; }
.skill-admin-form-actions { grid-column: 1 / -1; }
.skill-import-preview { padding: 12px; display: grid; gap: 8px; border: 1px dashed #91c7b8; border-radius: 12px; background: white; }
.skill-import-preview ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.skill-admin-card-actions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.skill-admin-card-actions .outline-btn { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.library-structure-note > span { font-size: 25px; }
.library-structure-note p { margin: 0; color: var(--muted); line-height: 1.6; }
.library-structure-note b { color: var(--ink); }
.skill-roadmap { margin: -7px 0 18px; padding: 10px 2px 5px; display: flex; flex-wrap: wrap; gap: 4px; overflow-x: visible; scrollbar-width: thin; }
.skill-roadmap button { flex: 0 0 auto; padding: 6px 3px; display: flex; align-items: center; gap: 4px; border: 1px solid #dcebe7; border-radius: 99px; background: white; color: var(--muted); font: 800 12px inherit; cursor: pointer; }
.skill-roadmap button.is-active { border-color: var(--green); background: var(--mint); color: var(--green); }
.skill-roadmap button span { min-width: 20px; padding: 2px 5px; border-radius: 99px; background: #f2f8f6; color: var(--green); font-size: 10px; text-align: center; }
.skill-roadmap button .stage-count { min-width: 20px; padding: 2px 5px; border-radius: 99px; background: #f2f8f6; color: var(--green); font-size: 10px; text-align: center; }
.skill-roadmap b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 10px; }
#libraryTree { display: grid; gap: 18px; }
.skill-domain { padding: 18px; border: 1px solid #dcebe7; border-radius: 23px; background: #f8fcfa; }
.skill-domain > header { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill-domain > header h3 { margin: 3px 0 0; font-size: 23px; }
.skill-domain > header > b { padding: 7px 11px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 13px; }
.skill-subdomain { margin-top: 10px; border: 1px solid #dcebe7; border-radius: 18px; background: white; overflow: hidden; }
.skill-subdomain summary { padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f4fbf8; cursor: pointer; list-style: none; }
.skill-subdomain summary::-webkit-details-marker { display: none; }
.skill-subdomain summary span { display: grid; gap: 2px; }
.skill-subdomain summary small { color: var(--muted); font-size: 11px; }
.skill-subdomain summary strong { font-size: 16px; }
.skill-subdomain summary > b { color: var(--green); }
.skill-subdomain .library-grid { padding: 12px; }
.featured-activities { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.featured-activities article { padding: 19px; display: grid; grid-template-columns: 52px 1fr; gap: 11px; border-radius: 22px; background: var(--ink); color: white; }
.featured-activities .feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.12); font-size: 26px; }
.featured-activities small { color: #9ed9cb; }
.featured-activities h3 { margin: 4px 0 6px; }
.featured-activities p { min-height: 67px; margin-bottom: 13px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }
.featured-activities .primary-btn { grid-column: 1 / -1; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.library-card { min-width: 0; padding: 17px; border: 1px solid #dcebe7; border-radius: 18px; background: white; overflow-wrap: anywhere; }
.skill-card-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.skill-card-top em { padding: 5px 8px; border-radius: 99px; background: var(--cream); color: #8a5b00; font-size: 11px; font-style: normal; font-weight: 800; }
.library-card h3 { margin: 12px 0 5px; font-size: 17px; }
.library-card p { min-height: 58px; margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.library-card dl { margin: 0; display: grid; gap: 8px; }
.library-card dl div { padding-top: 7px; border-top: 1px solid #edf3f1; }
.library-card dt { color: var(--green); font-size: 11px; font-weight: 800; }
.library-card dd { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.library-child-context { display: inline-block; margin-top: 6px; color: var(--green); font-weight: 800; }
.skill-child-performance { margin: 10px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.skill-child-performance span { min-width: 0; padding: 7px 5px; border-radius: 10px; background: #f4fbf8; text-align: center; }
.skill-child-performance small { display: block; color: var(--muted); font-size: 10px; }
.skill-child-performance b { display: block; margin-top: 2px; color: var(--ink); font-size: 11px; }
.mastery-field { width: 82px; display: flex; align-items: center; gap: 4px; }
.mastery-field input { width: 60px; min-height: 34px; padding: 5px; border: 1px solid #cfe2dd; border-radius: 9px; color: var(--ink); font: 800 13px inherit; }
.mastery-field input[aria-invalid="true"] { border-color: #c85b54; box-shadow: 0 0 0 3px rgba(200,91,84,.1); }
.mastery-error { color: #b34b45; font-size: 10px; font-weight: 800; }
.ready-goals { display: grid; gap: 5px; }
.ready-goals span { display: block; }
.ready-goals b { color: var(--ink); }
.skill-activity-links { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-activity-links button { padding: 5px 8px; border: 1px solid #bfe9dd; border-radius: 99px; background: #f4fbf8; color: var(--green); font: 800 11px inherit; cursor: pointer; }
.skill-activity-links button:hover, .skill-activity-links button:focus-visible { border-color: var(--green); background: var(--mint); }
.add-skill-goal { width: 100%; margin-top: 12px; }
.library-empty-state { margin: 18px 0; padding: 28px; display: grid; justify-items: center; gap: 12px; border: 1px dashed #b9d8d0; border-radius: 18px; background: #f8fcfa; color: var(--muted); text-align: center; }
.library-empty-state[hidden] { display: none; }
.skill-goal-overlay { position: fixed; inset: 0; z-index: 90; padding: 20px; display: grid; place-items: center; background: rgba(12, 54, 51, .66); }
.skill-goal-dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; border-radius: 25px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.24); }
.skill-goal-dialog > .workspace-kicker, .skill-goal-dialog > h3, .skill-goal-dialog > .full-goal-field { grid-column: 1 / -1; }
.skill-goal-dialog h3 { margin: 0 0 4px; font-size: 24px; }
.skill-goal-dialog label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.skill-goal-dialog input, .skill-goal-dialog select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: 700 14px inherit; }
.skill-goal-dialog .close-button { position: absolute; top: 14px; left: 14px; }
.empty-session, .live-session { padding: 28px; border: 1px solid #dcebe7; border-radius: 25px; background: white; }
.empty-session { min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-session > span { font-size: 55px; }
.empty-session h3 { margin: 12px 0 6px; font-size: 26px; }
.empty-session p { max-width: 530px; color: var(--muted); }
.live-session-head { display: flex; align-items: center; justify-content: space-between; }
.live-session-head h3 { margin: 5px 0 0; font-size: 25px; }
.live-dot { width: 10px; height: 10px; margin-left: 6px; display: inline-block; border-radius: 50%; background: #35ad73; box-shadow: 0 0 0 5px rgba(53,173,115,.12); }
.session-goals { margin: 18px 0; padding: 14px; display: grid; gap: 8px; border-radius: 15px; background: #f7fbfa; }
.session-goals label { font-weight: 700; }
.session-activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.session-activity-grid button { min-height: 125px; padding: 14px; display: grid; place-items: center; border: 2px solid #dcebe7; border-radius: 18px; background: white; color: var(--ink); cursor: pointer; }
.session-activity-grid button:hover { border-color: var(--green); background: var(--mint); }
.session-activity-grid span { font-size: 32px; }
.session-activity-grid b { font-size: 17px; }
.session-activity-grid small { color: var(--muted); }
.session-notes { margin-top: 16px; }
.session-actions { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-actions small { color: var(--muted); }
.recent-sessions { margin-top: 18px; padding: 22px; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.recent-sessions > div { padding: 11px 0; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid #edf3f1; }
.recent-sessions > div:first-of-type { border-top: 0; }
.recent-sessions span:nth-child(2) b, .recent-sessions span:nth-child(2) small { display: block; }
.recent-sessions span:nth-child(2) small { color: var(--muted); }
.date-box { width: 52px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green); font-weight: 800; }
.recent-sessions > div > strong { color: var(--green); font-size: 21px; }
.progress-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress-dashboard > article, .goal-progress-list { padding: 23px; border: 1px solid #dcebe7; border-radius: 23px; background: white; }
.trend-bars { height: 250px; display: flex; align-items: end; justify-content: space-around; gap: 8px; }
.trend-bars > div { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.trend-bars i { width: min(42px, 76%); min-height: 20px; display: flex; align-items: start; justify-content: center; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #55bda2, var(--green)); font-style: normal; }
.trend-bars i b { padding-top: 7px; color: white; font-size: 11px; writing-mode: vertical-rl; }
.trend-bars small { color: var(--muted); font-size: 11px; }
.goal-progress-list { margin-top: 18px; }
.goal-progress-list > div { padding: 13px 0; display: grid; grid-template-columns: 1.4fr 1fr 50px; align-items: center; gap: 13px; border-top: 1px solid #edf3f1; }
.goal-progress-list > div:first-of-type { border-top: 0; }
.goal-progress-list span b, .goal-progress-list span small { display: block; }
.goal-progress-list span small { color: var(--muted); }
.report-filter { margin-bottom: 18px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; border-radius: 20px; background: var(--mint); }
.report-filter-error { grid-column: 1 / -1; margin: 0; color: var(--danger); font-weight: 800; }
.report-paper { padding: 34px; border: 1px solid #dcebe7; border-radius: 24px; background: white; box-shadow: 0 14px 45px rgba(24,79,74,.07); }
.report-period { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.report-period b { color: var(--ink); font-variant-numeric: tabular-nums; }
.report-empty-state { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #f0d38b; border-radius: 14px; background: #fff9e8; color: #725515 !important; font-weight: 800; }
.report-paper header { padding-bottom: 17px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--green); }
.report-paper header > div { display: flex; align-items: center; gap: 10px; }
.report-paper header b, .report-paper header small { display: block; }
.brand-mark.mini { width: 42px; height: 42px; border-radius: 13px; color: white; }
.report-stats { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.report-stats div { padding: 15px; display: grid; border-radius: 14px; background: #f4f9f7; }
.report-stats small { color: var(--muted); }
.report-stats b { color: var(--green); font-size: 25px; }
.report-paper li { margin-bottom: 7px; }
.report-paper p { color: var(--muted); line-height: 1.75; }
.homework-list { display: grid; gap: 12px; }
.homework-card { padding: 20px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.homework-card > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--cream); font-size: 26px; }
.homework-card small { color: var(--green); font-weight: 800; }
.homework-card h3 { margin: 4px 0; }
.homework-card p { margin: 0; color: var(--muted); }
.homework-card blockquote { margin: 10px 0 0; padding: 10px 13px; border: 0; border-radius: 10px; background: var(--mint); }
.homework-card.is-done { opacity: .78; }
.homework-form { grid-template-columns: 1fr 1.4fr auto; }
.family-header, .center-header { margin-bottom: 20px; }
.family-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; }
.family-progress, .parent-homework, .parent-tip { padding: 24px; border: 1px solid #dcebe7; border-radius: 24px; background: white; }
.family-progress { align-self: start; }
.parent-task { padding: 19px 0; display: grid; grid-template-columns: 50px 1fr; gap: 12px; border-top: 1px solid #edf3f1; }
.parent-task:first-of-type { border-top: 0; }
.parent-task > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--cream); font-size: 25px; }
.parent-task small { color: var(--green); font-weight: 800; }
.parent-task h3 { margin: 4px 0; }
.parent-task p { color: var(--muted); }
.parent-task textarea { margin-bottom: 9px; }
.parent-task.is-done { opacity: .72; }
.parent-log-form { margin-top: 14px; padding: 14px; display: grid; grid-template-columns: 1fr .65fr .85fr; gap: 10px; border-radius: 16px; background: #f5faf8; }
.parent-log-form .wide-field, .parent-log-form button { grid-column: 1 / -1; }
.task-meta { padding: 10px 12px; border-radius: 12px; background: var(--mint); line-height: 1.8; }
.privacy-banner { margin: 0 0 18px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #bfe2d8; border-radius: 17px; background: #effaf6; color: #155e58; }
.privacy-banner span { font-size: 24px; }
.privacy-banner p { margin: 0; }
.parent-history { padding: 22px; border: 1px solid #dcebe7; border-radius: 24px; background: white; }
.parent-history p, .home-log-summary p { margin: 8px 0; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; border-radius: 11px; background: #f5faf8; }
.empty-parent-tasks, .access-denied { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty-parent-tasks span, .access-denied span { font-size: 38px; }
.parent-access-form { display: grid; gap: 14px; max-width: 420px; margin: 20px auto 0; }
.parent-access-form label { display: grid; gap: 8px; font-weight: 800; }
.parent-access-form input { min-height: 54px; padding: 12px 14px; border: 1px solid #bddbd4; border-radius: 14px; font: inherit; font-size: 20px; text-align: center; letter-spacing: 4px; }
.parent-access-form small { min-height: 20px; color: #a52a2a; font-weight: 700; }
.parent-tip { grid-column: 1 / -1; display: flex; gap: 14px; background: var(--cream); }
.parent-tip > span { font-size: 30px; }
.parent-tip h3 { margin-bottom: 5px; }
.parent-tip p { margin: 0; color: var(--muted); }
.center-stats { margin-bottom: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.center-stats article { padding: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 10px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.center-stats article[role="button"] { cursor: pointer; transition: .18s ease; }
.center-stats article[role="button"]:hover, .center-stats article[role="button"]:focus-visible, .center-stats article.is-selected { border-color: #70c8b0; background: #effaf6; transform: translateY(-2px); }
.center-stats article > span { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); font-size: 22px; }
.center-stats small { color: var(--muted); }
.center-stats b { color: var(--green); font-size: 24px; }
.compact-center-header { min-height: 154px; padding-block: 26px; }
.center-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.center-home-btn { flex: 0 0 auto; }
.center-nav { margin: 0 0 20px; padding: 7px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; border: 1px solid #dcebe7; border-radius: 19px; background: white; overflow-x: auto; }
.center-nav button { min-height: 56px; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.center-nav button.is-active { background: var(--mint); color: var(--green); }
.center-nav span { font-size: 19px; }
.center-content { min-height: 430px; }
.center-table { padding: 23px; border: 1px solid #dcebe7; border-radius: 23px; background: white; }
.table-scroll { overflow-x: auto; }
.center-table table { width: 100%; border-collapse: collapse; }
.center-table th, .center-table td { padding: 13px; text-align: right; border-bottom: 1px solid #edf3f1; }
.center-table th { color: var(--muted); font-size: 13px; }
.center-table td > small { display: block; margin-top: 4px; color: var(--muted); }
.table-link { padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.center-alerts { margin-bottom: 18px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; border: 1px solid #f0d58e; border-radius: 17px; background: #fff9e9; }
.center-alerts > div { display: flex; align-items: center; gap: 8px; }.center-alerts h3 { margin: 0; }.center-alerts ul { margin: 0; display: grid; gap: 5px; color: var(--muted); }
.center-session-actions { margin-bottom: 7px; display: flex; flex-wrap: wrap; gap: 5px; }.center-session-actions button, .access-code-controls button { padding: 6px 8px; border: 1px solid #cfe2dd; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }.center-session-actions .danger-action { border-color: #ffd0d4; color: var(--danger); }
.empty-session-add { margin: 12px auto 0; display: block; }
.center-table select, .center-inline-form input, .center-inline-form select, .center-inline-form textarea, .message-form input, .message-form select, .message-form textarea, .team-card select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: inherit; }
.center-inline-form { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: repeat(5, 1fr) auto; align-items: end; gap: 10px; border-radius: 18px; background: var(--mint); }
.center-time-picker { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.center-time-picker select { width: 100%; min-height: 43px; padding: 8px 9px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: inherit; }
.center-time-range { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.center-time-range b { font-weight: 800; }
.session-add-room-btn { margin-top: 6px; }
.center-inline-form label, .message-form label, .team-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.center-inline-form[hidden] { display: none; }
.center-form-heading, .center-inline-form .wide-field, .recurring-session-fields, .center-inline-form #centerSessionCancel, .center-inline-form #centerRoomCancel { grid-column: 1 / -1; }
.center-form-heading h3 { margin: 3px 0 0; color: var(--green); }
.recurring-session-fields { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid #c7e5d9; border-radius: 14px; background: rgba(255,255,255,.58); }
.recurring-session-fields[hidden] { display: none; }
.recurring-session-fields small { grid-column: 1 / -1; color: var(--muted); }
.recurring-session-summary { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: #eef9f4; color: var(--green); font-size: 13px; font-weight: 800; }
.series-edit-scope { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #dcebe7; border-radius: 14px; background: rgba(255,255,255,.7); }
.room-row-actions { margin-top: 8px; display: flex; gap: 10px; }
.room-copy-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid #dcebe7; border-radius: 14px; background: rgba(255,255,255,.66); }
.room-copy-options label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: white; color: var(--ink); }
.room-copy-options input { width: auto; min-height: 0; }
.room-copy-options small { color: var(--muted); font-size: 11px; }
.empty-table { padding: 34px !important; color: var(--muted); text-align: center !important; }
.team-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.team-card { padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: start; gap: 12px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.team-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); font-size: 22px; font-weight: 800; }
.team-card small { color: var(--muted); }
.team-card h3 { margin: 4px 0 10px; }
.team-card p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.team-state { padding: 5px 9px; border-radius: 99px; background: #e5f8ee; color: #27835b; font-size: 12px; font-weight: 800; }
.management-card { padding: 22px; border: 1px solid #dcebe7; border-radius: 22px; background: white; }
.management-card > h3 { margin-bottom: 15px; }
.family-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.family-access-card { padding: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.family-access-card h3 { margin: 3px 0; }
.family-access-card label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.family-access-card select { min-height: 42px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; font: inherit; }
.access-code { padding: 9px 12px; border-radius: 10px; background: var(--cream); }
.parent-account-meta { margin: 10px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }.parent-account-meta span { padding: 8px; border-radius: 10px; background: #f5faf8; }.parent-account-meta small, .parent-account-meta b { display: block; }.parent-account-meta small { color: var(--muted); font-size: 10px; }.parent-account-meta b { margin-top: 3px; font-size: 12px; }
.access-code-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }.access-code-controls .access-code { flex: 1 1 100%; margin: 0; }.parent-audit { margin-top: 10px; color: var(--muted); font-size: 12px; }.parent-audit summary { color: var(--green); font-weight: 800; cursor: pointer; }.parent-audit p { margin: 5px 0; }
.parent-child-switch { min-width: 230px; display: grid; gap: 6px; color: white; font-weight: 800; }.parent-child-switch select { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; font: inherit; }
.home-log-summary { margin-top: 16px; padding: 20px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.leave-row, .payroll-row, .location-row, .message-row { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf3f1; }
.leave-row:first-of-type, .payroll-row:first-of-type, .location-row:first-of-type, .message-row:first-of-type { border-top: 0; }
.leave-row > div:first-child, .payroll-row > div, .location-row > div, .message-row > div { flex: 1; }
.leave-row small, .payroll-row small, .location-row small, .message-row small { display: block; margin-top: 4px; color: var(--muted); }
.leave-row > div:last-child { display: flex; gap: 7px; }
.danger-outline { border-color: #ffd0d4; color: var(--danger); }
.permission-note { margin-top: 18px; padding: 20px; display: flex; gap: 14px; border-radius: 20px; background: var(--cream); }
.permission-note > span { font-size: 30px; }
.permission-note h3 { margin-bottom: 6px; }
.permission-note p { margin: 0; color: var(--muted); line-height: 1.8; }
.location-layout, .management-layout, .message-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compact-form { grid-template-columns: 1fr 1fr auto; }
.location-row > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); font-size: 20px; }
.location-row em { padding: 5px 9px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 12px; font-style: normal; font-weight: 800; }
.location-row .room-status.is-available { border: 1px solid #a9dfc3; background: #e5f8ee; color: #197a50; }
.location-row .room-status.is-occupied { border: 1px solid #ffc5ca; background: #fff0f1; color: #b4232f; }
.room-list-filters { margin: 12px 0; padding: 12px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; border: 1px solid #dcebe7; border-radius: 16px; background: #f7fcfa; }
.room-list-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.room-list-filters input, .room-list-filters select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: inherit; }
.room-filter-empty { margin-top: 12px; }
.weekly-schedule { margin-top: 18px; }
.weekly-session-count { padding: 7px 11px; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 800; }
.weekly-schedule-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.weekly-schedule-actions button { min-height: 42px; }
.weekly-schedule-filters { margin-bottom: 16px; padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 1px solid #dcebe7; border-radius: 16px; background: #f7fcfa; }
.weekly-schedule-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.weekly-schedule-filters select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; color: var(--ink); font: inherit; }
.muted-action { color: var(--muted); font-size: 12px; }
.weekly-schedule tbody tr:hover { background: #f8fcfa; }
.finance-stats { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.finance-stats article { padding: 20px; display: grid; gap: 7px; border: 1px solid #dcebe7; border-radius: 20px; background: white; }
.finance-stats small { color: var(--muted); }
.finance-stats b { color: var(--green); font-size: 25px; }
.finance-stats .negative b { color: var(--danger); }
.paid-button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 11px; background: #e5f8ee; color: #27835b; font-weight: 800; cursor: pointer; }
.report-lines p { margin: 0; padding: 12px 0; display: flex; justify-content: space-between; border-top: 1px solid #edf3f1; }
.report-lines p:first-child { border-top: 0; }
.report-disclaimer { display: block; margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--cream); color: var(--muted); line-height: 1.5; }
.message-form { display: grid; grid-template-columns: 1fr 1fr; align-self: start; gap: 12px; }
.message-form .wide-field, .message-form > small { grid-column: 1 / -1; }
.message-form textarea { min-height: 110px; resize: vertical; }
.message-form > small { color: var(--muted); line-height: 1.5; }
.message-row p { margin: 6px 0 0; line-height: 1.6; }
.table-status { padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.table-status.attended { background: #e5f8ee; color: #27835b; }
.table-status.waiting { background: #fff4d9; color: #9d6b00; }
.table-status.cancelled { background: #fff0f1; color: var(--danger); }
.table-status.started { background: #e6f1ff; color: #245f9b; }.table-status.late { background: #fff0df; color: #a55700; }
.team-filters { margin-bottom: 18px; padding: 14px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 9px; border-radius: 18px; background: var(--mint); }.team-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }.team-filters input, .team-filters select { min-height: 43px; padding: 8px 10px; border: 1px solid #cfe2dd; border-radius: 11px; background: white; font: inherit; }
.specialist-profile-panel { margin-bottom: 18px; padding: 20px; border: 1px solid #bfe2d8; border-radius: 22px; background: #f8fffc; }.specialist-profile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }.specialist-profile-grid article { padding: 11px; border-radius: 13px; background: white; }.specialist-profile-grid small, .specialist-profile-grid b { display: block; }.specialist-profile-grid small { color: var(--muted); font-size: 11px; }.specialist-profile-grid b { margin-top: 4px; font-size: 13px; }.specialist-assigned-children { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dcebe7; }.specialist-assigned-children h3, .specialist-assigned-children p { margin: 4px 0; }.specialist-assigned-children p { color: var(--muted); }
.session-empty-state { padding: 14px; border: 1px solid #f0d58e; border-radius: 13px; background: #fff9e9; color: #7a5500; font-weight: 800; }
.child-mode-bar { position: fixed; z-index: 55; top: 12px; left: 50%; width: min(440px, calc(100% - 24px)); padding: 8px 9px 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 15px; background: var(--ink); color: white; box-shadow: 0 12px 35px rgba(0,0,0,.25); transform: translateX(-50%); }
.child-mode-bar button { min-height: 38px; padding: 7px 11px; border: 0; border-radius: 10px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.child-mode-active .topbar { visibility: hidden; height: 66px; }
.pin-overlay { position: fixed; inset: 0; z-index: 80; padding: 18px; display: grid; place-items: center; background: rgba(9,43,41,.84); }
.pin-dialog { width: min(420px, 100%); padding: 30px; position: relative; display: grid; gap: 11px; border-radius: 25px; background: white; text-align: center; }
.pin-icon { font-size: 43px; }
.pin-dialog h2 { margin: 0; }
.pin-dialog p { margin: 0 0 4px; color: var(--muted); }
.pin-dialog label { color: var(--muted); font-weight: 800; }
.pin-dialog input { width: 100%; min-height: 58px; border: 2px solid #cfe2dd; border-radius: 14px; text-align: center; font-size: 28px; letter-spacing: 10px; }
.pin-dialog small { min-height: 20px; color: var(--danger); }
.pin-close { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf4f2; color: var(--ink); font-size: 23px; cursor: pointer; }

@media (max-width: 980px) {
  .specialist-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-nav { grid-template-columns: repeat(10, 100px); }
  .dashboard-context { grid-template-columns: 1fr 1fr; }
  .featured-activities { grid-template-columns: 1fr; }
  .featured-activities article { grid-template-columns: 52px 1fr auto; align-items: center; }
  .featured-activities p { min-height: auto; }
  .featured-activities .primary-btn { grid-column: 3; grid-row: 1; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-domain-structure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .center-stats { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .center-inline-form { grid-template-columns: repeat(3, 1fr); }
  .team-filters { grid-template-columns: repeat(3, 1fr); }.specialist-profile-grid { grid-template-columns: repeat(3, 1fr); }
  .finance-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .home-program-header { align-items: stretch; flex-direction: column; }.home-header-main { align-items: stretch; flex-direction: column; }.home-child-switcher { width: 100%; }.home-child-menu { position: static; margin-top: 7px; }.home-program-header nav button { flex: 1; }.home-simple-form, .home-suggestion-cards, .home-journey-grid { grid-template-columns: 1fr; }.home-plan-explanation ul { grid-template-columns: 1fr; }.home-assessment-form label { grid-template-columns: 1fr; }.home-today-title, .home-journey-heading { align-items: stretch; flex-direction: column; }.home-daily-steps article { grid-template-columns: 38px 1fr; }.home-daily-steps .outline-btn { grid-column: 1 / -1; }.home-child-card { grid-template-columns: 44px 1fr; }.home-child-card-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }.audience-role.home-role { grid-column: auto; }
  .home-real-world { grid-template-columns: 1fr; }
  .home-program-header nav { overflow-x: auto; }.home-program-header nav button { flex: 0 0 auto; white-space: nowrap; }.home-path-grid, .home-report-grid, .home-city-world { grid-template-columns: 1fr; }.home-report-grid article:last-child { grid-column: auto; }
  .recognition-groups { grid-template-columns: repeat(2,1fr); }.recognition-item-sets { grid-template-columns: 1fr; }.recognition-stages { grid-template-columns: 1fr 1fr; }.recognition-options { grid-template-columns: repeat(2,1fr); }.recognition-options img { height: 120px; }
  .assigned-training-grid { grid-template-columns: 1fr; }
  .assigned-training-card { align-items: stretch; flex-direction: column; }
  .assigned-training-card .primary-btn { width: 100%; }
  .workspace-header { padding: 25px; display: block; }
  .workspace-header.dashboard-header { min-height: 0; }
  .header-workflow { margin-top: 18px; align-items: stretch; }
  .workspace-home-btn { flex: 0 0 auto; }
  .header-session-btn { flex: 0 0 auto; }
  .active-child-chip { min-width: 0; margin-top: 18px; }
  .header-workflow .active-child-chip { flex: 1; margin-top: 0; }
  .dashboard-status-grid { grid-template-columns: 1fr; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary > div { min-height: 92px; }
  .specialist-grid, .dashboard-lower, .dashboard-context, .goal-list, .progress-dashboard, .family-layout { grid-template-columns: 1fr; }
  .child-file-layout, .assessment-layout { grid-template-columns: 1fr; }
  .child-level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .children-list { display: block; }
  .children-list h3 { display: none; }
  .child-list-item { min-width: 0; }
  .domain-list { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .assessment-toolbar-meta { width: 100%; flex-direction: column; }
  .assessment-progress-summary { min-width: 0; }
  .clinical-progress { grid-template-columns: 1fr; }
  .add-goal-form, .homework-form { grid-template-columns: 1fr 1fr; }
  .add-goal-form > div, .homework-form > div { grid-column: 1 / -1; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .skill-domain-structure-head { align-items: stretch; flex-direction: column; }
  .skill-admin-form { grid-template-columns: 1fr; }
  .library-toolbar .skill-search { width: 100%; min-width: 0; }
  .skill-roadmap { flex-wrap: nowrap; overflow-x: auto; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-activity-grid { grid-template-columns: repeat(2, 1fr); }
  .center-stats { grid-template-columns: repeat(2, 1fr); }
  .center-header-actions { margin-top: 18px; }
  .weekly-schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-schedule-actions { justify-content: flex-start; }
  .center-nav { grid-template-columns: repeat(6, 130px); scroll-snap-type: x mandatory; }
  .center-nav button { scroll-snap-align: start; }
  .team-grid, .location-layout, .management-layout, .message-layout { grid-template-columns: 1fr; }
  .center-inline-form, .compact-form { grid-template-columns: 1fr 1fr; }
  .parent-tip { grid-column: auto; }
  .family-access-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1600px) {
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .workspace { padding-top: 0; }
  .workspace-header { min-height: 0; padding: 22px 18px; border-radius: 23px; }
  .workspace-header h1 { font-size: 31px; }
  .workspace-header p { font-size: 14px; }
  .active-child-chip { padding: 10px; }
  .header-workflow { display: grid; grid-template-columns: 1fr; }
  .workspace-home-btn { width: 100%; }
  .header-session-btn { width: 100%; }
  .center-header-actions { display: grid; }
  .center-inline-form, .compact-form, .finance-stats, .message-form { grid-template-columns: 1fr; }
  .room-list-filters { grid-template-columns: 1fr; }
  .room-copy-options { grid-template-columns: 1fr; }
  .weekly-schedule-filters { grid-template-columns: 1fr; }
  .weekly-schedule-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .weekly-schedule-actions button { width: 100%; }
  .message-form .wide-field, .message-form > small { grid-column: auto; }
  .leave-row { align-items: flex-start; flex-wrap: wrap; }
  .active-child-chip button { font-size: 12px; }
  .workspace-nav { margin-top: 11px; grid-template-columns: repeat(10, 96px); scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .workspace-nav button { min-height: 60px; font-size: 12px; scroll-snap-align: start; }
  .section-toolbar { align-items: start; }
  .section-toolbar h2 { font-size: 27px; }
  .specialist-grid { gap: 9px; }
  .specialist-card { min-height: 124px; padding: 14px; grid-template-columns: 43px 1fr; }
  .specialist-card .specialist-icon { width: 43px; height: 43px; }
  .specialist-card i { display: none; }
  .specialist-card strong { font-size: 16px; }
  .specialist-card small { font-size: 12px; }
  .focus-card { display: grid; }
  .child-record, .assessment-sheet { padding: 18px; }
  .record-form { padding: 15px; grid-template-columns: 1fr; }
  .record-form .wide-field, .record-form .consent-field { grid-column: auto; }
  .record-actions { grid-column: auto; flex-wrap: wrap; }
  .record-top { align-items: start; flex-wrap: wrap; }
  .record-top-action { width: 100%; margin-inline-start: 0; }
  .profile-placeholder { width: 74px; height: 90px; }
  .child-details-view { padding: 15px; }
  .child-info-grid, .child-level-grid { grid-template-columns: 1fr; }
  .domain-list { grid-template-columns: 1fr; }
  .backup-import-dialog { padding-inline: 18px; }
  .backup-import-actions { flex-direction: column-reverse; }
  .backup-import-actions button { width: 100%; }
  .skill-row > div:first-child { display: grid; }
  .status-buttons button { flex: 1 1 42%; }
  .goal-measures { grid-template-columns: 1fr; }
  .add-goal-form, .homework-form, .report-filter { grid-template-columns: 1fr; }
  .parent-log-form, .family-access-card { grid-template-columns: 1fr; }
  .team-filters, .specialist-profile-grid { grid-template-columns: 1fr 1fr; }
  .featured-activities article { grid-template-columns: 48px 1fr; }
  .featured-activities .primary-btn { grid-column: 1 / -1; grid-row: auto; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .library-filters { grid-template-columns: 1fr; }
  .skill-domain-structure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-card { padding: 14px; }
  .library-card h3 { font-size: 15px; }
  .skill-goal-dialog { grid-template-columns: 1fr; padding: 22px 16px; }
  .skill-goal-dialog > .workspace-kicker, .skill-goal-dialog > h3, .skill-goal-dialog > .full-goal-field { grid-column: 1; }
  .session-actions { display: grid; }
  .recent-sessions { padding: 16px; }
  .recent-sessions > div { grid-template-columns: 48px 1fr auto; }
  .goal-progress-list > div { grid-template-columns: 1fr 50px; }
  .goal-progress-list i { grid-column: 1 / -1; grid-row: 2; }
  .report-paper { padding: 20px 16px; }
  .report-paper header { display: grid; gap: 9px; }
  .report-stats { grid-template-columns: 1fr; }
  .center-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .center-stats article { padding: 12px; }
  .center-alerts { grid-template-columns: 1fr; }.center-session-actions { min-width: 180px; }
  .top-actions .role-switch { display: flex; }
}

@media (max-width: 760px) {
  .plan-toolbar { align-items: stretch; }
  .plan-toolbar .primary-btn { width: 100%; }
  .goal-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .goal-fieldset { grid-template-columns: 1fr 1fr; }
  .goal-fieldset .wide-goal-field, .goal-fieldset .full-goal-field { grid-column: 1 / -1; }
  .goal-head { align-items: start; flex-wrap: wrap; }
  .goal-edit-trigger { margin-inline-start: 0; }
  .goal-metrics, .baseline-summary { grid-template-columns: repeat(2, 1fr); }
  .goal-decision, .measurable-goal-form { grid-template-columns: 1fr; }
  .measurable-goal-form .wide-goal-field, .measurable-goal-form .full-goal-field, .goal-form-hint { grid-column: 1; }
  .measurable-goal-form > .goal-fieldset { grid-template-columns: 1fr; }
  .measurable-goal-form > .goal-fieldset .wide-goal-field, .measurable-goal-form > .goal-fieldset .full-goal-field { grid-column: 1; }
  .session-flow { grid-template-columns: 1fr 1fr; }
  .session-setup-grid { grid-template-columns: 1fr; }
  .session-setup-actions { align-items: stretch; flex-direction: column; }
  .session-setup-actions .primary-btn, .session-blocked-state .outline-btn { width: 100%; }
  .baseline-attempt { grid-template-columns: 30px 1fr 1fr; }
  .baseline-attempt label:nth-of-type(3), .baseline-attempt label:nth-of-type(4) { grid-column: span 1; }
}
@media (max-width: 520px) {
  .goal-summary-grid, .goal-fieldset { grid-template-columns: 1fr; }
  .goal-fieldset .wide-goal-field, .goal-fieldset .full-goal-field { grid-column: 1; }
  .plan-section-heading { align-items: start; display: grid; }
  .library-grid { grid-template-columns: 1fr; }
  .goal-metrics, .baseline-summary { grid-template-columns: 1fr 1fr; }
  .baseline-attempt { grid-template-columns: 28px 1fr; }
  .baseline-attempt label { grid-column: 2; }
}

@media (max-width: 640px) {
  .audience-overlay { padding: 12px; }
  .audience-dialog { padding: 24px 16px; border-radius: 25px; }
  .audience-dialog h1, .audience-dialog h2 { font-size: 30px; }
  .audience-dialog > div > p { font-size: 16px; }
  .audience-dialog .audience-tagline { font-size: 18px; }
  .entry-choice-grid, .entry-action-grid { grid-template-columns: 1fr; gap: 11px; }
  .entry-choice { min-height: 126px; padding: 16px 13px; border-radius: 18px; }
  .entry-choice > span { font-size: 34px; }
  .entry-choice strong { font-size: 19px; }
  .entry-choice small { font-size: 13px; }
  .entry-action { min-height: 108px; }
}

@media (min-width: 641px) and (max-width: 850px) {
  #roleStep .entry-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  #actionStep[data-entry-role="specialist"] .entry-action-grid { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  .report-paper, .report-paper * { visibility: visible; }
  .report-paper { position: absolute; inset: 0; width: 100%; min-height: 100%; box-sizing: border-box; box-shadow: none; border: 0; border-radius: 0; }
  .report-paper .print-report { display: none !important; }
}

/* توحيد الواجهة وتحسين القراءة والتنقل عبر كل المساحات */
:root {
  --radius-xl: 28px;
  --radius-lg: 20px;
  --surface-border: #d8e7e3;
  --surface-soft: #f7fbfa;
  --surface-shadow: 0 10px 28px rgba(24, 79, 74, .07);
}

html { scroll-padding-top: 18px; }
body { line-height: 1.55; overflow-x: clip; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [role="button"]:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(13, 117, 109, .38);
  outline-offset: 3px;
}
button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

:where(.program-map-card, .knowledge-group-card, .knowledge-item-card,
  .guest-training-grid article, .dashboard-status-card, .specialist-card,
  .dashboard-summary > div, .dashboard-context article, .home-journey-grid article,
  .home-path-grid article, .home-report-grid article, .center-table, .team-card,
  .family-access-card, .library-card) {
  border-color: var(--surface-border);
  border-radius: 18px;
}

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

.primary-btn, .secondary-btn, .outline-btn, .program-map-shortcut,
.workspace-home-btn, .header-session-btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.secondary-btn, .outline-btn {
  border: 1px solid #b9d8cf;
  box-shadow: none;
}
.secondary-btn:hover, .outline-btn:hover:not(:disabled), .program-map-shortcut:hover:not(:disabled) {
  border-color: var(--green);
  background: #f0faf6;
}
.danger-outline, .center-session-actions .danger-action {
  border-color: #efc5c9;
  color: #a83c45;
}
.danger-outline:hover:not(:disabled), .center-session-actions .danger-action:hover:not(:disabled) {
  background: #fff2f3;
  border-color: #d88990;
}

#workspaceView input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#workspaceView select, #workspaceView textarea,
#audienceOverlay input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#audienceOverlay select, #audienceOverlay textarea {
  max-width: 100%;
  border-color: #c4d9d3;
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
#workspaceView input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#workspaceView select, #workspaceView textarea,
#audienceOverlay input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#audienceOverlay select, #audienceOverlay textarea {
  direction: rtl;
  text-align: right;
}
#workspaceView input[type="email"], #workspaceView input[type="tel"], #workspaceView input[type="url"],
#workspaceView input[type="number"], #workspaceView input[type="date"], #workspaceView input[type="time"],
#workspaceView input[type="datetime-local"], #audienceOverlay input[type="email"],
#audienceOverlay input[type="tel"], #audienceOverlay input[type="number"], #audienceOverlay input[type="date"] {
  direction: ltr;
  text-align: start;
}
#workspaceView textarea, #audienceOverlay textarea { min-height: 96px; line-height: 1.6; }
#workspaceView input::placeholder, #workspaceView textarea::placeholder,
#audienceOverlay input::placeholder, #audienceOverlay textarea::placeholder { color: #748985; opacity: 1; }

.workspace-header .program-map-shortcut-status,
.center-header .program-map-shortcut-status,
.workspace-header .trial-status-banner {
  color: #f1fffa !important;
  font-weight: 800;
}
.workspace-header .program-map-shortcut-status {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}
.program-map-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  font-size: 21px;
}
.program-map-card { min-height: 142px; box-shadow: none; }
.program-map-card:hover, .knowledge-group-card:hover {
  border-color: #8dcbb9;
  box-shadow: var(--surface-shadow);
}
.program-map-card em { max-width: 100%; line-height: 1.4; }
.trial-status-banner { border-color: #e7cc72; }

.workspace-nav, .center-nav, .home-program-header nav {
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #a8cfc3 #edf5f2;
}
.workspace-nav button, .center-nav button, .home-program-header nav button {
  min-width: 0;
  min-height: 56px;
  border-radius: 12px;
  font-size: 14px;
}
.workspace-nav button.is-active, .center-nav button.is-active,
.home-program-header nav button.is-active {
  box-shadow: inset 0 0 0 1px #a9d5c8;
}
.workspace-header h1, .home-program-header h1, .program-map-heading h1 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.section-toolbar { align-items: center; }
.section-toolbar p { max-width: 72ch; line-height: 1.65; }
.section-toolbar h2 { line-height: 1.3; }
.workspace-content, .center-content, .home-onboarding, .home-today,
.home-journey, .home-weekly-report, .home-city { min-width: 0; }

.knowledge-browser-active .activity-modal {
  width: min(920px, 100%);
  max-height: calc(100dvh - 40px);
  overscroll-behavior: contain;
}
.knowledge-browser-active .modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fbfffd;
}
.knowledge-browser-active .modal-body { padding: 22px 24px 28px; }
.knowledge-group-grid, .knowledge-item-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 12px;
}
.knowledge-group-card {
  min-height: 136px;
  padding: 12px 10px;
  align-content: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(24,79,74,.035);
}
.knowledge-group-card span { min-width: 38px; min-height: 38px; border: 1px solid rgba(216,231,227,.9); }
.knowledge-group-card strong { font-size: 16px; line-height: 1.45; }
.knowledge-group-card small { font-size: 13px; }
.knowledge-item-card {
  grid-template-rows: auto auto;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(24,79,74,.035);
}
.knowledge-image-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f7fbfa;
}
.knowledge-item-image { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.knowledge-image-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.knowledge-image-frame.is-loaded .knowledge-image-status { display: none; }
.knowledge-image-frame.is-error .knowledge-image-status { background: #f7fbfa; }
.knowledge-item-card figcaption { min-height: 1.5em; font-size: 16px; line-height: 1.45; }
.knowledge-browser-note { line-height: 1.65; }
.knowledge-empty-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--surface-border);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}
#publicServicesSection:focus-visible { outline: 3px solid rgba(13,117,109,.45); outline-offset: 6px; border-radius: 18px; }

.table-scroll { max-width: 100%; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.center-table th { padding-block: 14px; font-size: 14px; }
.center-table tbody tr:hover { background: #f8fbfa; }
.center-table td { vertical-align: middle; line-height: 1.5; }
.empty-table { background: var(--surface-soft); line-height: 1.6; }
.empty-state, .session-empty-state, .report-empty-state, .empty-parent-tasks {
  line-height: 1.65;
}
.report-empty-state { border-color: #ecd997; }
.session-empty-state { border-color: #ecd997; }
.table-status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-weight: 800; }

@media (max-width: 980px) {
  .workspace-header { gap: 18px; }
  .header-workflow { flex-wrap: wrap; justify-content: flex-start; }
  .program-map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .knowledge-browser-active .activity-modal { width: min(860px, 100%); }
}
@media (max-width: 760px) {
  .app-shell { width: 100%; padding-inline: 18px; }
  .workspace-header { padding: 24px; }
  .header-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .header-workflow .program-map-shortcut, .header-workflow .workspace-home-btn,
  .header-workflow .header-session-btn { width: 100%; min-width: 0; }
  .header-workflow .active-child-chip { grid-column: 1 / -1; width: 100%; }
  .center-header-actions { justify-content: stretch; }
  .center-header-actions > * { min-width: 0; }
  .center-table { padding: 16px; }
  .center-table table { min-width: 680px; }
  .knowledge-browser-active .activity-modal { width: 100%; max-height: calc(100dvh - 20px); }
  .knowledge-browser-active .modal-body { padding: 18px 16px 24px; }
}
@media (max-width: 640px) {
  .program-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-map-card { min-height: 136px; padding: 12px; }
  .knowledge-group-grid, .knowledge-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .knowledge-group-card { min-height: 158px; }
  .knowledge-item-card { padding: 8px; }
  .workspace-nav, .center-nav, .home-program-header nav { scroll-snap-type: x mandatory; }
  .workspace-nav button, .center-nav button, .home-program-header nav button { scroll-snap-align: start; }
  .section-toolbar { align-items: stretch; flex-wrap: wrap; gap: 12px; }
  .section-toolbar > :last-child { max-width: 100%; }
  .center-inline-form, .message-form, .compact-form { gap: 12px; }
}
@media (max-width: 420px) {
  .app-shell { padding-inline: 12px; }
  .workspace-header { padding: 20px 16px; }
  .workspace-header h1 { font-size: clamp(26px, 8vw, 31px); }
  .header-workflow { grid-template-columns: 1fr; }
  .header-workflow .active-child-chip { grid-column: auto; }
  .program-map-heading h1 { font-size: clamp(28px, 8vw, 34px); }
  .program-map-card { padding: 10px; }
  .program-map-card small { overflow-wrap: anywhere; }
  .knowledge-group-grid, .knowledge-item-grid { gap: 7px; }
}
