/* My Class (crux-teacher.html): the teacher's binder. Sidebar app, dark CRUX theme. */
:root { --navy: #0b0e1c; --side: #12162b; --panel: #171b31; --panel2: #20254a; --line: rgba(255,255,255,0.08); --gold: #d4a574; --gold-l: #e8c99a; --soft: rgba(255,255,255,0.75); --muted: rgba(255,255,255,0.5); --green: #7fd1a8; --red: #ef8a8a; --sans: 'Inter', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--navy); color: #fff; font-family: 'Crimson Pro', Georgia, serif; min-height: 100vh; }
a { color: inherit; }
button { font-family: var(--sans); }
[hidden] { display: none !important; }

/* ── Loading and sign-in ── */
.center { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(212,165,116,0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font: 500 0.85rem var(--sans); color: var(--muted); margin-top: 1rem; text-align: center; }
.auth { width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 1.6rem; }
.auth-logo a { font: 900 2rem 'Playfair Display', serif; letter-spacing: 8px; color: var(--gold); text-decoration: none; }
.auth-logo p { font: 700 0.62rem var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.auth-card h1 { font: 900 1.6rem 'Playfair Display', serif; }
.auth-card .sub { color: var(--soft); font-size: 1.05rem; margin: 0.3rem 0 1.3rem; line-height: 1.45; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.auth-toggle { text-align: center; font: 500 0.82rem var(--sans); color: var(--muted); margin-top: 1.1rem; }
.auth-toggle button { background: none; border: 0; color: var(--gold); font: 600 0.82rem var(--sans); cursor: pointer; }
.auth-free { margin-top: 1.2rem; padding: 0.9rem 1rem; border: 1px solid rgba(127,209,168,0.25); background: rgba(127,209,168,0.06); border-radius: 10px; font: 500 0.8rem var(--sans); color: var(--soft); line-height: 1.5; }
.auth-free a { color: var(--green); font-weight: 700; }
.msg { display: none; font: 500 0.8rem var(--sans); border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem; line-height: 1.4; }
.msg.err { display: block; background: rgba(239,138,138,0.1); border: 1px solid rgba(239,138,138,0.35); color: var(--red); }
.msg.ok { display: block; background: rgba(127,209,168,0.1); border: 1px solid rgba(127,209,168,0.35); color: var(--green); }

/* ── App shell ── */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
aside { background: var(--side); border-right: 1px solid var(--line); padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.logo { font: 900 1.15rem 'Playfair Display', serif; letter-spacing: 5px; color: var(--gold); text-decoration: none; display: block; padding: 0 0.6rem; }
.who { margin: 1.3rem 0.6rem 1rem; }
.who b { font: 700 1.15rem 'Playfair Display', serif; display: block; }
.who span { font: 500 0.72rem var(--sans); color: var(--muted); }
.codechip { margin: 0 0.6rem 0.6rem; padding: 0.75rem 0.85rem; border: 1px dashed rgba(212,165,116,0.45); border-radius: 10px; }
.codechip small { font: 700 0.56rem var(--sans); letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.codechip b { display: block; font: 800 1.1rem var(--sans); letter-spacing: 3px; color: var(--gold-l); margin-top: 0.15rem; }
.codechip button, .codechip a { margin-top: 0.4rem; font: 600 0.66rem var(--sans); color: var(--gold); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none; }
.nav-g { font: 700 0.56rem var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); padding: 1rem 0.6rem 0.4rem; }
.nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.65rem; border-radius: 8px; text-decoration: none; font: 600 0.84rem var(--sans); color: var(--soft); }
.nav a span { width: 1.3rem; text-align: center; }
.nav a small { margin-left: auto; font: 700 0.62rem var(--sans); color: var(--muted); }
.nav a:hover { background: rgba(255,255,255,0.04); }
.nav a.on { background: rgba(212,165,116,0.14); color: var(--gold-l); }
.side-foot { margin-top: auto; padding: 1.2rem 0.6rem 0; display: grid; gap: 0.5rem; }
.side-foot a, .side-foot button { font: 600 0.74rem var(--sans); color: var(--muted); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; padding: 0; }
.side-foot a:hover, .side-foot button:hover { color: var(--gold); }
main { padding: 2rem 2.4rem 5rem; max-width: 1080px; width: 100%; }

/* ── Views ── */
.top { margin-bottom: 1.5rem; }
.top .eyebrow { font: 700 0.6rem var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.top h1 { font: 900 2.1rem 'Playfair Display', serif; margin-top: 0.3rem; line-height: 1.15; }
.top p { color: var(--soft); font-size: 1.08rem; margin-top: 0.3rem; max-width: 640px; }
.howto { display: flex; gap: 0.6rem; align-items: flex-start; background: rgba(127,209,168,0.07); border: 1px solid rgba(127,209,168,0.25); border-radius: 10px; padding: 0.75rem 0.9rem; font: 500 0.8rem var(--sans); color: var(--soft); margin-bottom: 1.4rem; line-height: 1.5; }
.howto b { color: var(--green); }
.howto a { color: var(--green); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; min-width: 0; }
.box h3 { font: 700 0.62rem var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.s6 { grid-column: span 6; } .tall2 { grid-row: span 2; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; } .s2 { grid-column: span 2; } .s1-5 { grid-column: span 3; }
.week { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; background: linear-gradient(140deg, rgba(212,165,116,0.16), var(--panel) 60%); border-color: rgba(212,165,116,0.35); }
.week h2 { font: 900 1.7rem 'Playfair Display', serif; margin: 0.25rem 0; line-height: 1.2; }
.week .tk { font-style: italic; color: var(--gold-l); font-size: 1.1rem; }
.week-saint { text-align: center; width: 120px; }
.week-saint .ccard { margin: 0 auto; }
.btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; font: 700 0.7rem var(--sans); letter-spacing: 0.8px; text-transform: uppercase; text-decoration: none; border-radius: 6px; padding: 0.65rem 0.95rem; border: 1.5px solid rgba(212,165,116,0.35); color: var(--gold); background: none; cursor: pointer; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn.wide { width: 100%; justify-content: center; padding: 0.85rem; font-size: 0.76rem; }
.btn.sm { padding: 0.45rem 0.7rem; font-size: 0.62rem; }
.btn.danger { color: var(--red); border-color: rgba(239,138,138,0.3); }
.btn:disabled { opacity: 0.5; cursor: default; }
.todo label { display: flex; gap: 0.55rem; font-size: 1.02rem; color: var(--soft); padding: 0.35rem 0; cursor: pointer; line-height: 1.35; }
.todo input { accent-color: var(--gold); margin-top: 0.25rem; flex: none; }
.todo label.done { color: var(--muted); text-decoration: line-through; }
.big { font: 900 2rem 'Playfair Display', serif; } .lbl { font: 600 0.6rem var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.list { display: grid; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li b { font: 700 1.02rem 'Playfair Display', serif; } .li small { display: block; font: 500 0.7rem var(--sans); color: var(--muted); margin-top: 0.1rem; line-height: 1.4; }
.pills { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.pill { font: 600 0.64rem var(--sans); text-decoration: none; color: var(--gold); border: 1px solid rgba(212,165,116,0.3); border-radius: 30px; padding: 0.28rem 0.6rem; white-space: nowrap; background: none; cursor: pointer; }
.pill:hover { border-color: var(--gold); }
.pill.off { color: var(--muted); border-color: var(--line); cursor: default; }
.tag { font: 700 0.56rem var(--sans); letter-spacing: 1px; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: rgba(212,165,116,0.14); color: var(--gold); margin-left: 0.4rem; vertical-align: middle; }
.tag.g { background: rgba(127,209,168,0.14); color: var(--green); }
.empty { color: var(--soft); font-size: 1.02rem; line-height: 1.5; }
.empty a { color: var(--gold); }
.picker { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: -0.6rem 0 1.2rem; font: 500 0.78rem var(--sans); color: var(--muted); }
.picker select { font: 600 0.8rem var(--sans); color: #fff; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; max-width: 100%; }

/* The Classroom Saint Pack, drawn like the one on crux-pack-classroom.html. */
.tcg { --tint: #3d6fd6; --body: inset(8.2% 4.4% 7.3% 4.4% round 1.5%); position: absolute; inset: 0;
  --metal: linear-gradient(180deg, #f2f7ff 0%, #9cc0ff 42%, #2f5fc4 100%); }
.tcg-base, .tcg-tint, .tcg-art, .tcg-foil, .tcg-shade, .tcg-sheen { position: absolute; inset: 0; }
.tcg-base { background: url(images/packs/wrapper.png) center / 100% 100% no-repeat; }
.tcg-tint { background: var(--tint); mix-blend-mode: color;
  -webkit-mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat; mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat; }
.tcg-art { background: center 20% / cover no-repeat; clip-path: var(--body);
  -webkit-mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat; mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat; }
/* The saint sits lower on the Classroom pack so the CRUX logo stays clear of the face. */
.tcg-art.low { background-color: #0b0e1c; background-size: 100% 100%, auto 80%; background-position: 0 0, center bottom; }
.tcg-foil { background: url(images/packs/wrapper.png) center / 100% 100% no-repeat; mix-blend-mode: overlay; opacity: 0.85; clip-path: var(--body); }
.tcg-shade { clip-path: var(--body); background: linear-gradient(180deg, rgba(8,10,20,0.75) 8%, rgba(8,10,20,0.1) 30%, transparent 46%, transparent 60%, rgba(8,10,20,0.55) 76%, rgba(8,10,20,0.9) 93%); }
.tcg-head { position: absolute; top: 11.5%; left: 0; right: 0; text-align: center; }
.tcg-logo { display: block; font-family: 'Playfair Display', serif; font-weight: 900; letter-spacing: 0.22em; padding-left: 0.22em; font-size: calc(var(--pw) * 0.17); line-height: 1;
  background: linear-gradient(180deg, #fff8e6 0%, #f0d29a 45%, #b8862e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)); }
.tcg-series { display: block; margin-top: 0.45em; font-size: calc(var(--pw) * 0.036); font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.tcg-mark { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; }
.tcg-name { display: block; font-family: 'Playfair Display', serif; font-weight: 900; font-size: calc(var(--pw) * 0.13); line-height: 1; letter-spacing: 0.04em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.85)) drop-shadow(0 0 1px rgba(0,0,0,0.7)); }
.tcg-count { display: block; margin-top: 0.5em; font-size: calc(var(--pw) * 0.034); font-weight: 800; letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.tcg-sheen { pointer-events: none; mix-blend-mode: soft-light; -webkit-mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat; mask: url(images/packs/wrapper.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,0.6) 46%, transparent 60%); background-size: 260% 100%; background-position: var(--mx, 50%) 0; }

.minipack { --pw: 110px; position: relative; display: block; width: var(--pw); aspect-ratio: 598 / 1078; margin: 0 auto; font-family: var(--sans); filter: drop-shadow(0 10px 16px rgba(0,0,0,0.55)); transition: transform 0.2s; }
a:hover > .minipack { transform: translateY(-3px) rotate(-1.5deg); }

/* Handouts */
.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters button { font: 600 0.72rem var(--sans); color: var(--soft); background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: 0.45rem 0.85rem; cursor: pointer; }
.filters button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.hcard .k { font: 700 0.56rem var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.hcard b { font: 700 1.05rem 'Playfair Display', serif; }
.hcard p { font-size: 0.95rem; color: var(--soft); line-height: 1.4; flex: 1; }
.hcard .from { font: 500 0.68rem var(--sans); color: var(--muted); text-decoration: none; }
.hcard .from:hover { color: var(--gold); }

/* Saints */
.binder { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.binder .ccard { width: 96px; }
.bcell { width: 96px; text-align: center; }
.bcell small { display: block; font: 500 0.6rem var(--sans); color: var(--muted); margin-top: 0.3rem; }
.slot { width: 96px; aspect-ratio: 2/3; border: 1.5px dashed rgba(255,255,255,0.12); border-radius: 8px; display: grid; place-items: center; font: 600 0.6rem var(--sans); color: var(--muted); text-align: center; padding: 0.4rem; text-decoration: none; line-height: 1.4; }
.slot:hover { border-color: rgba(212,165,116,0.5); color: var(--gold); }

/* Students */
.join { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.join .code { font: 800 2rem var(--sans); letter-spacing: 5px; color: var(--gold-l); }
.join ol { padding-left: 1.2rem; color: var(--soft); font-size: 1.02rem; line-height: 1.55; }
.join ol b { color: #fff; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 0.8rem; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.row:last-child { border-bottom: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: var(--gold); }
.row b { font-size: 0.86rem; } .row small { display: block; font-size: 0.68rem; color: var(--muted); }
.row .det { color: var(--soft); }
.row .acts { display: flex; gap: 0.35rem; }
.xp { font: 700 0.8rem var(--sans); color: var(--gold-l); white-space: nowrap; text-align: right; }
.xp small { font-weight: 500; color: var(--muted); }

/* Forms */
.field { margin-bottom: 0.9rem; } .field label, .flabel { display: block; font: 700 0.62rem var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.field .hint { display: block; font: 500 0.72rem var(--sans); color: var(--muted); margin: -0.15rem 0 0.4rem; }
.field input, .field textarea, .field select { width: 100%; font: 500 0.88rem var(--sans); color: #fff; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(212,165,116,0.6); }
.field input:disabled { opacity: 0.6; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field textarea.tall { min-height: 250px; }
.check { display: flex; gap: 0.5rem; align-items: center; font: 600 0.8rem var(--sans); color: var(--soft); cursor: pointer; margin-bottom: 0.6rem; }
.check input { accent-color: var(--gold); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.preview { position: sticky; top: 1rem; }
.preview iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 10px; background: #f0ede8; }
.status { font: 500 0.8rem var(--sans); margin-top: 0.7rem; line-height: 1.4; }
.status.err { color: var(--red); } .status.ok { color: var(--green); }
.note { font: 500 0.72rem var(--sans); color: var(--muted); margin-top: 0.6rem; line-height: 1.45; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.8rem; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.plan .k { font: 700 0.56rem var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.plan b { font: 700 1.1rem 'Playfair Display', serif; }
.plan .when { font: 500 0.72rem var(--sans); color: var(--muted); }
.plan p { color: var(--soft); font-size: 0.98rem; line-height: 1.45; white-space: pre-line; }
.plan .tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.plan .tags span { font: 600 0.6rem var(--sans); color: var(--soft); background: var(--panel2); border-radius: 4px; padding: 0.2rem 0.45rem; }
.plan .btns { margin-top: auto; padding-top: 0.5rem; }

/* Year */
.yr .li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
.yr .n { font: 900 1.1rem 'Playfair Display', serif; color: rgba(212,165,116,0.5); text-align: center; }
.yr .done .n { color: var(--green); }
.yr .now { background: rgba(212,165,116,0.08); border-radius: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 0.85rem 0; font: 600 0.88rem var(--sans); }
.faq p { color: var(--soft); font-size: 1.04rem; line-height: 1.55; padding-bottom: 0.9rem; }
.faq p a { color: var(--gold); }
.loadrow { padding: 1.2rem 0; }

/* ── Modals ── */
.modal-bg { position: fixed; inset: 0; background: rgba(5,7,15,0.75); display: none; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal-bg.open { display: flex; }
.modal { background: var(--panel); border: 1px solid rgba(212,165,116,0.3); border-radius: 16px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 1.6rem; }
.modal.wide { max-width: 600px; }
.modal h2 { font: 900 1.4rem 'Playfair Display', serif; }
.modal .sub { color: var(--soft); font-size: 1.02rem; margin: 0.2rem 0 1.1rem; }
.stars { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.stars button { font-size: 1.5rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; filter: grayscale(1); opacity: 0.45; }
.stars button.on { filter: none; opacity: 1; border-color: rgba(212,165,116,0.5); }
.xpprev { font: 600 0.78rem var(--sans); color: var(--gold-l); margin-bottom: 1rem; }
.modal-acts { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.1rem; }
.wsgrid { display: grid; gap: 0.2rem; }
.wsgrid label { display: flex; gap: 0.5rem; align-items: flex-start; font: 500 0.82rem var(--sans); color: var(--soft); padding: 0.3rem 0; cursor: pointer; }
.wsgrid input { accent-color: var(--gold); margin-top: 0.15rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(200%); visibility: hidden; background: var(--panel2); border: 1px solid rgba(212,165,116,0.4); color: #fff; font: 600 0.82rem var(--sans); padding: 0.75rem 1.2rem; border-radius: 10px; transition: transform 0.25s; z-index: 60; max-width: calc(100% - 2rem); }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .who b { font-size: 1rem; } .picker select { width: 100%; }
  aside { position: static; height: auto; padding: 1rem; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  aside .nav, aside .side-foot, .who span { display: none; }
  .who { margin: 0; flex: 1; min-width: 0; } .codechip { margin: 0; padding: 0.4rem 0.7rem; } .codechip button, .codechip a, .codechip .dot { display: none; }
  main { padding: 1.4rem 1rem 6rem; }
  .top h1 { font-size: 1.7rem; }
  .s4, .s3 { grid-column: span 6; } .tall2 { grid-row: auto; } .s2 { grid-column: span 2; padding: 0.9rem; } .s2 .big { font-size: 1.4rem; }
  .week { grid-template-columns: 1fr; } .week-saint { display: none; }
  .join { grid-template-columns: 1fr; gap: 0.8rem; }
  .row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .row .acts { grid-column: 2 / -1; }
  .compose { grid-template-columns: 1fr; }
  .preview { position: static; } .preview iframe { height: 480px; }
  .two, .auth-two { grid-template-columns: 1fr; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #12162b; border-top: 1px solid var(--line); overflow-x: auto; }
  .tabbar a { flex: 1 0 auto; text-align: center; padding: 0.55rem 0.6rem 0.65rem; font: 600 0.6rem var(--sans); color: var(--muted); text-decoration: none; }
  .tabbar a span { display: block; font-size: 1.1rem; }
  .tabbar a.on { color: var(--gold); }
  .toast { bottom: 5rem; }
}
