/* myOwl look, matched to the product screenshots. Colors sampled from the screenshots (sRGB). */
:root {
  --green: #0A804B;        /* table header, active tab, DUE TODAY, active nav, assignment count */
  --blue: #143F9C;         /* greeting, name, percentage, labels */
  --mint: #5DD8A1;         /* Filter button */
  --row-gray: #ECECEC;     /* alternate rows, table edges */
  --track-gray: #C1C1C1;   /* progress track */
  --red: #D04445;          /* overdue */
  --navy: #020930;         /* PlayMetrics tile */
  /* Study time is blue on purpose (not orange): blue and the green sports stripe stay clearly different for
     red-green colour-blind readers, and it matches the Calendar, where assignments are blue. */
  --study: #143F9C;              /* study-row and Week class-line stripes, the NEXT tag (white text), pill text */
  --study-tint: #F2F5FB;         /* Week class-line backgrounds (study rows are white cards with an outline) */
  --study-tint-strong: #E4EAF6;  /* the Next row, Full night and size pills */
  --study-outline: #A9B8DE;      /* study-row and Next row outlines (decoration only) */
  --text: #333333;
  --muted: #707070;
  --page-pad: 36px;
}

/* Roboto, bundled in web/fonts/ (SIL Open Font License, see web/fonts/LICENSE.txt). Never loaded from the internet. */
@font-face {
  font-family: "Roboto Bundled";
  src: url("/fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Roboto Bundled", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Header ----- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 145px;
  padding: 0 var(--page-pad);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 1;
}
.logo { display: flex; align-items: center; }
.logo img { height: 66px; width: auto; display: block; }
.header-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 12px 0 22px; }
.user { display: flex; align-items: center; gap: 12px; }
.user-name { color: var(--blue); font-weight: 600; font-size: 15px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #8FA3CF; color: var(--blue); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.main-nav { display: flex; gap: 38px; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 19px; }
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green); font-weight: 600; }

main { padding: 0 var(--page-pad) 48px; }

