:root {
  --ink:#263c36;
  --muted:#6c7973;
  --green:#275d4b;
  --green-dark:#1d4538;
  --sage:#e8eee7;
  --paper:#f7f8f4;
  --line:#e4e9e2;
  --peach:#f5dfcd;
  --white:#fff;
  --radius:15px;
  --shadow:0 4px 22px #263c3603;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  font-size:14px;
  line-height:1.55;
}

a {
  color:var(--green);
  text-decoration:none;
}

button,input,select {
  font:inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

a,button,input,select,summary {
  outline-offset:4px;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #ae7843;
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-size:34px;
  letter-spacing:-1.25px;
  line-height:1.2;
  font-weight:600;
  margin-bottom:10px;
}

h2 {
  font-size:18px;
  letter-spacing:-.4px;
  font-weight:600;
  margin-bottom:8px;
}

h3 {
  font-size:17px;
  font-weight:600;
  margin-bottom:8px;
}

p {
  margin-bottom:16px;
}

small {
  font-size:12px;
}

.icon {
  width:21px;
  height:21px;
  flex-shrink:0;
}

.brand {
  display:flex;
  gap:11px;
  align-items:center;
  color:var(--ink);
  font-size:17px;
  font-weight:700;
  letter-spacing:-.5px;
  line-height:1.15;
  width:max-content;
}

.brand-mark {
  background:var(--green);
  color:white;
  border-radius:12px;
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
}

.brand-mark .icon {
  width:26px;
  height:26px;
}

.brand-second {
  display:block;
  font-size:24px;
  letter-spacing:-1px;
}

.brand-dot {
  color:#ba7952;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:252px;
  background:#fcfcf9;
  border-right:1px solid var(--line);
  padding:32px 22px 0;
  display:flex;
  flex-direction:column;
  z-index:30;
}

.workspace {
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  padding:13px 11px;
  border-radius:10px;
  margin:35px 0 26px;
  min-width:0;
}

.workspace-icon {
  height:33px;
  min-width:33px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--peach);
  color:#6b4f3c;
  font-family:Georgia,serif;
  font-size:21px;
}

.workspace strong {
  font-size:12px;
  display:block;
  max-width:136px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.workspace small {
  font-size:10px;
  display:block;
  color:var(--muted);
  margin-top:2px;
}

.nav-caption {
  font-size:10px;
  letter-spacing:1.6px;
  color:#869189;
  font-weight:600;
  margin:0 12px 12px;
}

.nav-item {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 13px;
  border-radius:8px;
  color:#65716a;
  margin-bottom:6px;
  font-size:13px;
  font-weight:500;
}

.nav-item:hover {
  background:#f0f3ed;
}

.nav-item.active {
  background:var(--sage);
  color:var(--green);
  font-weight:650;
}

.active-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  margin-left:auto;
}

.sidebar-bottom {
  margin-top:auto;
}

.workspace-note {
  background:#f1f3ec;
  border:1px solid #e7ebdf;
  border-radius:12px;
  margin:30px 0 25px;
  padding:19px 16px;
}

.workspace-note>.icon {
  color:#849777;
  margin-bottom:8px;
}

.workspace-note strong {
  font-size:13px;
  font-weight:550;
  display:block;
  line-height:1.7;
}

.workspace-note>span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:7px;
}

.account {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:9px;
  padding:21px 0;
}

.avatar {
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  background:#deddd1;
  color:#575c43;
  font-weight:600;
  flex-shrink:0;
}

.avatar.pale {
  background:#edf1e9;
  color:#536b55;
  font-size:12px;
  width:32px;
  height:32px;
}

.account>div {
  min-width:0;
  flex:1;
}

