: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 { flex-wrap: wrap; gap: 8px 22px; }
.powered .credit { display: inline-flex; align-items: center; gap: 8px; }
.powered img, .powered img.ispy { height: 26px; width: auto; }
.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 .powered { padding: 6px 0 0; font-size: 14px; }
.screen-l .powered img { height: 36px; }
.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; } }

/* marketing: template builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.b-right { position: sticky; top: 118px; }
.b-left > * + *, #blocks > * + * { margin-top: 14px; }
.frame-wrap { background: #f6f1e7; display: flex; justify-content: center; }
.mail-frame { width: 100%; height: calc(100vh - 220px); min-height: 480px; border: 0; display: block; background: #f6f1e7; }
.blk { padding: 14px 16px; }
.blk-h { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.blk-tool { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 3px 9px; font-size: 12px; color: var(--ink); cursor: pointer; }
.blk-tool:hover { border-color: #c9c9cd; }
.blk-tool[disabled] { opacity: .35; cursor: default; }
.blk .field:last-child { margin-bottom: 0; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #d7d7db; border-bottom: 0; border-radius: 10px 10px 0 0; background: #fafafb; }
.rt-bar button { border: 1px solid transparent; background: none; border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--ink); cursor: pointer; }
.rt-bar button:hover { background: #fff; border-color: var(--line); }
.rt { min-height: 96px; border: 1px solid #d7d7db; border-radius: 0 0 10px 10px; padding: 10px 12px; background: #fff; color: var(--black); font-size: 15px; line-height: 1.6; }
.rt:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.rt p { margin: 0 0 10px; } .rt ul, .rt ol { margin: 0 0 10px; padding-left: 22px; } .rt a { color: var(--red); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--red); color: var(--red); background: var(--red-soft); border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--red); color: #fff; }
.img-thumb { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 12px; background: #fafafb; text-align: center; }
.img-thumb img { max-width: 100%; max-height: 160px; border-radius: 6px; }
.picklist { border: 1px solid var(--line); border-radius: 12px; max-height: 340px; overflow-y: auto; background: #fff; }
.pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f0f2; font-size: 14px; flex-wrap: wrap; }
.pick:last-child { border-bottom: 0; }
.pick input { accent-color: var(--red); }
.pick .pn { color: var(--black); font-weight: 500; }
.pick a { margin-left: auto; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } .b-right { position: static; } .mail-frame { height: 640px; } }

/* exhibition hall plan: every position is a percentage of the 120 ft x 140 ft internal plot */
.wrap.xp-wide { max-width: 1500px; }
.xp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.xp-side { display: flex; flex-direction: column; gap: 14px; }
.xp-side > .card { margin-top: 0; }
#detail { position: sticky; top: 112px; z-index: 5; max-height: calc(100vh - 124px); overflow-y: auto; }
.xp-sheet { padding: 14px 16px 18px; }
.xp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.xp-h1 { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: .06em; }
.xp-h2 { font-size: 10px; color: var(--muted); letter-spacing: .1em; margin-top: 2px; }
.xp-scroll { overflow-x: auto; }
.xp-frame { display: grid; grid-template-columns: 98px minmax(0, 1fr) 20px; grid-template-rows: 62px auto auto; min-width: 760px; }
.xp-top { grid-column: 2; grid-row: 1; position: relative; }
.xp-left { grid-column: 1; grid-row: 2; position: relative; }
.xp-planwrap { grid-column: 2; grid-row: 2; container-type: inline-size; }
.xp-right { grid-column: 3; grid-row: 2; position: relative; }
.xp-bottom { grid-column: 2; grid-row: 3; position: relative; padding-top: 6px; }
.xp-red { color: #c81e1e; font-size: 8.5px; letter-spacing: .08em; white-space: nowrap; }
.xp-bubble { position: absolute; width: 22px; height: 22px; border: 1.2px solid #111; border-radius: 50%; background: #fff; font-size: 10px; font-weight: 600; color: #111; display: flex; align-items: center; justify-content: center; }
.xp-top .xp-bubble { top: 0; transform: translateX(-50%); }
.xp-top .xp-bubble::after { content: ""; position: absolute; top: 22px; left: 50%; height: 40px; border-left: 1px dashed #9a9aa0; }
.xp-left .xp-bubble { left: 0; transform: translateY(-50%); }
.xp-left .xp-bubble::after { content: ""; position: absolute; left: 22px; top: 50%; width: 76px; border-top: 1px dashed #9a9aa0; }
.xp-entry { position: absolute; left: 12%; top: 28px; font-size: 10px; font-weight: 600; color: #111; letter-spacing: .06em; white-space: nowrap; }
.xp-entry-note { position: absolute; left: 12%; top: 44px; }
.xp-solid-n { position: absolute; left: 62%; top: 44px; }
.xp-overall-l { position: absolute; left: 30px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: 9px; letter-spacing: .08em; color: #111; white-space: nowrap; background: #fff; padding: 6px 0; z-index: 1; }
.xp-vchain { position: absolute; top: 0; bottom: 0; width: 18px; border-right: 1px solid #111; }
.xp-vchain.c1 { left: 50px; } .xp-vchain.c2 { left: 74px; }
.xp-vchain span { position: absolute; left: 0; right: -4px; border-top: 1px solid #111; display: flex; align-items: center; justify-content: center; }
.xp-vchain span:last-child { border-bottom: 1px solid #111; }
.xp-vchain i { writing-mode: vertical-rl; transform: rotate(180deg); font-style: normal; font-size: 8px; color: #333; white-space: nowrap; }
.xp-vchain .sm i { font-size: 6px; color: #8a8a90; }
.xp-right .xp-red { position: absolute; left: 6px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); }
.xp-plan { position: relative; aspect-ratio: 120 / 140; background: #fff; box-shadow: 0 0 0 .83cqw #111; margin: .83cqw; }
.xp-door { position: absolute; left: 0; width: 8.3333%; top: -.9cqw; height: .95cqw; background: #f0f0ea; z-index: 3; }
.xp-door span { position: absolute; left: 50%; top: -3.4cqw; transform: translateX(-50%); font-size: 2.6cqw; line-height: 1; color: #111; }
.xp-zone { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.xp-zone span { font-size: max(7px, .92cqw); color: #8a8a90; letter-spacing: .08em; white-space: nowrap; }
.xp-zone span b { font-weight: 500; color: #6d6d73; margin-right: .6cqw; }
.xp-zone.pathway { background: #f0f0ea; }
.xp-zone.pathway span, .xp-zone.cross span { writing-mode: vertical-rl; transform: rotate(180deg); }
.xp-zone.pathway span b { color: #111; font-weight: 600; }
.xp-zone.concourse { background: #f6f6f7; justify-content: flex-start; padding-left: 5cqw; }
.xp-zone.service { background: repeating-linear-gradient(135deg, #fff 0 5px, #b8b8bd 5px 6px); }
.xp-zone.service span { background: #fff; padding: .3cqw 1cqw; border: 1px solid #c9c9cd; }
.xp-zone.innov-label span, .xp-zone.innov-label span b { color: #4b3fa8; font-weight: 600; }
.xp-zone.food-label { align-items: flex-start; justify-content: flex-end; padding: 1.9cqw 1.2cqw 0 0; }
.xp-zone.food-label span, .xp-zone.food-label span b { color: #a15c00; font-weight: 600; }
.xp-zone.outline { border: 1.2px dashed #6d6d73; }
.xp-zone.outline.food { border-color: #a15c00; }
.stall { position: absolute; z-index: 2; margin: 0; padding: 0; border: 1px solid #55607a; border-radius: 1px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1cqw; overflow: hidden; color: #1c2233; line-height: 1.1; }
.stall b { font-size: max(7px, 1.12cqw); font-weight: 600; }
.stall i { font-style: normal; font-size: max(6px, .78cqw); opacity: .65; }
.stall .who { font-style: normal; font-size: max(6px, .74cqw); max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stall .who:empty { display: none; }
.stall.z6 i { display: none; }
.stall:hover { filter: brightness(.95); z-index: 4; box-shadow: 0 0 0 2px rgba(17,17,18,.35); }
.stall.on { z-index: 5; box-shadow: 0 0 0 3px #111, 0 6px 16px rgba(0,0,0,.3); }
.k-premium { background: #dfe4f0; } .k-standard { background: #edf0f7; } .k-compact { background: #f6f7fb; }
.k-innovation { background: #d9d2f1; } .k-food { background: #f6e2b3; } .k-tie { background: #c8e9d6; }
/* colour by stall type: the booking state is a coloured frame */
.by-type .stall.s-held { box-shadow: inset 0 0 0 max(2px, .28cqw) #d97706; }
.by-type .stall.s-booked { box-shadow: inset 0 0 0 max(2px, .28cqw) #eb1b2f; }
.by-type .stall.s-reserved { box-shadow: inset 0 0 0 max(2px, .28cqw) #2d2d2e; }
.by-type .stall.on { box-shadow: 0 0 0 3px #111, 0 6px 16px rgba(0,0,0,.3); }
/* colour by availability */
.by-status .stall.s-available { background: #dcfce7; border-color: #15803d; }
.by-status .stall.s-held { background: #fde68a; border-color: #b45309; }
.by-status .stall.s-booked { background: #eb1b2f; border-color: #9d0000; color: #fff; }
.by-status .stall.s-reserved { background: #2d2d2e; border-color: #111; color: #fff; }
.xp-hrow { display: flex; flex-direction: column; margin-bottom: 8px; }
.xp-hlabel { font-size: 8px; letter-spacing: .08em; color: #6d6d73; margin-bottom: 2px; }
.xp-hchain { position: relative; height: 20px; border-top: 1px solid #111; }
.xp-hchain span { position: absolute; top: -4px; height: 9px; border-left: 1px solid #111; }
.xp-hchain span:last-of-type { border-right: 1px solid #111; }
.xp-hchain i { position: absolute; left: 0; right: 0; top: 9px; text-align: center; font-style: normal; font-size: 8px; color: #333; white-space: nowrap; }
.xp-hchain .sm i { font-size: 6px; color: #8a8a90; }
.xp-hchain.big i { font-size: 9px; }
.xp-hchain em { position: absolute; left: 52%; top: 3px; font-style: normal; font-size: 7.5px; letter-spacing: .06em; color: #8a8a90; white-space: nowrap; }
.xp-overall-w { text-align: center; border-top: 1px solid #111; margin-top: 4px; position: relative; height: 22px; }
.xp-overall-w span { position: relative; top: -8px; background: #fff; padding: 0 10px; font-size: 10px; letter-spacing: .08em; color: #111; }
.xp-typ-h { font-size: 9px; font-weight: 600; letter-spacing: .08em; color: #111; border-bottom: 1px solid #111; padding-bottom: 4px; margin: 10px 0 10px; }
.xp-typ { display: flex; align-items: flex-end; gap: 6%; }
.xp-typ-l { font-size: 8px; font-weight: 600; text-align: center; margin-bottom: 4px; color: #111; }
.xp-typ-b { display: flex; align-items: flex-end; }
.xp-typ-b i { flex: 1 1 0; aspect-ratio: 1; border: 1px solid #55607a; }
.xp-typ-b u { flex: 0 0 9%; }
.xp-typ-g:nth-child(2) .xp-typ-b u { flex-basis: 11%; } .xp-typ-g:nth-child(3) .xp-typ-b u { flex-basis: 14%; }
.xp-typ-d { display: flex; justify-content: space-between; font-size: 7px; color: #6d6d73; margin-top: 3px; }
.xp-scale { margin-top: 14px; }
.xp-scale-t { font-size: 8px; letter-spacing: .1em; color: #6d6d73; margin-bottom: 4px; }
.xp-scale-bar { display: flex; height: 8px; border: 1px solid #111; }
.xp-scale-bar i { flex: 1; } .xp-scale-bar i:nth-child(odd) { background: #111; }
.xp-scale-n { display: flex; justify-content: space-between; font-size: 8px; color: #333; margin-top: 2px; }
.xp-legend { display: grid; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.xp-legend div { display: flex; align-items: center; gap: 9px; }
.xp-legend b { font-weight: 500; color: var(--black); margin-right: 4px; }
.sw { display: inline-block; flex: none; width: 22px; height: 15px; border: 1px solid #55607a; }
.sw.hatch { background: repeating-linear-gradient(135deg, #fff 0 3px, #9a9aa0 3px 4px); }
.sw.wall { background: #111; border-color: #111; }
.sw.st-available { background: #dcfce7; border-color: #15803d; } .sw.st-held { background: #fde68a; border-color: #b45309; }
.sw.st-booked { background: #eb1b2f; border-color: #9d0000; } .sw.st-reserved { background: #2d2d2e; border-color: #111; }
.xp-tbl th, .xp-tbl td { padding: 7px 10px; font-size: 12px; }
.xp-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--ink); }
.xp-notes li { display: flex; gap: 8px; }
.xp-notes b { font-weight: 600; color: var(--black); flex: none; }
.xp-notes li.warn, .xp-notes li.warn b { color: #c81e1e; font-weight: 600; }
.xp-titleblock { padding: 0; overflow: hidden; border: 1.5px solid #111; border-radius: 4px; }
.xp-titleblock .tb-h { padding: 12px 14px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #111; border-bottom: 1.5px solid #111; }
.xp-titleblock dl { display: grid; grid-template-columns: 80px 1fr; gap: 5px 10px; margin: 0; padding: 12px 14px; font-size: 11px; }
.xp-titleblock dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; } .xp-titleblock dd { margin: 0; color: #111; font-weight: 500; }
@media (max-width: 1100px) { .xp-layout { grid-template-columns: 1fr; } #detail { position: static; max-height: none; } }
@media print { .xp-layout { grid-template-columns: 1fr; } .xp-sheet { border: 0; padding: 0; } .xp-scroll { overflow: visible; } #detail { display: none; }
  .stall, .xp-zone, .sw, .xp-plan, .xp-scale-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ID cards */
.sheet { display: flex; flex-wrap: wrap; gap: 4mm 6mm; align-content: flex-start; }
.sheet.mirrored { flex-direction: row-reverse; }
/* front and back of one card in a single row, touching, so the pair can be cut out and folded */
.sheet.pairs { flex-direction: column; flex-wrap: nowrap; gap: 4mm; }
.pair { display: flex; gap: 0; break-inside: avoid; page-break-inside: avoid; }
.pair .cardslot .idcard { border-radius: 0; }
.pair .cardslot.cr80 .idcard { border-radius: 0; }
.pair .cardslot + .cardslot .idcard { border-left: 1px dashed #9a9aa0; }
.sheet-page { width: 190mm; max-width: 100%; margin: 0 0 18px; break-after: page; page-break-after: always; }
.sheet-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
/* back of the card: event logo, then sponsor logos in a grid that adapts to how many there are */
.idcard.back .logo { height: 19mm; }
.idcard.back .theme { margin-top: 1.5mm; }
.idcard.back .band { font-size: 7.5pt; letter-spacing: .08em; padding: 2.4mm 2mm; }
.sp-title { flex: none; height: 17mm; display: flex; justify-content: center; gap: 4mm; padding: 2.5mm 6mm 0; }
.sp-title .sp { flex: 1; max-width: 48mm; }
.sp-area { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 2.5mm 5mm 3.5mm; }
.sp-grid { flex: 0 1 calc(var(--rows) * 22mm); min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2mm 3.5mm; }
.sp { position: relative; min-width: 0; min-height: 0; }
.sp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-empty { text-align: center; color: var(--muted); font-size: 9pt; line-height: 1.5; }
.sp-thumb { display: inline-block; position: relative; width: 84px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; vertical-align: middle; margin-right: 10px; overflow: hidden; }
.sp-thumb img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.cardslot.cr80 .idcard.back .band { font-size: 8pt; letter-spacing: .03em; white-space: nowrap; }
.cardslot.cr80 .idcard.back .theme { font-size: 8pt; }
.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 .by span { white-space: nowrap; }
.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; }
.idcard .by img.ispy { height: 5.2mm; }
.cardslot.cr80 .idcard .by img.ispy { height: 7mm; }
/* ID card design 02: identical top and bottom bands for everyone; only QR, name and company change */
.idcard.d2 { background: #fff; }
.d2-top { position: relative; background: #fdf8ef; padding-bottom: 3mm; border-bottom: .6mm solid var(--red); overflow: hidden; flex: none; }
.d2-top > * { position: relative; z-index: 1; }
.d2-top .art-border { position: absolute; top: 0; left: 0; width: 100%; height: 19px; z-index: 0; display: block; }
.d2-wheel { position: absolute; z-index: 0; width: 60mm; height: 60mm; right: -22mm; top: -14mm; color: var(--red); opacity: .08; }
.d2-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3mm 6mm; gap: 1.6mm; min-height: 0; overflow: hidden; }
.d2-mid .nm, .d2-mid .co { max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.d2-mid .fit-min { overflow-wrap: anywhere; }
/* the QR gives way first when the middle is tight (never below a scannable 18mm); name and company keep their room */
.d2-mid .qr { flex: 0 1 32mm; height: 32mm; min-height: 18mm; aspect-ratio: 1; max-width: 100%; }
.d2-mid .qr svg { display: block; width: 100%; height: 100%; }
.d2-mid .nm, .d2-mid .co { flex: none; }
.d2-mid .nm { font-size: 19pt; font-weight: 600; color: var(--black); line-height: 1.12; margin-top: 2mm; overflow-wrap: anywhere; }
.d2-mid .co { font-size: 11pt; color: var(--ink); line-height: 1.3; }
.d2-bottom { flex: none; }
.d2-sponsors { padding: 1.8mm 4mm 1.5mm; border-top: 1px solid #eadfca; background: #fff; }
.d2-sponsors .row { display: flex; justify-content: center; align-items: center; gap: 3.2mm; }
.d2-sponsors .row + .row { margin-top: 1.4mm; }
.d2-sponsors img { height: 7.8mm; max-width: 18mm; width: auto; object-fit: contain; display: block; }
.d2-credits { display: flex; justify-content: center; align-items: center; gap: 4mm; padding: 1.1mm 4mm; border-top: 1px solid #eadfca; background: #fdf8ef; }
.d2-credits span { display: inline-flex; align-items: center; gap: 1.4mm; }
.d2-credits i { font-style: normal; font-size: 4.6pt; color: var(--muted); }
.d2-credits img { height: 3.2mm; width: auto; display: block; }
.d2-credits img.ispy { height: 3.2mm; }
.d2-band { background: #2d2d2e; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 2.6mm 5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.d2-band img { height: 9mm; width: auto; display: block; }
.d2-band span { font-size: 8pt; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.d2-border { display: block; width: 100%; height: 19px; transform: scaleY(-1); }
.cardslot.cr80 .d2-mid .nm { font-size: 22pt; }
.cardslot.cr80 .d2-mid .co { font-size: 13pt; }
.cardslot.cr80 .d2-mid .qr { flex-basis: 40mm; height: 40mm; min-height: 26mm; }
.cardslot.cr80 .d2-credits i { font-size: 6pt; }
.cardslot.cr80 .d2-credits img { height: 4.4mm; }
.cardslot.cr80 .d2-credits img.ispy { height: 4.4mm; }
.cardslot.cr80 .d2-sponsors img { height: 8.8mm; max-width: 16mm; }
.cardslot.cr80 .d2-sponsors .row { gap: 2.4mm; }
.cardslot.cr80 .d2-band span { white-space: nowrap; font-size: 8.5pt; letter-spacing: .08em; }
.cardslot.cr80 .d2-band span { font-size: 10pt; }
.idcard.d3 { background: transparent; border: 1px dashed #b8b8be; }
.idcard.d3 .d2-top, .idcard.d3 .d2-bottom { visibility: hidden; }
@media print { .idcard.d3 { border-color: transparent; } }
.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-page { margin: 0; width: auto; }
  .sheet-page:last-child { break-after: auto; page-break-after: auto; }
  /* four badges or nine standard cards per A4 sheet */
  @page { size: A4; margin: 8mm; }
  .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; }
}

/* digital certificate */
.cert-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); background: #fcf8f0; }
.btn-li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn-li:hover { background: #004182; border-color: #004182; color: #fff; }
.cert-steps { margin: 10px 0 12px; padding-left: 20px; line-height: 1.7; }
.cert-post { width: 100%; font: inherit; font-size: 13px; line-height: 1.5; border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; background: #fafafa; }
.cert-public { background: #f6f1e7; }
.cert-public .wrap { max-width: 980px; padding-top: 18px; }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cert-ok { background: #e7f6ec; color: #17803d; border: 1px solid #bfe6cc; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.cert-promo { display: flex; align-items: center; gap: 14px; color: var(--ink); border-left: 4px solid var(--red); flex-wrap: wrap; }
.cert-promo-ic { font-size: 30px; line-height: 1; }
