/* TLRM demo. Responsive layer and interactive components on top of base.css. */
html { scroll-behavior: smooth; }
body { background: var(--canvas); }
a, button, [data-a] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.btn, .nav a, .chip, .tabs > span, .seg span, .item, .g, .pcard, .tile { transition: background .16s ease, box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.btn:hover { box-shadow: 0 4px 14px rgba(20,18,18,.14); }
.btn.outline:hover, .btn.white:hover { background: var(--hover); box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tabs > span:not(.active):hover, .seg span:not(.active):hover { background: var(--hover); }
.g:hover, .pcard:hover, .item:not(.hot):hover { border-color: rgba(20,18,18,.16); }
.tile[data-a]:hover { transform: translateY(-2px); }
.hide { display: none !important; }

/* Shell */
.app { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { z-index: 40; height: 100vh; overflow-y: auto; background: var(--canvas); }
.mobilebar { display: none; }
.scrim { display: none; }
.scope { width: 100%; text-align: left; position: relative; }
.scope-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 40px rgba(20,18,18,.14); padding: 6px; z-index: 50; display: none; }
.scope.open .scope-menu { display: grid; gap: 2px; }
.scope-menu div { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.scope-menu div:hover { background: var(--hover); }
.scope-menu .ini { width: 32px; height: 32px; }
.topbar { flex-wrap: wrap; row-gap: 12px; }
.event-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; }
.event-strip.rwz { background: var(--t-forest); } .event-strip.mba { background: var(--t-sky); }
.event-strip img { height: 34px; width: auto; }
.event-strip span { font-size: 13.5px; color: rgba(20,18,18,.7); }
.event-strip .pill { margin-left: auto; background: rgba(255,255,255,.7); color: var(--ink); }

/* Empty module */
.module-empty { display: grid; gap: 14px; justify-items: start; max-width: 640px; padding: 48px 8px; }
.module-empty .sq { width: 56px; height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; }
.module-empty .sq svg { width: 24px; height: 24px; }
.module-empty h2 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.module-empty p { margin: 0; font-size: 17px; line-height: 1.5; color: #4a4a44; }
.module-empty .dry { color: var(--muted); font-size: 15px; }
.module-empty .hint { font-size: 13px; color: var(--muted); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: #4a4a44; }
.field input, .field select, .field textarea { height: 46px; border: 1px solid rgba(20,18,18,.14); border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; width: 100%; }
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,18,18,.08); }
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(20,18,18,.12); border-radius: 14px; background: var(--card); }
.opt.on { border-color: var(--accent, var(--ink)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, var(--ink)) 22%, transparent); }
.opt .t { display: grid; gap: 1px; flex: 1; } .opt .t b { font-size: 15px; } .opt .t span { font-size: 13px; color: var(--muted); }
.opt .r { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.opt .dotr { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(20,18,18,.2); flex: none; }
.opt.on .dotr { border-color: var(--accent, var(--ink)); background: radial-gradient(circle, var(--accent, var(--ink)) 45%, transparent 50%); }
.code { display: flex; gap: 8px; justify-content: center; }
.code input { width: 46px; height: 56px; text-align: center; font-size: 24px; font-weight: 600; border: 1px solid rgba(20,18,18,.16); border-radius: 12px; background: var(--card); padding: 0; font-variant-numeric: tabular-nums; }
.err { color: var(--bad); font-size: 13.5px; min-height: 20px; }

/* Modal, drawer, toast */
.overlay { position: fixed; inset: 0; background: rgba(20,18,18,.38); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 24px; padding: 26px; display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(20,18,18,.3); animation: rise .24s ease; }
.modal h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.modal .sub { margin: -10px 0 0; color: var(--muted); font-size: 14px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--canvas); z-index: 85; box-shadow: -20px 0 60px rgba(20,18,18,.22); display: flex; flex-direction: column; animation: slide .24s ease; }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer header h3 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.drawer .body { padding: 20px; overflow: auto; display: grid; gap: 16px; align-content: start; }
.drawer .hero-img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; }
.x svg { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv span { color: var(--muted); }
.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px 12px 16px; font-size: 14px; box-shadow: 0 16px 40px rgba(20,18,18,.3); animation: rise .24s ease; }
.toast span { flex: 1; } .toast button { color: #fff; font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); white-space: nowrap; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(10px); } } @keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* Inbox */
.mail-list { display: grid; gap: 8px; }
.mail-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); text-align: left; width: 100%; }
.mail-row .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; }
.mail-row b { display: block; font-size: 14.5px; } .mail-row span { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row small { font-size: 12px; color: var(--muted); }
.mail-row.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 8px; vertical-align: middle; }
.mail-view { background: #fff; border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.mail-view .mh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.mail-view .mh b { font-size: 16px; } .mail-view .mh span { font-size: 12.5px; color: var(--muted); }
.mail-view .mb { padding: 14px; }
.email .code-big { font-size: 38px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: center; padding: 18px; border-radius: 12px; }
.email .rows-e { display: grid; } .email .rows-e div { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .email .rows-e div:first-child { border-top: 0; }
.email a.btn-e { text-decoration: none; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; }
.attach-row span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--track); font-size: 12.5px; font-weight: 500; }
.attach-row i { width: 18px; height: 18px; border-radius: 4px; background: #d93025; color: #fff; font-size: 7px; font-weight: 700; display: grid; place-items: center; } .attach-row i.ics { background: #4285f4; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tpl { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 14px; display: grid; gap: 10px; text-align: left; }
.tpl .prev { height: 120px; border-radius: 10px; overflow: hidden; background: var(--canvas); position: relative; }
.tpl .prev .band { height: 22px; } .tpl .prev i { display: block; height: 7px; border-radius: 4px; background: var(--track); margin: 8px 12px 0; } .tpl .prev i.s { width: 50%; }
.tpl b { font-size: 15px; } .tpl span { font-size: 12.5px; color: var(--muted); }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.preview-pair > div { background: var(--card); border-radius: 18px; border: 1px solid var(--border); padding: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .swatches i { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }

/* Demo bar. Not part of the product. */
.demobar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 4px; padding: 5px; background: #1b1b1b; color: #fff; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 13px; max-width: calc(100vw - 16px); overflow-x: auto; }
.demobar button { height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; font: inherit; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.demobar button.on { background: #fff; color: #111; }
.demobar button:not(.on):hover { background: #333; }
.demobar .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
.demobar .sep { width: 1px; height: 20px; background: #444; margin: 0 4px; flex: none; }
.main { padding-bottom: 96px; }

/* Public pages: landing, sign in, runner, partner */
.stage { min-height: 100vh; display: grid; place-items: start center; padding: 40px 20px 110px; background: var(--canvas); }
.stage.rwz { background: var(--cream); --accent: var(--forest); } .stage.mba { background: #eef5f9; --accent: var(--navy); } .stage.tlrm { --accent: var(--ink); }
.panel { width: min(520px, 100%); display: grid; gap: 20px; }
.panel.wide { width: min(1080px, 100%); }
.brandrow { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.brandrow img { height: 40px; width: auto; } .brandrow .back { margin-right: auto; } .brandrow .sp { flex: 1; }
.pcardx { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.pcardx h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.pcardx h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.pcardx p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #4a4a44; }
.btn.accent { background: var(--accent, var(--ink)); color: #fff; }
.btn.block { width: 100%; }
.steps-bar { display: flex; gap: 6px; } .steps-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--track); } .steps-bar i.on { background: var(--accent, var(--ink)); }
.step-label { font-size: 13px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { border-radius: 24px; padding: 24px; display: grid; gap: 14px; text-align: left; min-height: 220px; align-content: space-between; position: relative; overflow: hidden; }
.choice.rwz { background: var(--t-forest); } .choice.mba { background: var(--t-sky); }
.choice img.logo { height: 44px; width: auto; } .choice h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; } .choice .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.choice .motif { position: absolute; right: -20px; bottom: -30px; width: 220px; opacity: .25; pointer-events: none; }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display: grid; gap: 10px; text-align: left; align-content: start; }
.persona:hover, .choice:hover, .tpl:hover { box-shadow: 0 10px 30px rgba(20,18,18,.08); }
.persona .sq { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; } .persona .sq svg { width: 20px; height: 20px; }
.persona b { font-size: 17px; } .persona span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.pay-wait { display: grid; justify-items: center; gap: 16px; padding: 20px 0; text-align: center; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--accent, var(--ink)); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tick-big { width: 64px; height: 64px; border-radius: 50%; background: var(--accent, var(--ink)); color: #fff; display: grid; place-items: center; } .tick-big svg { width: 30px; height: 30px; }
.bibcard { border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.rwz .bibcard { background: var(--t-forest); } .mba .bibcard { background: var(--t-sky); }
.bibcard b { font-size: 20px; font-variant-numeric: tabular-nums; } .bibcard span { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.qrbox { width: 112px; height: 112px; background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--border); }
.qrbox svg, .qrbox img { width: 100%; height: 100%; display: block; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; } .sumrow:first-child { border-top: 0; } .sumrow.total { font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid span { aspect-ratio: 1; border-radius: 10px; background: var(--track); display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.cal-grid span.on { background: var(--forest); color: #fff; } .cal-grid span.hd { background: none; color: var(--muted); font-size: 12px; aspect-ratio: auto; }
.upload { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed rgba(20,18,18,.18); border-radius: 14px; font-size: 14.5px; width: 100%; text-align: left; }
.upload.done { border-style: solid; border-color: var(--forest); background: var(--t-forest); }
.upload svg { width: 18px; height: 18px; } .upload small { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .tiles.five { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr 1fr !important; } .cols > :nth-child(3) { grid-column: 1 / -1; }
  .search { width: 240px; }
}
@media (max-width: 1100px) {
  .split-2-1, .split-1-1, .split-3, .home-split { grid-template-columns: 1fr !important; }
  .dir-grid { grid-template-columns: 1fr !important; }
  .preview-pair { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .24s ease; box-shadow: 20px 0 60px rgba(20,18,18,.2); border-right: 0; }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(20,18,18,.38); z-index: 35; }
  .mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--canvas); padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .mobilebar .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
  .mobilebar b { font-size: 15px; flex: 1; }
  .mobilebar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; } .mobilebar svg { width: 18px; height: 18px; }
  .main { padding: 20px 16px 110px; }
  .topbar .search, .topbar .chip { display: none; }
  .topbar .title h1 { font-size: 26px; }
  .tiles.four, .tiles.five { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content, .tiles { gap: 14px; }
  .cols { grid-template-columns: 1fr !important; }
  .tile { min-height: 132px; padding: 16px; } .tile .value { font-size: 32px; } .tile .label { font-size: 14px; }
  .card { padding: 18px 16px; border-radius: 18px; }
  .card .head { flex-wrap: wrap; } .card .head .right { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .tabs { flex: none; }
  .map { min-height: 300px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .persona-grid, .choice-grid { grid-template-columns: 1fr; }
  .tbl thead { display: none; } .tbl tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); } .tbl td { border: 0; padding: 0; white-space: normal; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 560px) {
  .topbar .btn.lg { width: 100%; }
  .topbar .bell { display: none; }
  .item { flex-wrap: wrap; } .item .t { flex: 1 1 60%; } .item .act, .item .pill { margin-left: 58px !important; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } .gallery .g img { height: 84px; }
  .form .two { grid-template-columns: 1fr; }
  .pcardx { padding: 20px; border-radius: 20px; } .pcardx h1 { font-size: 26px; }
  .stage { padding: 20px 14px 110px; }
  .code input { width: 42px; height: 52px; }
  .modal { padding: 20px; border-radius: 20px; }
  .evhead h2 { font-size: 20px; }
  .heat { grid-template-columns: 110px repeat(4, 1fr); }
  .hbar { grid-template-columns: 1fr 70px 30px !important; }
}

/* Fixes after the first device walk */
.evhead img.logo, .choice img.logo { align-self: flex-start; width: auto; max-width: 100%; object-fit: contain; }
.card, .evcol, .cols > *, .content > * { min-width: 0; }
.content { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1280px) { .cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; } }
@media (max-width: 1100px) { .split-2-1, .split-1-1, .split-3, .home-split, .dir-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 920px) {
  .sidebar { box-shadow: none; } .nav-open .sidebar { box-shadow: 20px 0 60px rgba(20,18,18,.2); }
  .cols { grid-template-columns: minmax(0, 1fr) !important; }
  .card .head .right { display: flex; flex-wrap: wrap; gap: 10px; overflow: visible; }
  .card .head .right .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .card .head .right .tabs::-webkit-scrollbar { display: none; }
  .tiles.five > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .activity .a { grid-template-columns: 32px minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .demobar { left: 8px; right: 8px; transform: none; justify-content: space-between; }
  .demobar button { padding: 0 10px; font-size: 12.5px; height: 34px; }
  .demobar .sep { margin: 0 1px; }
  .toasts { bottom: 70px; }
  .tabs > span { padding: 0 12px; font-size: 13.5px; }
  .bibcard { grid-template-columns: minmax(0, 1fr) auto; } .bibcard b { font-size: 17px; }
  .email .bib b { font-size: 15px; }
}

/* Very thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(20,18,18,.22) transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(20,18,18,.22); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(20,18,18,.4); }
.demobar { scrollbar-width: none; } .demobar::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  .demobar { gap: 0; padding: 4px; overflow: visible; }
  .demobar button { padding: 0 8px; font-size: 12px; height: 34px; gap: 4px; }
  .demobar .sep { display: none; }
}
.card { grid-template-columns: minmax(0, 1fr); }
.card .head > div:first-child { min-width: 0; }
.card .head .right { min-width: 0; max-width: 100%; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card .head .right .tabs { display: flex; } }
html, body { overflow-x: hidden; }
a.x, a.x:visited { color: var(--ink); }
.drawer .body { grid-template-columns: minmax(0, 1fr); }
.mail-view, .mail-view .mb, .email, .email .card-e, .email .card-e > * { min-width: 0; max-width: 100%; }
.email .card-e { grid-template-columns: minmax(0, 1fr); }
.email .bib { grid-template-columns: minmax(0, 1fr) auto; } .email .bib b { white-space: normal; overflow-wrap: anywhere; }
.email .qr { width: 96px; height: 96px; } .email .qr svg { width: 100%; height: 100%; display: block; }
.email .hero .cap { right: 14px; }
@media (max-width: 560px) { .mail-view .mb { padding: 8px; } .mail-view .mb > div { padding: 8px !important; } .email .card-e { padding: 16px 14px; } .email .cal { flex-wrap: wrap; } }
@media (min-width: 921px) { .sidebar .group { padding-top: 22px; } .sidebar { padding-top: 20px; } }
.tabs > span { white-space: nowrap; }
.card .head { flex-wrap: wrap; row-gap: 12px; }
.card .head .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Event switcher */
.evswitch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.evswitch button { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: .62; transition: background .16s, opacity .16s; }
.evswitch button img { height: 22px; width: auto; display: block; }
.evswitch button:hover { opacity: 1; background: var(--hover); }
.evswitch button.on { opacity: 1; background: var(--ink); color: #fff; }
.evswitch button.on[data-id="rwz"] { background: var(--t-forest); } .evswitch button.on[data-id="mba"] { background: var(--t-sky); }
.evlist { display: grid; gap: 10px; }
.evrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-align: left; width: 100%; border: 2px solid transparent; background: var(--canvas); }
.evrow.rwz { background: var(--t-forest); } .evrow.mba { background: var(--t-sky); }
.evrow.on { border-color: var(--ink); }
.evrow img { height: 40px; width: 104px; object-fit: contain; object-position: left center; flex: none; }
.evrow .ini { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; background: var(--t-gold); flex: none; margin-right: 60px; }
.evrow .t { display: grid; gap: 3px; flex: 1; min-width: 0; } .evrow .t b { font-size: 16px; } .evrow .t span { font-size: 12.5px; color: rgba(20,18,18,.66); }
.evrow .t .track { height: 6px; background: rgba(255,255,255,.7); margin: 4px 0 1px; }
.evrow .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; } .evrow .tick svg { width: 14px; height: 14px; }
.mscope { display: inline-flex; align-items: center; gap: 6px; flex: 1; width: auto !important; height: 40px !important; border: 0 !important; background: none !important; border-radius: 12px !important; justify-content: flex-start; }
.mscope b { flex: none !important; } .mscope svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 1360px) { .topbar .search { display: none; } }
@media (max-width: 920px) { .topbar .evswitch { display: none; } }
@media (max-width: 560px) { .evrow img { width: 84px; height: 34px; } .evrow .ini { margin-right: 40px; } }

/* Email viewer */
.viewer { position: fixed; inset: 0; z-index: 88; background: #e9e8e2; display: flex; flex-direction: column; animation: fade .2s ease; }
.viewer header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer header b { font-size: 16px; } .viewer header .sp { flex: 1; }
.viewer-stage { flex: 1; overflow: auto; padding: 28px 20px 110px; display: flex; justify-content: center; align-items: flex-start; }
.device { background: #fff; flex: none; position: relative; box-shadow: 0 24px 60px rgba(20,18,18,.18); }
.device .screen { overflow: hidden; }
.device .mail-view { border: 0; border-radius: 0; }
.device .email { max-width: 600px; margin-inline: auto; }
.device.phone { width: 390px; border-radius: 44px; border: 10px solid #141212; } .device.phone .screen { border-radius: 34px; padding-top: 34px; }
.device.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 104px; height: 26px; border-radius: 14px; background: #141212; z-index: 2; }
.device.tablet { width: 768px; border-radius: 30px; border: 12px solid #141212; } .device.tablet .screen { border-radius: 18px; }
.device.desktop { width: min(1120px, 100%); border-radius: 14px; overflow: hidden; border: 1px solid rgba(20,18,18,.12); }
.device.desktop .chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #f1f0ec; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.device.desktop .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d5d3cb; } .device.desktop .chrome span { margin-left: 10px; }
.device.desktop .mail-view .mh { padding: 22px 32px; } .device.desktop .mail-view .mh b { font-size: 20px; } .device.desktop .mail-view .mb { padding: 0; }
.device.desktop .mail-view .mb > div:first-child, .device.tablet .mail-view .mb > div:first-child { border-radius: 0 !important; padding: 36px 20px !important; }
.device.tablet .mail-view .mb { padding: 0; }
.device.desktop .mail-view .mb > div + div, .device.tablet .mail-view .mb > div + div { padding: 16px 32px 24px; max-width: 664px; margin: 0 auto; }
.device.desktop .email h1, .device.tablet .email h1 { font-size: 28px; }
.device.desktop .email p, .device.tablet .email p { font-size: 15px; }
.device.desktop .email .card-e, .device.tablet .email .card-e { padding: 30px 34px 28px; gap: 18px; }
.device.desktop .email .hero, .device.tablet .email .hero { height: 220px; }
.device.desktop .email .bib b, .device.tablet .email .bib b { font-size: 24px; white-space: nowrap; }
.device.desktop .email .qr, .device.tablet .email .qr { width: 120px; height: 120px; }
.device.desktop .email .footer, .device.tablet .email .footer { padding: 18px 34px 22px; font-size: 12px; }
.device.desktop .email .logo, .device.tablet .email .logo { height: 38px; }
@media (max-width: 700px) { .viewer header { padding: 10px 12px; gap: 8px; } .viewer header b { display: none; } .viewer-stage { padding: 16px 0 110px; justify-content: flex-start; } .device { margin-inline: 12px; } .device.phone { width: min(390px, calc(100vw - 24px)); } .seg span { padding: 0 10px; } }
