:root {
  --navy: #091d2e;
  --ink: #172b3e;
  --cyan: #4cc9f0;
  --green: #16834e;
  --muted: #657585;
  --line: #e6ebef;
  --soft: #f5f7fa;
  --danger: #b42332;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 16px/1.5 "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #19a5d1; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 6px; font-weight: 650; }
h3 { font-size: 15px; margin-bottom: 10px; }
.muted { color: var(--muted); }
p.muted { font-size: 14px; margin-bottom: 0; }
.small { font-size: 13px; }
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; padding: 32px 20px 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 5; overflow-y: auto; }
.product { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 31px; letter-spacing: -1.3px; font-weight: 750; line-height: 1; }
.product-dot { color: #11a9d0; }
.product small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 2px; margin-top: 8px; }
.product-icon { display: grid; place-items: center; background: var(--navy); color: var(--cyan); width: 44px; height: 48px; border-radius: 14px; }
.product-icon .icon { width: 26px; height: 26px; }
.school-card { margin: 34px 0 26px; padding: 22px 13px; background: #f6f9fb; border: 1px solid #eaf0f4; border-radius: 14px; text-align: center; overflow-wrap: anywhere; }
.school-emblem { height: 56px; width: 56px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid #dce6ed; background: #fff; border-radius: 16px; color: #477085; }
.school-emblem .icon { width: 30px; height: 30px; }
.school-emblem img { width: 100%; height: 100%; object-fit: contain; padding: 5px; border-radius: 14px; }
.school-card strong { display: block; font-size: 15px; line-height: 1.5; }
.school-card > span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.school-card > span:empty { display: none; }
.school-card .school-address, .school-card .school-contact { font-size: 12px; }
.school-card .school-address { margin-top: 12px; }
.nav-item { border: 0; background: none; width: 100%; min-height: 46px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border-radius: 10px; color: #607182; font-size: 14px; font-weight: 600; text-align: left; margin-bottom: 6px; }
.nav-item.active { background: #eaf5fa; color: #096482; }
.nav-item:hover { background: #f0f5f8; }
.nav-short { display: none; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.account { display: flex; align-items: center; gap: 9px; padding: 22px 0; }
.avatar { display: grid; place-items: center; background: #eef2f7; color: #55697b; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.account strong { display: block; font-size: 13px; }
.account small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.account .icon-button { margin-left: auto; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 9px; flex-shrink: 0; }
.icon-button:hover { background: #edf3f7; }
.icon-button .icon { width: 19px; height: 19px; }
.top-out { display: none; }
.workspace { margin-left: 250px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 78px; background: #ffffffd9; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 15px 36px; gap: 16px; }
.topbar h1 { font-size: 23px; line-height: 1.3; letter-spacing: -.6px; margin: 0; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.topbar #today { margin-right: 10px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.badge.green { background: #eaf7f0; color: #16834e; }
.badge.green:before, .badge.red:before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge.red { background: #fff0f0; color: #b42332; }
.badge.amber { background: #fff3df; color: #94600a; }
.badge.neutral { background: #edf1f5; color: #617485; }
main { width: 100%; max-width: 1410px; margin: 0 auto; padding: 28px 36px 0; flex: 1; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 44px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 650; line-height: 1.5; transition: background .15s, box-shadow .15s; }
.button .icon { width: 18px; height: 18px; }
.primary { background: var(--navy); color: white; }
.primary:hover { background: #173b53; box-shadow: 0 3px 10px #0a23351c; }
.secondary { background: white; border-color: #dfe6ec; color: #34495c; }
.secondary:hover { background: #f4f8fa; }
.compact { padding: 9px 13px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; color: #167d9c; font-size: 14px; font-weight: 650; padding: 10px 0; min-height: 44px; }
.text-button .icon { width: 16px; height: 16px; }
.text-button:hover { color: #09465e; text-decoration: underline; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.overview-top, .overview-bottom { display: grid; grid-template-columns: 1.8fr 1fr; gap: 22px; }
.overview-top { margin-bottom: 22px; }
.overview-bottom { align-items: start; }
.next-card { position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: center; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 28px 30px; }
.next-content { z-index: 1; position: relative; flex: 1; min-width: 0; }
.hero-label { display: flex; align-items: center; gap: 9px; color: #b9cdd9; font-size: 12px; font-weight: 650; letter-spacing: 1.6px; }
.hero-label .icon { width: 17px; height: 17px; color: var(--cyan); }
.next-time { font-size: 65px; line-height: 1.1; letter-spacing: -2.7px; font-weight: 600; margin-top: 17px; font-variant-numeric: tabular-nums; }
.next-time.text { font-size: 34px; letter-spacing: -1px; }
.next-content > p { margin: 9px 0 0; color: #b1c5d2; font-size: 14px; min-height: 21px; }
.next-content > p:first-letter { text-transform: uppercase; }
.bell-art { width: 190px; position: relative; height: 190px; margin: -10px -3px -10px 12px; flex-shrink: 0; }
.bell-art svg { position: absolute; width: 165px; height: 165px; top: 11px; left: 13px; transform: rotate(13deg); overflow: visible; }
.bell-outline { fill: #73c8de0b; stroke: #79d4ef; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell-detail { stroke: #79d4ef; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.orbit { position: absolute; border: 1px solid #44677d40; border-radius: 50%; inset: 0; }
.orbit-two { inset: 21px; border-style: dashed; }
.spark { position: absolute; width: 6px; height: 6px; background: #66d5f2; border-radius: 50%; }
.spark-one { top: 10px; left: 50px; }
.spark-two { bottom: 16px; right: 30px; width: 4px; height: 4px; }
.mode-card { padding: 24px; display: flex; flex-direction: column; }
.card-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.icon-tile { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: #41617c; background: #eef3f8; flex: none; }
.icon-tile .icon { width: 21px; height: 21px; }
.icon-tile.green { color: #16834e; background: #edf8f1; }
.icon-tile.blue { background: #edf3ff; color: #5678af; }
.mode { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 29px; letter-spacing: -.7px; font-weight: 650; margin: 14px 0 4px; }
.mode i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.mode.v { color: #ad771c; }
.mode.x { color: var(--muted); }
.mode-card p { font-size: 14px; margin-bottom: 20px; }
.mode-card > .button { margin-top: auto; width: 100%; }
.program-card { padding: 24px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading p.muted { font-size: 14px; }
.program-count { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.week-strip { display: flex; gap: 7px; padding: 21px 0 17px; }
.week-day { flex: 1; text-align: center; padding: 8px 3px; border: 1px solid #e8edf1; border-radius: 8px; color: #657585; font-size: 13px; }
.week-day.today { background: var(--navy); color: white; border-color: var(--navy); }
.week-day.inactive { color: #8b98a3; background: #fafbfd; }
.program-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.time-chip { border: 1px solid #e5ebf0; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 12px 10px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-chip.past { background: #f8fafb; color: #71818f; border-color: #e9edf1; }
.time-chip.next { color: #157690; background: #effaff; border-color: #a7d8e9; }
.empty { color: var(--muted); font-size: 14px; grid-column: 1/-1; padding: 18px 0; }
.right-stack { min-width: 0; }
.quick-card { padding: 24px; }
.quick-card h2 { margin-bottom: 18px; }
.quick-card > .button { width: 100%; min-height: 48px; }
.quick-card #ringSub { text-align: center; font-size: 13px; margin: 10px 0 0; }
.sync-line { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: #7f8e9b; padding: 23px 0; }
.sync-line .icon { width: 13px; height: 13px; }
footer { display: flex; align-items: center; justify-content: center; padding: 17px 36px; border-top: 1px solid var(--line); font-size: 12px; color: #7f8e9b; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 92px; height: 26px; object-fit: contain; background: var(--navy); border-radius: 5px; padding: 4px 6px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dbe5ec; padding: 0 0 14px; color: #688091; font-size: 13px; margin-bottom: 24px; }
.demo-banner strong { font-weight: 650; }
.demo-banner .text-button { font-size: 13px; padding: 6px 0; white-space: nowrap; }
.banner { padding: 14px 18px; border: 1px solid #f2ced0; background: #fff0f0; color: #9f3541; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr); gap: 24px; align-items: start; }
.editor { padding: 28px; }
.editor .section-heading { padding-bottom: 21px; border-bottom: 1px solid var(--line); margin-bottom: 24px; align-items: center; }
.editor .section-heading h2 { margin: 0; }
.editor-aside > .card { padding: 24px; }
.editor-aside p { font-size: 14px; line-height: 1.9; }
.editor-aside small { font-size: 13px; display: block; margin-top: 16px; }
.schedule-notice { background: #fff7e9; border: 1px solid #f0e4cb; color: #806530; padding: 12px 15px; border-radius: 9px; font-size: 14px; margin: 0 0 25px; }
fieldset { border: 0; padding: 0; margin: 0 0 27px; min-width: 0; }
legend, label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 9px; }
.day-picker { display: flex; gap: 6px; }
.day-picker label { flex: 1; margin: 0; cursor: pointer; }
.day-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-picker span { display: block; text-align: center; padding: 11px 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.day-picker input:checked + span { background: #eaf7fb; border-color: #79bed6; color: #176e8b; }
.day-picker input:focus-visible + span { outline: 3px solid #19a5d1; }
.times-heading { align-items: center !important; border: 0 !important; padding-bottom: 0 !important; margin-bottom: 14px !important; }
.times-heading label { margin: 0; }
.time-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.time-entry { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 4px; background: #fafcfd; min-width: 0; }
.time-entry input { width: 100%; min-width: 0; border: 0; background: none; padding: 6px; font-size: 16px; margin: 0; min-height: 44px; }
.time-entry button { flex-shrink: 0; width: 34px; height: 44px; font-size: 21px; }
input, select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #dfe6eb; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; margin-bottom: 20px; }
input::placeholder { color: #8a98a4; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23657585' stroke-width='1.5'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E"); background-position: right 13px center; background-repeat: no-repeat; padding-right: 40px; }
.duration-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-block: 1px solid var(--line); padding: 20px 0; }
.duration-field label { margin: 0; }
.duration-field label small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.duration-field > div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.duration-field input { width: 68px; margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.form-actions .button { font-size: 14px; }
.active-program { word-spacing: 7px; font-variant-numeric: tabular-nums; }
.err { font-size: 13px; color: var(--danger); margin: 10px 0; min-height: 16px; }
.logo-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.logo-preview { display: grid; place-items: center; width: 88px; height: 88px; border: 1px dashed #b5c6d3; border-radius: 14px; background: #f8fafc; color: #7d99ad; flex-shrink: 0; }
.logo-preview > .icon { width: 36px; height: 36px; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-upload label { cursor: pointer; display: inline-flex; margin: 0 0 6px; }
.logo-upload small { display: block; font-size: 12px; }
.logo-upload .text-button { font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.access-page { max-width: 410px; margin: 42px auto 65px; }
.access-card { padding: 30px; }
.access-card h2 { font-size: 23px; margin: 20px 0 8px; }
.access-card p { font-size: 14px; margin-bottom: 25px; }
.access-card .button { width: 100%; }
.access-card input { margin-bottom: 10px; }
.access-demo { display: flex; margin-top: 12px; }
.signed-out nav { opacity: .5; }
.signed-out #refresh { display: none; }
dialog { border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: min(92vw, 440px); color: var(--ink); box-shadow: 0 25px 100px #091d2e40; }
dialog::backdrop { background: #091d2e80; backdrop-filter: blur(3px); }
dialog h2 { font-size: 21px; margin: 18px 0 10px; }
dialog p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); box-shadow: 0 8px 35px #091d2e30; color: #fff; padding: 14px 21px; border-radius: 11px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 20; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1200px) {
  .sidebar { width: 224px; padding-inline: 16px; }
  .workspace { margin-left: 224px; }
  main { padding-inline: 26px; }
  .topbar { padding-inline: 26px; }
  .overview-top, .overview-bottom { grid-template-columns: 1.5fr 1fr; gap: 18px; }
  .bell-art { width: 140px; height: 150px; }
  .bell-art svg { width: 135px; height: 135px; left: 0; top: 5px; }
  .next-card { padding: 25px; }
  .program-card, .quick-card { padding: 22px; }
  .program-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor-layout { grid-template-columns: minmax(0, 1.65fr) minmax(210px, 1fr); gap: 18px; }
  .editor { padding: 24px; }
  .time-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .sidebar { width: 200px; padding-inline: 12px; }
  .workspace { margin-left: 200px; }
  .product { font-size: 28px; padding-left: 4px; }
  .product-icon { width: 37px; height: 42px; }
  .school-card { padding: 18px 10px; }
  .school-card strong { font-size: 14px; }
  .topbar #today { display: none; }
  main { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
  .bell-art { display: none; }
  .next-time { font-size: 60px; }
  .mode-card { padding: 21px; }
  .mode { font-size: 26px; }
  .overview-bottom { grid-template-columns: 1fr; }
  .right-stack { grid-row: 1; }
  .quick-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 20px; }
  .quick-card h2 { margin: 0; }
  .quick-card > .button { width: auto; min-width: 170px; grid-column: 2; grid-row: 1/3; }
  .quick-card #ringSub { text-align: left; margin: 3px 0 0; }
  .program-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .editor-layout { grid-template-columns: 1fr; }
  .time-editor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading { flex-wrap: wrap; }
  .program-count { display: block; margin: 2px 0 0; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; padding: 16px 18px 0; display: grid; grid-template-columns: 1fr auto; border-right: 0; overflow: visible; }
  .product { font-size: 25px; gap: 9px; padding: 0; }
  .product small { font-size: 9px; letter-spacing: 1.6px; margin-top: 5px; }
  .product-icon { width: 35px; height: 38px; border-radius: 10px; }
  .product-icon .icon { width: 22px; height: 22px; }
  .school-card { margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: right; max-width: 195px; }
  .school-emblem { width: 35px; height: 35px; margin: 0; order: 2; border-radius: 9px; flex: none; }
  .school-emblem .icon { width: 22px; height: 22px; }
  .school-card strong { font-size: 12px; line-height: 1.4; }
  .school-card > span, .sidebar-bottom { display: none; }
  .sidebar nav { grid-column: 1/-1; display: flex; gap: 6px; margin-top: 16px; padding-bottom: 10px; }
  .nav-item { flex: 1; justify-content: center; width: auto; min-height: 44px; padding: 10px 8px; font-size: 14px; margin: 0; gap: 7px; border-radius: 8px; white-space: nowrap; }
  .nav-item .icon { width: 17px; height: 17px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .workspace { margin: 0; }
  .topbar { min-height: 64px; padding: 10px 18px; gap: 10px; }
  .topbar h1 { font-size: 20px; }
  .topbar-right { gap: 4px; }
  .badge { font-size: 12px; padding: 5px 8px; }
  .top-out { display: grid; }
  main { padding: 16px 18px 0; }
  .demo-banner { font-size: 12px; gap: 8px; padding-bottom: 12px; margin-bottom: 16px; }
  .demo-banner .text-button { font-size: 12px; min-height: 44px; }
  .overview-top { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .next-card { min-height: 184px; padding: 24px; }
  .hero-label { font-size: 11px; letter-spacing: 1.4px; }
  .next-time { font-size: 59px; margin-top: 13px; }
  .next-time.text { font-size: 31px; }
  .next-content > p { font-size: 14px; margin-top: 7px; }
  .bell-art { display: block; position: absolute; width: 140px; height: 145px; right: 15px; top: 20px; margin: 0; opacity: .5; pointer-events: none; }
  .bell-art svg { width: 135px; height: 135px; top: 3px; left: 0; }
  .mode-card { padding: 19px 21px; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; }
  .mode-card .card-label { grid-column: 1/-1; margin-bottom: 5px; }
  .mode-card .icon-tile { width: 28px; height: 28px; border-radius: 8px; }
  .mode-card .icon-tile .icon { width: 17px; height: 17px; }
  .mode { font-size: 25px; margin: 7px 0 3px; }
  .mode-card > p { grid-column: 1/-1; font-size: 14px; margin: 0; }
  .mode-card > .button { grid-column: 2; grid-row: 2; width: auto; padding: 10px 12px; font-size: 13px; margin: 0; }
  .mode-card > .button .icon { width: 16px; height: 16px; }
  .overview-bottom { gap: 14px; }
  .quick-card { padding: 19px 21px; gap: 0 12px; }
  .quick-card h2 { font-size: 15px; }
  .quick-card > .button { min-width: 145px; padding-inline: 14px; }
  .quick-card #ringSub { font-size: 13px; }
  .program-card { padding: 20px 17px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p.muted { font-size: 14px; }
  .program-count { display: inline; font-size: 12px; margin-left: 6px; }
  .section-heading .text-button { font-size: 14px; padding-top: 0; }
  .week-strip { gap: 5px; padding: 17px 0 14px; }
  .week-day { font-size: 12px; padding: 8px 2px; }
  .program-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .time-chip { font-size: 17px; padding: 11px 8px; }
  .sync-line { font-size: 12px; padding: 20px 0; }
  footer { padding: 16px 18px; }
  .footer-brand img { width: 86px; height: 25px; }
  .editor { padding: 21px 17px; }
  .editor .section-heading { margin-bottom: 20px; padding-bottom: 18px; }
  .schedule-notice { font-size: 14px; padding: 12px; }
  .day-picker { gap: 4px; }
  .day-picker span { font-size: 12px; padding: 12px 2px; }
  .times-heading { gap: 8px; }
  .times-heading .button { font-size: 13px; padding-inline: 10px; }
  .times-heading label { font-size: 13px; }
  .time-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .time-entry button { width: 36px; }
  .time-entry input { padding-left: 3px; }
  .duration-field { align-items: flex-start; }
  .duration-field input { width: 62px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .logo-upload { gap: 14px; }
  .logo-preview { width: 70px; height: 70px; }
  .logo-upload small { font-size: 12px; }
  .access-page { margin: 12px auto 40px; }
  .access-card { padding: 24px; }
}
@media (max-width: 370px) {
  .school-card { max-width: 160px; }
  .product { font-size: 22px; }
  .product-icon { width: 32px; }
  .mode-card { display: flex; align-items: stretch; }
  .mode-card .card-label { margin-bottom: 3px; }
  .mode-card > p { margin-bottom: 14px; }
  .mode-card > .button { width: 100%; }
  .program-count { display: block; margin: 2px 0 0; }
  .quick-card { gap: 0 8px; padding-inline: 17px; }
  .quick-card > .button { min-width: 130px; padding-inline: 10px; }
  .duration-field { flex-wrap: wrap; }
  .time-editor { grid-template-columns: 1fr; }
  .demo-banner span { max-width: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* A single brand mark, kept intact at every screen size. */
.product { display: block; padding: 0; width: 100%; line-height: 0; }
.product img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .product { width: 149px; }
  .school-card { max-width: 185px; }
  .next-content > p { max-width: 100%; position: relative; }
}
@media (max-width: 370px) {
  .product { width: 128px; }
  .school-card { max-width: 148px; }
}

/* MindGrid: un singur punct de administrare pentru toate școlile. */
.all-schools { margin-bottom: 20px; width: 100%; }
.central-view .sidebar nav { display: none; }
.central-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 26px; }
.central-intro h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 4px; }
.eyebrow { display: block; color: #197994; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.school-search { width: 100%; max-width: 480px; margin-bottom: 24px; }
.schools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; padding-bottom: 30px; }
.directory-card { display: flex; flex-direction: column; padding: 24px; }
.directory-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.directory-head .school-emblem { margin: 0; flex-shrink: 0; font-weight: 700; }
.directory-head .badge { font-size: 11px; white-space: normal; }
.directory-card h3 { font-size: 18px; margin-bottom: 6px; }
.directory-card p { margin-bottom: 26px; }
.directory-card a { margin-top: auto; }
@media(max-width:700px) {
  .central-intro { gap: 12px; align-items: flex-start; }
  .central-intro h2 { font-size: 26px; }
  .central-intro .button { padding: 10px; font-size: 12px; }
  .central-intro .button .icon { display: none; }
  .schools-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .all-schools { width: auto; margin: 0 0 12px; }
}

#centralError:empty { display: none; }
@media(max-width:700px) { .all-schools { grid-column: 1/-1; justify-self: start; padding: 6px 0; background: none; border: 0; min-height: 44px; margin: 2px 0 -12px; } }