.account strong {
  display:block;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.account small {
  color:var(--muted);
  font-size:10px;
}

.icon-button {
  border:0;
  background:transparent;
  color:var(--muted);
  display:grid;
  place-items:center;
  padding:6px;
}

.app-shell {
  margin-left:252px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.topbar {
  min-height:79px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 42px;
  background:#fcfcfa;
}

.breadcrumbs {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
  color:var(--muted);
}

.breadcrumbs strong {
  color:var(--ink);
  font-weight:500;
}

.crumb-divider {
  color:#bac3bc;
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:9px;
}

.date-label {
  font-size:12px;
  color:var(--muted);
  margin-right:17px;
}

.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5e8a6c;
}

.small-text {
  font-size:12px;
}

.main-content {
  padding:26px 42px 35px;
  max-width:1560px;
  width:100%;
  margin:0 auto;
  flex:1;
}

.local-label {
  font-size:9px;
  letter-spacing:1.25px;
  color:#687560;
  margin-bottom:22px;
  display:flex;
  gap:11px;
  align-items:center;
}

.local-label span {
  font-size:10px;
  color:#7e887e;
  letter-spacing:0;
  border-left:1px solid #cbd4c5;
  padding-left:11px;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 28px;
}

.page-heading p {
  color:var(--muted);
  margin:0;
  font-size:13px;
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.8px;
  font-weight:650;
  color:#7c866f;
  display:block;
  margin-bottom:11px;
}

.greeting-spark {
  font-size:33px;
  color:#b58b55;
  margin-left:3px;
  vertical-align:1px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:42px;
  border:1px solid var(--green);
  border-radius:7px;
  background:var(--green);
  color:white;
  font-weight:550;
  font-size:12px;
  padding:11px 17px;
  white-space:nowrap;
  transition:background .15s;
}

.button:hover {
  background:var(--green-dark);
}

.button .icon {
  width:17px;
  height:17px;
}

.button.secondary {
  background:white;
  border-color:#dfe5dc;
  color:var(--ink);
}

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

.button.dark {
  background:var(--ink);
  border-color:var(--ink);
}

.button.small {
  min-height:34px;
  padding:7px 12px;
  font-size:11px;
}

.button.full {
  width:100%;
}

.button.danger {
  background:#985a45;
  border-color:#985a45;
  align-self:flex-start;
}

.button.disabled {
  opacity:.45;
  cursor:default;
}

.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px;
  margin-bottom:27px;
}

.stat-card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.stat-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  font-weight:500;
}

.stat-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
}

.stat-icon .icon {
  width:17px;
  height:17px;
}

.sage {
  background:#edf2e9;
  color:#667e55;
}

.peach {
  background:#f8eadf;
  color:#ad7756;
}

.lavender {
  background:#f0edf7;
  color:#8973a7;
}

.sand {
  background:#f7f0de;
  color:#a28848;
}

.stat-value {
  display:block;
  font-size:31px;
  letter-spacing:-1.1px;
  font-weight:550;
  margin:8px 0 1px;
  line-height:1.5;
}

.stat-card>small {
  color:#7e897f;
  font-size:10px;
}

.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.9fr) minmax(285px,1fr);
  gap:24px;
  align-items:start;
}

.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px 25px;
  border-bottom:1px solid var(--line);
}

.panel-heading h2 {
  margin-bottom:5px;
}

.panel-heading p {
  font-size:11px;
  color:var(--muted);
  margin-bottom:0;
}

.text-link {
  font-size:11px;
  font-weight:600;
  display:inline-flex;
  gap:7px;
  align-items:center;
}

.text-link:hover {
  text-decoration:underline;
}

.lesson-row {
  display:flex;
  align-items:center;
  gap:15px;
  padding:19px 25px;
  border-bottom:1px solid #edf0e9;
  color:var(--ink);
}

.lesson-row:hover {
  background:#fafbf7;
}

.lesson-row:last-of-type {
  border-bottom:0;
}

.date-tile {
  height:51px;
  width:45px;
  min-width:45px;
  background:#f2f4ed;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  line-height:1.25;
}

.date-tile small {
  text-transform:uppercase;
  font-size:9px;
  color:#87937a;
  letter-spacing:.6px;
}

.date-tile strong {
  font-size:21px;
  font-weight:500;
  margin-top:3px;
}

.lesson-info {
  flex:1;
  min-width:0;
}

.lesson-info>strong {
  display:block;
  font-size:12px;
  font-weight:600;
}

.lesson-info>span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.6;
}

.dot-separator {
  padding:0 4px;
}

.lesson-time {
  text-align:right;
  white-space:nowrap;
}

.lesson-time strong {
  display:block;
  font-size:11px;
  font-weight:550;
}

.lesson-time small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
}

.lesson-row>.icon {
  width:16px;
  color:#8a998b;
  margin-left:4px;
}

.panel-footer {
  background:#fcfcf9;
  padding:13px 25px;
  font-size:10px;
  color:#7d887b;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:7px;
}