/* ----- Greeting and Daily Progress ----- */
.greeting-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 44px 0 26px;
  border-bottom: 1px solid #DCDCDC;
}
.greeting { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.greeting h1 { margin: 0; color: var(--blue); font-size: 30px; font-weight: 600; letter-spacing: -0.2px; }
.green { color: var(--green); }
.sports-note { color: var(--muted); font-size: 17px; }
.overdue-link { color: var(--red); font-weight: 600; font-size: 17px; text-decoration: none; }
.overdue-link:hover { text-decoration: underline; }

.progress { width: min(440px, 100%); }
.progress-percent { color: var(--blue); font-weight: 600; font-size: 15px; margin: 0 0 4px 108px; }
.progress-count { color: var(--muted); font-weight: 400; margin-left: 6px; }
.progress-row { display: flex; align-items: center; gap: 14px; }
.progress-label { font-weight: 600; font-size: 14px; color: #222; white-space: nowrap; }
.progress-track { flex: 1; height: 25px; background: var(--track-gray); border-radius: 13px; position: relative; }
.progress-fill { height: 100%; width: 0; min-width: 25px; background: var(--green); border-radius: 13px; position: relative; transition: width 0.4s; }
.progress-knob {
  position: absolute; right: 0; top: 0; width: 25px; height: 25px; border-radius: 50%;
  background: #fff; border: 2px solid #8FA3CF;
}

.feed-errors { margin-top: 16px; padding: 10px 14px; background: #FDF0F0; color: var(--red); border-radius: 4px; }

/* ----- Tabs and controls ----- */
.tab-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.tabs { display: flex; }
.tab {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #111;
  padding: 0 22px; height: 51px; border-radius: 6px 6px 0 0;
}
.tab.active { background: var(--green); color: #fff; }
.tab-controls { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; flex-wrap: wrap; }
.view-label { color: var(--blue); font-size: 15px; }
.select-box {
  font: inherit; font-size: 15px; color: #111; background: #fff;
  border: 1.5px solid #CFCFCF; border-radius: 6px; padding: 7px 10px; min-height: 40px; cursor: pointer;
}
.filter-btn {
  font: inherit; font-size: 15px; color: #111; background: var(--mint);
  border: 0; padding: 0 22px; height: 37px; margin-left: 4px; cursor: pointer;
}

/* ----- Tables ----- */
.items { width: 100%; border-collapse: collapse; table-layout: fixed; border-left: 1px solid var(--row-gray); border-right: 1px solid var(--row-gray); }
.items th {
  background: var(--green); color: #fff; text-align: left;
  font-size: 14px; font-weight: 600; height: 34px; padding: 0 8px;
}
.items td { padding: 12px 8px 14px; vertical-align: middle; font-size: 16px; }
.items tbody tr:nth-child(even) { background: var(--row-gray); }
.col-done { width: 40px; text-align: center; }
.items th.col-done { padding: 0; }
.items td.col-done { text-align: center; padding-left: 12px; padding-right: 0; }
.col-date { width: 12%; min-width: 130px; }
.items td.col-date { padding-left: 14px; }
.col-task { width: auto; }
.col-class { width: 25%; }
.col-view { width: 12%; }
.items th.col-date { padding-left: 14px; }

.done-box { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }

.badge {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 13px; letter-spacing: 0.3px; padding: 2px 8px; border-radius: 4px; margin-bottom: 5px;
}
.badge.canceled { background: var(--red); margin: 0 8px 0 0; vertical-align: 1px; }
.is-canceled .task-title { color: var(--muted); }
.date { font-size: 16px; letter-spacing: 0.3px; white-space: nowrap; }
.date.late { color: var(--red); }
.time { color: var(--muted); font-size: 13px; margin-top: 1px; }

.task-title { font-size: 16px; }
.details { margin-top: 16px; }
.details-label { font-weight: 700; }
.details-text { white-space: pre-line; overflow-wrap: anywhere; }
.more { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.more:hover { color: var(--blue); }
.marked { color: var(--green); font-size: 14px; margin-top: 4px; }

.view-tile { display: block; width: 120px; max-width: 100%; }
.view-tile img { display: block; width: 100%; }
.view-tile.canvas { background: #fff; border: 1px solid var(--row-gray); padding: 6px 12px; }
.view-tile.canvas img { height: 84px; object-fit: contain; }
.view-tile.playmetrics { background: var(--navy); }
a.view-tile:hover { outline: 2px solid var(--mint); }

/* Overdue: same table, set apart below Upcoming */
.overdue { margin-top: 56px; scroll-margin-top: 16px; }

.empty { color: var(--muted); padding: 16px; margin: 0; border: 1px solid var(--row-gray); border-top: 0; }
/* Upcoming filter: dropdowns beside the Filter button, a "Filter on" note, and a no-match box */
.filter-panel { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; flex-wrap: wrap; }
#up-class-filter { max-width: 260px; }  /* long class names shouldn't push the row onto two lines */
#up-class-wrap { display: inline-flex; align-items: center; gap: 8px; }  /* label + menu, spaced as before */
.filter-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--green); font-weight: 600; }
.filter-note { margin: 0; padding: 8px 14px; background: #E1F2EA; color: var(--green); font-size: 14px; }
.empty.nomatch { border-top: 1px solid var(--row-gray); border-radius: 6px; }

/* ----- Status line and notices ----- */
.status { margin-top: 32px; color: var(--muted); font-size: 13px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.status a { color: var(--blue); }
.link-btn:disabled { color: var(--muted); cursor: default; }
.refresh-note { margin-left: 4px; }
#notices { margin: 6px 0 0; padding-left: 18px; }
.feed-status { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.feed-status .feed-failed { color: var(--red); }

/* ----- Calendar page ----- */
.cal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 44px 0 26px;
}
.cal-title { margin: 0; color: var(--blue); font-size: 30px; font-weight: 600; letter-spacing: -0.2px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-arrow, .cal-today {
  font: inherit; font-size: 15px; color: #111; background: #fff; cursor: pointer;
  border: 1.5px solid #CFCFCF; border-radius: 6px; min-height: 40px;
}
.cal-arrow { width: 40px; font-size: 22px; line-height: 1; }
.cal-today { padding: 0 18px; }
.cal-arrow:hover, .cal-today:hover { border-color: var(--green); color: var(--green); }

.cal-grid { border: 1px solid var(--row-gray); border-radius: 6px 6px 0 0; overflow: hidden; }
.cal-weekdays, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-weekdays span {
  background: var(--green); color: #fff; font-size: 14px; font-weight: 600;
  height: 34px; line-height: 34px; padding: 0 8px;
}
.cal-day {
  min-height: 128px; padding: 6px 6px 8px; min-width: 0;
  border-right: 1px solid var(--row-gray); border-bottom: 1px solid var(--row-gray);
  display: flex; flex-direction: column; gap: 4px;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other-month { background: #F7F7F7; }
.cal-day.other-month .cal-num { color: #A8A8A8; }
.cal-date { display: flex; justify-content: flex-end; }
.cal-num {
  min-width: 28px; height: 28px; border-radius: 14px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text);
}
.cal-day.today .cal-num { background: var(--green); color: #fff; font-weight: 600; }

.cal-item {
  display: flex; gap: 5px; width: 100%; min-width: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: 13px; line-height: 1.3; padding: 3px 7px;
  border: 0; border-left: 4px solid; border-radius: 6px;
}
.cal-item.assignment { background: #E7ECF6; border-left-color: var(--blue); color: var(--blue); }
.cal-item.sports { background: #E1F2EA; border-left-color: var(--green); color: var(--green); }
.cal-item:hover { filter: brightness(0.95); }
.cal-time { flex: none; white-space: nowrap; font-weight: 600; }
.cal-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Past days (before today): a cool blue-gray, darker than the plain gray of days outside the month. */
.cal-day.past { background: #E3E7EE; }
.cal-day.past .cal-num { color: #7C8594; }
.cal-day.past.other-month .cal-num { color: #A3AAB6; }
/* On past days, sports and done assignments fade. Missed assignments (any day) keep full strength with a red title. */
.cal-item.faded.assignment, .pop-day-item.faded.assignment { background: #F3F5FA; border-left-color: #AEBBDA; }
.cal-item.faded.sports, .pop-day-item.faded.sports { background: #EEF6F2; border-left-color: #9FCDB8; }
.cal-item.faded .cal-time, .cal-item.faded .cal-name,
.pop-day-item.faded .pop-day-name { opacity: 0.55; }
.pop-day-item.faded .pop-day-time { color: rgba(20, 63, 156, 0.55); }
.pop-day-item.faded.sports .pop-day-time { color: rgba(10, 128, 75, 0.55); }
.cal-item.missed .cal-name, .pop-day-item.missed .pop-day-name { color: var(--red); }
.pop-day-item.missed .pop-day-class { color: var(--muted); }
/* Canceled events: struck through (the popup says CANCELED). */
.cal-item.canceled .cal-time, .cal-item.canceled .cal-name,
.pop-day-item.canceled .pop-day-name { text-decoration: line-through; }
.cal-check { flex: none; color: var(--green); font-weight: 700; margin-right: 1px; }
.pop-day-time .cal-check { margin-right: 4px; }

/* 2-week view: taller days, every item, titles wrap onto two lines before "…" */
.cal-grid.weeks .cal-day { min-height: 230px; }
.cal-grid.weeks .cal-item {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: break-word;
}
.cal-grid.weeks .cal-time, .cal-grid.weeks .cal-check { margin-right: 5px; }
.cal-grid.weeks .cal-name { white-space: normal; overflow: visible; }

.cal-views { display: flex; margin-right: 8px; }
.cal-view {
  font: inherit; font-size: 15px; color: #111; background: #fff; cursor: pointer;
  border: 1.5px solid #CFCFCF; min-height: 40px; padding: 0 16px;
}
.cal-view:first-child { border-radius: 6px 0 0 6px; border-right-width: 0; }
.cal-view:last-child { border-radius: 0 6px 6px 0; }
.cal-view[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

.cal-more {
  align-self: flex-start; border: 0; background: none; padding: 1px 4px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--blue);
}
.cal-more:hover { text-decoration: underline; }

/* ----- Calendar popups ----- */
.cal-popup {
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 760px);
  padding: 0; border: 0; border-radius: 10px; color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); overflow: hidden;
}
.cal-popup[open] { display: flex; flex-direction: column; }
.cal-popup::backdrop { background: rgba(2, 9, 48, 0.35); }
.pop-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 18px;
  border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.pop-close:hover { background: var(--row-gray); color: #111; }
.pop-body { padding: 24px 28px 26px; overflow-y: auto; }
.pop-title { margin: 0 36px 10px 0; color: var(--blue); font-size: 22px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pop-title .badge { font-size: 12px; vertical-align: 3px; }
.pop-when, .pop-class, .pop-location, .pop-status, .pop-note { margin: 0 0 6px; }
.pop-when { font-weight: 600; }
.pop-class { color: var(--muted); }
.pop-label { font-weight: 600; }
.pop-status { margin-top: 10px; font-weight: 600; color: var(--blue); }
.pop-status.done { color: var(--green); }
.pop-status.overdue, .pop-status.late { color: var(--red); }
.pop-note { margin-top: 16px; color: var(--muted); font-style: italic; }
.pop-link {
  display: inline-block; margin-top: 20px; padding: 9px 18px; border-radius: 6px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.pop-link.assignment { background: var(--blue); }
.pop-link.sports { background: var(--green); }
.pop-link:hover { filter: brightness(1.12); }
.pop-back {
  border: 0; background: none; padding: 0; margin: 0 0 10px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--blue);
}
.pop-back:hover { text-decoration: underline; }
.pop-day-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pop-day-item {
  display: flex; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 15px; padding: 8px 12px;
  border: 0; border-left: 4px solid; border-radius: 6px;
}
.pop-day-item.assignment { background: #E7ECF6; border-left-color: var(--blue); color: var(--blue); }
.pop-day-item.sports { background: #E1F2EA; border-left-color: var(--green); color: var(--green); }
.pop-day-item:hover { filter: brightness(0.95); }
.pop-day-time { flex: none; width: 76px; font-weight: 600; }
.pop-day-name { min-width: 0; overflow-wrap: anywhere; }
.pop-day-class { display: block; font-size: 13px; color: var(--muted); }

/* ----- Study Plan page ----- */
.study { max-width: 1100px; }
/* Everything keeps its 820 px column; on a wide screen (1,100 px and up) Today and the Plan List get the
   "Changes to your day" box beside them. Narrower (tablets, phones): the box goes below the plan. */
.study > *:not(.plan-layout), .plan-layout { max-width: 820px; }
.day-changes { margin-top: 24px; }
@media (min-width: 1100px) {
  .plan-layout.with-box { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; max-width: none;
    align-items: start; }
  .plan-layout.with-box .day-changes { margin-top: 8px; }
}
.day-changes h2 { margin: 0 0 4px; font-size: 18px; color: var(--blue); }
.day-changes .select-box, .day-changes .text-box { max-width: 100%; }
.dc-actions { margin: 10px 0 6px; }
.dc-time { width: auto; min-width: 9em; }
.dc-lengths { margin-top: 8px; }
.dc-end-link { margin-top: 6px; font-size: 14px; }
.dc-lighter { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 6px 0 4px; }
.dc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dc-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 6px 10px;
  border-radius: 6px; background: #FAFAFA; font-size: 15px; overflow-wrap: anywhere; }
.dc-row .link-btn { flex: none; white-space: nowrap; }
.study-where { margin: 8px 0 16px; font-size: 15px; color: var(--blue); font-weight: 600; }
/* Profile: "The basics" card, then "More settings" (closed until tapped) */
.study-basics { margin-bottom: 12px; }
.study-days-line { margin: 4px 0 8px; font-size: 15px; }
.study-days-label { font-weight: 600; }  /* the same weight as the other basics labels (.field-label) */
.study-more-row { margin: 4px 0 14px; font-size: 16px; font-weight: 600; }
.study .field-label { margin-top: 16px; }
.study .connect-card h2 + .field-label { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; min-width: 44px; text-align: center; cursor: pointer; font-size: 15px;
  padding: 8px 14px; border: 1.5px solid #CFCFCF; border-radius: 20px; background: #fff; color: var(--text);
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.chips.small .chip span { min-width: 0; padding: 5px 10px; font-size: 14px; }
.time-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.study-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.study-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 12px; background: #FAFAFA;
  border: 1px solid var(--row-gray); border-radius: 6px; }
.study-row .text-box { width: auto; flex: 1; min-width: 180px; }
.study-row input[type="date"] { width: auto; flex: none; }
.study-row-name { flex: 1; min-width: 200px; font-size: 15px; overflow-wrap: anywhere; }
/* Class difficulty (The basics): name on the left, chips on the right; when a row doesn't fit (a phone, a long name),
   that row's chips drop under its name. The name keeps its own width, so short names keep one line. */
.study-sub { margin: 18px 0 2px; font-size: 16px; color: var(--blue); }
#study-classes .study-row-name { flex: 1 1 auto; min-width: 0; }
/* No class names came through: one plain sentence, body text (the labels' dark color, not bold, no box). */
.study-no-classes { margin: 6px 0 0; color: var(--text); font-size: 16px; font-weight: 400; }
.study-save-row { margin-top: 20px; }
.study-message { color: var(--muted); font-size: 15px; }
.study-message.good { color: var(--green); font-weight: 600; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #222; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px;
}

/* ----- Narrow screens (phone) ----- */
@media (max-width: 760px) {
  :root { --page-pad: 16px; }
  .site-header { min-height: 0; flex-direction: column; align-items: flex-start; padding-top: 12px; }
  .logo img { height: 48px; }
  .header-right { width: 100%; padding: 8px 0 14px; align-items: stretch; }
  .user { position: absolute; top: 18px; right: var(--page-pad); }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 16px; }
  .greeting h1 { font-size: 24px; }
  .progress-percent { margin-left: 0; }
  .items, .items thead, .items tbody, .items tr, .items td { display: block; width: 100%; }
  .items thead tr { display: flex; }
  .items thead th { display: none; }
  .items thead th.col-date { display: flex; align-items: center; width: 100%; }
  .items tr { position: relative; padding: 4px 0 8px; }
  .items td { padding: 4px 12px; }
  .items td.col-done { position: absolute; right: 12px; top: 10px; width: auto; padding: 0; }
  .col-class { color: var(--muted); font-size: 14px; }
  .view-tile { width: 100px; }
}

/* ----- Demo banner (every page while a demo runs) ----- */
.demo-banner {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 9px var(--page-pad); background: #FFF4CC; color: #5C4600; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid #E8D27A;
}
.demo-end {
  font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--red);
  border: 0; border-radius: 6px; padding: 5px 14px; cursor: pointer;
}
.demo-end:hover { filter: brightness(1.1); }
.demo-warning { display: inline-flex; align-items: center; gap: 10px; color: var(--red); }
.demo-extend {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--green); background: #fff;
  border: 1.5px solid var(--green); border-radius: 6px; padding: 4px 12px; cursor: pointer;
}

/* ----- Connect your calendars ----- */
.sample-box { margin: 14px 0 26px; padding: 16px 22px 18px; border: 1.5px dashed #E8D27A; border-radius: 8px; background: #FFFBEA; }
.sample-box h2 { margin: 0 0 6px; color: #5C4600; font-size: 20px; font-weight: 600; }
.sample-box .hint { margin: 0 0 12px; }
.connect-link { color: var(--blue); font-size: 14px; margin-right: 6px; }
.connect { max-width: 820px; }
.connect-title { margin: 0; padding: 44px 0 10px; color: var(--blue); font-size: 30px; font-weight: 600; letter-spacing: -0.2px; }
.connect-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.connect-card { border: 1px solid #DCDCDC; border-radius: 8px; padding: 18px 22px 20px; }
.connect-card h2 { margin: 0 0 12px; color: var(--blue); font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.optional { color: var(--muted); font-weight: 400; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin: 10px 0 6px; }
.field-label .text-box, .field-label .paste-row { margin-top: 6px; font-weight: 400; }
.text-box {
  font: inherit; font-size: 15px; color: #111; background: #fff; width: 100%; max-width: 520px;
  border: 1.5px solid #CFCFCF; border-radius: 6px; padding: 8px 10px; min-height: 40px;
}
.text-box:focus { outline: 2px solid var(--mint); border-color: var(--green); }
.paste-row { display: flex; gap: 8px; flex-wrap: wrap; }
.paste-row .text-box { flex: 1; min-width: 220px; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; border-radius: 6px; padding: 0 18px; min-height: 40px;
  cursor: pointer; border: 1.5px solid var(--green); background: #fff; color: var(--green);
}
.btn:hover { background: #E1F2EA; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: #FDF0F0; }
.platforms { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 12px; }
.platform { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.platform input { accent-color: var(--green); }
.soon-option { color: var(--muted); }
.soon-tag { font-size: 12px; background: var(--row-gray); color: var(--muted); border-radius: 4px; padding: 1px 6px; }
.guide { margin: 4px 0 10px; font-size: 15px; }
.guide summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.guide p { margin: 8px 0 4px; }
.guide ol { margin: 4px 0 6px; padding-left: 22px; }
.guide-head { font-weight: 600; }
/* The Schoology guides (step 5b): a little more space between steps, and the greyed-out case as an indented note
   under its step. */
#schoology-guide li, #schoology-help li { margin: 0 0 8px; }
#canvas-help li, #playmetrics-help li { margin: 0 0 8px; }
#teamsnap-help li { margin: 0 0 8px; }
.guide-note { margin: 6px 0 2px 14px; padding-left: 10px; border-left: 3px solid var(--track-gray); color: #333; }
.check-result { margin: 8px 0 0; font-size: 14px; min-height: 1em; }
.check-result.good { color: var(--green); font-weight: 600; }
.check-result.bad { color: var(--red); }
.team-cards { display: flex; flex-direction: column; gap: 12px; }
.team-card { border: 1px solid var(--row-gray); border-radius: 6px; padding: 12px 16px 14px; background: #FAFAFA; }
.team-head { display: flex; justify-content: space-between; align-items: center; }
.team-title { margin: 0; font-size: 16px; color: var(--green); }
.team-actions, .summary-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.connect-feeds { margin: 0; padding-left: 20px; }
.connect-feeds li { margin: 3px 0; }
.connect-feeds .feed-failed { color: var(--red); }
.connect-error { margin: 12px 0 0; padding: 8px 12px; background: #FDF0F0; color: var(--red); border-radius: 4px; }

/* Study Plan: Needs your call and Dismissed */
.plan-card { margin: 16px 0 28px; }
.study-section-title { margin: 8px 0 0; color: var(--blue); font-size: 22px; font-weight: 600; }
.call-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.call-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; background: #FAFAFA;
  border: 1px solid #E6E6E6; border-radius: 6px; }
.call-what { flex: 1; min-width: 220px; overflow-wrap: anywhere; }
.call-title { font-size: 15px; }
.call-meta { color: var(--muted); font-size: 13px; }
.call-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.call-btn { border: 1.5px solid #C9C9C9; background: #fff; border-radius: 16px; padding: 5px 12px; font: inherit;
  font-size: 14px; cursor: pointer; }
.call-btn:hover { border-color: var(--blue); }
.call-btn.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.call-btn:disabled { opacity: .5; cursor: default; }
.dismissed-row { margin: 12px 0 0; font-size: 14px; }

/* Study Plan: overview, estimates and the plan by day */
.plan-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; }
.overview-total { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--blue); }
.overview-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ov-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; background: #FAFAFA;
  border: 1px solid #E6E6E6; border-radius: 6px; }
.ov-what { flex: 1; min-width: 220px; overflow-wrap: anywhere; }
.ov-title { font-size: 15px; }
.ov-meta { color: var(--muted); font-size: 13px; }
.ov-note { color: var(--muted); font-size: 13px; font-style: italic; }
.ov-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ov-source { color: var(--muted); font-size: 13px; }
.size { display: inline-block; min-width: 54px; text-align: center; border-radius: 10px; padding: 2px 8px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
/* One colour for all sizes: SMALL, MEDIUM and LARGE are told apart by their words, not by colour. */
.size.small, .size.medium, .size.large { background: var(--study-tint-strong); color: var(--study); }
.ov-choices { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 12px 0 28px; }
.plan-day h3 { margin: 0; color: var(--blue); font-size: 18px; font-weight: 600; }
.plan-day-total { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.plan-window { border: 1px solid #DCDCDC; border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.window-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.window-label { font-weight: 600; }
.start-by { font-size: 14px; }
.plan-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
/* minmax(0, 1fr): a one-line row's long title is cut with "…" instead of widening the page on a phone */
.plan-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 10px; border-radius: 4px;
  background: #FFFFFF; border-left: 4px solid var(--study); box-shadow: inset 0 0 0 1px var(--study-outline); }
/* A break is a pause, not another task: a thin dashed line with small text, no box and no stripe, so it differs
   from a study row by shape, not just shade. */
.plan-row.break { background: none; border-left: 0; box-shadow: none; border-top: 1px dashed #8A8A8A; border-radius: 0;
  padding: 3px 10px 0; margin: 2px 0; font-size: 12px; color: #595959; }
.plan-row-text { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
/* A study row stays one line: time · class · title, then the due label in the right-hand slot. A title too long
   for the width ends in "…" (the whole title shows on hover and opens in Canvas as before). */
.plan-row:not(.break) > .plan-row-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-row > .next-tag, .plan-row > .due-tag { flex: none; }
/* Plan List drag-to-move: a grabbable row with a small dotted grip (no text), and the day it would land on. */
.plan-row.draggable { cursor: grab; padding-left: 18px; }
.plan-row.draggable::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 12px;
  transform: translateY(-50%); background-image: radial-gradient(circle, #8C96AA 1px, transparent 1.3px);
  background-size: 3px 4px; pointer-events: none; }
.plan-row.draggable:active { cursor: grabbing; }
.plan-row.dragging { opacity: 0.45; }
.plan-day.drop-ok { outline: 2px dashed var(--study); outline-offset: 4px; border-radius: 8px; background: var(--study-tint); }

/* "Split · 2 of 4": small grey words (the same grey as other small notes, 4.5:1 or more), not a colour alone. */
.split-tag { flex: none; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: #636363;
  white-space: nowrap; }
button.split-tag { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.split-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: #636363; }
@media (max-width: 520px) { .split-tag, .split-note { display: none; } }
.plan-row-text strong { font-weight: 600; }
.about { color: #636363; font-size: 12px; }  /* small gray notes: 4.5:1 or more on white and the Next row */

/* Study Plan: header, tabs, Today, rows and menus */
.plan-header { margin: 8px 0 0; }
.today-summary { margin: 0; color: var(--blue); font-size: 20px; font-weight: 600; }
.call-badge { border: 0; border-radius: 12px; padding: 3px 10px; background: #FFF3D6; color: #6B4E00; font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; }
/* Tabs: about 25% larger than body text, one line even on a narrow phone, each easy to tap (44px tall). */
.study-tabs { display: flex; flex-wrap: nowrap; gap: 2px; margin: 18px 0 12px; border-bottom: 1px solid #DCDCDC; }
.study-tab { flex: 0 1 auto; min-height: 44px; border: 0; border-radius: 6px 6px 0 0; background: none;
  padding: 8px clamp(8px, 2.5vw, 18px); font: inherit; font-size: clamp(17px, 5vw, 19px); white-space: nowrap;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.study-tab:hover { color: var(--green); }
.study-tab.active { color: var(--green); background: #E8F4EE; border-bottom-color: var(--green); }
.study-tab:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.study-panel { margin-top: 8px; }
.today-day { margin: 8px 0 0; color: var(--blue); font-size: 18px; font-weight: 600; }
.today-empty { font-size: 17px; margin: 8px 0; }
.class-name { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 2px; }
.plan-row { position: relative; }
.plan-row.next { background: var(--study-tint-strong); box-shadow: inset 0 0 0 1px var(--study-outline); }
.next-tag { background: var(--study); color: #fff; border-radius: 8px; padding: 0 7px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; }
/* The row's time is the link to the time panel: the whole item's estimate and what else can be done with it. */
.time-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--study);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.time-btn[aria-expanded="true"] { text-decoration-thickness: 2px; }
.time-btn:focus-visible { outline: 2px solid var(--study); outline-offset: 2px; }
.row-time { font-weight: 600; }
.time-panel { flex-basis: 100%; padding: 6px 0 2px; }
.due-tag { margin-left: auto; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.time-head { margin: 0 0 6px; font-size: 14px; }
.time-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; font-size: 14px; }
.day-line { width: 100%; text-align: left; border: 1px solid #DCDCDC; border-radius: 8px; background: #fff;
  padding: 10px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.day-line::before { content: "▸ "; color: var(--muted); }
.day-line.open { border: 0; padding: 0 0 4px; color: var(--blue); font-size: 18px; font-weight: 600; }
.day-line.open::before { content: "▾ "; }
.estimate-btn { border: 1px solid #C9C9C9; background: #fff; border-radius: 14px; padding: 3px 10px; font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.estimate-btn:hover { border-color: var(--blue); }
.ov-group h3 { margin: 14px 0 0; font-size: 15px; color: var(--blue); }
.ov-group .link-btn { margin-top: 8px; font-size: 14px; }
.welcome { margin: 4px 0 14px; padding: 12px 14px; border-radius: 8px; background: #E9EEF8; color: var(--blue);
  font-size: 16px; }
.starting-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #FFF6E0; color: #6B4E00;
  font-size: 14px; }
.first-plan-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #E8F4EE; color: var(--green);
  font-size: 15px; font-weight: 600; }

/* Study Plan timeline: practices, games and commitments between the study windows (fixed: no buttons) */
.fixed-row { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; padding: 8px 12px; border-radius: 6px;
  border-left: 4px solid #C9C9C9; background: #F6F6F6; }
.fixed-row.sports { border-left-color: var(--green); background: #EEF7F2; }
.fixed-row.block { border-left-style: dashed; }  /* a one-day "Changes to your day" block: plain grey, like a commitment */
.fixed-text { font-size: 15px; font-weight: 600; }
.fixed-sub { color: #8A8A8A; font-size: 12px; }
.still-today { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* A ticked assignment whose due date moved later: a quiet note (Today and Your work); it may wrap on a phone */
.date-change { line-height: 1.5; overflow-wrap: anywhere; }

/* Today: heads-up lines */
.heads-up { margin: 0 0 8px; padding: 8px 12px; border-radius: 6px; background: #FFF3D6; color: #6B4E00; font-size: 15px;
  font-weight: 600; }

/* Urgent (Your work): one line per overdue item; the due date is the tap target, styled like the study-row time */
.urgent-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.urgent-row { display: flex; flex-wrap: wrap; align-items: baseline; padding: 8px 12px; border-radius: 6px;
  background: #FAFAFA; font-size: 15px; }
.urgent-due { font-weight: 600; }

/* Plan tab "Due after …": one line per item (a long title ends in "…"), the estimate on the right */
.later-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.later-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 6px;
  background: #FAFAFA; font-size: 15px; }
.later-row > .plan-row-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.later-row > .estimate-btn, .later-row > .later-time { flex: none; }
.later-row > .ov-choices { flex-basis: 100%; }
/* Today: a slim amber strip across the page when there is urgent work, a link to Urgent (the heads-up colours) */
.urgent-line { margin: 0 0 10px; padding: 0; border-radius: 6px; background: #FFF3D6; font-size: 15px;
  font-weight: 600; text-align: center; }
/* The whole strip is the tap target: the link button fills it (the padding lives on the button). */
.urgent-line .link-btn { display: block; width: 100%; padding: 6px 12px; border-radius: 6px; color: #6B4E00;
  font-weight: 600; text-align: center; }
.urgent-line .link-btn:focus-visible { outline: 2px solid #6B4E00; outline-offset: 2px; }

/* Study Plan: "Not today / Move to another day" */
.move-box { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 4px 0 2px; }
.move-box p { margin: 0; font-size: 14px; color: var(--muted); flex-basis: 100%; }
.move-label { font-size: 14px; color: var(--muted); }
.moved-row { margin: 0 0 8px; font-size: 14px; flex-basis: 100%; }
.moved-tag { display: inline-block; border-radius: 10px; padding: 1px 9px; background: #EEF0F4; color: var(--blue);
  font-weight: 600; font-size: 13px; }

/* Study Plan: an assignment's title links to its Canvas page, quietly (same color, faint underline) */
.title-link { color: inherit; text-decoration: underline; text-decoration-color: #C9C9C9; text-underline-offset: 2px; }
.title-link:hover, .title-link:focus-visible { text-decoration-color: currentColor; }

/* Study Plan: Your tasks */
.task-form { margin-top: 10px; padding: 12px 14px; border: 1px solid #DCDCDC; border-radius: 8px; background: #FAFAFA; }
.task-form .text-box { width: 100%; max-width: 480px; }
.due-row, .chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.task-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.task-buttons { flex-basis: 100%; }

/* Study Plan: List | Week toggle and the Week view (the grid alone may use more of the window, to ~1,100 px) */
.view-toggle { display: inline-flex; margin: 0 0 12px; border: 1px solid #C9C9C9; border-radius: 8px; overflow: hidden; }
.view-btn { border: 0; background: #fff; padding: 6px 16px; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }
.view-btn + .view-btn { border-left: 1px solid #C9C9C9; }
.view-btn[aria-pressed="true"] { background: #E8F4EE; color: var(--green); font-weight: 600; }
.plan-week { width: max(100%, min(1100px, calc(100vw - 72px))); margin: 0 0 24px; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.plan-week[hidden] { display: none; }
.week-day { border: 1px solid #DCDCDC; border-radius: 8px; padding: 10px; background: #fff; cursor: pointer; min-width: 0; }
.week-day:hover, .week-day:focus-visible { border-color: var(--blue); outline: none; }
.week-day.today { border: 2px solid var(--green); background: #F4FAF6; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; color: var(--blue);
  font-size: 14px; }
.week-total { margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.week-total.full { color: var(--text, #222); font-weight: 700; }
.full-tag { margin-left: 6px; border-radius: 8px; padding: 0 6px; background: var(--study-tint-strong); color: var(--study); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.week-fixed { margin-top: 4px; padding: 2px 6px; border-left: 3px solid #C9C9C9; background: #F6F6F6; font-size: 12px;
  border-radius: 3px; overflow-wrap: anywhere; }
.week-fixed.sports { border-left-color: var(--green); background: #EEF7F2; }
.week-breaks { margin: -4px 0 6px; font-size: 12px; color: var(--muted); }
.week-classes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.week-class { display: flex; flex-direction: column; padding: 3px 6px; border-left: 3px solid var(--study); background: var(--study-tint);
  border-radius: 3px; font-size: 12px; overflow-wrap: anywhere; }
.week-class-name { font-weight: 600; }
.week-class-time { color: var(--muted); }
@media (max-width: 520px) { .plan-week { grid-template-columns: 1fr; } }
/* Phone: the due label drops "Due " ("Today", "Tomorrow", "Fri", "Oct 14", "Overdue"), so titles keep more room. */
@media (max-width: 520px) { .due-word { display: none; } .due-when { text-transform: capitalize; } }
/* Phone: Today and the Plan list hide the class name (and its " · ") so the title gets the room; it stays in the
   row's hover text and at the top of the time panel. A desktop keeps it on the row and hides the panel line. */
.time-class { display: none; margin: 0 0 2px; font-size: 13px; font-weight: 600; }
@media (max-width: 520px) { #today-body .row-class, #plan-days .row-class { display: none; } .time-class { display: block; } }

/* Week view pop-up: the Calendar pop-up's look, a little wider; the whole screen on a phone */
.plan-popup { width: min(640px, calc(100vw - 32px)); }
.plan-popup .plan-window { margin-top: 10px; }
.pop-actions { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
@media (max-width: 520px) {
  .plan-popup { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .plan-popup .pop-body { padding: 20px 16px 24px; }
}

/* ----- Family view (a parent, read-only): its own banner colour, so it's obvious when it's on ----- */
.parent-banner { background: #E4EAF6; color: var(--blue); border-bottom-color: #A9B8DE; }
.parent-banner .back-family { font-size: 14px; font-weight: 600; color: var(--blue); background: #fff;
  border: 1.5px solid var(--blue); border-radius: 6px; padding: 4px 12px; text-decoration: none; }
.parent-view .connect-link, .parent-view .footer-connect, .parent-view .study-save-row,
.parent-view #study-add-early-rule, .parent-view #study-add-early-date, .parent-view #study-add-no-school,
.parent-view #study-add-commitment, .parent-view #task-add { display: none; }
.family-header { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.family-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); }
.kid-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px 18px;
  border: 1px solid #DCDCDC; border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; }
.kid-card:hover, .kid-card:focus-visible { border-color: var(--blue); outline: none; box-shadow: 0 4px 12px rgba(20, 63, 156, 0.12); }
.kid-initial { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid #8FA3CF; color: var(--blue); font-size: 24px; font-weight: 600; }
.kid-name { color: var(--blue); font-size: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ring { width: 88px; height: 88px; }
.ring-track { fill: none; stroke: var(--track-gray); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; }
.ring-text { fill: var(--blue); font-size: 17px; font-weight: 600; }
.ring-check { fill: var(--green); font-size: 28px; font-weight: 700; }
.kid-today { font-size: 15px; font-weight: 600; color: #222; }

/* The name and initial in the header: one link to the account page (pilot mode), underlined with a small arrow on
   hover. Without an address (local mode) it's plain text. */
.user-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.user-link[href] { cursor: pointer; }
.user-link[href]::after { content: "\25BE"; color: var(--blue); font-size: 12px; margin-left: -6px; }
.user-link[href]:hover .user-name, .user-link[href]:focus-visible .user-name { text-decoration: underline; }

/* A school with no logo file (Schoology): its name on the tile instead. */
.view-tile .tile-name { font-weight: 700; font-size: 15px; color: var(--blue); }
/* With no link to open (a tile that isn't a link), the name is plain grey, so it never looks clickable. */
div.view-tile .tile-name { color: var(--muted); }
/* The same for a school's logo (Canvas): faded when there's no link to open. */
div.view-tile img { opacity: 0.45; }

/* Viewing as parent (step 6 polish): a banner nobody can miss, full width and strong blue, with larger text; the
   Profile as plain text; and the controls only the student can use left out (Re-plan, the first-time notes, the
   "tap a time" hint, the day-change example). */
.parent-banner { position: sticky; top: 0; z-index: 5; background: var(--blue); color: #fff; font-size: 18px;
  font-weight: 700; padding: 14px var(--page-pad); border-bottom: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.parent-banner .back-family { font-size: 15px; color: var(--blue); background: #fff; border-color: #fff; }
.parent-banner .demo-end { font-size: 15px; }
/* On a phone the banner is more compact (smaller text, tighter spacing), still sticky; both buttons stay 44 px tall. */
@media (max-width: 520px) {
  .parent-banner { font-size: 15px; padding: 8px 12px; gap: 6px 10px; line-height: 1.3; }
  .parent-banner .back-family, .parent-banner .demo-end { font-size: 14px; min-height: 44px; padding: 0 14px;
    display: inline-flex; align-items: center; }
}
.parent-view #replan, .parent-view #first-plan-note, .parent-view #profile-welcome, .parent-view #work-hint,
.parent-view #day-changes .hint { display: none !important; }
.profile-readonly { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 10px 20px;
  margin: 16px 0; font-size: 16px; }
.profile-readonly dt { font-weight: 600; color: #222; }
.profile-readonly dd { margin: 0; color: var(--text); }
@media (max-width: 600px) { .profile-readonly { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .profile-readonly dd { margin-bottom: 10px; } }

/* No word alone on the last line of a heading, notice, message, button, hint or paragraph, on every page (each loads
   this sheet). Short texts are balanced; body text wraps "pretty". Browsers that ignore text-wrap get web/wrap.js's
   fallback (the last two words joined by a no-break space). A word too long for its box breaks inside rather than
   make the page scroll sideways. */
h1, h2, h3, h4, h5, h6, button, label, legend, th, .auth-button, .auth-message, .hint, .auth-note,
[role="alert"], [role="status"] { text-wrap: balance; }
p, li, dt, dd, td, figcaption { text-wrap: pretty; }
/* The amber notices can run past six lines on a phone, where balancing stops: "pretty" keeps a last word company. */
.auth-message.notice, .auth-page .auth-message.notice { text-wrap: pretty; }
body { overflow-wrap: break-word; }
/* On a phone, the numbered card headings ("3 Sports platform (optional)") flow as plain text, so they can balance;
   side by side pieces would leave one word alone beside the "(optional)" tag. */
@media (max-width: 520px) {
  .connect-card h2 { display: block; }
  .connect-card h2 .step-num { vertical-align: middle; margin-right: 8px; }
}
/* A tab's short label stays on one line; on a very narrow phone the row of tabs wraps instead. */
.tab { white-space: nowrap; }
.tabs { flex-wrap: wrap; }
