:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --text: #18212f;
  --muted: #637083;
  --line: #d9e0e7;
  --blue: #275d8c;
  --green: #287754;
  --amber: #a15f13;
  --red: #a33b3b;
  --shadow: 0 10px 30px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--blue);
}

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

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 13px;
  cursor: pointer;
}

button:hover {
  border-color: #9daabb;
}

button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

button.success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

button.warning {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.legalLinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legalLinks--admin {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.legalLinks--admin a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.legalPage {
  background: var(--bg);
}

.legalDocument {
  width: min(860px, calc(100% - 28px));
  margin: 28px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legalDocument h1 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 5vw, 40px);
}

.legalDocument h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legalDocument p,
.legalDocument li {
  color: var(--text);
  line-height: 1.55;
}

.legalBack {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

button.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.loginScreen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.loginScreen[hidden] {
  display: none;
}

.loginCard {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.brandLockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.loginBrand {
  justify-content: center;
  padding: 4px 0 2px;
}

.brandLogo {
  display: block;
  width: clamp(230px, 30vw, 360px);
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
}

.brandLogoLarge {
  width: min(360px, 84vw);
  max-height: 130px;
  object-position: center;
}

.loginModeTabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f7;
}

.loginMode {
  min-width: 0;
  border: 0;
  background: transparent;
}

.loginMode.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(24, 33, 47, 0.12);
  font-weight: 700;
}

.loginPanel {
  display: grid;
  gap: 14px;
}

.loginPanel[hidden] {
  display: none;
}

.loginCard button {
  width: 100%;
}

.appShell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.topbarMain {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.topbarBrand {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 520px;
}

.accountControls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  max-width: min(100%, 620px);
}

.accountPerson {
  width: clamp(130px, 22vw, 210px);
  min-width: 0;
}

.accountPill {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

.muted {
  color: var(--muted);
  margin-top: 6px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field.compact {
  min-width: 150px;
}

.fieldHelp {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 11px;
}

input[type="checkbox"] {
  width: auto;
}

.checkField label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-width: 92px;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--blue);
  font-weight: 700;
}

.subTabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  overflow-x: auto;
}

.subTab {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-width: 96px;
}

.subTab.active {
  color: var(--text);
  border-bottom-color: var(--green);
  font-weight: 700;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}

.headActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.headActions button {
  min-height: 34px;
  padding: 7px 10px;
}