.panel-footer .icon {
  width:13px;
  height:13px;
}

.dashboard-aside {
  display:grid;
  gap:20px;
}

.accent-panel {
  background:#eeeede;
  border:1px solid #e3e4d1;
  border-radius:var(--radius);
  padding:25px;
  position:relative;
  overflow:hidden;
}

.accent-panel .eyebrow {
  font-size:8px;
  letter-spacing:1.3px;
  color:#7e8766;
}

.accent-panel h2 {
  font-size:29px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-1px;
  margin:17px 0 12px;
  position:relative;
  z-index:1;
}

.accent-panel p {
  font-size:11px;
  max-width:220px;
  color:#737d64;
  line-height:1.9;
  position:relative;
  z-index:1;
}

.accent-panel .button {
  margin-top:7px;
  font-size:11px;
  position:relative;
  z-index:1;
}

.decorative-flower {
  position:absolute;
  bottom:25px;
  right:-20px;
  font-size:130px;
  line-height:1;
  color:#d7dbc1;
  transform:rotate(12deg);
}

.quick-panel {
  padding:20px 23px;
}

.quick-panel h2 {
  font-size:13px;
  margin-bottom:15px;
}

.quick-panel>a {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  border-top:1px solid var(--line);
  padding:13px 0;
  color:#5d6a5d;
}

.quick-panel>a .icon {
  width:17px;
  height:17px;
  color:#8a9981;
}

.quick-panel>a>span {
  margin-left:auto;
}

.quick-panel>a:last-child {
  padding-bottom:0;
}

.activity-panel {
  margin-top:25px;
}

.activity-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:5px 25px;
}

.activity-item {
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 18px 14px 0;
}

.activity-item strong {
  font-size:11px;
  font-weight:500;
  display:block;
}

.activity-item small {
  font-size:10px;
  color:#879082;
}

.activity-item time {
  font-size:9px;
  color:#899185;
  margin-left:auto;
}

.activity-bullet {
  width:7px;
  height:7px;
  background:#b7c5a9;
  border-radius:50%;
  flex-shrink:0;
}

.app-footer {
  display:flex;
  justify-content:space-between;
  padding:0 42px 23px;
  font-size:10px;
  color:#8c958a;
}

.empty-state {
  text-align:center;
  padding:50px 24px;
  color:var(--ink);
}

.empty-state p {
  font-size:12px;
  color:var(--muted);
  max-width:320px;
  margin:0 auto 20px;
}

.empty-icon {
  width:50px;
  height:50px;
  border-radius:14px;
  background:var(--sage);
  display:grid;
  place-items:center;
  margin:0 auto 17px;
}

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

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:normal;
}

th {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#82907d;
  background:#fbfcf9;
  font-weight:600;
  padding:14px 23px;
}

td {
  font-size:12px;
  padding:20px 23px;
  border-top:1px solid #edf0e9;
}

td strong {
  font-weight:600;
}

.person-name {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-weight:600;
  white-space:nowrap;
}

.strong-link {
  font-weight:600;
  color:var(--ink);
}

.cell-subtitle {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
  max-width:260px;
}

.badge {
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  font-size:10px;
  font-weight:550;
  border-radius:5px;
  white-space:nowrap;
}

.badge.green {
  color:#487451;
  background:#edf5e8;
}

.badge.orange {
  background:#fbefde;
  color:#956a2e;
}

.badge.neutral {
  background:#f0f2ed;
  color:#7d8775;
}

.count-label {
  font-size:12px;
  font-weight:500;
}

.search-form {
  display:flex;
  align-items:center;
  gap:9px;
}

.search-form input {
  max-width:220px;
  font-size:11px;
  min-height:35px;
}

.form-panel {
  max-width:850px;
  padding:29px;
}

.stack-form {
  display:flex;
  flex-direction:column;
  gap:20px;
}

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

.stack-form label,.filter-form label {
  font-size:12px;
  font-weight:550;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.stack-form label .required {
  display:contents;
  color:#a46c43;
}

input,select {
  width:100%;
  min-width:0;
  border:1px solid #dce3d8;
  border-radius:7px;
  background:#fff;
  color:var(--ink);
  padding:11px 12px;
  min-height:43px;
  font-size:13px;
}

input::placeholder {
  color:#a4ac9e;
}

input:focus,select:focus {
  border-color:#6d8869;
}

label>small {
  color:var(--muted);
  font-weight:400;
  font-size:10px;
}

.required {
  color:#a46c43;
}

.optional {
  color:var(--muted);
  font-size:10px;
  font-weight:400;
}

.form-note {
  font-size:11px;
  color:#79836f;
  background:#f7f8f3;
  border:1px solid #eaede3;
  padding:15px;
  border-radius:8px;
  margin:0;
  line-height:1.8;
}

.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:20px;
}

