/* Mila Tova for Teachers — teacher pages (desktop). Spec: design/mila-tova-teachers/HANDOFF-design.md */
:root {
  --cream: #fffaf3; --cream-2: #fff3e8; --lilac-soft: #f3ecfb; --lilac-light: #efe7fb; --lilac-selected: #f7f1fe;
  --lilac: #8a6fc0; --lilac-strong: #7559ad; --lilac-text: #6a50a6; --lilac-deep: #4c3585; --lilac-btn-text: #5d4596;
  --lilac-disabled: #b9adc9; --text: #4b4038; --text-2: #6f6258; --text-3: #8d7f74; --hebrew: #3d332c; --ink: #1b1a1a;
  --green: #3a9c6b; --green-btn: #2f8259; --green-text: #24603f; --pink: #dd6f8b; --pink-strong: #c24f72; --pink-text: #a23a5c;
  --shadow-panel: 0 16px 38px rgba(96,128,178,.17);
}
* { box-sizing: border-box; }
html { background: #dcecfa; }
body { margin: 0; min-height: 100vh; font-family: 'Nunito', system-ui, sans-serif; color: var(--text);
  background: radial-gradient(circle at 88% -8%, rgba(255,222,176,.62) 0%, transparent 36%),
              linear-gradient(180deg, #cde5f9 0%, #e2f0fc 40%, #f3f8fd 72%, #fdf6ee 100%) fixed; }
a { color: var(--lilac-text); } a:hover { color: var(--lilac-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--lilac-strong); outline-offset: 4px; border-radius: 12px; }
[hidden] { display: none !important; }
.he { font-family: 'Rubik', sans-serif; }
.baloo { font-family: 'Baloo 2', sans-serif; }

/* decorative sky clouds */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.dcloud { position: absolute; }
.dcloud i { position: absolute; background: #fff; border-radius: 999px; }
.dcloud i + i, .dcloud i + i + i { border-radius: 50%; }

/* top bar */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 18px clamp(16px, 3vw, 40px); }
.wordmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.wordmark b { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; line-height: 1; color: var(--lilac-strong); }
.wordmark span { font-weight: 700; font-size: 14px; color: var(--text-2); }
.topright { display: flex; align-items: center; gap: 14px; }
.gauge { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; background: rgba(255,250,243,.94);
  border-radius: 999px; box-shadow: 0 6px 18px rgba(96,128,178,.16); text-decoration: none; color: var(--text);
  font-size: 15px; font-weight: 600; white-space: nowrap; border: 0; }
.gauge b { font-weight: 800; }
.avatar-wrap { position: relative; }
.avatar { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--cream); padding: 0; overflow: hidden;
  background: linear-gradient(160deg, #c9b6ee, #7f64b8); color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 18px; box-shadow: 0 6px 18px rgba(96,128,178,.24); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu { position: absolute; right: 0; top: 60px; width: 272px; background: var(--cream); border-radius: 22px;
  box-shadow: 0 20px 44px rgba(70,92,140,.24); padding: 8px; z-index: 40; display: flex; flex-direction: column; }
.menu button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0;
  background: none; text-align: left; font-weight: 700; font-size: 15px; color: var(--text); }
.menu button:hover, .menu button:focus-visible { background: var(--lilac-soft); }
.menu button svg { color: var(--lilac-strong); flex: none; }
.menu hr { border: 0; height: 1px; background: rgba(122,102,92,.16); margin: 6px 10px; }
.menu .muted, .menu .muted svg { color: var(--text-2); }
.menu .who { padding: 8px 14px 4px; font-size: 13px; color: var(--text-2); font-weight: 700; overflow-wrap: anywhere; }

/* page container */
.page { position: relative; z-index: 2; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 80px; }
.h1 { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; text-wrap: balance; }
.sub { margin: 14px 0 0; font-size: 18px; color: var(--text-2); }

/* progress pills */
.steps { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 16px 0; }
.step { display: inline-flex; align-items: center; gap: 9px; padding: 6px 20px 6px 6px; border-radius: 999px;
  background: rgba(255,250,243,.92); color: var(--text-2); font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 17px;
  border: 0; text-decoration: none; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--lilac-light); color: var(--lilac-strong); display: grid; place-items: center; font-size: 16px; }
.step.current { background: var(--lilac-strong); color: #fff; box-shadow: 0 8px 18px rgba(117,89,173,.28); }
.step.current .n { background: #fff; }
.step.done { background: #ddf1e6; color: #2a7350; }
.step.done .n { background: var(--green-btn); color: #fff; }
.conn { width: 40px; height: 3px; border-radius: 2px; background: #c6d7e8; }
.conn.done { background: #9fd1b6; }

/* Step 1 cloud cards */
.clouds { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 44px 40px; margin-top: 56px; }
.cloud-card { position: relative; display: block; flex: 1 1 300px; max-width: 350px; padding: 66px 0 0; border: 0; background: transparent;
  text-decoration: none; color: var(--text); text-align: center;
  transition: transform .22s ease, filter .22s ease; filter: drop-shadow(0 18px 26px rgba(96,128,178,.20)); }
.cloud-card:hover { transform: translateY(-6px); filter: drop-shadow(2px 0 0 #cbb8ef) drop-shadow(-2px 0 0 #cbb8ef) drop-shadow(0 2px 0 #cbb8ef) drop-shadow(0 -2px 0 #cbb8ef) drop-shadow(0 24px 30px rgba(96,128,178,.26)); }
.cloud-card.soon:hover { transform: translateY(-2px); }
.bump { position: absolute; aspect-ratio: 1/1; border-radius: 50%; background: var(--cream); }
.cloud-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 252px;
  padding: 30px 30px 38px; border-radius: 96px; background: var(--cream); }
.cloud-card.soon .bump, .cloud-card.soon .cloud-body { background: #f4efe8; }
.icon-circle { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; }
.cc-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.15; }
.cc-desc { font-size: 16px; line-height: 1.45; color: var(--text-2); }
.badge-soon { background: #ebe4da; color: var(--text-2); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; }
.upload-note { max-width: 560px; margin: 34px auto 0; background: var(--cream); border-radius: 26px; padding: 20px 24px;
  box-shadow: var(--shadow-panel); text-align: left; font-size: 16px; font-weight: 600; }
.upload-note label { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-weight: 800; cursor: pointer; min-height: 44px; }
.upload-note input { width: 22px; height: 22px; accent-color: var(--lilac-strong); }
.thanks { margin-top: 8px; color: var(--green-text); font-weight: 800; }

/* Step 2 */
.libchip { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,250,243,.94); border-radius: 999px;
  padding: 6px 8px 6px 8px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(96,128,178,.12); }
.libchip .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.libchip button { border: 0; background: none; color: var(--lilac-text); text-decoration: underline; font-weight: 800; min-height: 32px; padding: 0 8px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.tab { padding: 9px 22px 11px; font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 20px; border-radius: 999px; border: 0;
  background: rgba(255,250,243,.94); color: var(--text); box-shadow: 0 4px 12px rgba(96,128,178,.12); min-height: 44px; }
.tab:hover { filter: brightness(.97); }
.tab[aria-selected="true"] { background: var(--lilac-strong); color: #fff; box-shadow: 0 8px 18px rgba(117,89,173,.28); }
.gridbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 16px; flex-wrap: wrap; }
.helper { font-weight: 700; color: var(--text-2); font-size: 16px; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px;
  border: 0; background: var(--cream); font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(96,128,178,.12); }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #d9cfe6; transition: background .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch[aria-checked="true"] .track { background: var(--lilac-strong); }
.switch[aria-checked="true"] .knob { left: 21px; }
.gridwrap { position: relative; min-height: 780px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; border-radius: 30px;
  background: var(--cream); box-shadow: 0 10px 24px rgba(96,128,178,.14); transition: transform .18s ease; }
.acard:hover { transform: translateY(-3px); }
.acard.selected { background: var(--lilac-selected); box-shadow: 0 0 0 4px var(--lilac), 0 16px 30px rgba(117,89,173,.24); }
.acard .sel { display: flex; flex-direction: column; gap: 10px; border: 0; background: none; padding: 0; text-align: center; }
.acard .sel:disabled { opacity: .5; }
.cover { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ribbon { position: absolute; top: 24px; right: -40px; width: 150px; padding: 4px 0; transform: rotate(45deg); background: var(--green-btn);
  color: #fff; display: flex; justify-content: center; box-shadow: 0 2px 6px rgba(47,130,89,.30); }
.atitle { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 23px; line-height: 1.4; color: var(--hebrew); }
.ameta { font-weight: 700; font-size: 14px; color: var(--text-2); }
.selnum { position: absolute; left: -10px; top: -10px; width: 36px; height: 36px; border-radius: 50%; background: var(--lilac-strong);
  border: 3px solid var(--cream); color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 18px; display: grid; place-items: center; z-index: 2; }
.pvbtn { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  border: 0; background: transparent; color: var(--lilac-btn-text); font-weight: 700; font-size: 13px; }
.pvbtn:hover { background: var(--lilac-soft); }
.pvbtn.open { background: var(--lilac-light); }
.empty-topic { padding: 40px; text-align: center; font-weight: 700; color: var(--text-2); background: rgba(255,250,243,.7); border-radius: 30px; }
.preview { position: absolute; top: -14px; right: -10px; z-index: 6; width: max-content; min-width: 400px; max-width: 640px;
  padding: 22px; border-radius: 34px; background: var(--cream); display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 64px rgba(60,80,130,.30), 0 0 0 1px rgba(122,102,92,.08); }
.preview.anim { animation: pvin .34s cubic-bezier(.2,.8,.3,1); }
@keyframes pvin { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.pvhead { display: flex; justify-content: space-between; align-items: center; }
.pvhead span { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 18px; color: var(--text-2); }
.xbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lilac-soft); color: var(--lilac-deep); display: grid; place-items: center; }
.pvcover { height: 150px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; }
.pvcover img { width: 100%; height: 100%; object-fit: cover; }
.pvtitle { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 32px; text-align: center; color: var(--hebrew); margin: 0; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--lilac-soft); }
.chip.lv { background: #e6f4ec; color: #2a7350; font-weight: 800; }
.chip.lv.tr { background: var(--lilac-light); color: var(--lilac-deep); }
.pvlines { list-style: none; margin: 0; padding: 14px 16px; background: var(--cream-2); border-radius: 22px; display: flex; flex-direction: column; gap: 6px;
  max-height: 266px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #cbb8ef transparent; scrollbar-width: thin; }
.pvlines li { display: flex; gap: 12px; align-items: flex-start; }
.pvlines .num { flex: none; width: 30px; height: 30px; margin-top: 6px; border-radius: 50%; background: #f4eefc; color: var(--lilac-strong);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pvlines .txt { font-family: 'Rubik', sans-serif; font-size: 23px; line-height: 1.75; color: var(--ink); }
.pvhint { font-size: 13px; font-weight: 800; color: var(--text-2); text-align: center; margin-top: -8px; }
.bigbtn { min-height: 54px; border-radius: 999px; border: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; padding: 0 24px;
  background: var(--lilac-strong); color: #fff; box-shadow: 0 8px 18px rgba(117,89,173,.26); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bigbtn.soft { background: var(--lilac-light); color: var(--lilac-deep); box-shadow: none; }
.bigbtn.off { background: #ebe4da; color: var(--text-2); box-shadow: none; }
.bigbtn.green { background: var(--green-btn); box-shadow: 0 10px 22px rgba(47,130,89,.30); }
.bigbtn.ghost { background: #fff; color: var(--text); border: 1px solid rgba(122,102,92,.22); box-shadow: none; min-height: 48px; }
.bigbtn[aria-disabled="true"], .bigbtn:disabled { background: var(--lilac-disabled); box-shadow: none; }
.bigbtn.green:disabled { background: #e3dbd1; color: var(--text-2); }
.bottombar { position: sticky; bottom: 16px; z-index: 8; margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px; border-radius: 999px; background: var(--cream); box-shadow: 0 16px 36px rgba(96,128,178,.22); }
.bottombar .mid { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; font-weight: 800; color: var(--text-2); }
.bottombar .mid .chip { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 16px; color: var(--lilac-deep); }

/* Step 3 */
.share { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: flex-start; margin-top: 36px; text-align: left; }
.setcard { flex: 1 1 400px; max-width: 500px; padding: 26px; border-radius: 34px; background: var(--cream); box-shadow: var(--shadow-panel);
  display: flex; flex-direction: column; gap: 16px; }
.setcard h2 { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--text-2); }
.arow { display: flex; align-items: center; gap: 12px; background: var(--cream-2); border-radius: 22px; padding: 10px; }
.arow .th { width: 58px; height: 58px; border-radius: 16px; overflow: hidden; flex: none; display: grid; place-items: center; }
.arow .th img { width: 100%; height: 100%; object-fit: cover; }
.arow .t { flex: 1; text-align: right; }
.arow .t div:first-child { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 23px; color: var(--hebrew); }
.arow .t div:last-child { font-size: 14px; font-weight: 700; color: var(--text-2); }
.arow .x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #b8456a; display: grid; place-items: center; flex: none; }
.arow .x:hover { background: #fbe3ea; }
.addlink { border: 0; background: none; color: var(--lilac-text); font-weight: 800; font-size: 16px; text-decoration: underline; min-height: 44px; text-align: left; padding: 0; }
.field label { display: block; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.select { position: relative; }
.select select { width: 100%; height: 56px; border-radius: 18px; border: 2px solid #e4d8f6; background: #fff; font: 700 17px 'Nunito', sans-serif;
  color: var(--text); padding: 0 46px 0 16px; appearance: none; -webkit-appearance: none; }
.select svg { position: absolute; right: 18px; top: 18px; color: var(--lilac-strong); pointer-events: none; }
.help { font-size: 14px; color: var(--text-2); font-weight: 600; margin-top: 6px; }
.tcheck { display: flex; gap: 12px; align-items: flex-start; border-radius: 20px; padding: 14px 16px; background: #e4f4eb; }
.tcheck .b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-btn); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tcheck .t1 { font-size: 17px; font-weight: 800; color: var(--green-text); }
.tcheck .t2 { font-size: 14px; color: #4f6b5c; font-weight: 600; margin-top: 2px; }
.tcheck.err { background: #fbe3ea; }
.tcheck.err .b { background: var(--pink-strong); }
.tcheck.err .t1 { color: var(--pink-text); }
.tcheck.err .t2 { color: #7d4a5a; }
.pincard { position: relative; flex: 1.3 1 480px; max-width: 640px; padding-top: 70px; filter: drop-shadow(0 18px 26px rgba(96,128,178,.20)); }
.pincard .body { position: relative; border-radius: 80px; background: var(--cream); padding: 30px 36px 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pinlabel { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--text-2); }
.digits { display: flex; gap: 10px; }
.digit { width: 68px; height: 88px; border-radius: 22px; background: var(--lilac-soft); color: var(--lilac-deep); font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 60px; display: grid; place-items: center; line-height: 1; }
.digit:nth-child(4) { margin-left: 14px; }
.digit.empty { background: transparent; border: 3px dashed #ddd2c5; }
.qr { background: #fff; padding: 12px; border-radius: 22px; box-shadow: 0 0 0 2px var(--lilac-light); width: 188px; height: 188px; display: grid; place-items: center; }
.qr svg, .qr img { width: 164px; height: 164px; display: block; }
.sharerow { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; }
.sharecol { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 260px; }
.linktext { font-size: 14px; font-weight: 700; word-break: break-all; color: var(--text-2); }
.openchip { display: inline-flex; align-items: center; gap: 6px; background: #ddf1e6; color: var(--green-text); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.textbtn { border: 0; background: none; color: var(--lilac-text); text-decoration: underline; font-weight: 800; font-size: 15px; min-height: 44px; }
.pinmsg { font-weight: 700; color: var(--text-2); max-width: 380px; }

/* generic cards (lists, classes, tokens) */
.panelcard { background: var(--cream); border-radius: 32px; padding: 24px 28px; box-shadow: var(--shadow-panel); }
.list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.pinrow { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 26px; background: var(--cream); box-shadow: 0 8px 20px rgba(96,128,178,.14);
  border: 0; text-align: left; width: 100%; }
.pinrow:hover { transform: translateY(-2px); transition: transform .15s; }
.pinrow .main { flex: 1; min-width: 0; }
.pinrow .l1 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; }
.pinrow .l2 { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 18px; color: var(--hebrew); }
.pinrow .l3 { font-size: 14px; font-weight: 700; color: var(--text-2); }
.state { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.state.open { background: #e4f4eb; color: var(--green-text); }
.state.closed { background: #fbe3ea; color: var(--pink-text); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--text); color: var(--cream); border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: center; z-index: 100;
  visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }
.toast svg { color: #7fd1a3; }
.err { color: var(--pink-text); font-weight: 700; }
.ok { color: var(--green-text); font-weight: 700; }

/* onboarding + classes, restyled */
.classic { position: relative; z-index: 2; width: min(620px, calc(100vw - 32px)); margin: 24px auto 60px; background: var(--cream); border-radius: 32px;
  padding: 30px; box-shadow: var(--shadow-panel); }
.classic h1 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; margin: 0 0 6px; line-height: 1.15; }
.classic h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 21px; margin: 22px 0 6px; }
.classic p.sub { margin: 0 0 18px; font-size: 16px; }
.classic button { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(122,102,92,.22); background: #fff; font-weight: 700; min-height: 44px; }
.classic button.primary { background: var(--lilac-strong); border-color: var(--lilac-strong); color: #fff; }
.classic button.small { padding: 4px 14px; min-height: 36px; font-size: 14px; }
.classic button.link { border: 0; background: none; color: var(--lilac-text); padding: 4px 6px; text-decoration: underline; min-height: 32px; }
#signin { text-align: center; }
#signin button { display: block; width: 100%; margin: 10px 0; font-size: 17px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.top small { color: var(--text-2); }
.consent { max-height: 260px; overflow: auto; border-radius: 18px; padding: 4px 16px; font-size: .95rem; line-height: 1.5; background: var(--cream-2); }
.classic label { display: block; font-size: .95rem; margin: 12px 0 4px; font-weight: 800; }
.classic label.opt { font-weight: 600; display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.classic input[type=text], .classic select, .classic textarea { width: 100%; padding: 10px 12px; border: 2px solid #e4d8f6; border-radius: 14px; font: 600 1rem 'Nunito', sans-serif; background: #fff; }
.classic textarea { min-height: 130px; }
.row { display: flex; gap: 12px; } .row > div { flex: 1; }
.grades { display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
.fe { color: var(--pink-text); font-size: .85rem; margin-top: 3px; font-weight: 700; }
.actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.card { border: 2px dashed #ddd2c5; border-radius: 22px; padding: 26px; text-align: center; color: var(--text-2); margin-top: 18px; }
.stat { font-size: .92rem; color: var(--text-2); }
#out { margin-top: 14px; font-size: .95rem; white-space: pre-wrap; }
.clist { list-style: none; padding: 0; margin: 14px 0 0; }
.clist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; margin-bottom: 8px; cursor: pointer; }
.clist li:hover { background: var(--lilac-soft); }
.clist .meta { color: var(--text-2); font-size: .9rem; white-space: nowrap; }
.clist li.arch { opacity: .65; cursor: default; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.names { list-style: none; padding: 0; margin: 8px 0; }
.names li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(122,102,92,.12); }
.names li input { flex: 1; }
.names li span.nm { flex: 1; font-weight: 700; }
.note { font-size: .9rem; color: var(--text-2); margin: 6px 0; } .note.warn { color: #8a5a00; }
.panel { border-radius: 20px; padding: 14px; margin: 14px 0; background: var(--cream-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* confirm dialog (Close early) */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(75,64,56,.28); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(460px, 100%); background: var(--cream); border-radius: 30px; padding: 28px; box-shadow: 0 30px 64px rgba(60,80,130,.30); }
.dialog h2 { margin: 0 0 10px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; }
.dialog p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); font-weight: 600; }
.dlgbtns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.dbtn { min-height: 50px; padding: 0 22px; border-radius: 999px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 18px; border: 2px solid rgba(122,102,92,.22); background: #fff; }
.dbtn.danger { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }
.dbtn.go { background: var(--lilac-strong); border-color: var(--lilac-strong); color: #fff; }
