:root {
  --bg: #f4f6fb;
  --ink: #1d2433;
  --muted: #6b7385;
  --card: #ffffff;
  --accent: #4f6bed;
  --bio: #2f9e6b;
  --geo: #2f7de1;
  --his: #d98a1f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 96px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #4f6bed 0%, #8a5cf6 55%, #e86fb0 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.hero::after { width: 240px; height: 240px; bottom: -100px; right: -60px; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .12em;
}
.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(1.9rem, 6vw, 3rem);
  letter-spacing: .04em;
}
.hero p { margin: 0; opacity: .92; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.card {
  display: block;
  padding: 28px 24px;
  background: var(--card);
  border-radius: 20px;
  border-top: 6px solid var(--c);
  box-shadow: 0 10px 30px rgba(30, 40, 90, .10);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(30, 40, 90, .16); }
.card .icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 1.8rem;
  background: color-mix(in srgb, var(--c) 14%, white);
}
.card h2 { margin: 16px 0 4px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .go { display: inline-block; margin-top: 14px; color: var(--c); font-weight: 700; }
.bio { --c: var(--bio); }
.geo { --c: var(--geo); }
.his { --c: var(--his); }

.notice {
  margin: 40px 0 0;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

footer { padding: 48px 20px; text-align: center; color: var(--muted); font-size: .82rem; }

/* subject page */
.subject-hero {
  padding: 48px 20px 56px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
}
.subject-hero h1 { margin: 8px 0 0; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.back { display: inline-block; margin-bottom: 8px; font-size: .88rem; opacity: .9; }
.back:hover { text-decoration: underline; }
.panel {
  margin: -28px auto 0;
  max-width: 800px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 40, 90, .10);
  position: relative;
}
.panel h2 { margin-top: 0; }

/* password gate */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #4f6bed, #8a5cf6 60%, #e86fb0);
}
.gate-box {
  width: min(380px, 100%);
  padding: 32px 26px;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.gate-box .lock { font-size: 2.2rem; }
.gate-box h2 { margin: 8px 0 4px; font-size: 1.2rem; }
.gate-box p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.gate-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid #dfe3ee;
  border-radius: 12px;
  outline: none;
}
.gate-box input:focus { border-color: var(--accent); }
.gate-box button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.gate-box button:hover { filter: brightness(1.08); }
.gate-error { min-height: 1.4em; margin-top: 10px; color: #d93a5b; font-size: .85rem; }
.gate-box .gate-back { display: inline-block; margin-top: 8px; color: var(--muted); font-size: .82rem; }
[hidden] { display: none !important; }

/* ---- english / quiz ---- */
.eng { --c: #e0527a; }
.card.eng { --c: #e0527a; }
.quiz h2 { margin-top: 0; }
.field { margin: 22px 0; }
.field-label { display: block; margin-bottom: 8px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-radio span, .mode span {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #dfe3ee;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--c); }
.chip-radio input, .mode input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio, .mode { position: relative; }
.chip-radio input:checked + span, .mode input:checked + span {
  color: #fff; background: var(--c); border-color: var(--c);
}
.chip-radio input:focus-visible + span, .mode input:focus-visible + span { outline: 3px solid #4f6bed55; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.range-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range-row input {
  width: 84px; padding: 9px 10px; font-size: 1rem;
  border: 2px solid #dfe3ee; border-radius: 10px;
}
.muted { color: var(--muted); font-size: .9rem; }
button.primary, button.ghost {
  display: inline-block; margin: 8px 8px 0 0; padding: 12px 22px;
  font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer;
}
button.primary { color: #fff; background: var(--c); border: 0; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { color: var(--muted); background: #fff; border: 2px solid #dfe3ee; }
.list { margin-top: 28px; }
.list summary { cursor: pointer; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.quiz table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.quiz th, .quiz td { padding: 6px 10px; border-bottom: 1px solid #e8ebf3; text-align: left; }
.quiz th { color: var(--muted); font-weight: 600; }

.progress { height: 8px; background: #eceff6; border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--c); transition: width .25s; }
.meta { display: flex; justify-content: space-between; margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.question { margin: 26px 0 18px; text-align: center; }
.qno { display: block; color: var(--muted); font-size: .85rem; }
.qtext { display: block; font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 700; line-height: 1.4; }
.ans { display: block; margin: 12px 0; }
.ans span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .85rem; }
.ans input {
  width: 100%; padding: 12px 14px; font-size: 1.2rem;
  border: 2px solid #dfe3ee; border-radius: 12px; outline: none;
}
.ans input:focus { border-color: var(--c); }
.ans input.ok { border-color: #2f9e6b; background: #eefaf3; }
.ans input.ng { border-color: #d93a5b; background: #fff0f3; }
.feedback { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.feedback.good { color: #1f7a50; background: #eefaf3; }
.feedback.bad { color: #b02a47; background: #fff0f3; }
.score { text-align: center; margin: 12px 0 20px; font-size: 1.2rem; }
.score .big { font-size: 3rem; font-weight: 800; color: var(--c); }
.score .pct { color: var(--muted); }
.perfect { text-align: center; font-size: 1.2rem; font-weight: 700; }
.actions { margin-top: 18px; }

.choice-group { margin: 12px 0; }
.choice-cap { display: block; margin-bottom: 6px; color: var(--muted); font-size: .85rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  padding: 14px 10px; font: inherit; font-size: 1.1rem; font-weight: 600;
  background: #fff; border: 2px solid #dfe3ee; border-radius: 12px; cursor: pointer;
}
.choice:hover:not(:disabled) { border-color: var(--c); }
.choice.sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); }
.choice.ok { border-color: #2f9e6b; background: #eefaf3; }
.choice.ng { border-color: #d93a5b; background: #fff0f3; }
.choice:disabled { cursor: default; }
.gate-box p.gate-warn { color: #d33; font-weight: 700; font-size: .82rem; margin: -8px 0 16px; }
/* countdown */
.cd { margin: 26px auto 0; max-width: 460px; }
.cd-label { font-size: .85rem; letter-spacing: .12em; opacity: .9; margin-bottom: 10px; }
.cd-label small { margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.22); letter-spacing: .05em; }
.cd-row { display: flex; gap: 10px; justify-content: center; }
.cd-box { flex: 1; min-width: 0; padding: 12px 4px 9px; border-radius: 16px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(20,30,80,.18); }
.cd-box b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .72rem; opacity: .85; letter-spacing: .1em; }
.cd-now { font-size: 1.05rem; font-weight: 700; }
@media (max-width: 420px) { .cd-box b { font-size: 1.6rem; } .cd-row { gap: 7px; } }
.jpn { --c: #c0392b; }
.card.jpn { --c: #c0392b; }
.ear { --c: #8e5bd6; }
.card.ear { --c: #8e5bd6; }
.mat { --c: #0e9aa7; }
.card.mat { --c: #0e9aa7; }
/* svg icons */
.card .icon svg { color: var(--c); width: 30px; height: 30px; }
.subject-hero h1 { display: flex; align-items: center; gap: 12px; }
.h-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.h-ico svg { width: 30px; height: 30px; }

/* document link card */
.doc-card { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid #dfe3ee; background: #fff; box-shadow: 0 6px 18px rgba(30,40,90,.08); transition: transform .2s, box-shadow .2s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30,40,90,.14); }
.doc-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, white); color: #e0393e; }
.doc-body { flex: 1; min-width: 0; line-height: 1.5; }
.doc-body b { display: block; font-size: 1.05rem; }
.doc-body small { color: var(--muted); }
.doc-go { flex: none; color: var(--c); font-weight: 700; }
.doc-note { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 480px) { .doc-go { display: none; } }
/* biology quiz */
.qtext.qlong { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
.choices.one { grid-template-columns: 1fr; }
.choices.one .choice { text-align: left; font-size: 1rem; }
#self { margin-top: 8px; }
.wrong-item { padding: 10px 0; border-bottom: 1px solid #e8ebf3; }
.wrong-item .wq { font-weight: 600; }
.wrong-item .wa { color: #d93a5b; margin-top: 2px; }
/* ===== login pill ===== */
.login-pill { position: fixed; top: 12px; right: 12px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; font-size: .9rem; font-weight: 700; color: #4b3bb5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid rgba(122,90,248,.25); border-radius: 99px; box-shadow: 0 6px 18px rgba(40,30,110,.18); transition: transform .15s, box-shadow .15s; }
.login-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(40,30,110,.24); }
.login-pill .lp-ico { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#7a5af8,#e86fb0); display: grid; place-items: center; overflow: hidden; color: #fff; }
.login-pill .lp-ico img { width: 100%; height: 100%; object-fit: cover; }
.login-pill .lp-ico svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .login-pill { height: 36px; font-size: .82rem; } }

/* ===== my page ===== */
.me { --c: #7a5af8; background: linear-gradient(180deg,#f1eefe 0,#f4f6fb 340px); }
.card.me { --c: #7a5af8; background: #fff; }
.me .subject-hero { background: linear-gradient(135deg,#6a4ff0,#a35cf0 55%,#e86fb0); }
.me-panel { max-width: 760px; }
.me-panel .small { font-size: .85rem; }
.me-panel h2 { font-size: 1.4rem; }
.me-panel h3 { margin: 28px 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.me-panel h3::before { content: ""; width: 4px; height: 1.05em; border-radius: 4px; background: var(--c); }
button.big { width: 100%; max-width: 360px; height: 52px; margin: 14px 0; font-size: 1.05rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.me-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg,#f3efff,#fdf0f7); }
.me-top .av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#7a5af8,#e86fb0); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.me-top .av img { width: 100%; height: 100%; object-fit: cover; }
.me-top .who { flex: 1; min-width: 0; line-height: 1.4; }
.me-top .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-top .days { text-align: center; padding: 6px 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(80,60,180,.12); line-height: 1.2; }
.me-top .days small { display: block; color: var(--muted); font-size: .7rem; }
.me-top .days b { font-size: 1.6rem; color: var(--c); }
.me-top .days span { font-size: .8rem; color: var(--muted); }
.me-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 18px 0; padding: 4px; border-radius: 14px; background: #eceff6; }
.me-tabs .chip { border: 0; border-radius: 11px; padding: 10px; background: transparent; color: var(--muted); font-weight: 700; text-align: center; }
.me-tabs .chip.on { color: var(--c); background: #fff; box-shadow: 0 2px 8px rgba(30,40,90,.12); }
.me-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.me-stats div { position: relative; padding: 14px 8px 12px; text-align: center; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(30,40,90,.08); overflow: hidden; }
.me-stats div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg,#7a5af8,#e86fb0); }
.me-stats span { display: block; color: var(--muted); font-size: .78rem; }
.me-stats b { font-size: 1.9rem; line-height: 1.2; color: var(--ink); }
.me-stats small { color: var(--muted); }
.streak { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; background: #fff7e6; color: #a8650a; font-size: .88rem; font-weight: 700; }
.me-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; padding: 14px; border-radius: 16px; background: #f7f8fd; }
.me-form input, .me-form select { height: 46px; padding: 0 12px; font: inherit; color: var(--ink); border: 2px solid #e0e4ef; border-radius: 12px; background: #fff; }
.me-form input:focus, .me-form select:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 4px rgba(122,90,248,.15); }
.me-form select { flex: 1 1 110px; }
.me-form input[type=number] { flex: 0 0 90px; }
.me-form input[type=date] { flex: 1 1 140px; }
.me-form input[type=text] { flex: 1; min-width: 160px; }
.me-form button.primary { margin: 0; height: 46px; padding: 0 22px; border-radius: 12px; flex: 1 1 100px; }
.quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quick .chip { padding: 6px 14px; border-radius: 99px; background: #fff; }
.quick .chip:active { background: var(--c); color: #fff; }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.me-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 6px rgba(30,40,90,.07); }
.me-list li.done .li-main span { text-decoration: line-through; color: var(--muted); }
.me-list .li-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; word-break: break-word; }
.me-list input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--c); }
.me-list .x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #b5bbc9; font-size: 1rem; cursor: pointer; }
.me-list .x:hover { color: #d93a5b; background: #fdecef; }
.log-subj { display: inline-block; min-width: 3.2em; padding: 2px 10px; margin-right: 8px; border-radius: 99px; background: #efeaff; color: #5a3fd0; font-size: .8rem; font-weight: 700; text-align: center; }
.log-min { font-weight: 800; }
.log-date { color: var(--muted); font-size: .85rem; margin-right: 8px; }
.bar-row { display: grid; grid-template-columns: 5.6em 1fr 4em; align-items: center; gap: 10px; margin: 8px 0; font-size: .9rem; }
.bar-row .bt { height: 14px; border-radius: 99px; background: #eceff6; overflow: hidden; }
.bar-row .bf { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#7a5af8,#e86fb0); transition: width .4s; }
.bar-row .bv { text-align: right; font-weight: 700; }
.me-progress { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(30,40,90,.08); }
.me-progress .progress { flex: 1; height: 14px; }
.me-progress .progress .bar { background: linear-gradient(90deg,#7a5af8,#e86fb0); border-radius: 99px; }
.me-progress b { font-size: 1.3rem; color: var(--c); min-width: 3.2em; text-align: right; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; border: 2px dashed #dde1ee; border-radius: 14px; }
.privacy { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #f7f8fd; }
@media (max-width: 480px) { .me-stats b { font-size: 1.5rem; } .me-top .days b { font-size: 1.3rem; } }

/* timetable */
.tt-scroll { overflow-x: auto; margin: 8px -4px; padding: 4px; }
.tt { border-collapse: separate; border-spacing: 4px; min-width: 640px; width: 100%; text-align: center; font-size: .82rem; }
.tt th { padding: 6px; color: #fff; background: #7a5af8; border-radius: 10px; font-size: .95rem; }
.tt th.tt-p { background: #efeaff; color: #4b3bb5; min-width: 70px; }
.tt th.tt-p b { display: block; font-size: 1.1rem; }
.tt th.tt-p small { display: block; font-size: .65rem; font-weight: 400; }
.tt td { padding: 8px 4px; border-radius: 12px; background: #fff; box-shadow: 0 1px 5px rgba(30,40,90,.09); line-height: 1.35; vertical-align: top; }
.tt td.sub { border-top: 4px solid #7a5af8; }
.tt td b { display: block; font-size: .95rem; }
.tt td span { display: block; color: var(--ink); }
.tt td small { display: block; color: var(--muted); font-size: .68rem; }
.tt-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f7f8fd; font-size: .85rem; line-height: 1.7; }

/* today's timetable */
#tt-day { margin-bottom: 8px; }
.ttd-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ttd-nav > button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #efeaff; color: #5a3fd0; font-size: 1.5rem; cursor: pointer; }
.ttd-date { text-align: center; line-height: 1.3; }
.ttd-date b { display: block; font-size: 1.25rem; }
.ttd-date input { margin-top: 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; text-align: center; }
.ttd-ev { margin: 6px 0; padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #a8650a; font-weight: 700; font-size: .9rem; }
.ttd-badge { display: inline-block; margin: 6px 0 10px; padding: 4px 18px; border-radius: 99px; background: linear-gradient(135deg,#7a5af8,#e86fb0); color: #fff; font-size: 1.6rem; font-weight: 800; }
.ttd-badge small { margin-left: 8px; font-size: .75rem; font-weight: 700; opacity: .9; }
.ttd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ttd-list li { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "n b tc" "n tm r"; align-items: center; column-gap: 12px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 6px rgba(30,40,90,.08); }
.ttd-list li.hot { border-left: 5px solid #7a5af8; }
.ttd-list .n { grid-area: n; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #efeaff; color: #5a3fd0; font-weight: 800; }
.ttd-list b { grid-area: b; font-size: 1.05rem; }
.ttd-list .tc { grid-area: tc; text-align: right; }
.ttd-list .tm { grid-area: tm; color: var(--muted); font-size: .75rem; }
.ttd-list small { grid-area: r; text-align: right; color: var(--muted); font-size: .72rem; }
.tt .today { background: #f1ecff; }
.tt th.today { background: #e86fb0; }

.ttd-now { margin: 0 0 10px; padding: 8px 14px; border-radius: 12px; background: #eaf8f0; color: #1e7a4c; font-weight: 800; font-size: .95rem; }
.ttd-list li.now { background: linear-gradient(135deg,#fff 0,#f4efff 100%); border: 2px solid #7a5af8; animation: ttglow 1.8s ease-in-out infinite; transform: scale(1.015); }
.ttd-list li.now .n { background: #7a5af8; color: #fff; }
.ttd-list li.next { border: 2px dashed #b9a7fb; }
@keyframes ttglow { 0%,100% { box-shadow: 0 0 0 0 rgba(122,90,248,.45), 0 2px 8px rgba(30,40,90,.1); } 50% { box-shadow: 0 0 0 8px rgba(122,90,248,0), 0 0 22px rgba(122,90,248,.55); } }
@media (prefers-reduced-motion: reduce) { .ttd-list li.now { animation: none; } }

/* announcements */
.me-tabs .chip { position: relative; font-size: .85rem; padding: 10px 4px; }
.me-tabs .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }
.news-form textarea { flex: 1 1 100%; padding: 10px 12px; font: inherit; color: var(--ink); border: 2px solid #e0e4ef; border-radius: 12px; resize: vertical; }
.news-form textarea:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 4px rgba(122,90,248,.15); }
.news-form input[type=text] { flex: 1 1 100%; }
.news-item { align-items: flex-start !important; }
.news-main { flex: 1; min-width: 0; }
.news-main .n-t { display: block; font-size: 1.02rem; }
.news-main .n-b { margin: 4px 0; white-space: pre-wrap; word-break: break-word; font-size: .92rem; line-height: 1.7; }
.news-main .n-m { color: var(--muted); font-size: .75rem; }

.news-banner { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg,#fff1f0,#fff7e6); border: 2px solid #f6b9a8; color: #b4381f; font-weight: 800; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-tabs { margin-top: 14px; }

/* top page announcements */
.news-top { max-width: 640px; margin: 26px auto 0; padding: 14px 16px; text-align: left; border-radius: 18px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(40,20,120,.2); }
.news-top .nt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.news-top .nt-head a { font-size: .8rem; opacity: .9; text-decoration: underline; }
.news-top .nt-item { display: flex; gap: 12px; padding: 9px 4px; border-top: 1px solid rgba(255,255,255,.25); color: #fff; }
.news-top .nt-date { flex: none; min-width: 3.2em; padding: 2px 8px; height: fit-content; border-radius: 99px; background: rgba(255,255,255,.28); font-size: .75rem; font-weight: 700; text-align: center; }
.news-top .nt-main { min-width: 0; flex: 1; line-height: 1.5; }
.news-top .nt-main b { display: block; }
.news-top .nt-main > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; opacity: .9; }
.news-top .nt-empty { margin: 4px 0 0; font-size: .85rem; opacity: .9; }
.news-top .nt-login { display: block; text-align: center; font-weight: 700; font-size: .9rem; }

.recommend { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: #eef7ff; border: 1px solid #bfe0ff; color: #12507f; font-size: .88rem; line-height: 1.7; }

/* important marks */
.imp-check { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; font-weight: 700; color: #b4381f; cursor: pointer; }
.imp-check input { width: 20px; height: 20px; accent-color: #ef4444; }
.news-item.imp { background: #fff5f4; border: 2px solid #f6b9a8; }
.news-item.imp .n-t { color: #c2301a; }
.me-list .star { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #c4c9d6; font-size: 1.25rem; cursor: pointer; }
.me-list .star:hover { background: #fff7e0; }
.me-list li.starred .star { color: #f5a300; }
.me-list li.starred { border-left: 5px solid #f5a300; }
.news-top .nt-item.imp .nt-date { background: #ef4444; }
.news-top .nt-item.imp b { color: #ffe3e0; }

/* comments */
.cm-toggle { margin-top: 6px; padding: 4px 12px; border: 0; border-radius: 99px; background: #efeaff; color: #5a3fd0; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.cm-thread { margin-top: 8px; padding: 10px; border-radius: 12px; background: #f7f8fd; }
.cm-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cm-list li { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: none !important; }
.cm-list .c-n { font-size: .85rem; }
.cm-list .c-d { color: var(--muted); font-size: .72rem; }
.cm-list .c-t { white-space: pre-wrap; word-break: break-word; font-size: .9rem; line-height: 1.6; }
.cm-form { display: flex; gap: 6px; }
.cm-form input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; font: inherit; border: 2px solid #e0e4ef; border-radius: 10px; }
.cm-form button { height: 40px; padding: 0 16px; margin: 0; border-radius: 10px; }

/* ranking */
.rank-box { margin-top: 6px; }
.rank-switch { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f4f0ff; cursor: pointer; font-weight: 700; }
.rank-switch input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c); flex: none; }
.rank-switch small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; line-height: 1.5; }
.rank-tabs { display: flex; gap: 8px; margin: 12px 0 8px; }
.rank-tabs .chip { padding: 6px 18px; border-radius: 99px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 6px rgba(30,40,90,.08); }
.rank-list li.me { border: 2px solid #7a5af8; background: #f7f3ff; }
.rank-list .rk { font-size: 1.2rem; font-weight: 800; text-align: center; color: var(--muted); }
.rank-list .rn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .rv { color: #5a3fd0; }

/* admin */
.admin-box { margin: 18px 0; padding: 16px; border-radius: 16px; background: #fff8e6; border: 2px solid #f5c04a; }
.admin-box h3 { margin: 0 0 8px; }
.ad-big { font-size: 1.1rem; margin: 4px 0; } .ad-big b { font-size: 2rem; color: #b36b00; }
.ad-barwrap { height: 10px; border-radius: 99px; background: #f1e2b8; overflow: hidden; margin: 6px 0 10px; }
.ad-bar { height: 100%; width: 0; background: linear-gradient(90deg,#f5a623,#f5c04a); transition: width .4s; }
.ad-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.ad-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ad-list small { color: var(--muted); }

/* timer */
.tm-box { margin: 4px 0 16px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg,#f4f0ff,#eaf3ff); text-align: center; }
.tm-modes { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.tm-modes .chip { padding: 6px 14px; border-radius: 99px; }
.tm-disp { font-size: clamp(3rem, 16vw, 4.6rem); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #3b2a9a; line-height: 1.2; }
.tm-box.running .tm-disp { color: #0a7d4f; }
.tm-presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.tm-presets .chip { padding: 5px 14px; border-radius: 99px; }
.tm-presets input { width: 7em; padding: 6px 10px; border-radius: 99px; border: 1px solid #cfc8f0; text-align: center; }
.tm-box select { margin: 6px 0 10px; padding: 8px 12px; border-radius: 10px; }
.tm-btns { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tm-main { font-size: 1.1rem; font-weight: 800; padding: 12px 28px; border-radius: 99px; border: 0; background: #6b4eea; color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(107,78,234,.35); }
.tm-rec { padding: 10px 18px; border-radius: 99px; background: #fff; border: 2px solid #0a7d4f; color: #0a7d4f; font-weight: 700; }
/* homework */
.hw-box { margin: 6px 0 18px; padding: 14px; border-radius: 16px; background: #fff7ee; border: 1px solid #f3d3a8; }
.hw-box h3 { margin: 0 0 8px; }
.hw-form { display: grid; grid-template-columns: auto auto 1fr auto; gap: 6px; }
.hw-form input, .hw-form select { padding: 8px 10px; border-radius: 10px; border: 1px solid #e3cfae; min-width: 0; font: inherit; }
@media (max-width: 560px) { .hw-form { grid-template-columns: 1fr 1fr; } .hw-form #hw-text { grid-column: 1 / -1; } .hw-form button { grid-column: 1 / -1; } }
.hw-list { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 5px; }
.hw-day { margin-top: 8px; font-weight: 800; color: #b35a00; }
.hw-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.hw-s { flex: none; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #ffe3bd; color: #8a4500; }
.hw-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hw-item .x { border: 0; background: none; cursor: pointer; color: #999; }

/* photos */
.img-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; grid-column: 1 / -1; }
.img-btn { cursor: pointer; padding: 7px 14px; border-radius: 99px; }
.img-prev { position: relative; width: 100%; }
.img-prev img { max-width: 220px; max-height: 160px; border-radius: 10px; display: block; }
.img-prev .x { position: absolute; left: 196px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.post-img { display: block; max-width: min(100%, 360px); max-height: 260px; margin-top: 8px; border-radius: 10px; cursor: zoom-in; object-fit: cover; }
.hw-item.has-img { flex-wrap: wrap; } .hw-item.has-img .post-img { flex-basis: 100%; max-height: 200px; }
.img-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 6px; }

/* グループチャット */
.chat-log { height: 56vh; min-height: 300px; overflow-y: auto; padding: 10px; background: #f3f5fb; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; font-size: .72rem; color: #6b7088; background: #e4e8f5; padding: 2px 10px; border-radius: 99px; margin: 6px 0; }
.chat-row { display: flex; justify-content: flex-start; }
.chat-row.me { justify-content: flex-end; }
.chat-bub { position: relative; max-width: 80%; padding: 7px 11px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); word-break: break-word; }
.chat-row.me .chat-bub { background: #d9f2d4; }
.chat-who { display: block; font-size: .7rem; font-weight: 700; color: #5a3fd0; margin-bottom: 2px; }
.chat-txt { white-space: pre-wrap; line-height: 1.5; }
.chat-time { display: block; text-align: right; font-size: .66rem; color: #8a8fa6; margin-top: 2px; }
.chat-bub img { max-width: 100%; max-height: 220px; border-radius: 8px; margin-top: 4px; cursor: zoom-in; display: block; }
.chat-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #e7e7ee; color: #555; font-size: .65rem; line-height: 20px; padding: 0; cursor: pointer; opacity: .85; }
.chat-empty { margin: auto; color: #8a8fa6; font-size: .9rem; }
.chat-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chat-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #cfd4e6; border-radius: 12px; font: inherit; resize: vertical; }

/* ===== マイ記録：通知 ===== */
.pu-card { margin: 0 0 14px; padding: 16px 16px 14px; border-radius: 18px; background: #fff; border: 1px solid #e6e9f2; box-shadow: 0 6px 18px rgba(40,30,110,.06); }
.pu-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.pu-card p { margin: 0; }
.pu-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #f1eefe, #fdf0f7); border-color: #e7e0fb; }
.pu-hero-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; background: linear-gradient(135deg, #7a5af8, #e86fb0); box-shadow: 0 8px 18px rgba(122,90,248,.3); }
.pu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pu-row .primary { flex: none; margin: 0; height: 44px; padding: 0 18px; border-radius: 12px; }
.pu-on { color: #12a067; }
.pu-tests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pu-tests .chip { margin: 0; }
.pu-off { color: #b3342b; border-color: #f3c9c4; }
.pu-msg { min-height: 1.2em; margin: 8px 0 0; font-size: .86rem; font-weight: 700; color: #12a067; }
.pu-msg.bad { color: #d93a5b; }
.pu-steps { margin: 10px 0 0; padding-left: 1.4em; line-height: 1.9; font-size: .92rem; }
.pu-steps small { color: var(--muted); }
.pu-ic { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 8px; background: #eef2ff; color: #2b5ce6; font-weight: 700; font-size: .85rem; vertical-align: 1px; }
.pu-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f5f6fb; font-weight: 700; font-size: .92rem; }
.pu-time input, .pu-add input[type=time], .pu-add select { height: 42px; padding: 0 10px; font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid #dfe3ee; border-radius: 11px; }
.pu-time input:disabled { opacity: .45; }
.pu-switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.pu-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pu-switch span { position: absolute; inset: 0; border-radius: 99px; background: #d5d9e4; transition: background .2s; }
.pu-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.pu-switch input:checked + span { background: linear-gradient(135deg, #7a5af8, #a35cf0); }
.pu-switch input:checked + span::after { transform: translateX(22px); }
.pu-switch input:focus-visible + span { outline: 2px solid #7a5af8; outline-offset: 2px; }
.pu-switch.sm { width: 44px; height: 26px; }
.pu-switch.sm span::after { width: 20px; height: 20px; }
.pu-switch.sm input:checked + span::after { transform: translateX(18px); }
.pu-plans { list-style: none; margin: 12px 0; padding: 0; }
.pu-plan { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #eef0f6; }
.pu-plan.off { opacity: .5; }
.pu-pt { flex: none; min-width: 3.3em; font-size: 1.2rem; font-weight: 900; color: #4b3bb5; font-variant-numeric: tabular-nums; }
.pu-pm { flex: 1; min-width: 0; line-height: 1.35; }
.pu-pm b { display: block; }
.pu-pm small { color: var(--muted); }
.pu-plan .x { flex: none; }
.pu-empty { padding: 12px 4px; color: var(--muted); font-size: .88rem; }
.pu-add { padding: 12px; border-radius: 14px; background: #f7f6fd; }
.pu-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pu-day { width: 38px; height: 38px; padding: 0; font: inherit; font-weight: 800; color: #5d6a80; background: #fff; border: 2px solid #e1e4ee; border-radius: 50%; cursor: pointer; }
.pu-day.sun { color: #d93a5b; } .pu-day.sat { color: #2b6fd6; }
.pu-day.on { color: #fff; background: #7a5af8; border-color: #7a5af8; }
.pu-every { width: auto; padding: 0 12px; border-radius: 99px; font-size: .8rem; }
.pu-add-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.pu-add-row select { min-width: 0; }
.pu-add .primary { width: 100%; margin-top: 10px; }
.pu-foot { text-align: center; }
.me-tabs { grid-template-columns: repeat(3, 1fr); }
.me-tabs .chip { white-space: nowrap; }
#pu-device .pu-row { flex-direction: column; align-items: stretch; }
#pu-device .pu-row .primary { width: 100%; height: 48px; }
.pu-add-row { grid-template-columns: 1fr 1.25fr .9fr; }
.pu-add-row > * { width: 100%; min-width: 0; }
.pu-add-row { grid-template-columns: 1fr 1fr; }
.pu-add-row #pu-p-subj { grid-column: 1 / -1; order: 3; }
/* 6組：通知タブは青 */
.pu-hero { background: linear-gradient(135deg, #eaf3ff, #e9f8ff); border-color: #d3e6fb; }
.pu-hero-ico { background: linear-gradient(135deg, #1fb6f5, #2a7cf6 60%, #1e3fc4); box-shadow: 0 8px 18px rgba(42,124,246,.3); }
.pu-switch input:checked + span { background: linear-gradient(135deg, #1fb6f5, #2a7cf6); }
.pu-switch input:focus-visible + span { outline-color: #2a7cf6; }
.pu-day.on { background: #2a7cf6; border-color: #2a7cf6; }
.pu-pt { color: #1e57c8; }
.pu-add { background: #f2f7ff; }
#tab-push .primary { background: linear-gradient(135deg, #2a7cf6, #1e57c8); }
#tab-push h3::before { background: #2a7cf6; }

/* 通知タブ：iPhoneでの崩れを修正（時刻欄のはみ出し・曜日の折り返し） */
.pu-add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pu-add-row > * { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.pu-add input[type=time], .pu-time input[type=time] { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; min-width: 0; height: 46px; padding: 0 12px; line-height: 46px; text-align: center; background: #fff; }
.pu-add input[type=time] { width: 100%; }
.pu-time input[type=time] { width: 112px; flex: none; }
.pu-add input[type=time]::-webkit-date-and-time-value, .pu-time input[type=time]::-webkit-date-and-time-value { text-align: center; margin: 0; }
.pu-add select { height: 46px; -webkit-appearance: none; appearance: none; padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7385' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.pu-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.pu-day { width: 100%; height: auto; aspect-ratio: 1; padding: 0; font-size: .9rem; }
.pu-every { width: 100%; padding: 0; border-radius: 50%; font-size: .68rem; letter-spacing: -.02em; }
.pu-plan .x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; font-size: .85rem; color: #8a93a3; background: #f1f3f8; border: 0; border-radius: 50%; cursor: pointer; }
.pu-plan .x:active { background: #ffe3e3; color: #d93a5b; }
/* 学校の時間割変更（掲示の読み取り） */
.ttd-list li.chg { background: #fff3f3; border: 2px solid #e5484d; }
.ttd-list li.chg .n { background: #e5484d; color: #fff; }
.ttd-list li.chg b { color: #c4262c; }
.jk-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 99px; background: #e5484d; color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; vertical-align: 2px; }
.ttd-list .tm.jk-red { color: #d92d33; font-weight: 800; }
.jk-cell { height: 34px; width: auto; margin-right: 6px; vertical-align: middle; border-radius: 4px; border: 1px solid #f1c4c6; background: #fff; }
.ttd-list .tc { display: flex; align-items: center; justify-content: flex-end; }
.jk-box { margin: 6px 0 10px; padding: 10px 14px; border-radius: 12px; background: #f6f7fb; font-size: .88rem; line-height: 1.6; }
.jk-box b { display: block; }
.jk-box small { display: block; color: var(--muted); font-size: .72rem; }
.jk-alert { background: #fff1f1; color: #9b1c21; }
.jk-full { display: block; width: 100%; height: auto; margin: 8px 0 4px; border-radius: 8px; border: 1px solid #eee; }
.jk-src { margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; background: #f6f7fb; font-size: .85rem; }
.jk-src summary { cursor: pointer; font-weight: 800; color: #3b3f55; }
.jk-src[open] summary { margin-bottom: 8px; }
.jk-src img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #e3e6ef; background: #fff; }
.jk-src small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.pu-row.pu-sep { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eceef5; }
footer .ft-links { margin: 0 0 6px; font-size: .85rem; } footer .ft-links a { color: inherit; opacity: .8; } footer .ft-about { margin: 0 auto 6px; max-width: 520px; font-size: .78rem; opacity: .75; }

/* スマホに追加する方法へのリンク */
.ins-banner { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 3px 12px rgba(20,40,70,.07); }
.ins-banner[hidden] { display: none; }
.ins-banner .ib-ico { flex: none; font-size: 1.6rem; }
.ins-banner .ib-t { flex: 1; min-width: 0; }
.ins-banner b { display: block; font-size: .95rem; }
.ins-banner small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.ins-banner .ib-go { flex: none; color: var(--muted); font-weight: 800; }

.pu-os { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 0 4px; padding: 4px; border-radius: 12px; background: #eceef5; }
.pu-os button { appearance: none; border: 0; border-radius: 9px; padding: 9px; background: transparent; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.pu-os button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.pu-steps[hidden] { display: none; }