.back-link {
  font-size:11px;
  display:inline-block;
  margin:0 0 22px;
  color:var(--muted);
}

.muted {
  color:var(--muted);
}

.pagination {
  padding:18px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
}

.pagination>div {
  display:flex;
  gap:12px;
  align-items:center;
}

.filter-form {
  display:flex;
  gap:12px;
  align-items:flex-end;
}

.filter-form label {
  font-size:10px;
  gap:3px;
}

.filter-form input,.filter-form select {
  padding:7px 9px;
  min-height:34px;
  font-size:11px;
}

.roster-picker {
  border:1px solid var(--line);
  border-radius:9px;
  padding:18px;
}

.roster-picker legend {
  padding:0 8px;
  font-size:12px;
  font-weight:550;
}

.check-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-height:300px;
  overflow:auto;
}

.stack-form .checkbox-card {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:9px;
  font-size:12px;
  font-weight:400;
  padding:10px;
  border-radius:6px;
  background:#f8faf5;
}

.checkbox-card input {
  width:15px;
  height:15px;
  min-height:0;
  accent-color:var(--green);
}

.attendance-row {
  padding:23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
}

.attendance-row:first-child {
  border-top:0;
}

.attendance-person {
  display:flex;
  align-items:center;
  gap:11px;
}

.attendance-person strong {
  font-size:13px;
  display:block;
  font-weight:550;
}

.attendance-person small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
}

.attendance-form {
  display:flex;
  align-items:center;
  gap:8px;
}

.attendance-form select {
  font-size:11px;
  min-height:34px;
  padding:7px 9px;
  width:112px;
}

.danger-panel {
  margin-top:25px;
}

.danger-panel summary {
  padding:20px 25px;
  cursor:pointer;
  font-size:12px;
  color:#996245;
}

.details-content {
  padding:0 25px 25px;
  max-width:650px;
}

.details-content>p {
  font-size:12px;
}

.subtle-note {
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px;
  margin:-5px 0 24px;
}

.subtle-note .icon {
  width:17px;
}

.billing-summary {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  background:white;
  border-radius:var(--radius);
  margin-bottom:25px;
  padding:23px;
}

.billing-summary>div {
  border-right:1px solid var(--line);
  padding:0 22px;
}

.billing-summary>div:first-child {
  padding-left:0;
}

.billing-summary>div:last-child {
  border:0;
}

.billing-summary small {
  display:block;
  color:var(--muted);
  font-size:11px;
}

.billing-summary strong {
  display:block;
  font-size:25px;
  font-weight:500;
  margin-top:8px;
}

.billing-summary strong.date-value {
  font-size:20px;
  margin-top:13px;
}

.payment-panel {
  padding:25px;
}

.payment-panel>p {
  font-size:12px;
}

.payment-panel .stack-form {
  gap:17px;
}

.alert {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:17px 20px;
  border:1px solid #e3dcc7;
  background:#faf6e9;
  color:#76683f;
  border-radius:9px;
  margin-bottom:23px;
  font-size:12px;
}

.alert.success {
  background:#edf5e9;
  color:#3d6a42;
  border-color:#dce9d5;
}

.alert.error {
  background:#fff1e9;
  color:#975038;
  border-color:#efd8c9;
}

.alert .icon {
  width:17px;
  height:17px;
  margin-top:1px;
}

.alert p {
  margin:7px 0;
}

.alert ul {
  padding-left:18px;
  margin:7px 0 0;
}

.inline-actions {
  display:flex;
  gap:9px;
  margin-top:12px;
}

.inline-form {
  display:flex;
  align-items:center;
  gap:6px;
}

.inline-form select {
  min-height:30px;
  font-size:10px;
  padding:5px;
}

.text-button {
  background:transparent;
  border:0;
  color:var(--green);
  font-size:12px;
}

