/* Teme Matematică — stil comun, gândit întâi pentru telefon */
:root {
  --bg: #f4f5f1;
  --card: #ffffff;
  --ink: #18213a;
  --muted: #667085;
  --line: #e2e4dc;
  --accent: #1f4fb8;
  --accent-soft: #e8eefb;
  --ok: #157f3b;
  --ok-soft: #e5f4ea;
  --warn: #a85a07;
  --warn-soft: #fdf1df;
  --bad: #bf2630;
  --bad-soft: #fbe9ea;
  --redo: #c2410c;
  --redo-soft: #fdeee6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 33, 58, .06), 0 4px 14px rgba(24, 33, 58, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin: .4rem 0 1rem; font-weight: 700; letter-spacing: -.01em; }
h2, .h2like { font-size: 1.12rem; margin: 0 0 .75rem; font-weight: 650; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
h1 .small, h2 .small { font-family: system-ui, sans-serif; font-weight: 400; }
code { background: #f0f1ec; padding: .05em .35em; border-radius: 5px; font-size: .92em; }
code.pw { font-size: 1.2rem; padding: .2em .6em; letter-spacing: .05em; background: #fff; border: 1px dashed var(--ok); }
img { max-width: 100%; height: auto; }

/* ---------- structură ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.topbar-in { max-width: 1040px; margin: 0 auto; padding: .55rem 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 650; flex: 1; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; flex: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(255, 255, 255, .08); }
.who { font-size: .9rem; opacity: .9; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); min-width: 220px; padding: .4rem; display: flex; flex-direction: column; }
.menu nav a, .menu nav .linklike { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; text-align: left; width: 100%; font: inherit; }
.menu nav a:hover, .menu nav .linklike:hover, .menu nav a.active { background: var(--accent-soft); }
.menu nav form { margin: 0; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.linklike { background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 16px 16px 90px; }
.foot { text-align: center; padding: 1.5rem 16px 2rem; font-size: .85rem; color: var(--muted); }
.foot a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.txt-bad { color: var(--bad); } .txt-warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.big-icon { font-size: 2.6rem; margin: .5rem 0; }
.big-num { font-size: 1.6rem; font-weight: 700; margin: 0 0 .5rem; }
.big-num .muted { font-size: 1rem; font-weight: 400; }

/* ---------- mesaje ---------- */
.flash, .banner { padding: .7rem .9rem; border-radius: 10px; margin: 0 0 12px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); border-color: #bfe3cb; }
.flash.bad, .banner.bad { background: var(--bad-soft); border-color: #f1c4c7; color: #7d1219; }
.flash.warn, .banner.warn { background: var(--warn-soft); border-color: #f2d6ab; color: #6b3b06; }
.flash.info { background: var(--accent-soft); border-color: #c9d6f3; }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1rem; border-radius: 10px; border: 1px solid #cfd3c8; background: #fff; color: var(--ink); font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1a43a0; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: #e9b4b8; background: #fff; }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.warn { background: var(--redo); border-color: var(--redo); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 54px; font-size: 1.1rem; }
.small-btn { min-height: 34px; padding: .3rem .7rem; font-size: .88rem; }
.actions, .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.actions form { margin: 0; }

/* ---------- formulare ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
label { display: block; font-size: .92rem; font-weight: 550; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: .62rem .75rem; font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #cfd3c8; border-radius: 10px; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type=file] { margin-top: 6px; font-size: .9rem; max-width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; min-width: 0; }
legend { font-size: .9rem; font-weight: 600; padding: 0 .3rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; padding: .3rem 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--accent); }
.checks { display: flex; flex-direction: column; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form label { flex: 1 1 160px; }
.inline-form .check { flex: 0 0 auto; }
form.inline, .inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline select { width: auto; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; flex: 1 1 150px; margin: 0; }
.filters .btn { flex: none; }
.mini-search { max-width: 220px; margin: 0 !important; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: #e9eae3; border-radius: 10px; padding: 3px; }
.seg a { padding: .4rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.seg a.on { background: #fff; box-shadow: var(--shadow); font-weight: 600; }

/* ---------- etichete ---------- */
.pill { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 99px; background: #eceee6; color: var(--muted); font-weight: 600; }
.pill.hot { background: var(--accent); color: #fff; }
.tag { display: inline-block; font-size: .76rem; font-weight: 650; padding: .14rem .5rem; border-radius: 6px; background: #eceee6; color: #4a5160; vertical-align: middle; letter-spacing: .01em; }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.tag.redo { background: var(--redo-soft); color: var(--redo); }
.tag.wait { background: #f0eefb; color: #5b45b0; }
.tag.done { background: var(--ok-soft); color: var(--ok); }
.tag.late { background: var(--bad-soft); color: var(--bad); }
.tag.mine { background: var(--ok-soft); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; background: #f0f1ec; border-radius: 99px; font-size: .9rem; text-decoration: none; color: var(--ink); margin: 0; }
.chip .x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 0 .1rem; }

/* ---------- note ---------- */
.grade { display: inline-grid; place-items: center; min-width: 3.4rem; padding: .2rem .55rem; border-radius: 9px; font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.grade.hi { background: var(--ok-soft); color: var(--ok); }
.grade.mid { background: var(--accent-soft); color: var(--accent); }
.grade.lo { background: var(--bad-soft); color: var(--bad); }
.grade.none { background: #eceee6; color: var(--muted); }
.grade.prov { background: transparent; border: 1.5px dashed currentColor; font-style: italic; }

/* ---------- statistici ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: .84rem; color: var(--muted); }
.meter { height: 10px; background: #eceee6; border-radius: 99px; overflow: hidden; margin: .4rem 0 .8rem; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter span.warn { background: var(--warn); } .meter span.bad { background: var(--bad); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- liste ---------- */
.slist { list-style: none; margin: 0; padding: 0; }
.slist li { display: flex; align-items: center; gap: 8px; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.slist li:last-child { border-bottom: 0; }
.slist form { margin: 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); margin: 12px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; z-index: 5; }
.review-actions { margin: 0 0 14px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.item summary { cursor: pointer; list-style: none; }
.item summary::-webkit-details-marker { display: none; }
.item-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.danger-zone summary { color: var(--bad); cursor: pointer; font-size: .9rem; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list li > a:first-child { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .7rem 0; text-decoration: none; color: var(--ink); }
.review-list li.dim > a:first-child { color: var(--muted); }
.done-list { list-style: none; padding: 4px 16px; }
.done-list li a { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.done-list li:last-child a { border-bottom: 0; }

/* ---------- elev ---------- */
.subject-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.subject-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 1.2rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.subject-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.hw-card { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; margin-bottom: 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hw-card.is-new { border-left: 6px solid var(--accent); }
.hw-card.is-redo { border-left: 6px solid var(--redo); background: linear-gradient(90deg, var(--redo-soft), #fff 60%); }
.hw-card .tag { align-self: flex-start; }
.hw-date { font-weight: 650; font-size: 1.05rem; }
.hw-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -.5rem 0 14px; }
.exercise h2 { font-family: var(--serif); }
.math { overflow-wrap: anywhere; }
.math .katex-display { overflow-x: auto; overflow-y: hidden; padding: .2rem 0; }
.preview { min-height: 2.4rem; padding: .6rem .75rem; border: 1px dashed #cfd3c8; border-radius: 10px; background: #fbfbf8; white-space: pre-wrap; }
.preview.empty::before { content: "Previzualizare"; color: var(--muted); font-size: .85rem; }
.figure { margin: .8rem 0; text-align: center; }
.figure img { border: 1px solid var(--line); border-radius: 10px; background: #fff; max-height: 420px; }
.small-fig img { max-height: 220px; }
.upload-zone { margin-top: 12px; padding: 12px; border: 2px dashed #c9cfe0; border-radius: 12px; background: #fafbfe; }
.upload-btn { width: 100%; min-height: 52px; background: var(--accent-soft); border-color: #c9d6f3; color: var(--accent); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.thumb { position: relative; width: 96px; }
.thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #fff; }
.thumb .del { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.thumb .ann { position: absolute; bottom: 4px; right: 4px; background: var(--redo); color: #fff; border-radius: 6px; font-size: .75rem; padding: 0 .3rem; }
.thumbs.big .thumb { width: 150px; }
.thumbs.big .thumb img { width: 150px; height: 190px; }
.ann-btn { margin-top: 6px; width: 100%; }
.help-box { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-answer { width: 100%; background: #fffbea; border: 1px solid #f3e3a1; border-radius: 12px; padding: .8rem 1rem; }
.help-answer ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.help-answer li { margin: .25rem 0; }
.result { display: flex; flex-direction: column; gap: 12px; }
.result-grade { display: flex; align-items: center; gap: 12px; }
.result-grade .grade { font-size: 1.6rem; min-width: 5rem; padding: .3rem .8rem; }
.teacher-msg { background: #f7f8f4; border-left: 4px solid var(--accent); padding: .7rem .9rem; border-radius: 0 10px 10px 0; }
.teacher-msg b { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.redo-box { border-color: #f5c9b3; background: var(--redo-soft); }
.redo-box h2 { color: var(--redo); }
.wait-box { border-color: #d9d2f3; background: #f6f4fd; }
.corrected { margin-top: 10px; padding: 10px; background: #fff7f2; border-radius: 10px; }
.submit-bar { position: sticky; bottom: 10px; z-index: 6; margin-top: 10px; }
.submit-bar .btn { box-shadow: 0 8px 22px rgba(31, 79, 184, .35); }
.history-item { padding: .7rem 0; border-top: 1px solid var(--line); }

/* ---------- profesor ---------- */
.class-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.class-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.class-card .pill { align-self: flex-start; }
.class-card.add { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; color: var(--accent); }
.class-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.mathbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 -6px; }
.mathbar button { min-width: 38px; height: 34px; border: 1px solid #cfd3c8; background: #fff; border-radius: 8px; cursor: pointer; font: inherit; font-size: .92rem; }
.mathbar button:hover { border-color: var(--accent); background: var(--accent-soft); }
.barem { background: #fafaf6; display: flex; flex-direction: column; gap: 10px; }
.ex-item { padding: .7rem 0; border-top: 1px solid var(--line); }
.ex-item:first-of-type { border-top: 0; }
.ex-meta { margin-bottom: .3rem; }
.ai-panel { border-color: #d9d2f3; background: #faf9ff; }
.ai-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: .4rem; }
.ai-obs { background: #f6f4fd; border-radius: 8px; padding: .5rem .7rem; margin: .5rem 0; }
.pts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: .6rem; }
.pts input { width: 110px !important; display: inline-block !important; margin: 0 !important; }
.grade-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.grade-row label { width: 140px; }
.grade-row input { font-size: 1.3rem; font-weight: 700; }
.barem-box summary { cursor: pointer; font-size: .9rem; color: var(--accent); }
.comp-cols fieldset { max-height: 340px; overflow: auto; }
.comp-row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.comp-row .check { grid-column: 2; padding: 0; }
.comp-row .code { margin: 0 !important; }
.comp-row textarea { margin: 0 !important; }
.comp-ul { margin: 0; padding-left: 1.1rem; }
.comp-ul li { margin: .3rem 0; }
.sheet-ex { display: flex; flex-direction: column; gap: 8px; }
.clamp { max-height: 4.5em; overflow: hidden; }
.chart { width: 100%; height: auto; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .grid { stroke: #e4e6de; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .dot { fill: var(--accent); }
.chart .val { fill: var(--accent); font-weight: 700; }

/* ---------- editor de adnotări ---------- */
.editor-page .wrap { max-width: 1400px; padding-bottom: 30px; }
.editor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.editor { background: #2a2f3a; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; background: #1d222c; }
.tools button:not(.btn) { width: 40px; height: 40px; border-radius: 9px; border: 1px solid transparent; background: #2f3542; color: #e7e9ee; font-size: 1.1rem; cursor: pointer; }
.tools button.on { background: var(--accent); border-color: #7da2f0; }
.tools button.ok { color: #4ade80; } .tools button.bad { color: #fb7185; }
.tools .sw { background: var(--c) !important; width: 30px !important; height: 30px !important; border-radius: 50% !important; }
.tools .sw.on { outline: 3px solid #fff; outline-offset: 1px; }
.tools .btn.ghost { color: #e7e9ee; border-color: #4a5263; }
.tools .sep { width: 1px; height: 28px; background: #3a4150; margin: 0 4px; }
.tools .size input { width: 90px; vertical-align: middle; }
.stage { overflow: auto; max-height: calc(100vh - 170px); padding: 10px; text-align: center; }
.stage .canvas-container { margin: 0 auto; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
.editor-status { color: #c9ced8; padding: 6px 12px 10px; min-height: 1.8rem; }

/* ---------- autentificare ---------- */
.auth .wrap { max-width: 480px; }
.auth-box { margin-top: 1rem; }
.auth-box h1 { margin-top: 0; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.prose { max-width: 760px; line-height: 1.65; }

/* ---------- încărcare ---------- */
.busy-overlay { position: fixed; inset: 0; background: rgba(244, 245, 241, .85); display: grid; place-items: center; z-index: 100; text-align: center; font-weight: 600; }
.spinner { display: inline-block; width: 38px; height: 38px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ecrane mai mari ---------- */
@media (min-width: 640px) {
  h1 { font-size: 1.9rem; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .subject-grid, .class-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 12px; }
  .checks legend { grid-column: 1 / -1; }
  .comp-cols .checks { display: flex; }
  .card { padding: 20px; }
  .sticky-actions { margin: 14px -20px -20px; padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .topbar, .foot, .btn, .toolbar, .filters, .sticky-actions { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}
