/* TLRM demo. Tokens from the approved direction A. */
@font-face { font-family: "Inter"; src: local("Inter"); }
:root {
  --canvas: #f4f3ee; --outer: #e7e6e0; --card: #ffffff; --ink: #141212; --muted: #7b7b70; --muted-2: #a6a59c;
  --line: rgba(20,18,18,.08); --border: rgba(20,18,18,.06); --track: #eeede8; --hover: #f4f3ee;
  --forest: #2d5d38; --forest-deep: #153f27; --gold: #e4b357; --orange: #ef4828; --cream: #f5f1de;
  --navy: #044a6b; --navy-deep: #06304a; --sky: #4aa3cf; --sand: #d6b27f; --coast-orange: #f28c00;
  --t-forest: #dceadb; --t-gold: #f6e3b8; --t-orange: #fbd3c6; --t-cream: #f5f1de; --t-sky: #d4e9f4; --t-sand: #f1e6cf; --t-navy: #cfdbe3; --t-lilac: #e3e1ea; --t-coast: #fddcb8;
  --good: #2d5d38; --good-bg: #dceadb; --warn: #8a5d0b; --warn-bg: #f6e3b8; --bad: #b3261e; --bad-bg: #fbd3c6;
  --r-card: 20px; --r-tile: 16px; --r-input: 12px;
  --shadow: 0 1px 2px rgba(20,18,18,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--outer); color: var(--ink); font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "tnum"; }