.mobile-menu,.mobile-close {
  display:none;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:280px;
  background:var(--green);
  color:white;
  padding:12px;
  z-index:100;
}

.skip-link:focus {
  top:10px;
}

.guest-body {
  background:#f8f8f2;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.guest-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:36px 7vw;
}

.guest-main {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:8vw;
  max-width:1160px;
  width:100%;
  margin:55px auto;
  align-items:center;
  padding:0 30px;
  flex:1;
}

.guest-story h1 {
  font-family:Georgia,serif;
  font-size:64px;
  font-weight:400;
  line-height:1.12;
  letter-spacing:-2.3px;
  margin:22px 0;
}

.guest-story h1>span {
  color:#ba8458;
}

.guest-story>p {
  font-size:15px;
  color:#7c8675;
  max-width:355px;
  line-height:1.9;
}

.guest-story>.eyebrow {
  font-size:9px;
}

.story-art {
  height:175px;
  position:relative;
  max-width:390px;
  margin:35px 0;
}

.art-ring {
  position:absolute;
  border:1px solid #d8dfca;
  border-radius:50%;
  width:220px;
  height:220px;
  left:80px;
  top:-20px;
}

.art-ring:before {
  content:"";
  position:absolute;
  inset:25px;
  border:1px solid #d8dfca;
  border-radius:50%;
}

.art-card {
  position:absolute;
  display:flex;
  align-items:center;
  gap:12px;
  background:white;
  padding:19px;
  box-shadow:0 10px 30px #324c3110;
  border:1px solid var(--line);
  border-radius:13px;
  top:35px;
  left:5px;
  transform:rotate(-4deg);
  z-index:1;
}

.mini-icon {
  width:40px;
  height:40px;
  background:#edf1e6;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#7c906c;
}

.art-card strong {
  font-size:12px;
  font-weight:550;
  display:block;
}

.art-card small {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:5px;
}

.art-check {
  border-radius:50%;
  background:#d9e5ce;
  color:#6b8559;
  padding:3px 7px;
  margin-left:14px;
}

.art-flower {
  position:absolute;
  right:0;
  bottom:4px;
  font-size:85px;
  color:#dbb187;
  line-height:1;
  transform:rotate(8deg);
  z-index:2;
}

.story-foot {
  font-size:10px;
  color:#8d9784;
  display:block;
  margin-top:45px;
}

.auth-card {
  background:white;
  border:1px solid var(--line);
  border-radius:21px;
  padding:38px;
  box-shadow:0 12px 60px #263c3605;
}

.auth-card h2 {
  font-size:28px;
  letter-spacing:-.8px;
  margin-bottom:10px;
}

.auth-card>.muted {
  font-size:12px;
  margin-bottom:27px;
}

.auth-card .stack-form {
  gap:17px;
}

.auth-card .form-grid {
  gap:13px;
}

.auth-bottom {
  font-size:11px;
  text-align:center;
  color:var(--muted);
  margin:23px 0 0;
}

.auth-bottom a {
  font-weight:600;
}

.forgot-link {
  font-size:11px;
  align-self:flex-end;
  margin-top:-7px;
}

.guest-footer {
  padding:25px 7vw;
  color:#89917f;
  font-size:10px;
  display:flex;
  justify-content:space-between;
}

.welcome-features {
  display:flex;
  flex-direction:column;
  gap:23px;
  margin:30px 0;
}

.welcome-features>div {
  display:flex;
  gap:15px;
  align-items:center;
}

.welcome-features .icon {
  color:#88997a;
}

.welcome-features strong {
  font-size:12px;
  display:block;
  font-weight:550;
}

.welcome-features small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px;
}

@media(min-width:1600px) {
  .main-content {
    padding-top:38px;
  }
  .stats-grid {
    gap:23px;
  }
  .stat-card {
    padding:24px;
  }
  .lesson-row {
    padding-top:22px;
    padding-bottom:22px;
  }
}

@media(max-width:1200px) {
  .sidebar {
    width:220px;
    padding:25px 16px 0;
  }
  .app-shell {
    margin-left:220px;
  }
  .main-content {
    padding:25px;
  }
  .topbar {
    padding:18px 25px;
  }
  .stat-card {
    padding:16px;
  }
  .stat-value {
    font-size:26px;
  }
  .stat-top {
    font-size:11px;
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1.6fr) minmax(265px,1fr);
    gap:18px;
  }
  .lesson-row {
    padding:17px;
    gap:11px;
  }
  .lesson-row>.icon {
    display:none;
  }
  .panel-heading {
    padding:21px;
  }
  .date-label {
    display:none;
  }
  .app-footer {
    padding:0 25px 20px;
  }
  .attendance-row {
    flex-wrap:wrap;
  }
  .guest-story h1 {
    font-size:54px;
  }
}

