/* Same identity as the grader and the other school tools: white card on a grey ground, teal primary */
:root {
  --bg: #E8E8E9; --card: #ffffff; --ink: #16212b; --muted: #5c6873; --line: #e3e8ec; --soft: #f5f7f9;
  --pri: #0b6e8a; --pri-2: #085a71; --pri-soft: #e2f0f4;
  --ok: #15803d; --ok-soft: #e4f4ea; --warn: #a9570a; --warn-soft: #fdf2df; --bad: #b42318; --bad-soft: #fdeceb;
  --r: 14px; --shell-m: 40px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); }
:focus-visible { outline: 2px solid rgba(11, 110, 138, .35); outline-offset: 2px; }

/* the card */
.shell {
  max-width: 920px; margin: var(--shell-m) auto;
  min-height: calc(100dvh - 2 * var(--shell-m));
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid #d5dbe1; border-radius: 28px;
  box-shadow: 0 12px 40px rgba(12, 52, 66, .10);
  overflow: clip;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 12px; }
.brand:hover .brand-mark { opacity: .9; }
.brand-mark { display: block; flex: none; }
.brand strong { display: block; font-size: 16px; line-height: 1.25; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.top-end { display: flex; align-items: center; gap: 8px; }
.privacy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #166534; background: var(--ok-soft); border: 1px solid #bfe3cb; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
main { padding: 28px 32px 36px; flex: 1; }
.credit { padding: 12px 28px 14px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }

.label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin: 0 0 4px; }
.faint { color: #8a949d; font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }

/* buttons */
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 15px; border-radius: 10px; cursor: pointer; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.ghost:hover { background: var(--soft); border-color: #cfd6dd; }
.ghost.accent { color: var(--pri); }
.ghost.danger { color: var(--bad); }
.ghost.danger:hover { background: var(--bad-soft); border-color: #f3c2bd; }
.ghost.sm { padding: 4px 11px; font-size: 13.5px; }
.ghost.icon { border: 0; background: transparent; width: 32px; height: 32px; padding: 0; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--muted); }
.ghost.icon:hover { background: #eef1f4; color: var(--ink); }
.primary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pri); background: var(--pri); color: #fff; padding: 7px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: background .15s; }
.primary:hover { background: var(--pri-2); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--pri); cursor: pointer; padding: 0; font-size: 12.5px; font-weight: 500; }

.ai .dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c0c7; flex: none; }
.ai.ready .dot { background: var(--ok); }
.ai span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* hero with numbered steps */
.intro { text-align: center; margin-bottom: 28px; padding-top: 28px; }
.intro h1 { font-size: 24px; line-height: 1.35; margin: 0 0 8px; }
.intro p { margin: 0 auto; color: var(--muted); max-width: 58ch; }
.flow { list-style: none; margin: 20px auto 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 12px; counter-reset: s; }
.flow li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.flow li::before { content: counter(s, arabic-indic); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--pri); color: #fff; font-size: 12px; font-weight: 700; }
.flow li:not(:last-child)::after { content: ''; width: 7px; height: 7px; flex: none; border-left: 2px solid #9aa4ad; border-bottom: 2px solid #9aa4ad; transform: rotate(45deg); margin-inline-start: 8px; }

.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; margin-bottom: 16px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; background: var(--warn-soft); color: #6f3a06; border: 1px solid #f5d9a8; }

/* the two files */
.drops { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.arrow { align-self: center; color: #9aa4ad; font-size: 20px; }
.drop { display: flex; flex-direction: column; gap: 2px; min-height: 124px; padding: 16px 18px; border: 1.5px dashed #cdd5dc; border-radius: var(--r); cursor: pointer; background: var(--soft); transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--pri); background: var(--pri-soft); }
.drop .label { font-weight: 600; color: var(--ink); font-size: 14px; }
.drop .name { color: var(--muted); overflow-wrap: anywhere; }
.drop .types { color: #8a949d; font-size: 12px; margin-top: auto; }
.drop.has { border-style: solid; border-color: #b9d6df; background: #fbfdfd; }
.drop.has .name { color: var(--pri); font-weight: 500; }
.drop.has .name::before { content: "✓ "; }

.opts { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.grow { flex: 1 1 320px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { border: 1px solid #d3dae1; border-radius: 9px; padding: 7px 10px; background: #fff; width: 100%; min-height: 38px; }
input::placeholder, textarea::placeholder { color: #a3adb6; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11, 110, 138, .22); border-color: var(--pri); }
textarea { resize: vertical; line-height: 1.65; }
select { min-width: 210px; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

/* progress */
.head { display: flex; align-items: center; justify-content: space-between; }
.head .label { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.steps li { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8a949d; white-space: nowrap; }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 1px; background: #cdd5dc; margin: 0 8px; }
.steps li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #cdd5dc; }
.steps li.now { color: var(--ink); font-weight: 500; }
.steps li.now::before { border-color: var(--pri); background: var(--pri); animation: pulse 1.4s ease-in-out infinite; }
.steps li.done { color: var(--muted); }
.steps li.done::before { border-color: var(--ok); background: var(--ok); }
.steps .n { font-size: 11.5px; padding: 0 7px; border-radius: 99px; background: #eef1f4; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
#progress { padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#progress .head { order: 2; margin-inline-start: auto; }
#progress .head .label { display: none; }
#progress .steps { order: 1; flex: 1 1 auto; min-width: 0; }
#progress .error { order: 3; flex-basis: 100%; margin-top: 4px; }
@keyframes pulse { 50% { opacity: .35; } }
.error { margin-top: 12px; padding: 9px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); border: 1px solid #f3c2bd; white-space: pre-wrap; font-size: 13.5px; }

/* review */
.review-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.review-head h2 { font-size: 18px; margin: 0 0 2px; }
.lists { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.note { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 13.5px; }
.note.warn { background: var(--warn-soft); border-color: #f5d9a8; }
.note summary { padding: 8px 14px; cursor: pointer; font-weight: 500; list-style: none; display: flex; gap: 8px; align-items: center; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: ''; width: 6px; height: 6px; border-left: 2px solid #9aa4ad; border-bottom: 2px solid #9aa4ad; transform: rotate(-45deg); margin-inline-start: auto; transition: transform .15s; }
.note[open] summary::after { transform: rotate(135deg); }
.note b { font-size: 12px; padding: 0 8px; border-radius: 99px; background: #fff; color: var(--muted); }
.note ul { margin: 0; padding: 0 14px 10px; padding-inline-start: 32px; color: var(--muted); }

/* sections */
.sec { border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; overflow: clip; }
.sec > summary { padding: 9px 16px; background: var(--pri-soft); color: var(--pri); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::before { content: ''; width: 6px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .15s; flex: none; }
.sec > summary::before { transform: rotate(45deg); }
.sec[open] > summary::before { transform: rotate(-45deg); }

/* a single field: name | value | × */
.frow { display: grid; grid-template-columns: minmax(130px, 30%) 1fr 52px; gap: 12px; align-items: start; padding: 8px 16px; border-top: 1px solid var(--line); }
.sec > summary + .frow { border-top: 0; }
.fl { font-size: 13.5px; font-weight: 500; color: var(--muted); padding-top: 6px; overflow-wrap: anywhere; }
.fl small { display: block; font-weight: 400; font-size: 12px; color: #8a949d; }
.frow textarea, .tpl textarea { min-height: 34px; padding: 5px 9px; overflow: hidden; resize: none; unicode-bidi: plaintext; line-height: 1.6; }
.chk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 500; font-size: 13.5px; }

/* × to leave something out */
.x { flex: none; width: 26px; height: 26px; margin-top: 4px; border: 0; border-radius: 7px; background: transparent; color: #9aa4ad; cursor: pointer; font-size: 17px; line-height: 1; }
.x:hover { background: var(--bad-soft); color: var(--bad); }
.chk .x { width: 20px; height: 20px; margin: 0; font-size: 14px; }
.off textarea, .off .chk, .chk.off { text-decoration: line-through; opacity: .45; }
.off .x { color: var(--pri); }
.off .x:hover { background: var(--pri-soft); color: var(--pri); }

/* template tables shown as tables */
.tblwrap { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.sec > summary + .tblwrap { border-top: 0; }
.tblnote { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.newdot { width: 10px; height: 10px; border-radius: 3px; background: #eaf6ee; border: 1px solid #bfe3cb; }
.scroll { overflow-x: auto; }
.tpl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tpl td { border: 1px solid var(--line); padding: 4px; vertical-align: top; }
.tpl td.static { padding: 7px 10px; color: var(--muted); background: var(--soft); }
.tpl td.th { font-weight: 600; color: var(--ink); background: #eef1f4; }
.tpl td.edit { min-width: 140px; }
.tpl .cw { display: flex; gap: 4px; align-items: start; }
.tpl .cw textarea { border-color: transparent; background: transparent; }
.tpl .cw textarea:hover { border-color: #d3dae1; }
.tpl .cw textarea:focus { background: #fff; }
.tpl .cw .x { margin-top: 3px; }
.tpl tr.new td { background: #f3faf5; }
.tpl tr.gap td { text-align: center; color: #9aa4ad; padding: 0; background: #fff; letter-spacing: .2em; }
.was { font-size: 12px; color: #8a949d; padding: 2px 9px 0; }

/* several old files */
.flist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.flist:empty { display: none; }
.flist li { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 4px 2px 10px; padding-inline-start: 10px; font-size: 13px; }
.flist li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist .x { margin: 0; width: 22px; height: 22px; font-size: 15px; }

/* check results */
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 99px; border: 1px solid transparent; }
button.vchip { cursor: pointer; }
.vchip b { font-weight: 700; }
.vchip.ok { background: var(--ok-soft); color: var(--ok); }
.vchip.src { background: var(--pri-soft); color: var(--pri); }
.vchip.warn { background: var(--warn-soft); color: var(--warn); border-color: #f5d9a8; }
.vchip.cov { background: #eef1f4; color: var(--ink); }
.vchip.cov.low { background: var(--warn-soft); color: var(--warn); }
button.vchip:hover { filter: brightness(.97); }

.acts { display: flex; align-items: flex-start; gap: 2px; flex: none; }
.vb { flex: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.vb.ok { background: var(--ok-soft); color: var(--ok); }
.vb.src { background: var(--pri-soft); color: var(--pri); }
.vb.warn { background: var(--warn); color: #fff; }
.v-warn > .fv textarea, td.v-warn textarea, tr.v-warn textarea { border-color: #f0b46b !important; background: #fffaf2; }
.srcline { font-size: 12.5px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 5px 10px; margin-top: 4px; line-height: 1.6; }
.srcline.v-warn { background: var(--warn-soft); color: #6f3a06; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: inset 0 0 0 2px var(--warn); } to { box-shadow: inset 0 0 0 2px transparent; } }

/* empty places in the template */
.frow.gap .fl small { color: #8a949d; }
.gap textarea, .gapcell textarea { border-style: dashed !important; border-color: #cdd5dc !important; background: #fbfcfd !important; }
.typed textarea { border-style: solid !important; border-color: var(--pri) !important; background: #fff !important; }
.tpl td.gapcell { background: #fbfcfd; }
.sec > summary em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); background: #fff; border-radius: 99px; padding: 0 8px; margin-inline-start: auto; }

/* result: the short version */
.result-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.result-head h2 { margin: 0; font-size: 19px; }
.scard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 8px; margin-bottom: 12px; background: #fff; }
.scard.ok { padding-bottom: 14px; background: var(--ok-soft); border-color: #bfe3cb; }
.scard.ok h3 { color: var(--ok); }
.scard.warn { background: #fffdf8; border-color: #f5d9a8; }
.sh { display: flex; align-items: center; gap: 8px; }
.sh h3 { margin: 0; font-size: 15px; }
.sh b { font-size: 12px; padding: 0 9px; border-radius: 99px; background: #eef1f4; color: var(--muted); }
.scard.warn .sh b { background: var(--warn-soft); color: var(--warn); }
.scard > .hint { margin: 4px 0 8px; }
.mrow { display: grid; grid-template-columns: minmax(150px, 34%) 1fr auto; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.ml { font-weight: 500; padding-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.mv { min-width: 0; }
.mv textarea { min-height: 34px; padding: 5px 9px; resize: none; overflow: hidden; border-style: dashed; unicode-bidi: plaintext; }
.mv textarea:not(:placeholder-shown) { border-style: solid; border-color: var(--pri); }
.later { display: inline-block; padding-top: 6px; font-size: 13px; color: var(--muted); }
.prop { padding: 5px 0; line-height: 1.7; unicode-bidi: plaintext; }
.mrow .seg { margin-top: 2px; }
.mrow .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.mrow .seg button[data-on][aria-pressed="true"] { color: var(--ok); }
.note .pct { margin-inline-start: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.detail-toggle { text-align: center; margin: 16px 0 4px; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.opt input { accent-color: var(--pri); width: 15px; height: 15px; }

/* fields left for the user: small tags, typing folded away */
.mtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.mtag { font-size: 13px; padding: 2px 11px; border-radius: 99px; background: #fff7e0; border: 1px solid #f3dc9a; color: #6f4e06; }
.mtag.done { background: var(--ok-soft); border-color: #bfe3cb; color: var(--ok); }
.mtag.done::before { content: "✓ "; }
.now { border-top: 1px solid var(--line); margin: 0 -18px; padding: 0 18px; }
.now > summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 500; color: var(--pri); list-style: none; }
.now > summary::-webkit-details-marker { display: none; }
.now > summary::after { content: " ▾"; font-size: 11px; }
.now[open] > summary::after { content: " ▴"; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; padding-bottom: 10px; }
.mcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcell span { font-size: 12px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell textarea { min-height: 30px; padding: 3px 8px; font-size: 13.5px; resize: none; overflow: hidden; border-style: dashed; unicode-bidi: plaintext; }
.mcell textarea:not(:placeholder-shown) { border-style: solid; border-color: var(--pri); }

/* a rebuilt presentation: one line per slide */
.dlist { list-style: none; margin: 8px 0 6px; padding: 0; }
.dlist li { border-top: 1px solid var(--line); }
.dlist summary { display: flex; align-items: center; gap: 10px; padding: 7px 2px; cursor: pointer; list-style: none; }
.dlist summary::-webkit-details-marker { display: none; }
.dn { flex: none; width: 26px; height: 22px; border-radius: 6px; background: #eef1f4; color: var(--muted); font-size: 12px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.dt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.dd { flex: none; font-size: 12px; color: var(--muted); background: var(--pri-soft); color: var(--pri); padding: 0 9px; border-radius: 99px; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist .x { margin: 0; }
.dv { flex: none; font-size: 12px; color: var(--ok); background: var(--ok-soft); padding: 0 8px; border-radius: 99px; }
.dlist li.off .dt, .dlist li.off .dd { text-decoration: line-through; opacity: .45; }
.dbox { display: grid; gap: 8px; padding: 4px 36px 12px 2px; }
.dfield { display: flex; flex-direction: column; gap: 2px; }
.dfield span { font-size: 12px; color: var(--muted); font-weight: 500; }
.dfield textarea { min-height: 32px; padding: 4px 9px; font-size: 14px; resize: none; overflow: hidden; unicode-bidi: plaintext; }

/* action bar stays at the bottom of the card while reviewing */
.bar { position: sticky; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 2; }
.bar-in { padding: 12px 28px; display: flex; align-items: center; gap: 10px; }
.bar-in .hint { margin-inline-end: auto; }

/* dialog */
dialog { border: 1px solid #d5dbe1; border-radius: 20px; background: #fff; color: var(--ink); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(12, 52, 66, .18); }
dialog::backdrop { background: rgba(22, 33, 43, .35); }
.dlg { padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.dlg h2 { font-size: 17px; margin: 0; }
.dlg .close { position: absolute; top: 14px; inset-inline-end: 14px; }
.dlg .label { display: flex; justify-content: space-between; align-items: baseline; }
.dlg .label a { font-weight: 500; font-size: 12.5px; }
.dlg-actions { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.dlg-actions .sp { flex: 1; }
.seg { display: inline-flex; flex-wrap: wrap; background: #eef1f4; padding: 3px; border-radius: 10px; gap: 2px; width: fit-content; max-width: 100%; }
.seg button, .seg label span { border: 0; background: transparent; padding: 5px 13px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--muted); display: inline-flex; }
.seg button[aria-checked="true"], .seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg label { position: relative; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
#aiMsg.ok { color: var(--ok); }
#aiMsg.bad { color: var(--bad); }

@media (max-width: 600px) {
  :root { --shell-m: 0px; }
  .shell { border: 0; border-radius: 0; box-shadow: none; }
  .topbar { padding: 12px 16px; }
  main { padding: 20px 16px 28px; }
  .bar-in { padding: 10px 16px; }
  .drops { grid-template-columns: 1fr; }
  .arrow { transform: rotate(-90deg); justify-self: center; }
  .brand small, .privacy { display: none; }
  .ai span { max-width: 130px; }
  .frow { grid-template-columns: 1fr auto; }
  .mrow { grid-template-columns: 1fr; gap: 4px; }
  .ml { padding-top: 0; }
  .bar-in { flex-wrap: wrap; }
  .bar-in .hint { flex-basis: 100%; }
  .frow .fl { grid-column: 1 / -1; padding-top: 0; }
  select { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