em, i { font-style: normal; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- App frame ---------- */
.frame { width: 100%; min-height: 100vh; }
.app { width: 100%; min-height: 100vh; background: var(--canvas); display: grid; grid-template-columns: 272px 1fr; gap: 0; align-items: start; }

/* ---------- Sidebar ---------- */
.sidebar { background: transparent; border-right: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; min-height: 100vh; position: sticky; top: 0; align-self: stretch; }
.org { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
.org .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; }
.org b { display: block; font-size: 16px; line-height: 1.2; }
.org small { font-size: 13px; color: var(--muted); }
.scope { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; min-height: 64px; margin-bottom: 8px; }
.scope .ini { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.scope .ini.all { background: var(--t-gold); color: var(--ink); }
.scope .ini.rwz { background: var(--t-forest); color: var(--forest); }
.scope .ini.mba { background: var(--t-sky); color: var(--navy); }
.scope b { display: block; font-size: 14px; line-height: 1.2; }
.scope small { font-size: 12px; color: var(--muted); }
.scope .chev { margin-left: auto; color: var(--muted); }
.group { font-size: 13px; color: var(--muted); padding: 30px 12px 10px; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: rgba(20,18,18,.05); }
.nav a.active { background: var(--ink); color: #fff; }
.nav a.active svg { fill: currentColor; fill-opacity: .18; }
.nav .count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--t-gold); color: var(--ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.nav .count.neutral { background: var(--track); color: var(--muted); }
.assist { margin-top: auto; background: var(--t-forest); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.assist .h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.assist p { margin: 0; font-size: 13px; color: #2c3a2e; line-height: 1.45; }
.assist .btn { justify-self: start; }
.foot { margin-top: auto; padding-top: 24px; display: grid; gap: 2px; }
.user { display: flex; align-items: center; gap: 12px; padding: 10px 6px 4px; }
.user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--t-gold); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.user b { display: block; font-size: 14px; line-height: 1.2; }
.user small { font-size: 12px; color: var(--muted); }
.user svg { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }

/* ---------- Main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 20px; padding: 28px 32px 32px; }
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .title { min-width: 0; }
.topbar .title h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.topbar .title p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; width: 320px; padding: 0 8px 0 16px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 14px; box-shadow: var(--shadow); }
.search svg { width: 18px; height: 18px; }
.search .kbd { margin-left: auto; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--canvas); border: 1px solid var(--line); font-size: 12px; display: grid; place-items: center; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 14px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap; }
.chip svg { width: 18px; height: 18px; color: var(--muted); }
.bell { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; position: relative; box-shadow: var(--shadow); }
.bell svg { width: 20px; height: 20px; }
.bell::after { content: ""; position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: default; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid rgba(20,18,18,.18); }
.btn.white { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.btn.forest { background: var(--forest); color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.tabs { 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); }
.tabs > span { height: 36px; padding: 0 16px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.tabs > span.active { background: var(--ink); color: #fff; }
.tabs .count { display: inline-block; margin-left: 8px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 0 7px; font-size: 12px; height: auto; }
.tabs > span { display: inline-flex; align-items: center; }
.bar-row { display: flex; align-items: center; gap: 12px; }

/* ---------- Grid and cards ---------- */
.content { display: grid; gap: 20px; align-content: start; min-height: 0; }
.tiles { display: grid; gap: 20px; }
.tiles.five { grid-template-columns: repeat(5, 1fr); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px 22px; min-height: 160px; display: grid; align-content: space-between; gap: 6px; }
.tile.tint { border-color: transparent; }
.tile .label { font-size: 15px; font-weight: 500; padding-right: 48px; }
.tile .value { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.tile .value small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.tile .hint { font-size: 13px; color: var(--muted); }
.tile.tint .hint { color: rgba(20,18,18,.62); }
.tile .ico { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.tile .ico svg { width: 16px; height: 16px; }
.tile.tint .ico { border-color: transparent; }
.delta { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.delta.good { background: var(--good-bg); color: var(--good); }
.delta.warn { background: var(--warn-bg); color: var(--warn); }
.delta.bad { background: var(--bad-bg); color: var(--bad); }
.delta.info { background: var(--t-sky); color: var(--navy); }
.delta.neutral { background: var(--track); color: var(--muted); }
.tile .row { display: flex; align-items: center; gap: 10px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.card .head { display: flex; align-items: flex-start; gap: 12px; }
.card .head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.card .head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card .head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dots { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.split-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Rows with icon squares (reference 1) */
.rows { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); min-height: 68px; }
.item.hot { background: var(--t-orange); border-color: rgba(239,72,40,.35); }
.item .sq { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.item .sq svg { width: 20px; height: 20px; }
.item .sq.forest { background: var(--t-forest); color: var(--forest); }
.item .sq.gold { background: var(--t-gold); color: var(--warn); }
.item .sq.orange { background: var(--t-orange); color: var(--bad); }
.item .sq.sky { background: var(--t-sky); color: var(--navy); }
.item .sq.lilac { background: var(--t-lilac); color: #4a4860; }
.item .sq.sand { background: var(--t-sand); color: #7a5a1a; }
.item.hot .sq { background: #fff; color: var(--orange); }
.item .t { display: grid; gap: 2px; min-width: 0; }
.item .t b { font-size: 15px; font-weight: 600; }
.item .t span { font-size: 13px; color: var(--muted); }
.item.hot .t span { color: rgba(20,18,18,.66); }
.item .act { margin-left: auto; }
.foot-note { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot-note b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Hairline lists (reference 3) */
.list { display: grid; }
.list .li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line); }
.list .li:first-child { border-top: 0; }
.list .li .t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.list .li .t b { font-size: 14.5px; font-weight: 600; }
.list .li .t span { font-size: 12.5px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: none; }
.avatar.gold { background: var(--t-gold); color: var(--ink); }
.avatar.forest { background: var(--t-forest); color: var(--forest); }
.avatar.sky { background: var(--t-sky); color: var(--navy); }
.avatar.lilac { background: var(--t-lilac); color: #4a4860; }
.avatar.sand { background: var(--t-sand); color: #7a5a1a; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--t-sky); color: var(--navy); }
.pill.neutral { background: var(--track); color: var(--muted); }
.pill.ink { background: var(--ink); color: #fff; }
.pill.rwz { background: var(--t-forest); color: var(--forest); }
.pill.mba { background: var(--t-sky); color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.rwz { background: var(--forest); } .dot.mba { background: var(--navy); } .dot.all { background: var(--gold); }

/* Bars, progress, heatmap */
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: 200px 1fr 90px auto; gap: 14px; align-items: center; font-size: 14px; }
.hbar .name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hbar .name .sq { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--canvas); color: var(--ink); }
.hbar .name .sq svg { width: 15px; height: 15px; }
.track { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; display: flex; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--forest); }
.track i.mba { background: var(--sky); }
.track i.gold { background: var(--gold); }
.track i.ink { background: var(--ink); }
.track i.orange { background: var(--orange); }
.track.double { display: grid; gap: 4px; height: auto; background: none; overflow: visible; }
.track.double span { display: block; height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.hbar .val { font-weight: 600; text-align: right; }
.progress { display: grid; gap: 8px; }
.progress .track { height: 10px; }
.progress .legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.big { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.big small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.vbars { display: flex; align-items: flex-end; gap: 12px; height: 220px; }
.vbar { flex: 1; display: grid; align-content: end; gap: 8px; height: 100%; text-align: center; }
.vbar i { display: block; border-radius: 12px 12px 4px 4px; background: var(--t-forest); }
.vbar i.deep { background: var(--forest); } .vbar i.gold { background: var(--gold); } .vbar i.sky { background: var(--t-sky); } .vbar i.navy { background: var(--navy); }
.vbar b { font-size: 15px; }
.vbar span { font-size: 12.5px; color: var(--muted); }
.heat { display: grid; grid-template-columns: 150px repeat(4, 1fr); gap: 8px; align-items: center; font-size: 13px; }
.heat .hd { font-size: 12.5px; color: var(--muted); text-align: center; }
.heat .cell { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--track); color: var(--muted-2); }
.heat .cell.l1 { background: #e8efe6; color: var(--forest); } .heat .cell.l2 { background: var(--t-forest); color: var(--forest); } .heat .cell.l3 { background: #b9d3bb; color: var(--forest-deep); } .heat .cell.l4 { background: var(--forest); color: #fff; }
.heat .cell.s1 { background: #e6f1f7; color: var(--navy); } .heat .cell.s2 { background: var(--t-sky); color: var(--navy); } .heat .cell.s3 { background: #a9d0e6; color: var(--navy-deep); } .heat .cell.s4 { background: var(--navy); color: #fff; }
.legend-row { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.legend-row .dot { width: 10px; height: 10px; }
.check { display: grid; gap: 0; }
.check .li { display: flex; align-items: center; gap: 12px; min-height: 46px; border-top: 1px solid var(--line); font-size: 14.5px; }
.check .li:first-child { border-top: 0; }
.check .li .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid rgba(20,18,18,.18); }
.check .li .tick svg { width: 13px; height: 13px; }
.check .li.done .tick { background: var(--forest); border-color: var(--forest); color: #fff; }
.check .li.mba.done .tick { background: var(--navy); border-color: var(--navy); }
.check .li.now .tick { border-color: var(--orange); background: var(--t-orange); color: var(--orange); }
.check .li .r { margin-left: auto; font-size: 13px; color: var(--muted); }

/* Map card (A) */
.map { position: relative; background: #ecebe4; border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden; min-height: 420px; }
.map .title { position: absolute; left: 20px; top: 18px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.map svg { width: 100%; height: 100%; display: block; }
.map .lab { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.map .lab.rwz { background: var(--t-forest); color: var(--forest-deep); border-color: transparent; }
.map .lab.mba { background: var(--t-sky); color: var(--navy-deep); border-color: transparent; }
.map .lab.ghost { color: var(--muted); font-weight: 500; }

/* Table (B) */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl .who span { display: block; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .who { display: flex; align-items: center; gap: 12px; }
.tbl .who img, .tbl .who .ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--track); display: grid; place-items: center; color: var(--muted); }
.tbl .who b { display: block; font-size: 14.5px; }
.tbl .who span { font-size: 12.5px; color: var(--muted); }
.tbl .ev { display: inline-flex; gap: 6px; }

/* Event columns (C) */
.cols { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 20px; align-items: stretch; }
.evcol { display: grid; gap: 16px; }
.evhead { border-radius: var(--r-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; min-height: 100%; }
.evhead .progress { margin-top: auto; }
.evhead.rwz { background: var(--t-forest); }
.evhead.mba { background: var(--t-sky); }
.evhead img.logo { height: 40px; width: auto; }
.evhead .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.evhead .motif { position: absolute; right: -20px; bottom: -30px; width: 220px; opacity: .22; }
.evhead h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--canvas); }
.thumb .band { height: 6px; }
.thumb .body { padding: 10px; display: grid; gap: 6px; }
.thumb .body i { display: block; height: 6px; border-radius: 3px; background: var(--track); }
.thumb .body i.w60 { width: 60%; } .thumb .body i.w80 { width: 80%; }
.thumb .body b { font-size: 12px; font-weight: 600; }
.pcard { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: var(--card); }
.pcard img, .pcard .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--track); flex: none; display: grid; place-items: center; color: var(--muted); }
.pcard .t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pcard .t b { font-size: 14px; }
.pcard .t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { border: 1.5px dashed rgba(20,18,18,.16); border-radius: 16px; padding: 22px; display: grid; gap: 8px; justify-items: start; }
.empty b { font-size: 15px; }
.empty p { margin: 0; font-size: 13px; color: var(--muted); }
.activity { display: grid; gap: 12px; }
.activity .a { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.activity .a small { color: var(--muted); font-size: 12px; }
.activity .avatar { width: 32px; height: 32px; font-size: 11px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery .g { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--canvas); }
.gallery .g img { width: 100%; height: 104px; object-fit: cover; }
.gallery .g div { padding: 9px 11px 10px; font-size: 13px; display: grid; gap: 3px; }
.gallery .g div .pill { justify-self: start; margin-top: 2px; }
.seg { display: inline-flex; padding: 3px; background: var(--track); border-radius: 999px; }
.seg span { height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg span.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg svg { width: 15px; height: 15px; }
.gallery .g div b { display: block; }
.gallery .g div span { color: var(--muted); font-size: 12px; }

/* ---------- Email prototypes ---------- */
.emails { width: 1440px; min-height: 1000px; padding: 16px; }
.emails .app { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 48px; align-items: start; justify-items: center; }
.phone { width: 430px; height: auto; border-radius: 44px; background: #111; padding: 12px; box-shadow: 0 30px 60px rgba(20,18,18,.25); position: relative; }
.phone .screen { width: 100%; min-height: 880px; border-radius: 34px; overflow: hidden; background: #fff; position: relative; }
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #111; z-index: 3; }
.mail { }
.mail .hdr { padding: 66px 22px 12px; display: grid; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
.mail .hdr .from { display: flex; align-items: center; gap: 10px; }
.mail .hdr .from .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.mail .hdr .from b { display: block; font-size: 14px; }
.mail .hdr .from span { font-size: 12px; color: var(--muted); }
.mail .hdr .subj { font-size: 16px; font-weight: 600; margin-top: 6px; }
.mail .hdr .pre { font-size: 12.5px; color: var(--muted); }
.mail .body { padding: 14px; }
.email { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.email .band { height: 56px; background-size: cover; background-position: center; }
.email .card-e { padding: 20px 20px 18px; display: grid; gap: 14px; background: #fff; }
.email .logo { height: 30px; width: auto; }
.email .kicker { font-size: 12.5px; font-weight: 600; }
.email h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.email p { margin: 0; font-size: 14px; line-height: 1.55; color: #33322e; }
.email .hero { height: 150px; border-radius: 12px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.email .hero .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
.email .hero .cap { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 600; font-size: 13px; }
.email .bib { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; }
.email .bib b { font-size: 18px; white-space: nowrap; letter-spacing: .01em; }
.email .bib span { font-size: 12.5px; color: var(--muted); }
.email .qr { width: 104px; height: 104px; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--border); }
.email .qr i { display: block; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='%23141212' d='M0 0h16v16H0zm40 0h16v16H40zm-20 8h8v8h-8zm8 16h8v8h-8zM0 24h8v8H0zm16 8h8v8h-8zm32-8h8v8h-8zM0 40h16v16H0zm24 0h8v8h-8zm16 8h16v8H40zm-8-16h8v8h-8z'/%3E%3C/svg%3E"); background-size: 30px 30px; }
.email .rcpt { display: grid; }
.email .rcpt .r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.email .rcpt .r:first-child { border-top: 0; }
.email .rcpt .r.total { font-weight: 600; font-size: 14.5px; }
.email .rcpt .r span:last-child { font-variant-numeric: tabular-nums; }
.email .btn-e { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; }
.email .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.email .facts div { padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.email .facts div b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.email .footer { padding: 14px 20px 18px; font-size: 11.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); background: #fff; }
.email.outside { border: 0; padding: 12px 20px 0; }
.email .outside { text-align: center; font-size: 11px; color: var(--muted-2); padding: 10px 8px 0; }
.email .cal { display: flex; gap: 8px; }
.email .cal span { flex: 1; height: 36px; border-radius: 999px; border: 1px solid rgba(20,18,18,.18); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.email .pillbar { display: flex; align-items: center; gap: 8px; }