@media(max-width:980px) {
  .stats-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .dashboard-grid {
    grid-template-columns:1fr;
  }
  .dashboard-aside {
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
  .page-heading {
    align-items:flex-start;
  }
  .page-heading h1 {
    font-size:29px;
  }
  .page-heading>.button {
    margin-top:5px;
  }
  .activity-list {
    grid-template-columns:1fr;
  }
  .billing-summary {
    grid-template-columns:repeat(2,1fr);
    row-gap:20px;
  }
  .billing-summary>div:nth-child(3) {
    padding-left:0;
  }
  .billing-summary>div:nth-child(2) {
    border-right:0;
  }
  .panel-heading:has(.filter-form) {
    align-items:flex-start;
    flex-direction:column;
  }
  .guest-main {
    gap:35px;
  }
  .auth-card {
    padding:28px;
  }
  .guest-story h1 {
    font-size:46px;
  }
  .guest-main {
    margin:30px auto;
  }
  .guest-story>p {
    font-size:13px;
  }
  .story-art {
    transform:scale(.85);
    transform-origin:left;
  }
}

@media(max-width:760px) {
  .sidebar {
    transform:translateX(-100%);
    transition:transform .2s;
    width:252px;
    box-shadow:20px 0 50px #263c3615;
  }
  .sidebar.open {
    transform:translateX(0);
  }
  .app-shell {
    margin-left:0;
  }
  .topbar {
    min-height:65px;
    padding:16px 20px;
  }
  .topbar-right>.small-text,.topbar-right>.status-dot {
    display:none;
  }
  .mobile-menu {
    display:grid;
    font-size:19px;
    padding:0;
  }
  .mobile-close {
    display:block;
    position:absolute;
    right:18px;
    top:25px;
    border:0;
    background:none;
    font-size:24px;
    color:var(--muted);
  }
  .main-content {
    padding:22px 20px;
  }
  .page-heading {
    flex-wrap:wrap;
    gap:17px;
    margin-bottom:23px;
  }
  .page-heading h1 {
    font-size:30px;
  }
  .page-heading p {
    font-size:12px;
  }
  .stats-grid {
    gap:11px;
    margin-bottom:21px;
  }
  .stat-card {
    padding:17px;
  }
  .stat-value {
    font-size:28px;
  }
  .stat-top {
    font-size:11px;
  }
  .stat-icon {
    width:27px;
    height:27px;
  }
  .dashboard-aside {
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .accent-panel {
    padding:22px;
  }
  .accent-panel h2 {
    font-size:26px;
  }
  .quick-panel {
    padding:22px 16px;
  }
  .quick-panel h2 {
    line-height:1.5;
  }
  .panel-heading {
    padding:20px;
    gap:12px;
  }
  .panel-heading h2 {
    font-size:17px;
  }
  .text-link {
    font-size:10px;
  }
  .lesson-row {
    padding:18px;
  }
  .lesson-info>span {
    max-width:185px;
  }
  .panel-footer {
    padding:13px 19px;
  }
  .activity-panel {
    margin-top:20px;
  }
  .app-footer {
    padding:0 20px 20px;
  }
  .search-form {
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .search-form input {
    max-width:160px;
  }
  .form-panel {
    padding:23px;
  }
  .form-grid {
    gap:18px;
  }
  .form-grid input {
    font-size:12px;
  }
  .attendance-form {
    flex-wrap:wrap;
  }
  .billing-summary {
    padding:20px;
  }
  .pagination {
    flex-direction:column;
    gap:12px;
  }
  .filter-form {
    flex-wrap:wrap;
  }
  .guest-main {
    grid-template-columns:1fr;
    max-width:520px;
    margin:20px auto 35px;
    padding:0 22px;
    gap:25px;
  }
  .guest-story {
    display:none;
  }
  .guest-header {
    padding:25px;
  }
  .guest-header .brand {
    font-size:15px;
  }
  .guest-header .brand-second {
    font-size:22px;
  }
  .guest-footer {
    padding:20px 25px;
    gap:10px;
    flex-wrap:wrap;
  }
  .auth-card {
    padding:28px;
  }
  .skip-link {
    left:15px;
  }
}

@media(max-width:420px) {
  .dashboard-aside {
    grid-template-columns:1fr;
  }
  .stats-grid {
    gap:9px;
  }
  .stat-card {
    padding:14px;
  }
  .stat-top {
    font-size:10px;
    gap:5px;
  }
  .stat-value {
    font-size:26px;
  }
  .stat-card>small {
    font-size:9px;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .check-grid {
    grid-template-columns:1fr;
  }
  .lesson-info>span {
    max-width:130px;
    font-size:9px;
  }
  .lesson-time strong {
    font-size:10px;
  }
  .date-tile {
    min-width:38px;
    width:38px;
  }
  .lesson-row {
    gap:10px;
    padding:16px;
  }
  .search-form input {
    max-width:130px;
  }
  .billing-summary strong {
    font-size:22px;
  }
  .billing-summary strong.date-value {
    font-size:17px;
  }
  .panel-heading .count-label {
    font-size:10px;
    white-space:nowrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Platform administration and support */
textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  border: 1px solid #dce3d8;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
textarea:focus-visible { outline: 3px solid #ae7843; outline-offset: 4px; }
.admin-body .sidebar { background: #f5f7f5; }
.admin-body .workspace-icon { background: #e0e7e9; color: #45626a; }
.admin-body .workspace-note { background: #eaf0ec; }
.admin-note { margin-top: 24px; }
.admin-note-bottom { margin-bottom: 24px; }
.admin-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; font-size: 12px; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-account-row { padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.admin-account-row strong, .admin-account-row small { display: block; }
.admin-account-row small { color: var(--muted); margin: 5px 0; }
.admin-user-actions { min-width: 220px; }
.admin-user-actions summary { color: var(--green); cursor: pointer; }
.support-message { padding: 20px 0; border-bottom: 1px solid var(--line); }
.support-message.internal { background: #fcf5e8; padding: 18px; border-radius: 8px; margin: 15px 0; }
.support-message-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; }
.support-message-meta time { font-size: 10px; color: var(--muted); margin-left: auto; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 12px 0 0; }
.audit-json { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 360px; font-size: 10px; background: var(--paper); padding: 12px; }
.error-card { max-width: 750px; margin: 12vh auto; }
@media(max-width:760px) { .error-card { margin: 30px 20px; } .error-card .inline-actions { flex-wrap: wrap; } }

/* Account security: make the next step clear after enrollment. */
.security-ready { margin: 24px 0 18px; padding: 20px; background: #edf4ee; border: 1px solid #d9e7dd; border-radius: 14px; }
.security-ready h2 { margin: 12px 0 6px; font-size: 23px; }
.security-ready p { margin: 0; }
.security-workspace { margin: 18px 0 24px; min-height: 52px; font-size: 16px; }
.security-settings { margin: 20px 0; border: 1px solid #dce3d9; border-radius: 12px; }
.security-settings summary { padding: 16px; cursor: pointer; font-weight: 600; }
.security-settings-body { padding: 0 16px 18px; }
.security-settings-body .stack-form + .stack-form { border-top: 1px solid #dce3d9; margin-top: 22px; padding-top: 22px; }
.security-help { margin-top: 24px; font-size: 13px; color: #52665e; line-height: 1.65; }
.security-recovery { margin: 20px 0; padding: 18px; border: 1px solid #dce3d9; border-radius: 12px; }
.security-recovery h2 { font-size: 20px; }
.recovery-code-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; list-style: none; }
.recovery-code-list code { font-size: 12px; overflow-wrap: anywhere; }
.authenticator-qr { margin: 18px auto; text-align: center; }
.authenticator-qr img { max-width: 100%; height: auto; background: white; border-radius: 8px; }
.setup-key { display: block; overflow-wrap: anywhere; padding: 12px; background: #f3f5ef; border-radius: 8px; }
.product-guide { margin: 24px 0; padding: 20px; background: #f2f5ed; border: 1px solid #dce3d9; border-radius: 14px; }
.product-guide h3 { margin: 0 0 8px; font-size: 19px; }
.product-guide p { margin: 0 0 16px; font-size: 14px; }
