/* School console and the parent join page (real accounts). */
.console-page { background: var(--bg); color: var(--ink); min-height: 100vh; min-height: 100dvh; }
.console-top { display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1.5px solid var(--line-2); background: var(--surface); }
.console-top .brand { font-family: var(--font-display, "Bricolage Grotesque", sans-serif); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.console-who { margin-left: auto; overflow-wrap: anywhere; }
.console { width: min(760px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 24px) 80px; display: grid; gap: 18px; }
.console h1 { font-family: var(--font-display, "Bricolage Grotesque", sans-serif); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.03em; }
.console h2 { font-size: 1.15rem; font-weight: 800; }
.panel-card { display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line-2), 0 12px 30px -22px rgba(28, 26, 46, .4); }
.panel-card hr { border: 0; border-top: 1.5px solid var(--line-2); margin: 6px 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.console-alert { margin: 0; padding: 12px 14px; border-radius: 14px; }
.field-label { font-weight: 800; font-size: 14px; }
.summary { font-weight: 800; }
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.issue { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: var(--sun-soft); overflow-wrap: anywhere; }
.issue.is-error { background: #fde3e3; }
.issue strong { margin-right: 4px; }
.linkbox { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.linkbox code { font-size: 14px; }
.code { font-size: 1.4rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.class-card { display: grid; gap: 4px; width: 100%; padding: 14px 16px; text-align: left; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.class-card:hover { border-color: var(--ink-3); }
.requests, .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.request { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg); }
.children li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.children small { color: var(--ink-3); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--line-2); color: var(--ink-2); }
.chip.is-joined { background: var(--mint-soft); color: #14663a; }
.chip.is-invited { background: var(--sun-soft); color: #7a5200; }
.chip.is-waiting { background: var(--ink); color: #fff; justify-self: start; }
.console-noscript { padding: 20px; }
.console .select, .console .input { max-width: 100%; }

/* the parent join page */
.join { width: min(520px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 24px) 80px; display: grid; gap: 18px; }
.join h1 { font-family: var(--font-display, "Bricolage Grotesque", sans-serif); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.join .form { display: grid; gap: 14px; }
.join .field { display: grid; gap: 6px; }
.join .field > span { font-weight: 800; font-size: 14px; }
.join .hint { font-size: 13.5px; color: var(--ink-2); }
.join .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.join .check input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.join .done { text-align: center; padding: 26px 20px; }
.join .done h2 { font-size: 1.5rem; }

/* the status page (ops.html) */
.ops-summary.is-good { background: var(--mint-soft); }
.ops-summary.is-bad { background: #fde3e3; }
.ops-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ops-tile { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--bg); }
.ops-tile strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.ops-tile.is-bad { background: #fde3e3; }
.alert-row.is-critical { color: #8b1a1a; }

/* my school day (family.html) */
.family .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--line-2); overflow-x: auto; }
.tab { flex: 1 0 auto; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.tab.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(28, 26, 46, .18); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--tile, var(--bg)); border-left: 6px solid var(--tile-edge, var(--line-2)); }
.tile-no { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: #fff; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tile-edge, var(--ink)); }
.tile-body { display: grid; gap: 2px; min-width: 0; }
.exam-banner { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--sun-soft); border: 1.5px solid #e9b949; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--bg); }
.post.is-cancelled strong { text-decoration: line-through; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chip.type-urgent { background: #fde3e3; color: #8b1a1a; }
.markbtn { justify-self: start; }
.markbtn.is-done { background: var(--mint-soft); color: #14663a; border-color: transparent; }
.grid-wrap { overflow-x: auto; }
.week-grid { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.week-grid th { font-size: 13px; font-weight: 800; color: var(--ink-2); padding: 4px; text-align: center; }
.week-grid tbody th { display: grid; justify-items: center; }
.week-grid th.is-today { color: var(--ink); }
.week-grid td { padding: 0; vertical-align: top; }
.week-grid td.is-today .cell { outline: 2px solid var(--ink); }
.cell { display: block; padding: 8px 6px; border-radius: 10px; background: var(--tile, var(--bg)); border-bottom: 3px solid var(--tile-edge, var(--line-2)); font-size: 13px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
