:root {
  --red: #eb1b2f; --red-dark: #c41324; --red-soft: #fdecee;
  --ink: #2d2d2e; --black: #111112; --muted: #6d6d73; --line: #e5e5e8; --bg: #f5f5f6; --card: #fff;
  --ok: #15803d; --ok-soft: #dcfce7; --ok-line: #86efac; --no: #b91c1c; --no-soft: #fee2e2; --no-line: #fca5a5;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
*, *::before, *::after { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 400; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--black); letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; }
.spacer { flex: 1; }

/* shell */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1160px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--black); }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-txt { font-size: 12px; color: var(--muted); line-height: 1.25; border-left: 1px solid var(--line); padding-left: 10px; }
.who { font-size: 13px; text-align: right; line-height: 1.25; }
.who form { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-size: 12px; cursor: pointer; }
.nav { background: var(--ink); }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { color: #d6d6d9; padding: 11px 12px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: #fff; border-bottom-color: var(--red); }
.nav .sep { width: 1px; background: #4a4a4d; margin: 10px 6px; flex: none; }
.badge-n { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 20px 16px 28px; min-height: calc(100vh - 190px); }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px 20px; color: var(--muted); font-size: 12px; }
.powered a { display: block; border-radius: 6px; }
.powered a:hover { opacity: .8; }
.powered img { height: 30px; width: auto; display: block; }
.brand-app { color: var(--red); font-weight: 600; }
.wrap.narrow { max-width: 560px; }
.wrap.mid { max-width: 820px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head p { color: var(--muted); font-size: 14px; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card, .stack > * + * { margin-top: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.grid > * { margin-top: 0 !important; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-weight: 600; font-size: 26px; color: var(--black); line-height: 1.2; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.red { border-top: 3px solid var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #c9c9cd; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 18px; font-size: 16px; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: #efeff1; color: var(--ink); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.cat { background: #fff; border: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ring, var(--red)); flex: none; }

.avatar { --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #f0f0f2; color: var(--ink); font-weight: 600; font-size: calc(var(--size) * .34); border: calc(var(--size) * .075) solid var(--ring, var(--red)); box-shadow: inset 0 0 0 2px #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.lg { --size: 104px; } .avatar.md { --size: 64px; } .avatar.sm { --size: 34px; }

.flash { border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid var(--ok-line); background: var(--ok-soft); color: #14532d; }
.flash.error { border-color: var(--no-line); background: var(--no-soft); color: #7f1d1d; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafafb; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { background: #fafafb; border-top: 2px solid var(--line); font-weight: 600; color: var(--black); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > div { min-width: 0; }
.person .nm { color: var(--black); font-weight: 500; display: block; }
.person .sub { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* forms */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1px solid #d7d7db; border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--black); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
input[type=color] { width: 60px; height: 40px; padding: 2px; border: 1px solid #d7d7db; border-radius: 10px; background: #fff; }
input[type=file] { font: inherit; font-size: 13px; max-width: 100%; }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.err, .errorlist { color: var(--no); font-size: 13px; margin: 4px 0 0; padding: 0; list-style: none; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--red); }
.field div[id] > div { margin: 4px 0; }
.field div[id] label { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.field div[id] input { accent-color: var(--red); margin-top: 4px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; }

/* login */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--ink); color: #fff; padding: 48px 56px 0; display: flex; flex-direction: column; gap: 28px; border-right: 6px solid var(--red); overflow: hidden; }
.login-art .wlogo { height: 92px; width: auto; align-self: flex-start; display: block; margin: -8px 0 0 -6px; }
.login-art .tag { margin-bottom: 14px; color: var(--red); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.login-art h1 { color: #fff; font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.login-art .sub { font-size: 20px; color: #fff; margin-top: 10px; }
.login-art .lore { color: #b9b9be; font-size: 14px; max-width: 440px; margin-top: 14px; }
.login-art .boita { margin-top: auto; width: 100%; max-width: 560px; align-self: center; display: block; }
.login-form { background: #fff; display: flex; flex-direction: column; align-items: center; padding: 32px 20px 0; }
.login-form .login-box { margin: auto 0; }
.login-box { width: 100%; max-width: 360px; }
.login-box img.logo { height: 84px; margin-bottom: 14px; display: block; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { text-align: center; font-size: 30px !important; letter-spacing: .5em; padding: 14px 8px 14px 22px !important; font-variant-numeric: tabular-nums; font-weight: 600; }
.who-tabs { display: flex; gap: 6px; background: #f1f1f3; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.who-tabs a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.who-tabs a:hover { text-decoration: none; color: var(--ink); }
.who-tabs a.on { background: #fff; color: var(--black); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.appname { display: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 14px; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } .appname { display: block; } }

/* splash */
.splash { min-height: 100vh; min-height: 100dvh; background: #fdf8ef; display: flex; flex-direction: column; align-items: center; overflow: hidden; position: relative; color: var(--ink); text-decoration: none; }
.splash { cursor: pointer; }
.kumbha { width: 100%; height: 38px; display: block; flex: none; }
.kumbha.flip { transform: scaleY(-1); }
.splash-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 24px 0; position: relative; width: 100%; }
.chakra { position: absolute; top: 50%; left: 50%; width: min(118vw, 640px); aspect-ratio: 1; margin: calc(min(118vw, 640px) / -2 - 40px) 0 0 calc(min(118vw, 640px) / -2); color: var(--red); opacity: .13; animation: spin 90s linear infinite; }
.plaque { position: relative; background: #fff; border-radius: 22px; padding: 16px 26px; box-shadow: 0 10px 30px rgba(45,45,46,.10); border: 1px solid #f0e6d3; animation: rise .7s ease-out both; }
.plaque img { height: 96px; display: block; }
.splash h1 { position: relative; font-size: 46px; letter-spacing: -.02em; margin-top: 22px; animation: rise .7s .15s ease-out both; }
.splash .event { position: relative; font-size: 19px; font-weight: 600; color: var(--black); margin-top: 4px; animation: rise .7s .2s ease-out both; }
.splash .tagline { position: relative; color: var(--muted); font-size: 15px; margin-top: 6px; animation: rise .7s .25s ease-out both; }
.splash .swagata { position: relative; color: var(--red); font-size: 15px; letter-spacing: .08em; margin-top: 16px; animation: rise .7s .35s ease-out both; }
.splash-sea { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; flex: none; }
.splash-sea img { width: min(78vw, 420px); display: block; animation: bob 5s ease-in-out infinite; margin-bottom: -10px; }
.waves { width: 100%; height: 26px; display: block; color: var(--red); opacity: .55; }
.splash-foot .powered { padding: 10px 0 0; }
.splash-foot { padding: 14px 24px 12px; width: 100%; max-width: 360px; text-align: center; flex: none; }
.splash-bar { height: 3px; background: #eadfca; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.splash-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: fill 4.2s linear both; }
.splash-foot span { font-size: 13px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-height: 640px) { .plaque img { height: 70px; } .splash h1 { font-size: 36px; } .splash-sea img { width: min(56vw, 300px); } }
@media (prefers-reduced-motion: reduce) { .chakra, .plaque, .splash h1, .splash .tagline, .splash .swagata, .splash-sea img { animation: none; } }

/* notifications */
.note { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f0f0f2; }
.note:last-child { border-bottom: 0; }
.note .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.note b { font-weight: 500; color: var(--black); }
.note.new { background: #fffaf0; }
.preview { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.preview img { width: 36px; height: 36px; border-radius: 8px; background: #fff; flex: none; }
.preview b { font-weight: 600; display: block; font-size: 14px; }
.preview span { font-size: 13px; color: #d6d6d9; word-break: break-word; }

/* scanner */
#reader { width: 100%; border-radius: var(--radius); overflow: hidden; background: #111; min-height: 240px; }
#reader video { width: 100% !important; display: block; }
.scan-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.idhead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 18px 16px; }
.idhead .nm { font-size: 20px; font-weight: 600; color: var(--black); line-height: 1.2; }
.catband { display: inline-block; color: #fff; background: var(--ring, var(--red)); border-radius: 8px; padding: 4px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.tabs { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafafb; }
.tabs a { flex: 1; text-align: center; padding: 12px 6px; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { color: var(--black); border-bottom-color: var(--red); background: #fff; }
.pane { padding: 16px; }
.verdict { border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 14px; border: 2px solid var(--ok-line); background: var(--ok-soft); color: #14532d; }
.verdict.no { border-color: var(--no-line); background: var(--no-soft); color: #7f1d1d; }
.verdict b { display: block; font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.verdict form { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { border-radius: 12px; padding: 12px; border: 1.5px solid var(--no-line); background: var(--no-soft); color: #7f1d1d; display: flex; flex-direction: column; gap: 4px; min-height: 118px; }
.tile.ok { border-color: var(--ok-line); background: #bbf7d0; color: #14532d; }
.tile .code { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.tile .gn { font-weight: 600; font-size: 14px; line-height: 1.25; color: inherit; }
.tile .st { font-size: 12px; margin-top: auto; }
.tile .btn { margin-top: 6px; width: 100%; }
.line { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.line + .line { margin-top: 8px; }
.line .lbl { flex: 1; min-width: 0; }
.line .lbl b { font-weight: 500; color: var(--black); display: block; }
.tag-ok { background: #a3e635; color: #1a2e05; border: 1px solid #65a30d; border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag-off { background: #f1f1f3; color: var(--muted); border-radius: 6px; padding: 5px 12px; font-size: 13px; }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; color: var(--black); word-break: break-word; }

/* portal */
.mybadge { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.qrbox { width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qrbox svg { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .mybadge { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pcard:hover { border-color: #cfcfd3; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; max-height: 58vh; overflow-y: auto; background: #fafafb; }
.bub { max-width: 78%; padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bub.me { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: #fff; }
.bub time { display: block; font-size: 11px; opacity: .6; margin-top: 3px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* quiz */
.quiz-top { position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.quiz-top b { font-weight: 600; }
.clock { margin-left: auto; background: var(--red); border-radius: 8px; padding: 4px 12px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 18px; }
.qn { font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.qt { font-size: 17px; font-weight: 500; color: var(--black); margin: 4px 0 12px; }
.opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font-size: 15px; }
.opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.opt input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.score { font-size: 54px; font-weight: 600; color: var(--red); line-height: 1; }
.screen { min-height: 100vh; background: var(--ink); color: #fff; display: grid; grid-template-columns: 420px 1fr; }
.screen-l { background: #fff; color: var(--ink); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; border-right: 8px solid var(--red); }
.screen-l img { height: 110px; }
.screen-l .qrbox { width: 300px; }
.screen-r { padding: 48px; }
.screen-r h1 { color: #fff; font-size: 40px; }
.screen-r .clock { display: inline-block; margin: 14px 0 26px; font-size: 44px; padding: 8px 22px; }
.screen .tbl th { background: transparent; color: #a9a9ae; border-color: #47474a; }
.screen .tbl td { border-color: #3a3a3d; font-size: 20px; color: #fff; }
@media (max-width: 900px) { .screen { grid-template-columns: 1fr; } }

/* ID cards */
.sheet { display: flex; flex-wrap: wrap; gap: 14px; }
.idcard { width: 86mm; height: 128mm; background: #fff; border: 1px solid #cfcfd3; border-radius: 4mm; overflow: hidden; display: flex; flex-direction: column; position: relative; break-inside: avoid; page-break-inside: avoid; }
.idcard > * { position: relative; z-index: 1; }
.idcard .art-border { position: absolute; top: 0; left: 0; width: 100%; height: 19px; z-index: 0; display: block; }
.idcard .art-wheel { position: absolute; z-index: 0; width: 56mm; height: 56mm; left: 50%; top: 59mm; margin: -28mm 0 0 -28mm; color: var(--ring); opacity: .1; }
.idcard .foot .boita { width: 27mm; height: auto; display: block; margin: 0 0 1.6mm -1mm; }
.idcard .hole { width: 14mm; height: 3mm; border-radius: 2mm; border: 1px solid #cfcfd3; background: #fff; margin: 7.5mm auto 0; }
.idcard .theme { text-align: center; font-size: 7pt; color: var(--red); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: 1mm; }
.idcard .logo { height: 18mm; margin: 1.5mm auto 0; display: block; }
.idcard .ev { text-align: center; font-size: 6.5pt; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .6mm; }
.idcard .mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 5mm; gap: 1.2mm; }
.idcard .nm { font-size: 21pt; font-weight: 600; color: var(--black); line-height: 1.12; margin-bottom: 1.5mm; overflow-wrap: anywhere; }
.idcard .co { font-size: 11pt; color: var(--ink); line-height: 1.3; }
.idcard .foot { display: flex; align-items: flex-end; gap: 3mm; padding: 0 4mm 3mm; }
.idcard .foot .info { flex: 1; font-size: 7pt; color: var(--muted); line-height: 1.4; }
.idcard .foot .qr { width: 26mm; flex: none; background: #fff; padding: 1mm; border-radius: 1.5mm; }
.idcard .foot .info { text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.idcard .by { display: flex; align-items: center; gap: 1.2mm; margin-top: 1.6mm; font-size: 6pt; }
.idcard .by img { height: 5.2mm; width: auto; display: block; }
.idcard .foot .qr svg { display: block; width: 100%; height: auto; }
.idcard .band { background: var(--ring); color: #fff; text-align: center; font-size: 11pt; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 2.6mm 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* Standard ID card (CR80, 54 x 85.6 mm): the badge is laid out at 86 x 136.3 mm with larger small print, then scaled down */
.cardslot { break-inside: avoid; page-break-inside: avoid; }
.cardslot.cr80 { width: 54mm; height: 85.6mm; overflow: hidden; }
.cardslot.cr80 .idcard { height: 136.3mm; transform: scale(.6279); transform-origin: top left; border-radius: 5mm; }
.cardslot.cr80 .idcard .theme { font-size: 8pt; }
.cardslot.cr80 .idcard .ev { font-size: 7.5pt; }
.cardslot.cr80 .idcard .nm { font-size: 24pt; }
.cardslot.cr80 .idcard .co { font-size: 13pt; }
.cardslot.cr80 .idcard .foot .info { font-size: 9.5pt; }
.cardslot.cr80 .idcard .foot .qr { width: 34mm; }
.cardslot.cr80 .idcard .foot .boita { width: 30mm; }
.cardslot.cr80 .idcard .by { font-size: 8pt; }
.cardslot.cr80 .idcard .by img { height: 7mm; }
.cardslot.cr80 .idcard .band { font-size: 13pt; padding: 3.4mm 2mm; }
.poster { width: 148mm; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 10px solid var(--red); padding: 12mm; text-align: center; }
.poster img { height: 34mm; }
.poster .qrbox { width: 80mm; margin: 8mm auto; border: 0; padding: 0; }
@media print {
  .top, .nav, .noprint, .flash { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .sheet { gap: 6mm; }
  .avatar, .catband { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster { border-color: var(--red); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
