@charset "UTF-8";
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #243044;
  background: #f6f8fb;
  font-synthesis: none;
  --blue: #2469dc;
  --muted: #66758a;
  --line: #e9edf2;
  --soft: #edf4ff;
  --green: #218467;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button {
  border: 0;
}
button,
select {
  touch-action: manipulation;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.15px;
  line-height: 1.45;
  font-weight: 750;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.65px;
  line-height: 1.5;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.8;
}
small {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #6c9fe9;
  outline-offset: 3px;
}
::selection {
  background: #dceaff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  background: #fff;
  padding: 14px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 36px 20px 25px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 0 11px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-label {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #8691a1;
  margin: 47px 13px 14px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #687689;
  min-height: 49px;
}
.nav-item.active {
  background: var(--soft);
  color: var(--blue);
}
.nav-item:hover:not(.active) {
  background: #f7f9fc;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 13px 0;
  font-size: 12px;
  color: #69788c;
}
.sidebar-bottom strong {
  display: block;
  font-size: 13px;
  margin-top: 15px;
  color: #52647a;
}
.sidebar-bottom p {
  font-size: 11px;
  margin: 5px 0;
}
.connection-mark {
  display: flex;
  gap: 0;
  padding-left: 2px;
}
.connection-mark i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bfdaff;
  border: 3px solid white;
  margin-left: -3px;
}
.connection-mark i:nth-child(2) {
  background: #d8e8ff;
}
.connection-mark i:nth-child(3) {
  background: #9bc1fa;
}
.body {
  margin-left: 228px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px;
  background: rgba(255, 255, 255, 0.8);
}
.workspace-title {
  font-size: 13px;
  font-weight: 600;
}
.workspace-title .muted {
  margin-left: 10px;
  font-weight: 400;
}
.demo-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
select {
  appearance: auto;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  color: #34455b;
  min-height: 41px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 100%;
}
.demo-switch select {
  font-size: 12px;
  min-height: 35px;
  padding: 5px 11px;
}
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 35px 46px 15px;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.15s;
}
.button svg {
  width: 17px;
  height: 17px;
}
.primary {
  background: #2878ee;
  color: #fff;
}
.primary:hover {
  background: #1c62d2;
}
.secondary {
  background: #f1f4f8;
  color: #526176;
}
.soft {
  background: #edf4ff;
  color: var(--blue);
}
.text {
  background: transparent;
  color: var(--blue);
  padding: 8px 4px;
  min-height: 38px;
}
.text.muted {
  color: #6c7686;
  font-weight: 400;
}
.icon-button {
  padding: 9px;
  min-width: 40px;
  background: transparent;
  color: #75849a;
  font-size: 12px;
}
.wide {
  width: 100%;
}
.context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.child-select {
  display: flex;
  align-items: center;
  gap: 9px;
}
.child-select select {
  font-weight: 650;
  border: none;
  background: transparent;
  padding: 5px 0;
  font-size: 14px;
  min-height: 36px;
}
.context-meta {
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
  border-left: 1px solid #d8dee8;
  padding-left: 15px;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  background: #e7effd;
  color: #5580c0;
}
.avatar.blue {
  background: #e4eeff;
  color: #4879c3;
}
.avatar.green {
  background: #e0f2e9;
  color: #448670;
}
.avatar.peach {
  background: #f9ebe0;
  color: #a17851;
}
.avatar.large {
  width: 62px;
  height: 62px;
  font-size: 24px;
  border-radius: 23px;
}
.demo-note {
  font-size: 10px;
  color: #7c8999;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #eaf2ff;
  border-radius: 19px;
  min-height: 228px;
  padding: 31px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: block;
  color: #4a79bb;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h2 {
  font-size: 25px;
  color: #24446c;
  letter-spacing: -0.9px;
  margin-bottom: 7px;
}
.hero p {
  font-size: 12px;
  color: #637c9d;
  margin-bottom: 19px;
}
.hero .button {
  font-size: 12px;
  min-height: 40px;
}
.hero-art {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  height: 160px;
  margin-right: 8px;
}
.art-ring {
  position: absolute;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  border: 27px solid #97bffc;
  top: 13px;
  left: 10px;
  transform: rotate(-20deg);
}
.ring-two {
  width: 83px;
  height: 83px;
  border: 23px solid #c3d9fa;
  left: 78px;
  top: 51px;
}
.art-dot {
  position: absolute;
  left: 143px;
  top: 21px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  background: #438be9;
}
.hero-art span {
  position: absolute;
  bottom: 0;
  left: 43px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7794bb;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 25px;
  margin-bottom: 24px;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.section-heading .button {
  font-size: 11px;
  padding-right: 0;
}
.appointment-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.appointment-row:first-child {
  border-top: 0;
  padding-top: 5px;
}
.time {
  display: grid;
  gap: 3px;
  min-width: 48px;
}
.time strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.time small {
  font-size: 10px;
  color: var(--muted);
}
.row-main {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.row-main strong {
  font-size: 13px;
}
.row-main span {
  font-size: 10px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.row-actions .button {
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.badge.neutral {
  background: #f0f3f7;
  color: #728096;
}
.badge.blue {
  background: #edf4ff;
  color: #427bc7;
}
.badge.green {
  background: #e9f7f0;
  color: #248364;
}
.goal-mini {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
}
.goal-mini:first-of-type {
  padding-top: 3px;
}
.goal-mini strong {
  font-size: 13px;
  line-height: 1.7;
}
.goal-mini p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.goal-icon {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  background: #f0f5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6992cc;
  flex-shrink: 0;
}
.goal-icon svg {
  width: 18px;
}
.goal-mini + .wide {
  margin-top: 15px;
}
.family-note {
  background: #fdfefe;
}
.tiny-label {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #8491a2;
}
.family-note p {
  font-size: 14px;
  line-height: 1.95;
  margin: 13px 0 17px;
  color: #465c74;
}
.subtle-info {
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #8591a1;
  justify-content: center;
  margin-bottom: 25px;
}
.subtle-info svg {
  width: 13px;
  height: 13px;
}
.record-card {
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.record-card:first-of-type {
  border-top: 0;
  padding-top: 2px;
}
.record-card:last-child {
  padding-bottom: 0;
}
.meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.meta time {
  font-size: 10px;
  color: #8a96a5;
}
.record-card h3 {
  margin: 3px 0 7px;
}
.goal-ref {
  font-size: 11px !important;
  color: #7b8da5;
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 5px 0 11px;
}
.goal-ref svg {
  width: 13px;
  height: 13px;
}
.body-copy {
  font-size: 13px;
  color: #5d6e83;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 17px;
  flex-wrap: wrap;
}
.card-actions .button {
  font-size: 11px;
  min-height: 36px;
}
.page-footer {
  text-align: center;
  font-size: 10px;
  color: #8c98a8;
  padding: 16px 0 12px;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0 24px;
  gap: 15px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  border-bottom: 2px solid #e6ecf4;
}
.tab {
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 4px;
  margin-right: 20px;
}
.tab.active {
  border-bottom: 2px solid #2d7ae8;
  color: #2871d8;
  margin-bottom: -2px;
}
details {
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px 15px;
  margin-top: 18px;
}
summary {
  font-size: 12px;
  cursor: pointer;
  color: #63758b;
  line-height: 1.7;
}
summary svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 5px;
}
.private-content {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.private-content p {
  margin: 9px 0 17px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 13px;
}
.timeline li {
  position: relative;
  padding: 0 0 26px 22px;
  border-left: 1px solid #e0e9f5;
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline-dot {
  position: absolute;
  top: 3px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cad4e1;
}
.timeline-dot.blue {
  background: #5a97f1;
}
.timeline-dot.green {
  background: #5aa98d;
}
.timeline time {
  font-size: 10px;
  color: #92a0b1;
  display: block;
  margin-bottom: 6px;
}
.timeline strong {
  font-size: 12px;
}
.timeline p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.comparison {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.comparison strong {
  font-size: 13px;
  display: block;
}
.comparison small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin: 5px 0 10px;
}
.comparison > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 0;
}
.comparison > div span {
  color: var(--muted);
}
.footnote {
  font-size: 11px !important;
  color: #7b8b9f;
  line-height: 1.8;
  margin-top: 12px;
}
.children-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}
.roster {
  align-self: start;
}
.search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fa;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.search-label svg {
  width: 16px;
  color: #8392a4;
}
.search-label input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  outline-offset: 0;
}
.child-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: left;
  color: inherit;
}
.child-row.selected {
  background: #f0f6ff;
}
.child-row > span:nth-child(2) {
  flex: 1;
}
.child-row strong {
  font-size: 13px;
  display: block;
}
.child-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.child-row > svg {
  width: 15px;
  color: #9babbe;
}
.profile-header {
  display: flex;
  gap: 17px;
  align-items: center;
}
.profile-header > div {
  flex: 1;
}
.profile-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-facts {
  display: flex;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.profile-facts span {
  font-size: 11px;
  color: var(--muted);
}
.profile-facts strong {
  display: block;
  font-size: 14px;
  color: #42556d;
  margin-top: 9px;
}
.goal-card {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.goal-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.activity-card h2 {
  font-size: 20px;
  margin: 8px 0 12px;
}
.activity-symbol {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #edf4ff;
  color: #528be0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.frequency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #74869d;
  margin: 17px 0;
}
.frequency svg {
  width: 14px;
  height: 14px;
}
.feedback-card {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.feedback-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.feedback-card > strong {
  font-size: 13px;
}
.feedback-card p {
  font-size: 12px;
  color: #596c82;
  margin-top: 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.difficulty {
  color: #98704c !important;
}
.review-note {
  font-size: 11px;
  background: #f0f7f3;
  padding: 12px;
  border-radius: 9px;
  margin-top: 13px;
  color: #4f7a65;
  white-space: pre-wrap;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 25px;
  padding: 24px;
}
.metric-strip > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.metric-strip > div:first-child {
  padding-left: 4px;
}
.metric-strip > div:last-child {
  border: 0;
}
.metric-strip span {
  font-size: 12px;
  color: var(--muted);
}
.metric-strip strong {
  display: block;
  font-size: 30px;
  margin-top: 15px;
  letter-spacing: -1px;
}
.metric-strip small {
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
  color: var(--muted);
}
.date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-controls input {
  padding: 10px;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  background: #fff;
  color: #45566f;
  max-width: 160px;
}
.empty {
  text-align: center;
  padding: 25px 10px;
  color: #8190a3;
}
.empty > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: #a6b8cf;
}
.empty h3 {
  font-size: 13px;
  color: #75869b;
}
.empty p {
  font-size: 11px;
  margin: 8px 0 14px;
}
.mobile-nav {
  display: none;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: 90dvh;
  color: #243044;
  box-shadow: 0 28px 100px #0f274a29;
}
dialog::backdrop {
  background: #15273c55;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 22px;
}
.dialog-header .eyebrow {
  margin-bottom: 4px;
}
.dialog-body {
  padding: 22px 28px;
  font-size: 13px;
}
.dialog-body > h3 {
  margin: 20px 0 10px;
}
.dialog-body ol {
  line-height: 2;
  padding-left: 20px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 28px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
  font-size: 12px;
  color: #52627a;
}
.field > span {
  font-weight: 600;
}
.field em {
  font-size: 9px;
  font-style: normal;
  color: #8b9aaf;
  margin-left: 3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 13px;
  color: #33465e;
  background: #fff;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #aac9fa;
  border-color: #78a5ed;
}
.field small {
  font-size: 10px;
  font-weight: 400;
  color: #7a8ca3;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 20px 0 8px;
}
.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #2878ee;
}
.toggle-row span {
  line-height: 1.8;
}
fieldset {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
}
fieldset legend {
  font-size: 11px;
  color: var(--muted);
  padding: 0 5px;
}
fieldset > .footnote {
  margin-top: 0;
  margin-bottom: 15px;
}
[hidden] {
  display: none !important;
}
.notice {
  background: #f0f5fd;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #5b7495;
  margin-bottom: 20px;
}
.share-preview {
  border: 1px solid #e4ebf4;
  border-radius: 14px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.share-preview hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.form-error {
  color: #b63e3e;
  background: #fff1f1;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 15px;
}
.loading,
.fatal {
  margin: 80px auto;
  max-width: 560px;
  padding: 30px;
}
.fatal p {
  margin: 20px 0;
}
.fatal h1 {
  font-size: 23px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  background: #25374b;
  color: white;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 12px;
  line-height: 1.7;
  z-index: 50;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  main {
    padding-top: 43px;
  }
  .hero {
    min-height: 235px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 30px 14px;
  }
  .brand {
    font-size: 18px;
    padding: 0 7px;
  }
  .body {
    margin-left: 190px;
  }
  main {
    padding: 30px 28px 15px;
  }
  .topbar {
    padding: 0 28px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
    gap: 18px;
  }
  .panel {
    padding: 21px;
  }
  .hero {
    padding: 26px;
  }
  .hero-art {
    width: 150px;
    margin-right: 0;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .children-grid {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
  }
  .appointment-row {
    gap: 10px;
  }
  .row-actions {
    gap: 0;
  }
  .row-actions .text {
    font-size: 10px;
  }
  .metric-strip > div {
    padding: 0 13px;
  }
}
@media (max-width: 900px) {
  .content-grid,
  .children-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .hero {
    min-height: 210px;
  }
  .roster {
    margin-bottom: 0;
  }
  .hero h2 {
    font-size: 24px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .context-meta {
    display: none;
  }
  .metric-strip {
    padding: 20px;
  }
  .metric-strip span {
    font-size: 10px;
  }
  .metric-strip strong {
    font-size: 27px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    display: none;
  }
  .body {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .workspace-title {
    font-size: 12px;
  }
  .workspace-title .muted {
    display: none;
  }
  .demo-switch {
    font-size: 10px;
    gap: 6px;
  }
  main {
    padding: 25px 20px 100px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 23px;
    line-height: 1.45;
    letter-spacing: -0.8px;
    max-width: 250px;
  }
  .page-heading > .button {
    padding: 10px;
    font-size: 11px;
    min-height: 39px;
    flex-shrink: 0;
    margin-top: 26px;
  }
  .page-heading > .button svg {
    width: 14px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .context-bar {
    margin-bottom: 21px;
  }
  .demo-note {
    font-size: 8px;
    max-width: 90px;
    line-height: 1.6;
    text-align: right;
  }
  .hero {
    min-height: 220px;
    padding: 27px 24px;
    margin-bottom: 22px;
  }
  .hero h2 {
    font-size: 23px;
    line-height: 1.6;
    max-width: 260px;
  }
  .hero p {
    font-size: 11px;
    max-width: 245px;
    line-height: 1.9;
    margin-top: 9px;
  }
  .hero-kicker {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .content-grid,
  .children-grid {
    gap: 0;
  }
  .panel {
    padding: 22px 19px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-heading .button {
    font-size: 10px;
  }
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    background: #fffffffa;
    border-top: 1px solid var(--line);
    z-index: 5;
    backdrop-filter: blur(10px);
  }
  .mobile-nav .nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px;
    border-radius: 9px;
    font-size: 10px;
    min-height: 52px;
  }
  .mobile-nav .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .mobile-nav .nav-item.active {
    background: transparent;
    color: var(--blue);
  }
  .appointment-row {
    gap: 9px;
    flex-wrap: wrap;
  }
  .time {
    min-width: 43px;
  }
  .time strong {
    font-size: 15px;
  }
  .row-main strong {
    font-size: 12px;
  }
  .row-main span {
    font-size: 9px;
  }
  .row-actions {
    margin-left: auto;
  }
  .badge {
    font-size: 9px;
    padding: 5px 6px;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
    gap: 23px 0;
    padding: 23px;
  }
  .metric-strip > div {
    padding: 0 0 0 20px;
  }
  .metric-strip > div:nth-child(odd) {
    padding-left: 0;
  }
  .metric-strip > div:nth-child(even) {
    border: 0;
  }
  .metric-strip span {
    font-size: 11px;
  }
  .metric-strip strong {
    margin-top: 9px;
  }
  .profile-facts {
    gap: 40px;
  }
  .date-controls {
    gap: 4px;
  }
  .date-controls .button {
    font-size: 10px;
    padding: 9px 5px;
    min-width: 33px;
  }
  .view-toolbar select {
    max-width: 180px;
    font-size: 12px;
  }
  .date-controls input {
    max-width: 143px;
    font-size: 12px;
  }
  .dialog-header {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .field {
    font-size: 11px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .dialog-body .notice {
    font-size: 11px;
  }
  #toast {
    bottom: 90px;
    padding: 12px 17px;
    font-size: 11px;
  }
  .page-footer {
    line-height: 1.7;
  }
  .empty {
    padding: 21px 4px;
  }
}
/* Shared readable tones: muted information still meets small-text contrast. */
:root {
  --muted: #5d6b7e;
}
h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.workspace-label,
.demo-note,
.tiny-label,
.page-footer,
.subtle-info,
.meta time,
.goal-ref,
.timeline time,
.timeline p,
.footnote,
.field small,
.field em,
.frequency,
.comparison small {
  color: #5e6f85;
}
.primary {
  background: #2169dc;
}
.hero-kicker,
.hero p,
.hero-art span {
  color: #4c6c94;
}
.badge.neutral {
  color: #58697f;
}
.badge.blue {
  color: #3564a7;
}
.badge.green {
  color: #226b54;
}
.avatar.blue {
  color: #3567a8;
}
.avatar.green {
  color: #326d57;
}
.avatar.peach {
  color: #835d3b;
}
.body-copy,
.goal-card p,
.feedback-card p {
  font-size: 14px;
}
.goal-mini p,
.timeline p,
.section-heading p {
  font-size: 12px;
}
.previous-context {
  margin: 0 0 20px;
}
@media (max-width: 640px) {
  .page-heading h1 {
    max-width: none;
  }
  .page-heading:has(> .button) h1 {
    max-width: 235px;
  }
  .hero h2 {
    max-width: none;
  }
  .hero p {
    max-width: none;
  }
  .demo-note {
    font-size: 10px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .goal-mini p,
  .timeline p {
    font-size: 12px;
  }
  .field small {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Local attachment previews: constrained media, readable names, large controls. */
.attachment-editor {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e8eb;
}
.file-picker {
  display: grid;
  gap: 10px;
  font-weight: 600;
}
.file-picker input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d2d8e1;
  border-radius: 12px;
}
.file-picker input::file-selector-button {
  padding: 10px 14px;
  margin-right: 10px;
  border: 0;
  border-radius: 8px;
  background: #e8f1ff;
  color: #175cc4;
  cursor: pointer;
}
.attachment-message {
  font-size: 13px;
  color: #42536a;
  overflow-wrap: anywhere;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.media-item {
  min-width: 0;
  margin: 0;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #edf1f6;
}
.media-status {
  display: block;
  padding: 16px;
  font-size: 13px;
  color: #42536a;
}
.media-download {
  display: inline-block;
  padding: 10px 12px;
  color: #175cc4;
  font-size: 13px;
}
.media-item figcaption {
  padding: 0 12px 12px;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}
.media-name {
  font-size: 13px;
  font-weight: 600;
}
.media-item small {
  font-size: 12px;
  color: #536477;
}
.attachment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.attachment-row {
  min-width: 0;
}
.attachment-row .media-gallery {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}
.attachment-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 13px;
}
.attachment-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.attachment-options input {
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .media-gallery,
  .attachment-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