.headActions select,
.headActions .fileInput {
  min-height: 34px;
  width: auto;
  max-width: 220px;
  padding: 7px 10px;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.item.done {
  border-color: #a8d4bf;
  background: #f0faf5;
}

.item.open {
  border-color: #a9c3dc;
  background: #f7fbff;
}

.item.paused {
  border-color: #d8c28c;
  background: #fffaf0;
}

.item.approved {
  border-color: #9ec2dc;
  background: #f0f7fb;
}

.itemTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.itemTop > div {
  min-width: 0;
}

.item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.taskTitleButton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.taskTitleButton::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid #c8d6e1;
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.taskTitleButton[aria-expanded="true"]::after {
  content: "-";
}

.taskTitleButton:hover,
.taskTitleButton:focus-visible {
  color: #245e89;
}

.taskTitleButton:focus-visible {
  outline: 2px solid #8db5d6;
  outline-offset: 3px;
  border-radius: 4px;
}

.assignmentChecklist {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d7e2eb;
  border-radius: 8px;
  background: #fff;
}

.assignmentChecklistHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.assignmentChecklistHead strong {
  font-size: 13px;
}

.assignmentChecklistHead button {
  padding: 4px 8px;
  font-size: 12px;
}

.assignmentChecklist ol {
  margin: 6px 0 0 18px;
  padding: 0;
}

.assignmentChecklist li {
  margin: 4px 0;
  line-height: 1.35;
}

.familyBoardPanel {
  min-width: 0;
}

.familyBoardSurface {
  min-height: calc(100vh - 190px);
  padding: 18px;
  border: 1px solid #d5dde4;
  border-radius: 8px;
  background: #eef2f4;
}

.familyBoardHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.familyBoardDateLabel {
  margin-bottom: 4px;
  color: #536273;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.familyBoardHeader h2 {
  font-size: 28px;
  line-height: 1.1;
}

.familyBoardControls,
.familyBoardDateControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.familyBoardControls button,
.familyBoardDatePicker {
  min-height: 36px;
  padding: 7px 10px;
}

.familyBoardDateControls {
  padding-right: 8px;
  border-right: 1px solid #cbd4dc;
}

.familyBoardDateControls button.active {
  border-color: var(--blue);
  background: #e7f0f7;
  color: var(--blue);
  font-weight: 700;
}

.familyBoardDatePicker {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.familyBoardDatePicker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.familyBoardDatePicker input {
  width: 132px;
  min-height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
}

.familyBoardSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid #d5dde4;
  border-radius: 8px;
  background: var(--surface);
}

.familyBoardSummary > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.familyBoardSummary > div:last-child {
  border-right: 0;
}

.familyBoardSummary strong {
  font-size: 20px;
}

.familyBoardSummary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.familyBoardGrid {
  display: grid;
  grid-template-columns: repeat(var(--family-board-columns, 1), minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.familyBoardPerson {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5dde4;
  border-top: 4px solid #4779a1;
  border-radius: 8px;
  background: var(--surface);
}

.familyBoardPerson:nth-child(3n + 2) {
  border-top-color: #4f856b;
}

.familyBoardPerson:nth-child(3n + 3) {
  border-top-color: #b67831;
}

.familyBoardPerson--paused {
  border-top-color: #a37b35;
  background: #fffaf0;
}

.familyBoardPersonHeader {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px 12px 9px;
}

.familyBoardInitial {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3edf4;
  color: #285d85;
  font-size: 17px;
  font-weight: 800;
}

.familyBoardPerson:nth-child(3n + 2) .familyBoardInitial {
  background: #e2f0e8;
  color: #2e6e50;
}

.familyBoardPerson:nth-child(3n + 3) .familyBoardInitial {
  background: #f7e9d8;
  color: #8a531c;
}

.familyBoardPersonHeader h3 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.familyBoardPersonHeader p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.familyBoardPersonHeader > strong {
  color: var(--green);
  font-size: 14px;
}

.familyBoardProgress {
  height: 5px;
  margin: 0 12px 11px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5eaee;
}

.familyBoardProgress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.familyBoardTaskList {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.familyBoardTask {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe2e8;
  border-left: 4px solid #7da6c7;
  border-radius: 6px;
  background: #f8fbfd;
}

.familyBoardTask--done {
  border-left-color: #c18a3d;
  background: #fffaf1;
}

.familyBoardTask--approved {
  border-left-color: #5c9877;
  background: #f1f8f4;
}

.familyBoardTask--tutor {
  border-left-color: #7c6a9b;
  background: #f8f6fb;
}

.familyBoardTaskTop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
}

.familyBoardTask h3 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.familyBoardTask .taskTitleButton {
  font-size: 14px;
}

.familyBoardTaskState {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.familyBoardTask .meta {
  font-size: 11px;
  line-height: 1.35;
}

.familyBoardTask .assignmentChecklist {
  padding: 9px;
}

.familyBoardDoneButton {
  width: 100%;
  min-height: 32px;
  margin-top: 9px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.familyBoardClear {
  padding: 16px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.familyBoardUpdated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.familyBoardSurface:fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: #eef2f4;
}

.familyBoardSurface:fullscreen .familyBoardPerson {
  display: flex;
  max-height: calc(100vh - 185px);
  flex-direction: column;
}

.familyBoardSurface:fullscreen .familyBoardTaskList {
  overflow-y: auto;
}

.item.selectedItem {
  border-color: #9eb7cf;
  background: #f8fbfd;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.approvalTools {
  display: flex;
  justify-content: flex-end;
}

.approvalTools button {
  width: 100%;
}

.reviewTurns {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dailyLessonList {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.setupStepper {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.setupStepper button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
  color: var(--muted);
}

.setupStepper button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tutorSetupWizard form,
.tutorSetupStep {
  display: grid;
  gap: 12px;
}

.setupWizardScreen {
  padding: 18px 24px 32px;
}

.setupWizard {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.setupWizardRail,
.setupWizardCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.setupWizardRail {
  padding: 16px;
  position: sticky;
  top: 14px;
}

.setupWizardRail h2,
.setupWizardCard h2 {
  margin-top: 0;
}

.setupStepList {
  display: grid;
  gap: 8px;
}

.setupStepPill {
  justify-content: flex-start;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setupStepPill span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
}

.setupStepPill.active {
  border-color: var(--blue);
  color: var(--blue);
}

.setupStepPill.complete span {
  background: var(--green);
  color: #fff;
}

.setupStepPill.skipped span {
  background: var(--amber);
  color: #fff;
}

.setupWizardCard {
  padding: 18px;
}

.setupIntro {
  max-width: 720px;
}

.setupFields,
.setupReviewGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 16px;
}

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

.setupInlineGrid .wideField {
  grid-column: 1 / -1;
}

.setupChoiceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.setupChoice,
.setupCheck {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}

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

.setupChoice small {
  color: var(--muted);
  font-weight: 400;
}

.setupCheckboxList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.setupReviewBox {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.setupWizardActions,
.setupReviewActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.firstTodayOverlay {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #d9b46b;
  background: #fff7e8;
  color: #5f4214;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.checkGrid,
.skillMapGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.checkTile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.checkTile span {
  display: grid;
  gap: 2px;
}

.checkTile small {
  color: var(--muted);
  font-size: 12px;
}

.tutorSetupActions {
  justify-content: flex-end;
}

.skillMapColumn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.skillMapHead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.commandCenter {
  display: grid;
  gap: 14px;
}

.todayViewControls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.todayViewControls > span,
.datePickControl span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.todayViewControls button,
.datePickControl {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 11px;
}

.todayViewControls button.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

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

.datePickControl input {
  width: 138px;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
}

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

.commandChip {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.commandChip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.commandChip strong {
  font-size: 22px;
  line-height: 1;
}

.commandChip--attention strong {
  color: var(--amber);
}

.commandChip--done strong {
  color: var(--green);
}

.commandHero .sectionHead h2 {
  font-size: 26px;
}

.commandTopGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.commandFocus {
  display: grid;
}

.commandActionCard {
  display: grid;
  gap: 10px;
  background: #f7fbff;
  border: 1px solid #9ec2dc;
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.commandActionCard span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.commandActionCard strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.commandActionCard .actions {
  margin-top: 4px;
}

.commandInlineAction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.commandInlineAction strong {
  display: block;
  margin-bottom: 2px;
}

.commandInlineAction button {
  flex: 0 0 auto;
}

.commandFamilyProgress {
  display: grid;
  gap: 8px;
}

.commandSectionHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.commandSectionHead span {
  color: var(--text);
  font-weight: 800;
}

.commandSectionHead small {
  color: var(--muted);
  font-size: 12px;
}

.commandGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.commandGrid--primary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.commandGrid--child {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.commandCard {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.commandCard span,
.workflowChange span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.commandCard strong {
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.actionCard {
  border-color: #9ec2dc;
  background: #f7fbff;
}

.commandCard--attention {
  border-color: #d8a455;
  background: #fffaf2;
}

.commandCard--action {
  border-color: #9ec2dc;
  background: #f7fbff;
}

.commandCard--done {
  border-color: #90bca6;
  background: #f4fbf7;
}

.commandCard--tomorrow {
  border-color: #bed3c7;
  background: #f8fcf9;
}

.tomorrowHeadline {
  font-size: 14px;
}

.tomorrowBullets {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tomorrowActions {
  align-items: center;
}

.tomorrowActions .primary {
  flex: 1 1 180px;
}

.commandColumns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.commandList {
  display: grid;
  gap: 0;
}

.commandLine {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.commandLine:last-child {
  border-bottom: 0;
}

.commandLine span,
.commandLine strong {
  min-width: 0;
}

.commandLine strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
}

.commandCard .actions {
  align-self: end;
  margin-top: auto;
}

.workflowPreview {
  margin-top: 12px;
}

.workflowCard {
  background: #f8fafb;
  border: 1px solid #cfdde8;
  border-radius: 8px;
  padding: 14px;
}

.workflowChanges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.workflowChange {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.workflowChange strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

.reviewTurn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}

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

.iconBtn {
  width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iconBtn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  min-width: 64px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.open {
  color: var(--blue);
}

.pill.done {
  color: var(--amber);
}

.pill.approved {
  color: var(--green);
}

.band {
  margin-top: 18px;
}

.todaySecondaryWork {
  margin-top: 18px;
  opacity: 0.96;
}

.todaySecondaryWork > section {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 224, 231, 0.75);
  border-radius: 8px;
  padding: 12px;
}

.todaySecondaryWork .sectionHead h2,
.todayTutorBand .sectionHead h2 {
  font-size: 18px;
}

.todaySecondaryWork .item,
.todayTutorBand .item {
  box-shadow: none;
}

.mutedItem {
  background: #f8fafb;
}

.progressGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.progressGrid--command {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.progressCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.progressCard.expanded {
  grid-column: 1 / -1;
  border-color: #9ec2dc;
}

.progressCard.paused {
  border-color: #d5b276;
  background: #fff8ec;
}

.progressName {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.progressName:hover {
  color: var(--blue);
}

.progressDetails {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.progressExpandedLayout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  gap: 12px;
  align-items: start;
}

.progressDetails h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.progressTaskList {
  display: grid;
  gap: 8px;
}

.progressTask {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.progressTask > div {
  min-width: 0;
}

.progressTask strong {
  display: block;
  line-height: 1.25;
}

.progressTask .assignmentChecklist {
  margin-top: 8px;
}

.memberPointInline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.memberPointInline strong {
  color: var(--text);
  font-size: 14px;
}

.memberPointInline span {
  text-align: right;
}

.memberActionDrawer {
  margin-top: 12px;
  border: 1px solid #cfdde8;
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
  box-shadow: var(--shadow);
}

.memberDrawerWork {
  display: none;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.memberDrawerWork h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

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

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

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

.memberActionSection {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.memberActionSection h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.memberActionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

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

.memberRewardBalance > div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.memberRewardBalance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.memberRewardBalance strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.memberActionGrid button,
.memberPauseForm button,
.memberOneOffForm button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  white-space: normal;
}

.memberPauseForm {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.memberOneOffForm {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.memberPauseForm .field {
  gap: 5px;
}

.bar {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--green);
}

.smallToggle {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.groceryGroup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.groceryGroupHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #edf3f0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.groceryGroupHead h3 {
  margin: 0;
  font-size: 15px;
}

.groceryItems {
  display: grid;
}

.groceryItem {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.groceryItem:last-child {
  border-bottom: 0;
}

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

.groceryItem .meta {
  margin-top: 3px;
}

.groceryItem.purchased h3,
.groceryItem.purchased .meta {
  text-decoration: line-through;
  color: var(--muted);
}

.checkBtn {
  width: 36px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0;
  font-size: 0;
  font-weight: 700;
}

.checkBtn.checked {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.checkBtn.checked::before {
  content: "\2713";
  font-size: 16px;
}

.gotItBtn {
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

.groceryActions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.pantryItem {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pantryItem .rowTools {
  align-self: start;
}

.pantryEdit {
  grid-column: 1 / -1;
}

.ideaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.swapMenu {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.swapMenuHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.swapChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.swapChoice {
  display: grid;
  gap: 3px;
  justify-items: start;
  text-align: left;
}

.swapChoice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tutorSurface,
.recipeOutput {
  display: grid;
  gap: 12px;
}

.recipeLabCard,
.recipeLabPreviewCard {
  display: grid;
  gap: 12px;
}

.recipeLabGrid,
.recipeLabMiniGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

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

.recipeLabSteps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.recipeLabNotes {
  grid-column: 1 / -1;
}

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

.recipeLabChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.recipeChoice {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: start;
  min-height: 86px;
  padding: 12px;
  text-align: left;
}

.recipeChoice strong {
  font-size: 14px;
}

.recipeChoice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.recipeChoice.primary span {
  color: rgba(255, 255, 255, 0.82);
}

.recipeLabStatus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.newRecipeModal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 38, 0.34);
}

.newRecipePanel {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feedbackModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 38, 0.34);
}

.feedbackPanel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feedbackFields {
  display: grid;
  gap: 12px;
}

.feedbackRatingGrid,
.feedbackMetrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.feedbackColumns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.feedbackColumns h3 {
  margin-bottom: 8px;
}

.feedbackNudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfdde8;
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px 12px;
  margin-top: 12px;
  color: var(--muted);
}

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

.newRecipeModes button.active {
  border-color: var(--primary);
  background: #eef5fb;
  color: var(--primary);
  font-weight: 700;
}

.newRecipePreviewCard {
  border-color: #cfdde8;
  background: #fbfcfd;
}

.newRecipeInventoryStatus {
  margin-bottom: 0;
}

.newRecipeActions {
  justify-content: flex-end;
}

.warningList {
  border: 1px solid #f0d38f;
  border-radius: 8px;
  background: #fff8e6;
  padding: 10px 12px;
}

.tutorLayout:has(#tutorSidePanel[hidden]) {
  grid-template-columns: 1fr;
}

.tutorCard,
.recipeCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.recipeManagementSection {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.recipeLibraryControls {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.recipeSearchTools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 12px;
  align-items: end;
}

.recipeManagementGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.recipeSearchItem.selected {
  border-color: var(--primary);
  background: #f4f8fc;
}

.recipeSearchItem[data-recipe-card] {
  cursor: pointer;
}

.recipeSearchItem[data-recipe-card]:hover {
  border-color: #9eb7cf;
  background: #f8fafb;
}

.warningText {
  color: #8a5b00;
  font-weight: 700;
}

.recipeInlineOutput {
  margin: -4px 0 14px 14px;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.recipeInlineOutput .recipeCard {
  box-shadow: none;
}

.recipeRowActions {
  margin-top: 10px;
}

.tutorParentShell {
  display: grid;
  gap: 12px;
}

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

.tutorMetric {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.tutorMetric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tutorMetric strong {
  font-size: 18px;
  line-height: 1.15;
}

.tutorMetric.attention strong {
  color: var(--amber);
}

.tutorFilterBar,
.tutorViewTabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tutorFilterBar button,
.tutorViewTabs button {
  display: inline-grid;
  gap: 2px;
  justify-items: start;
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
}

.tutorFilterBar button.active,
.tutorViewTabs button.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 800;
}

.tutorFilterBar small {
  color: var(--muted);
  font-size: 11px;
}

.tutorFilteredView {
  display: grid;
  gap: 10px;
}

.tutorReviewChoices {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(2, minmax(180px, 0.9fr));
  gap: 10px;
  margin-top: 4px;
}

.reviewChoice {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.reviewChoice.primaryChoice {
  border-color: #9ec2dc;
  background: #f7fbff;
}

.reviewChoice button {
  width: 100%;
}

.reviewChoice .meta {
  margin: 0;
  font-size: 12px;
}

.tutorCompletedGroup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.tutorCompletedGroup summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}

.tutorCompletedList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tutorPrompt {
  background: #f3f6f1;
  border: 1px solid #d7e5d2;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.feedbackBox {
  background: #eef3f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
}

.timerBox {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.timerBox.complete {
  border-color: #a8d4bf;
  background: #f0faf5;
}

.timerBox.paused {
  border-color: #d8c28c;
  background: #fffaf0;
}

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

.timerHead strong {
  font-size: 24px;
}

.timerHead span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timerBar {
  margin-top: 10px;
}

.answerBox {
  min-height: 140px;
}

.choiceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.choiceBtn {
  min-height: 52px;
  text-align: left;
  line-height: 1.3;
}

.choiceBtn:hover,
.choiceBtn:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 93, 140, 0.12);
  outline: none;
}

.recipeCard ul,
.recipeCard ol {
  margin: 8px 0 0 20px;
  padding: 0;
}

.recipeCard li {
  margin-bottom: 6px;
}

.setupGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.formBox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.wideForm {
  grid-column: 1 / -1;
}

.mealNote {
  margin-top: 10px;
}

.mealStrategy {
  margin-top: 8px;
  color: var(--blue);
}

.mealPlanBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mealPlanBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef6f0;
  color: #2d704b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.kitchenTop {
  display: grid;
  gap: 12px;
}

.kitchenTabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.kitchenTabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.kitchenTabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
}

.kitchenTabPanel {
  display: grid;
  gap: 14px;
}

.kitchenTodayGrid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.kitchenPrimary {
  display: grid;
  gap: 8px;
  align-content: start;
  background: #f8fbfd;
  border-color: #b7cada;
}

.kitchenPrimary > strong {
  font-size: 26px;
  line-height: 1.15;
}

.kitchenPrimary .actions {
  margin-top: 4px;
}

.kitchenDepthNote {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.kitchenInlineBand {
  margin-top: 4px;
}

.quickFoodLog {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quickFoodGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.quickFoodMember {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.quickFoodSlot {
  display: grid;
  gap: 7px;
}

.quickFoodSlotHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.quickFoodSlotHead .meta {
  text-align: right;
}

.quickFoodChips,
.quickConsumeCard .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quickFoodChips button {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef4f7;
  border-color: transparent;
  font-size: 13px;
  font-weight: 800;
}

.quickConsumeCard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}

.compactHead {
  margin-top: 4px;
}

.mealLogRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.kitchenSettingsGrid .summaryCard {
  display: grid;
  gap: 5px;
}

.kitchenSettingsGrid .summaryCard span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kitchenSettingsGrid .summaryCard strong {
  font-size: 20px;
}

.kitchenGoalsForm {
  display: grid;
  gap: 10px;
}

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

.inventoryToolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.inventoryFlags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 2px;
}

.filterChip {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  background: #eef4f7;
  border-color: transparent;
}

.filterChip.active {
  color: #ffffff;
  background: var(--blue);
}

.inlineFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inventoryGroup {
  display: grid;
  gap: 8px;
}

.inventoryCardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.inventoryCard {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.inventoryCard.recipeSelected {
  border-color: #86b69a;
  background: #f1faf5;
}

.inventoryCard h3 {
  margin: 0;
  line-height: 1.25;
}

.inventoryBadges,
.inventoryActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inventoryActions button {
  padding: 7px 9px;
  font-size: 13px;
}

.warningPill {
  background: #fff4d6;
  color: #7a4b00;
}

.dangerPill {
  background: #ffe4e6;
  color: #9f1239;
}

.compactField {
  min-width: min(280px, 100%);
}

.kitchenCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.kitchenCard {
  display: grid;
  gap: 5px;
}

.kitchenCard span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kitchenCard strong {
  font-size: 20px;
  line-height: 1.2;
}

.quickActions,
.placeholderGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.dinnerCard h3 {
  line-height: 1.25;
}

.planActionsMenu {
  position: relative;
}

.planActionsMenu summary {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.planActionsMenu[open] summary {
  border-color: #b8ccdc;
  background: #f8fbfd;
}

.planActionsMenu .actions {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(280px, 80vw);
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.planActionsMenu .actions button {
  width: 100%;
}

.mealSlotList {
  display: block;
}

.fullInventoryIntro {
  margin-bottom: 10px;
}

.kitchenPlanDrilldown {
  display: grid;
  gap: 12px;
}

.kitchenPlanDateStrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.kitchenPlanDate {
  display: grid;
  gap: 3px;
  min-height: 92px;
  justify-items: start;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.kitchenPlanDate.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 93, 140, 0.12);
}

.kitchenPlanDate span,
.kitchenPlanDate small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kitchenPlanDate strong {
  font-size: 16px;
  line-height: 1.2;
}

.kitchenPlanDate small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchenPlanWorkspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: start;
}

.kitchenPlanDayPanel,
.kitchenPlanMealPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.kitchenPlanDayPanel {
  display: grid;
  gap: 10px;
}

.kitchenPlanMealList {
  display: grid;
  gap: 8px;
}

.kitchenPlanMealRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  background: #f8fafb;
  color: var(--text);
  text-align: left;
}

.kitchenPlanMealRow.active {
  border-color: var(--blue);
  background: #f7fbff;
}

.kitchenPlanMealRow.empty {
  border-style: dashed;
}

.kitchenPlanMealRow span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kitchenPlanMealRow strong {
  font-size: 14px;
}

.kitchenPlanMealRow small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchenPlanMealRow em {
  font-style: normal;
  flex: 0 0 auto;
}

.kitchenPlanDaytimeGroup {
  display: grid;
  gap: 8px;
}

.kitchenPlanMealPanel {
  display: grid;
  gap: 12px;
  min-height: 260px;
}

.kitchenPlanMealPanel.empty {
  background: #fbfcfd;
}

.kitchenPlanActionGroups {
  display: grid;
  gap: 12px;
}

.kitchenPlanActionGroups section {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.kitchenPlanActionGroups h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.recipeSwapBox,
.slotRecipeBuilder,
.manualGroceryAdd {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.recipeSwapBox {
  margin-top: 8px;
}

.recipeSwapBox button,
.slotRecipeBuilder button,
.manualGroceryAdd button {
  width: 100%;
}

.compactMealSlotForm {
  grid-template-columns: 1fr;
}

.shopGroceryAdd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.mealSlotGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.mealDayColumn {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.mealDayHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mealDayHead h3 {
  margin: 0;
  font-size: 15px;
}

.mealDayHead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mealDaySlots {
  display: grid;
  gap: 8px;
}

.mealDaytimeGroup {
  display: grid;
  gap: 8px;
}

.mealDaytimeToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: #eef5fb;
  color: var(--text);
  text-align: left;
}

.mealDaytimeToggle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mealDaytimeToggle strong {
  font-size: 14px;
}

.mealDaytimeToggle small {
  color: var(--muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mealDaytimeToggle b {
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.mealDaytimeGroup.expanded .mealDaytimeToggle {
  border-color: #b8ccdc;
  background: #f8fbfd;
}

.mealDaytimeSlots {
  display: grid;
  gap: 8px;
}

.mealSlotCard {
  display: grid;
  gap: 8px;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.mealSlotCard.empty {
  border-style: dashed;
  background: #fbfcfd;
}

.mealSlotCard.used {
  border-color: #a8d4bf;
  background: #f0faf5;
}

.mealSlotHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mealSlotHead > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mealSlotCard > strong {
  font-size: 16px;
  line-height: 1.25;
}

.mealSlotForm {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
}

.mealSlotNotes,
.mealSlotFormActions {
  grid-column: 1 / -1;
}

.commandBox {
  margin-bottom: 16px;
}

.commandForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.summaryBox {
  display: grid;
  gap: 10px;
}

.familyBriefBand {
  margin-top: 14px;
}

.briefActions {
  align-items: center;
}

.briefSundayReset {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.familyBriefCard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.familyBriefHeadline {
  margin: 0;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.briefParentNote {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.briefColumn h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.briefList {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.briefDetails {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.briefDetails summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.briefDetails ul {
  margin: 8px 0 0 18px;
  padding: 0;
  line-height: 1.45;
}

.familyBriefCollapsed {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  text-align: left;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.familyBriefCollapsed span {
  font-weight: 800;
}

.familyBriefCollapsed small {
  color: var(--muted);
  font-weight: 700;
}

.briefCollapseBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.rewardToolsBand {
  display: block;
  margin-bottom: 14px;
}

.rewardRequestForm {
  margin: 0;
}

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

.rewardRequestGroup {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.rewardRequestGroup h3 {
  margin: 0;
  font-size: 15px;
}

.rewardPendingBand {
  border: 1px solid #d8a455;
  border-radius: 8px;
  background: #fffaf2;
  padding: 12px;
}

.rewardPendingBand .item {
  background: var(--surface);
}

#rewardList .item {
  background: #fbfcfd;
}

#rewardList .item .pill {
  color: var(--muted);
}

.rewardsHistory summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style-position: inside;
}

.rewardsHistory .list {
  margin-top: 12px;
}

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

.coverageCard {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

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

.coverageCard strong {
  font-size: 20px;
  line-height: 1.15;
}

.coverageCardWide {
  grid-column: 1 / -1;
}

.coverageRows {
  display: grid;
  gap: 6px;
}

.choreSettingsForm {
  align-self: start;
}

.choreSettingsForm .coverageGrid {
  margin-top: 2px;
}

.chorePlanActions {
  align-items: center;
}

.chorePreviewBox {
  display: grid;
  gap: 10px;
}

.chorePreviewCard {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.chorePreviewCard h3,
.chorePreviewCard h4 {
  margin: 0;
}

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

.chorePreviewGrid section,
.choreDeferred {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.chorePreviewGroups {
  display: grid;
  gap: 8px;
}

.chorePreviewGroup {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.chorePreviewGroup:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.choreDeferred summary {
  cursor: pointer;
  font-weight: 800;
}

.advancedTaskFields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafb;
}

.advancedTaskFields summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.advancedTaskFields[open] {
  display: grid;
  gap: 10px;
}

.advancedTaskFields[open] summary {
  margin-bottom: 2px;
}

.taskZoneGroup {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.taskZoneHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.taskZoneHead h3 {
  margin: 0;
  font-size: 15px;
}

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

.taskLibraryItem {
  background: var(--surface);
}

.taskBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.taskBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
}

.taskBadge--schedule {
  background: #e9f3ff;
  color: #245a8d;
}

.taskBadge--rest {
  background: #eaf7ef;
  color: #2d704b;
}

.taskBadge--level {
  background: #f5f0e8;
  color: #775728;
}

.taskBadge--assignee {
  background: #edf7f2;
  color: #2d704b;
}

.taskAssigneePicker {
  margin: 12px 0;
}

.taskAssigneeGrid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.taskAddBox .sectionHead {
  align-items: flex-start;
  margin-bottom: 0;
}

.taskCreateForm {
  margin-top: 14px;
}

.coverageRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.coverageRow:first-child {
  border-top: 0;
  padding-top: 0;
}

.coverageRow span {
  text-align: right;
  font-weight: 600;
}

.adminAdvanced summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.adminAdvanced[open] {
  display: grid;
  gap: 10px;
}

.summaryCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.summaryGrid h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.tutorMetricGrid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.tutorMetricGrid strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.summaryGrid ul {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.adminListGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.backupStatus {
  display: grid;
  gap: 8px;
}

.backupLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.backupLine span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.backupLine strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.voiceShortcutsBox {
  align-content: start;
}

.voiceShortcutSetup {
  display: grid;
  gap: 10px;
}

.voiceTokenNotice {
  display: grid;
  gap: 10px;
}

.voiceTokenSecret {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shortcutSteps {
  margin: 0 0 0 20px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pilotNotice {
  border: 1px solid #d9b46b;
  background: #fff7e8;
  color: #5f4214;
  border-radius: 8px;
  padding: 10px 12px;
}

.pilotNotice strong {
  display: block;
  font-size: 13px;
}

.compactList {
  margin-top: 10px;
}

.compactList .item {
  padding: 10px 12px;
}

.editMenu {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.editGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.scheduleItem .rowTools {
  align-items: flex-start;
}

.scheduleWorkspace {
  display: grid;
  gap: 12px;
}

.scheduleHeader {
  align-items: end;
}

.scheduleViewTabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3f7;
}

.scheduleViewTabs button {
  min-height: 34px;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.scheduleViewTabs button.active {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(24, 33, 47, 0.12);
  font-weight: 800;
}

.scheduleForm {
  margin: 0;
}

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

.scheduleWide {
  grid-column: span 2;
}

.scheduleAllDay {
  align-content: end;
}

.repeatFields {
  border: 1px dashed #b6c5d3;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 12px;
  margin-top: 12px;
}

.dayChipField {
  border: 0;
  padding: 0;
  margin: 0;
  grid-column: span 2;
}

.dayChipField legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.dayChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dayChips label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.repeatPreview {
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.memberChoiceField {
  margin: 0;
}

.memberChoiceField legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.memberChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memberChips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.scheduleSurface {
  display: grid;
  gap: 12px;
}

.scheduleDayGroup {
  display: grid;
  gap: 8px;
}

.scheduleDayHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scheduleDayHead h3 {
  margin: 0;
  font-size: 15px;
}

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

.scheduleItem {
  position: relative;
  overflow: hidden;
}

.scheduleItem::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #9eb7cf;
}

.scheduleColor--school::before,
.scheduleMonthEvent.scheduleColor--school {
  background: #3b6ea8;
}

.scheduleColor--sports::before,
.scheduleMonthEvent.scheduleColor--sports {
  background: #287754;
}

.scheduleColor--health::before,
.scheduleMonthEvent.scheduleColor--health {
  background: #a33b3b;
}

.scheduleColor--family::before,
.scheduleMonthEvent.scheduleColor--family {
  background: #7c5aa6;
}

.scheduleColor--work::before,
.scheduleMonthEvent.scheduleColor--work {
  background: #5f6f7f;
}

.scheduleColor--meal::before,
.scheduleMonthEvent.scheduleColor--meal {
  background: #a15f13;
}

.schedulePills,
.scheduleQuickActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.scheduleQuickActions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.scheduleWeekGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.scheduleDayColumn {
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.scheduleDayColumn.today,
.scheduleMonthDay.today {
  border-color: #9eb7cf;
  background: #f5f9fc;
}

.scheduleMiniList {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.scheduleMiniList .scheduleItem {
  padding: 10px 10px 10px 14px;
}

.scheduleMiniList .scheduleQuickActions,
.scheduleMiniList .scheduleItem .rowTools {
  display: none;
}

.scheduleMonthGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.scheduleMonthDay {
  min-height: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 5px;
}

.scheduleMonthDay.mutedDay {
  opacity: 0.55;
}

.scheduleMonthDate {
  font-weight: 800;
  font-size: 13px;
}

.scheduleMonthEvent {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: #9eb7cf;
  color: #fff;
  font-size: 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commandPreview {
  display: grid;
  gap: 10px;
}

.commandPreviewCard {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #18212f;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 981px) and (max-width: 1100px) {
  .familyBoardInitial {
    display: none;
  }

  .familyBoardPersonHeader {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 9px 8px;
  }

  .familyBoardPersonHeader h3 {
    font-size: 15px;
  }

  .familyBoardPersonHeader > strong {
    font-size: 12px;
  }

  .familyBoardTaskList {
    padding: 0 7px 8px;
  }

  .familyBoardTask {
    padding: 8px;
  }

  .familyBoardTask h3,
  .familyBoardTask .taskTitleButton {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .topbarMain {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .familyBoardHeader {
    display: grid;
    align-items: start;
  }

  .familyBoardControls,
  .familyBoardDateControls {
    justify-content: flex-start;
  }

  .familyBoardGrid {
    grid-template-columns: none;
    grid-auto-columns: minmax(220px, 42vw);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .topbarBrand {
    max-width: none;
  }

  .topbarBrand .brandLogo {
    width: min(360px, 82vw);
    max-height: 104px;
  }

  .accountControls {
    justify-content: flex-start;
    max-width: none;
  }

  .split,
  .setupGrid,
  .setupWizard,
  .adminListGrid,
  .briefColumns,
  .rewardToolsBand,
  .coverageGrid,
  .summaryGrid,
  .scheduleFormGrid,
  .kitchenTodayGrid,
  .recipeSearchTools,
  .shopGroceryAdd,
  .tutorReviewChoices,
  .inventoryToolbar,
  .inlineFields,
  .settingsGrid {
    grid-template-columns: 1fr;
  }

  .inventoryCardGrid {
    grid-template-columns: 1fr;
  }

  .kitchenPlanWorkspace {
    grid-template-columns: 1fr;
  }

  .quickConsumeCard,
  .mealLogRow,
  .quickFoodSlotHead {
    display: grid;
    justify-content: stretch;
    text-align: left;
  }

  .quickFoodSlotHead .meta {
    text-align: left;
  }

  .coverageRow {
    display: grid;
  }

  .coverageRow span {
    text-align: left;
  }

  .scheduleWide,
  .dayChipField {
    grid-column: auto;
  }

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

  .setupWizardRail {
    position: static;
  }

  .setupStepList {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .setupStepPill {
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .appShell {
    padding: 14px;
  }

  .familyBoardSurface {
    min-height: calc(100vh - 150px);
    padding: 11px;
  }

  .familyBoardHeader h2 {
    font-size: 24px;
  }

  .familyBoardControls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .familyBoardDateControls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid #cbd4dc;
  }

  .familyBoardDatePicker {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

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

  .familyBoardSummary > div:nth-child(2) {
    border-right: 0;
  }

  .familyBoardSummary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .familyBoardGrid {
    grid-template-columns: 1fr;
  }

  .topbarBrand .brandLogo {
    width: min(300px, 84vw);
    max-height: 96px;
  }

  .topbarMain {
    align-items: start;
    gap: 10px;
  }

  .accountControls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    width: 100%;
    gap: 6px;
  }

  .accountPerson {
    width: auto;
  }

  .accountPill {
    display: none;
  }

  .accountPerson span {
    display: block;
  }

  #feedbackOpenBtn {
    min-height: 36px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  #logoutBtn {
    min-height: 36px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .brandLogoLarge {
    width: min(320px, 84vw);
    max-height: 110px;
  }

  h1 {
    font-size: 24px;
  }

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

  .itemTop {
    display: grid;
  }

  .commandHero .sectionHead {
    display: grid;
    align-items: stretch;
  }

  .commandHero .sectionHead h2 {
    font-size: 22px;
  }

  .todayViewControls {
    width: 100%;
  }

  .datePickControl {
    flex: 1 1 180px;
  }

  .commandTopGrid,
  .commandGrid,
  .commandGrid--primary,
  .commandGrid--child,
  .setupFields,
  .setupReviewGrid,
  .setupInlineGrid,
  .rewardFormGrid {
    grid-template-columns: 1fr;
  }

  .setupWizardScreen {
    padding: 12px;
  }

  .firstTodayOverlay {
    align-items: flex-start;
    flex-direction: column;
  }

  .firstTodayOverlay button {
    width: 100%;
  }

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

  .tutorMetric strong {
    font-size: 16px;
  }

  .progressGrid--command {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .progressGrid--command .progressCard {
    flex: 0 0 min(245px, 78vw);
    scroll-snap-align: start;
  }

  .progressGrid--command .progressCard.expanded {
    flex-basis: min(330px, 88vw);
  }

  .memberPointInline {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .memberPointInline span {
    text-align: left;
  }

  .progressExpandedLayout {
    display: block;
  }

  .memberActionDrawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: 82vh;
    overflow: auto;
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    padding: 16px;
  }

  .memberDrawerWork {
    display: block;
  }

  .memberActionSections,
  .memberActionGrid {
    grid-template-columns: 1fr;
  }

  .memberRewardBalance {
    grid-template-columns: 1fr;
  }

  .commandActionCard {
    padding: 15px;
  }

  .commandActionCard strong {
    font-size: 25px;
  }

  .commandInlineAction {
    display: grid;
    align-items: stretch;
  }

  .commandInlineAction button {
    width: 100%;
  }

  .commandCard {
    min-height: 0;
  }

  .groceryItem {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .pantryItem {
    grid-template-columns: 1fr;
  }

  .gotItBtn {
    grid-column: 2;
    width: 100%;
  }

  .groceryActions {
    grid-column: 2;
    width: 100%;
  }

  .groceryActions .gotItBtn {
    grid-column: auto;
  }

  .commandForm {
    grid-template-columns: 1fr;
  }

  .commandForm button {
    width: 100%;
  }

  .scheduleHeader {
    display: grid;
    align-items: stretch;
  }

  .scheduleHeader .headActions {
    justify-content: stretch;
  }

  .scheduleHeader .headActions button {
    flex: 1 1 120px;
  }

  .scheduleViewTabs {
    position: sticky;
    top: 0;
    z-index: 4;
  }

  .scheduleWeekGrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .scheduleDayColumn {
    flex: 0 0 min(285px, 84vw);
    scroll-snap-align: start;
  }

  .scheduleMonthGrid {
    grid-template-columns: 1fr;
  }

  .scheduleMonthDay {
    min-height: 0;
  }

  .scheduleMonthDay.mutedDay {
    display: none;
  }

  .scheduleQuickActions button {
    flex: 1 1 135px;
  }

  .kitchenTabs {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--bg);
    padding-top: 4px;
  }

  .kitchenTabs button {
    min-width: 92px;
  }

  .kitchenPrimary > strong {
    font-size: 22px;
  }

  .planActionsMenu {
    width: 100%;
  }

  .planActionsMenu summary {
    width: 100%;
    text-align: center;
  }

  .planActionsMenu .actions {
    left: 0;
    right: auto;
    width: 100%;
  }

  .newRecipeModal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .feedbackModal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .newRecipePanel {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
  }

  .feedbackPanel {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
  }

  .feedbackColumns {
    grid-template-columns: 1fr;
  }

  .feedbackNudge {
    align-items: stretch;
    flex-direction: column;
  }

  .feedbackNudge button {
    width: 100%;
  }

  .newRecipeActions button,
  .newRecipeModes button {
    flex: 1 1 130px;
  }

  .chorePreviewGrid {
    grid-template-columns: 1fr;
  }

  .inventoryFlags {
    padding-bottom: 0;
  }

  .pantryItem button {
    width: 100%;
  }

  .pantryItem .iconBtn {
    width: 40px;
  }
}
