/* Bordr web app — the same forest look as the iPhone app. Shared tokens live in /tokens.css;
   the app overrides the palette here. */
:root, :root[data-theme="light"] {
  --ground: #f1f3ec;
  --card: #fdfefa;
  --track: #e2e7db;
  --ink: #102119;
  --ink-2: #607066;
  --line: rgba(16, 33, 25, 0.09);
  --accent: #336b38;
  --accent-soft: rgba(51, 107, 56, 0.12);
  --premium: #e3f1c2;
  --lime: #d5f161;
  --fixed-ink: #0c1b14;
  --success: #2f8a4e;
  --warning: #c9500c;
  --warning-fill: #f07a2a;
  --land: #d6dbcf;
  --shadow: 0 1px 2px rgba(16, 33, 25, 0.04), 0 8px 26px rgba(16, 33, 25, 0.07);
  --shadow-lg: 0 2px 6px rgba(16, 33, 25, 0.06), 0 30px 70px rgba(16, 33, 25, 0.16);
  --r-card: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #0b1510;
  --card: #16241c;
  --track: #24342a;
  --ink: #eef3e3;
  --ink-2: #9eae9e;
  --line: rgba(238, 243, 227, 0.09);
  --accent: #d1ed5c;
  --accent-soft: rgba(209, 237, 92, 0.14);
  --premium: #26381c;
  --success: #5cc27f;
  --warning: #f2884a;
  --warning-fill: #f07a2a;
  --land: #2a3a30;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html, body { height: 100%; }
body { overflow-x: hidden; background: var(--ground); }
.muted { color: var(--ink-2); }
.hidden { display: none !important; }
em.ac { font-style: italic; color: var(--accent); }
.on-photo em.ac, .hero em.ac { color: var(--lime); }

/* Shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 16px; border-right: 1px solid var(--line);
}
.side .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 26px; padding: 0 10px 22px; }
.side .brand img { width: 32px; height: 32px; border-radius: 8px; }
.side a.item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background .15s, color .15s;
}
.side a.item:hover { background: var(--track); color: var(--ink); }
.side a.item.on { background: var(--lime); color: var(--fixed-ink); }
.side a.item svg { width: 22px; height: 22px; flex: none; }
.side .grow { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; text-decoration: none; }
.side .me:hover, .side .me.on { background: var(--track); }
.side .me b { display: block; font-size: 14px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .me small { color: var(--ink-2); font-size: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--lime); color: var(--fixed-ink); font-weight: 700; font-size: 15px;
}
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }

.view { padding: 32px clamp(20px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; outline: none; }
.tabbar { display: none; }

.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Type & layout */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 52px); line-height: 1.05; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); }
h2.sec { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 36px 0 14px; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--ground); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, opacity .12s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.lime { background: var(--lime); color: var(--fixed-ink); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.soft { background: var(--track); color: var(--ink); }
.btn.glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.btn.danger { background: transparent; color: var(--warning); }
.btn.wide { width: 100%; height: 54px; font-size: 16px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }

/* Chips & segmented */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap;
}
.chip.on { background: var(--fixed-ink); color: #fff; }
:root[data-theme="dark"] .chip.on { background: var(--lime); color: var(--fixed-ink); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--track); }
.seg button { height: 38px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; color: var(--ink); }
.seg button.on { background: var(--fixed-ink); color: #fff; }
:root[data-theme="dark"] .seg button.on { background: var(--lime); color: var(--fixed-ink); }

/* Inputs */
.field { display: grid; gap: 6px; min-width: 0; }
.field > div { min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 50px; width: 100%; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 16px; outline: none;
}
.input:focus { border-color: var(--accent); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23607066' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); }
.search .input { padding-left: 44px; border: 0; box-shadow: var(--shadow); }
.search.glass svg { color: rgba(255, 255, 255, .75); }
.search.glass .input {
  height: 54px; border-radius: 999px; color: #fff; box-shadow: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.search.glass .input::placeholder { color: rgba(255, 255, 255, .7); }
.error { color: var(--warning); font-size: 14px; margin: 0; }

/* Photo header, like PhotoBanner in the app: a photo (or the country on a dark map) with the title on it. */
.hero {
  position: relative; overflow: hidden; border-radius: 30px; min-height: 300px; margin-bottom: 26px;
  background: var(--fixed-ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; box-shadow: var(--shadow-lg);
}
.hero.tall { min-height: 420px; }
.hero > img, .hero > .hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero > img { opacity: 0; transition: opacity .8s ease; }
.hero > img.in { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 14, 9, .35) 0%, rgba(5, 14, 9, 0) 28%, rgba(5, 14, 9, .1) 52%, rgba(5, 14, 9, .78) 100%);
}
.hero-top { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-body { padding: 76px 28px 28px; display: grid; gap: 8px; }
.hero .kicker { display: flex; align-items: center; gap: 8px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.hero .sub { color: rgba(255, 255, 255, .82); font-size: 16px; font-weight: 500; }
.hero .kicker { color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; }
.hero .flag { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.pill-glass {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); text-decoration: none; white-space: nowrap;
}
.pill-glass svg { width: 16px; height: 16px; }
.hero-glass {
  margin-top: 10px; border-radius: 22px; padding: 16px 18px; color: #fff;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.hero-glass .limit-foot, .hero-glass .muted { color: rgba(255, 255, 255, .75); }
.hero-glass .bar { background: rgba(255, 255, 255, .2); }
.hero-glass .limit-left { color: #fff; }
.hero-glass .limit-left.warn, .hero-glass .limit-left.over { color: #ff9a5c; }
.hero-glass .more { color: var(--lime); font-weight: 700; font-size: 14px; }

/* Map card */
.map-card { padding: 18px 18px 16px; }
.world { display: block; width: 100%; height: auto; }
.world .land { fill: var(--land); stroke: var(--card); stroke-width: .5; }
.world .seen { stroke-width: 1; }
.world .dot { fill: var(--accent); }
.hero-map .land { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .14); stroke-width: .4; }
.hero-map .focus { fill: var(--lime); stroke: var(--lime); stroke-width: .6; }
.hero-map { background: radial-gradient(120% 90% at 50% 40%, #173226, #08130d); }
.map-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--track); font-size: 14px; font-weight: 600; }
.map-pill i { width: 9px; height: 9px; border-radius: 50%; }
.map-pill span { color: var(--ink-2); font-weight: 600; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% 0%, #1d3a2b, #08130d 70%); color: #fff; }
.auth-card { width: min(420px, 100%); }
.auth-card .logo { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 0 60px rgba(213, 241, 97, .25), var(--shadow-lg); }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; text-align: center; margin: 0; }
.auth-card .sub { text-align: center; color: rgba(255, 255, 255, .7); margin: 8px 0 28px; }
.auth .field > span { color: rgba(255, 255, 255, .7); }
.auth .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.auth .input:focus { border-color: var(--lime); }
.auth .btn[type=submit] { background: var(--lime); color: var(--fixed-ink); }
.auth .link { color: var(--lime); }
.auth .muted { color: rgba(255, 255, 255, .6); }
.apple-btn { background: #fff !important; color: #000 !important; }
.or { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .55); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.auth-foot { text-align: center; margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-family: var(--serif); }
.back-home { position: fixed; top: 20px; left: 20px; white-space: nowrap; z-index: 2; }
body.authing .back-home { color: rgba(255, 255, 255, .75); }

/* Today */
.now-card { padding: 26px 26px 22px; display: flex; align-items: center; gap: 20px; }
.now-card .big { font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.now-card small { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.tool { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.tool i { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tool i.primary { background: var(--lime); color: var(--fixed-ink); border-color: transparent; }
.tool svg { width: 24px; height: 24px; }

/* Limits */
.limit { cursor: pointer; transition: transform .15s; }
.limit:hover { transform: translateY(-2px); }
.limit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.limit-name { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; }
.limit-left { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.limit-left.warn, .limit-left.over { color: var(--warning); }
.bar { height: 10px; border-radius: 999px; background: var(--track); margin: 14px 0 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar i.warn { background: var(--warning-fill); }
.limit-foot { color: var(--ink-2); font-size: 14px; }

/* Stats */
.stat { padding: 16px 18px; border-radius: 22px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 13px; font-weight: 600; }

/* Year calendar */
.year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 26px; }
.month h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.month .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.month .wd { font-size: 10px; color: var(--ink-2); text-align: center; font-weight: 600; }
.day {
  aspect-ratio: 1; border-radius: 7px; border: 0; padding: 0; cursor: pointer; font-size: 11px; font-weight: 600;
  background: transparent; color: var(--ink); display: grid; place-items: center;
}
.day[style*="background"] { color: var(--fixed-ink); }
.day:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day.future { opacity: .55; }
.day.split { background-image: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%) !important; color: var(--fixed-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

/* Lists */
.list { padding: 6px 0; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 22px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; color: var(--ink);
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { background: color-mix(in srgb, var(--track) 50%, transparent); }
.list-row .t { font-weight: 650; font-size: 16px; }
.list-row .s { color: var(--ink-2); font-size: 14px; }
.list-row .end { margin-left: auto; font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); margin-bottom: 6px; }

/* Guide */
.guide-tools { display: grid; gap: 14px; margin-bottom: 22px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s; overflow: hidden; }
.gcard:hover { transform: translateY(-3px); }
.gcard.photo { padding: 0; }
.gcard .shot { position: relative; height: 170px; background: var(--fixed-ink); overflow: hidden; }
.gcard .shot img, .gcard .shot svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 14, 9, .7)); }
.gcard .shot .name { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff; }
.gcard .shot .name .serif { font-size: 26px; line-height: 1.05; }
.gcard .shot .name small { display: block; font-size: 13px; color: rgba(255, 255, 255, .8); font-family: var(--sans); }
.gcard .inner { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard-head { display: flex; align-items: center; gap: 12px; }
.gcard-head .serif { font-size: 24px; line-height: 1.1; }
.gcard-head small { display: block; color: var(--ink-2); font-size: 13px; }
.gcard p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--accent-soft); color: var(--accent); }
.pill.money { background: var(--track); color: var(--ink); }
.dots { margin-left: auto; letter-spacing: 2px; font-size: 11px; white-space: nowrap; }
.dots i { opacity: .2; font-style: normal; }
.group-head { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; text-decoration: none; }
.group-head .serif { font-size: 24px; }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status.green { background: rgba(47, 138, 78, .14); color: var(--success); }
.status.blue { background: rgba(60, 110, 200, .14); color: #3c6ec8; }
.status.amber { background: rgba(214, 140, 20, .16); color: #a86a00; }
.status.red { background: rgba(201, 80, 12, .13); color: var(--warning); }
:root[data-theme="dark"] .status.blue { color: #8fb1f0; }
:root[data-theme="dark"] .status.amber { color: #f0c062; }

/* Detail */
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.detail-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 50px); line-height: 1.05; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; margin-bottom: 18px; font-size: 15px; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 18px; height: 18px; }
.prose p { margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 15px; margin: 12px 0 0; }
.kv dt { color: var(--ink-2); font-weight: 600; }
.kv dd { margin: 0; }
.bullets { margin: 8px 0 0; padding-left: 20px; }
.bullets li { margin-bottom: 6px; }
.program { padding: 0; overflow: hidden; }
.program summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: flex-start; gap: 12px; }
.program summary::-webkit-details-marker { display: none; }
.program summary .t { font-weight: 650; font-size: 17px; }
.program summary .s { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.program summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--ink-2); transition: transform .2s; }
.program[open] summary::after { transform: rotate(45deg); }
.program .body { padding: 0 22px 20px; }
.sources { font-size: 13px; color: var(--ink-2); }
.sources a { color: var(--ink-2); }
.verified { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.climate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: 14px; }
.climate div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--ink-2); }
.climate i { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); opacity: .85; }
.climate b { font-size: 11px; color: var(--ink); font-weight: 650; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 10px; }
.score span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.score .bar { height: 6px; margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 20px; }
.facts div span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.facts div b { font-weight: 600; }
.living { display: grid; gap: 2px; }
.living .lrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.living .lrow:last-child { border-bottom: 0; }
.living .lrow b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.living h4 { margin: 14px 0 2px; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.living h4:first-child { margin-top: 0; }

/* Locked */
.locked { text-align: center; max-width: 520px; margin: 8vh auto 0; }
.locked .badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--fixed-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.locked h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 46px); margin: 18px 0 10px; line-height: 1.1; }
.locked p { color: var(--ink-2); font-size: 17px; }
.locked .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 7, .45); animation: fade .18s ease; }
.modal {
  width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--ground); border-radius: 30px;
  box-shadow: var(--shadow-lg); padding: 26px; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.modal .actions { display: grid; gap: 8px; margin-top: 22px; }
.modal .actions .btn:not(.danger):not(.soft):not(.ghost) { background: var(--lime); color: var(--fixed-ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }

/* Country picker */
.picker { position: relative; }
.picker-btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 16px; border-radius: 18px; border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer; font-size: 17px; font-weight: 650; text-align: left; color: var(--ink); }
.picker-btn .ph { color: var(--ink-2); font-weight: 500; }
.picker-pop { position: absolute; left: 0; right: 0; top: 66px; z-index: 5; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; }
.picker-pop .input { height: 44px; margin-bottom: 6px; }
.picker-list { max-height: 260px; overflow: auto; }
.picker-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); }
.picker-list button:hover, .picker-list button.hl { background: var(--track); }
.quick { margin-top: 10px; }
.quick .chip { box-shadow: none; background: var(--card); height: 34px; padding: 0 12px 0 5px; font-size: 13px; }

.stepper { display: flex; align-items: center; gap: 16px; }
.stepper .icon-btn { width: 48px; height: 48px; background: var(--card); }
.stepper .num { flex: 1; text-align: center; }
.stepper .num b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.stepper .num span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.presets { display: flex; gap: 8px; margin-top: 14px; }
.presets button { flex: 1; height: 38px; border-radius: 999px; border: 0; background: var(--card); cursor: pointer; font-weight: 650; color: var(--ink); }
.presets button.on { background: var(--fixed-ink); color: #fff; }
:root[data-theme="dark"] .presets button.on { background: var(--lime); color: var(--fixed-ink); }
.leave { text-align: center; font-family: var(--serif); font-size: 22px; margin-top: 18px; }
.suggest { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; }

/* Day / night switch, the same sky as on the site and in the app. */
.sky {
  position: relative; flex: none; width: 64px; height: 36px; padding: 0; border: 0; border-radius: 999px;
  overflow: hidden; cursor: pointer; isolation: isolate;
  background: linear-gradient(100deg, #a7cdf4, #d7eafd); box-shadow: inset 0 1px 3px rgba(30, 60, 110, .18);
}
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #1c1b3c, #3b336c); opacity: 0; transition: opacity .45s ease; }
.sky-orb {
  position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #f0ba57;
  box-shadow: 0 2px 6px rgba(150, 100, 20, .3), inset -2px -3px 5px rgba(205, 140, 40, .35);
  transition: transform .5s cubic-bezier(.34, 1.36, .64, 1), background-color .45s ease, box-shadow .45s ease;
}
.sky-orb::before, .sky-orb::after { content: ""; position: absolute; border-radius: 50%; background: rgba(120, 112, 96, .22); opacity: 0; transition: opacity .3s ease; }
.sky-orb::before { width: 8px; height: 8px; top: 6px; left: 13px; }
.sky-orb::after { width: 5px; height: 5px; top: 16px; left: 7px; }
.sky-cloud { position: absolute; right: 6px; bottom: 9px; display: flex; align-items: flex-end; transition: transform .5s ease, opacity .35s ease; }
.sky-cloud i { display: block; border-radius: 50%; background: #fff; }
.sky-cloud i:nth-child(1) { width: 10px; height: 10px; }
.sky-cloud i:nth-child(2) { width: 14px; height: 14px; margin: 0 -4px; }
.sky-cloud i:nth-child(3) { width: 10px; height: 10px; }
.sky-stars i { position: absolute; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.2); transition: opacity .4s ease, transform .4s ease; }
.sky-stars i:nth-child(1) { width: 3px; height: 3px; left: 11px; top: 9px; }
.sky-stars i:nth-child(2) { width: 2px; height: 2px; left: 21px; top: 22px; }
.sky-stars i:nth-child(3) { width: 2px; height: 2px; left: 8px; top: 24px; }
.sky-stars i:nth-child(4) { width: 2px; height: 2px; left: 27px; top: 8px; }
[data-theme="dark"] .sky::before { opacity: 1; }
[data-theme="dark"] .sky-orb { transform: translateX(28px); background-color: #f1ede2; box-shadow: 0 0 10px rgba(241, 237, 226, .35), inset -2px -3px 5px rgba(150, 140, 120, .3); }
[data-theme="dark"] .sky-orb::before, [data-theme="dark"] .sky-orb::after { opacity: 1; }
[data-theme="dark"] .sky-cloud { transform: translateX(26px); opacity: 0; }
[data-theme="dark"] .sky-stars i { opacity: .9; transform: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--fixed-ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1100px) { .year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 0 16px calc(118px + env(safe-area-inset-bottom)); }
  .view > :first-child:not(.hero) { margin-top: 24px; }
  .hero { margin: 0 -16px 22px; border-radius: 0 0 30px 30px; min-height: 280px; box-shadow: none; }
  .hero.tall { min-height: 460px; }
  .hero-top { top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; }
  .hero-body { padding: calc(70px + env(safe-area-inset-top)) 18px 22px; }
  /* Floating capsule like the app's tab bar: icons only, lime pill on the open tab. */
  .tabbar {
    display: flex; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
    background: rgba(12, 27, 20, .84); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 7px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  }
  .tabbar a { width: 58px; height: 48px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; color: rgba(255, 255, 255, .7); transition: background .25s, color .25s; }
  .tabbar a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabbar a.on { background: var(--lime); color: var(--fixed-ink); }
  .tabbar svg { width: 22px; height: 22px; }
  .cols, .grid2 { grid-template-columns: 1fr; }
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .grid3 { gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 28px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .modal-wrap { place-items: end center; padding: 0; }
  .modal { border-radius: 30px 30px 0 0; max-height: 92vh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .year { gap: 16px 14px; }
  .tools { gap: 6px; }
  .tool i { width: 54px; height: 54px; }
}

/* Sign-in screen has no navigation. */
body.authing .shell { display: block; }
body.authing .view { max-width: none; padding: 0; }
body.authing .view > :first-child { margin-top: 0; }
body.authing .tabbar { display: none; }
.shell > * { min-width: 0; }
.prose, .sources, .kv dd { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .hero > img, .sky *, .sky::before { transition: none !important; } }

/* Quiz, like NomadQuizSheet: one question at a time on the dark forest sky. */
.quiz { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 24px 0; }
.quiz-card {
  width: min(620px, 100%); padding: 28px; border-radius: 32px; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #1f4130, #0a1710 75%); box-shadow: var(--shadow-lg);
}
.quiz-card.center { text-align: center; padding: 60px 28px; }
.q-step { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.q-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-bottom: 26px; }
.q-bars i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); transition: background .3s; }
.q-bars i.on { background: var(--lime); }
.q-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 0; }
.q-hint { color: rgba(255, 255, 255, .7); margin: 10px 0 22px; font-size: 16px; }
.q-options { display: grid; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 20px; cursor: pointer; text-align: left; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, border-color .15s, transform .12s;
}
.q-opt:hover { background: rgba(255, 255, 255, .13); }
.q-opt:active { transform: scale(.985); }
.q-opt.on { border-color: var(--lime); background: rgba(213, 241, 97, .14); }
.q-opt i { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 22px; font-weight: 700; color: var(--lime); background: rgba(255, 255, 255, .1); }
.q-opt b { display: block; font-size: 16px; }
.q-opt small { display: block; color: rgba(255, 255, 255, .65); font-size: 14px; margin-top: 2px; }
.quiz .chip { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); }
.quiz .chip.on { background: var(--lime); color: var(--fixed-ink); border-color: transparent; }
.ring {
  --p: 50; --s: 64px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  position: relative;
}
.ring b { position: absolute; font-size: 15px; color: #fff; }
.hero-top .ring { -webkit-mask: none; mask: none; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); }
.hero-top .ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(8, 19, 13, .75); }
.hero-top .ring b { z-index: 1; }
.reasons { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.reasons li::before { content: "✓"; color: var(--lime); font-weight: 700; margin-right: 8px; }
.rank { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--track); font-weight: 700; font-size: 13px; }

/* Quiz card in the guide */
.quiz-promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 260px;
  padding: 24px; color: #fff; text-decoration: none; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 0%, #2a5a3c, #0a1710 70%);
}
.quiz-promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.quiz-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 14, 9, .1), rgba(5, 14, 9, .85)); }
.quiz-promo b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.quiz-promo p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.quiz-promo .match { display: flex; align-items: center; gap: 12px; }
.quiz-promo .match small { display: block; color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 13px; }
.quiz-promo .match .serif { font-size: 24px; }
.quiz-promo .ring { --s: 56px; }
.quiz-promo .btn { align-self: flex-start; }
.map-card { cursor: pointer; transition: transform .15s; }
.map-card:hover { transform: translateY(-2px); }
.map-card .expand { margin-left: auto; color: var(--ink-2); }

/* Full-screen guide map */
.mapview { position: fixed; inset: 0; z-index: 40; background: radial-gradient(120% 90% at 50% 30%, #173226, #07110b); color: #fff; display: flex; flex-direction: column; animation: fade .2s ease; }
.mapview-top { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; flex-wrap: wrap; }
.mapview-top .chips { flex: 1; min-width: 0; }
.mapview .chip { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); }
.mapview .chip.on { background: var(--lime); color: var(--fixed-ink); }
.mapview-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.mapview-stage.drag { cursor: grabbing; }
.mapview svg { width: 100%; height: 100%; display: block; }
.mapview .land { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .16); stroke-width: .4; vector-effect: non-scaling-stroke; }
.mapview .pin { fill: var(--lime); stroke: #0a1710; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.mapview .pin:hover, .mapview .pin.hl { fill: #fff; }
.map-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap;
  padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--fixed-ink); font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  display: flex; align-items: center; gap: 8px;
}
.map-tip small { color: #607066; font-weight: 600; }
.map-hint { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 13px; pointer-events: none; white-space: nowrap; }
.mapview .zoom { position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.mapview .zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(14px); }

/* Editors with the country on a photo on top, like the app's sheets. */
.modal.sheet { padding: 0; overflow: auto; background: var(--ground); }
.m-hero { position: relative; height: 170px; background: var(--fixed-ink); overflow: hidden; color: #fff; isolation: isolate; display: flex; align-items: flex-end; }
.m-hero > img, .m-hero > .hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.m-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 14, 9, .2), rgba(5, 14, 9, .75)); }
.m-hero .m-title { padding: 18px 22px; display: grid; gap: 4px; }
.m-hero .m-title small { color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 14px; }
.m-hero .m-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.m-hero .icon-btn { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); }
.m-body { padding: 20px 22px 24px; }
.stepper, .stepper * { user-select: none; -webkit-user-select: none; }
.stepper .icon-btn { background: var(--track); box-shadow: none; }
.stepper .num b { font-size: 54px; }
.presets button.on { background: var(--lime) !important; color: var(--fixed-ink) !important; }
.leave-card { margin-top: 18px; border-radius: 22px; padding: 16px 18px; background: var(--premium); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.leave-card small { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.leave-card b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.date-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input[type=date] { font-weight: 600; }
.badge-lime { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--fixed-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
img.avatar { object-fit: cover; background: var(--track); }
.avatar-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-btn i { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fixed-ink); color: #fff; font-style: normal; font-size: 13px; border: 2px solid var(--card); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; }
.avatar-grid button { padding: 4px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.avatar-grid button.on { box-shadow: 0 0 0 3px var(--lime); }
.avatar-grid .avatar { width: 72px; height: 72px; font-size: 24px; }

/* Clocks and currency on Today */
.clocks { display: flex; gap: 18px; align-items: center; }
.clock-list { flex: 1; display: grid; gap: 6px; }
.clock-list div { display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.clock-list b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: #fff; }
.rate { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .18); display: grid; }
.rate small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.rate b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
@media (max-width: 560px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } .clocks { gap: 12px; } .rate b { font-size: 24px; } }

/* Converter */
.conv { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.conv-amount, .conv-out { height: 64px; font-family: var(--serif); font-size: 32px; }
.conv-out { display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: var(--premium); }
.conv-swap { margin: 10px auto; transform: rotate(90deg); }

/* Wallet */
.wallet-total { border-radius: 28px; padding: 22px 24px; color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.wallet-total small { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.wallet-total > b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.1; margin: 4px 0 12px; }
.wallet-total .base { display: inline-flex; align-items: center; gap: 8px; height: 38px; border-radius: 999px; padding: 0 12px 0 6px; border: 0; background: var(--track); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.wallet-total .base .flag { --s: 26px !important; }
.wallet-total .base svg { color: var(--ink-2); }
.flow span { padding: 10px 14px; border-radius: 16px; background: var(--track); min-width: 150px; }
.flow span:first-child { color: var(--success); }
.flow span:last-child { color: var(--warning); }
.flow span small { color: var(--ink-2); font-size: 12.5px; }
.flow { display: flex; gap: 10px; flex-wrap: wrap; }
.flow span { display: grid; font-weight: 600; font-size: 18px; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.acc { display: grid; gap: 6px; padding: 18px; border-radius: 22px; border: 0; color: #fff; text-align: left; cursor: pointer; min-height: 132px; align-content: space-between; box-shadow: var(--shadow); transition: transform .15s; }
.acc:hover { transform: translateY(-2px); }
.acc-top { display: flex; align-items: center; justify-content: space-between; }
.acc-top i { font-style: normal; font-size: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.acc-top small { color: rgba(255, 255, 255, .8); font-weight: 600; }
.acc-name { font-weight: 600; font-size: 16px; }
.acc b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.acc-preview { cursor: default; }
.day-head { margin: 16px 0 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.cat-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--track); font-size: 20px; }
.list-row .end.plus { color: var(--success); }
.op-amount { height: 72px; font-family: var(--serif); font-size: 40px; text-align: center; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kinds button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.kinds button i { font-style: normal; font-size: 20px; }
.kinds button.on { border-color: var(--accent); background: var(--accent-soft); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--accent); }
.quick .chip.on { background: var(--fixed-ink); color: #fff; }
:root[data-theme="dark"] .quick .chip.on { background: var(--lime); color: var(--fixed-ink); }

/* Route animation */
.route-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.route-stage { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #f4f1ec; }
.route-stage canvas { display: block; width: 100%; height: auto; }
.route-stage.square { max-width: 520px; }
.route-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: #6b6660; font-weight: 600; }
@media (max-width: 900px) { .route-layout { grid-template-columns: 1fr; } .route-stage.story { max-width: 380px; margin: 0 auto; } }
.route-side .seg button { white-space: nowrap; padding: 0 18px; }
.lang-select { width: auto; min-width: 160px; height: 44px; border-radius: 999px; font-weight: 600; }
.map-close { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); }
.map-close svg { width: 18px; height: 18px; }
.hero .locate { justify-self: start; margin-top: 10px; }

/* Language menu in the profile, like the one on the site. */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.lang-btn svg { transition: transform .2s; color: var(--ink-2); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 200px; padding: 6px; display: grid;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
.lang-list button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 15px; font-weight: 500; text-align: left; color: var(--ink); }
.lang-list button span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.lang-list button:hover { background: var(--track); }
.lang-list button[aria-checked="true"] { font-weight: 700; }
.lang-list button[aria-checked="true"] span { color: var(--accent); }

/* Wallet: expense a soft coral, income a soft green. */
.btn.op-out { background: #f4b4a6; color: #3b130c; }
.btn.op-in { background: #bfe6a2; color: #12280c; }
.btn.op-out:hover, .btn.op-in:hover { opacity: .9; }

/* Date field and calendar */
.date-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; font-weight: 600; }
.date-btn svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.calendar {
  position: fixed; z-index: 80; width: 316px; padding: 14px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.cal-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--track); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.cal-head button svg { width: 16px; height: 16px; }
.cal-head button.flip svg { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid i { font-style: normal; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.cal-grid button:hover { background: var(--track); }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-grid button.on { background: var(--lime); color: var(--fixed-ink); box-shadow: none; }
.cal-grid button:disabled { opacity: .3; cursor: default; background: none; }
.cal-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.cal-foot button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--track); color: var(--ink); font-weight: 600; cursor: pointer; }

/* Converter rows, like the app's currency card */
.cur-rows { display: grid; gap: 8px; }
.cur-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.cur-name { display: grid; min-width: 0; flex: none; width: 128px; }
.cur-name b { font-size: 15px; }
.cur-name small { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur-amount { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 14px; padding: 0 12px; background: transparent; color: var(--ink); text-align: right; font-family: var(--serif); font-size: 28px; outline: none; }
.cur-amount:focus { background: var(--premium); }
.cur-del { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; background: var(--track); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; opacity: .55; }
.cur-del:hover { opacity: 1; }
.cur-del svg { width: 13px; height: 13px; }
.days-input { width: 100%; border: 0; background: none; text-align: center; font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--ink); outline: none; padding: 0; border-radius: 12px; }
.days-input:focus { background: var(--premium); }
.stepper .num input { user-select: text; -webkit-user-select: text; }
.clocks { display: block; position: relative; }
.clock-list { display: grid; gap: 2px; }
.clock-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.clock-list > div.mine { color: #fff; font-weight: 600; }
.clock-list em { font-style: normal; color: var(--lime); font-weight: 600; }
.clock-time { width: 128px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: right; padding: 0 8px; font-family: var(--serif); font-size: 22px; cursor: text; outline: none; }
.clock-time:hover { background: rgba(255, 255, 255, .08); }
.clock-time:focus { background: rgba(255, 255, 255, .16); }
.clock-now { margin-top: 10px; cursor: pointer; }
.pick-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; font-weight: 600; }
.pick-btn > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-btn > svg { flex: none; color: var(--ink-2); }
.picklist { position: fixed; z-index: 80; padding: 8px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.picklist .search { margin-bottom: 6px; }
.picklist .search .input { height: 42px; box-shadow: none; background: var(--track); }
.pick-items { max-height: 340px; overflow: auto; display: grid; }
.pick-items button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; color: var(--ink); font-size: 15px; }
.pick-items button:hover, .pick-items button.hl { background: var(--track); }
.pick-items button.on { font-weight: 700; }
.pick-items .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-items .cd { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pick-items button.on .cd { color: var(--accent); }
.cur-badge { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--track); font-style: normal; font-weight: 700; font-size: 12px; flex: none; }

/* World clocks, like the app's card, on the photo */
.clocks { display: grid; gap: 8px; }
.clock-head { display: flex; align-items: center; gap: 8px; }
.clock-head > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.clock-now { height: 26px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(213, 241, 97, .2); color: var(--lime); font-weight: 700; font-size: 12px; cursor: pointer; }
.clock-add { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.clock-add svg { width: 15px; height: 15px; }
.clock-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid transparent; color: #fff; text-align: left; font: inherit; }
button.clock-row { cursor: pointer; }
button.clock-row:hover { background: rgba(255, 255, 255, .12); }
.clock-row.picked { border-color: rgba(213, 241, 97, .7); }
.clock-badge { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-style: normal; font-size: 17px; }
.clock-name { flex: 1; min-width: 0; display: grid; }
.clock-name b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-name small { font-size: 12px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-name em { font-style: normal; color: var(--lime); font-weight: 600; }
.clock-row .clock-time { font-family: var(--serif); font-size: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock-row.mine .clock-time { font-size: 28px; }
.clock-del { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 0; background: none; color: rgba(255, 255, 255, .45); cursor: pointer; display: grid; place-items: center; }
.clock-del:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.clock-del svg { width: 12px; height: 12px; }
.clock-empty { margin: 0; color: rgba(255, 255, 255, .55); font-size: 13px; text-align: center; padding: 6px; }

/* Time wheels */
.wheels { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; position: relative; }
.wheels > b { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.wheel { height: 168px; width: 84px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 62px 0; -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel button { display: block; width: 100%; height: 44px; border: 0; background: none; scroll-snap-align: center; font-family: var(--serif); font-size: 26px; color: var(--ink-2); cursor: pointer; border-radius: 12px; }
.wheel button.on { color: var(--ink); font-size: 34px; background: var(--premium); }
.cal-grid span { aspect-ratio: 1; }
.chip svg { width: 16px; height: 16px; }
.shapes { display: flex; gap: 10px; }
.shapes button { display: grid; justify-items: center; gap: 6px; width: 112px; padding: 14px 10px 12px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.shapes button small { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.shapes button i { display: block; border-radius: 6px; border: 2px solid currentColor; opacity: .55; }
.shapes .shape-story { width: 22px; height: 36px; }
.shapes .shape-square { width: 32px; height: 32px; margin: 2px 0; }
.shapes button.on { border-color: var(--accent); background: var(--accent-soft); }
.shapes button.on i { opacity: 1; background: var(--lime); border-color: var(--fixed-ink); }
.clock-badge svg { width: 18px; height: 18px; color: #fff; }
.clock-row .flag { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); }
.tz-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 6px; background: var(--ground); font-size: 13px; }
.tz-head b { font-weight: 700; color: var(--ink); }
.tz-head span { color: var(--ink-2); font-weight: 600; }

/* Wallet total on the Gemini coast painting: the town on the right, the dark sea under the text. */
.wallet-total {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; box-shadow: var(--shadow-lg);
  background: #12302a url(/app/art/wallet-coast.webp) right center / cover no-repeat;
}
.wallet-total::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 18, .78) 0%, rgba(8, 22, 18, .45) 45%, rgba(8, 22, 18, 0) 75%); }
.wallet-total small { color: rgba(255, 255, 255, .78); }
.wallet-total > b { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.wallet-total .base { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wallet-total .base svg { color: rgba(255, 255, 255, .8); }
.wallet-total .flow span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wallet-total .flow span:first-child { color: #c8f0a8; }
.wallet-total .flow span:last-child { color: #ffc2b4; }
.wallet-total .flow span small { color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) { .wallet-total { background-position: 70% center; } .wallet-total::before { background: linear-gradient(180deg, rgba(8, 22, 18, .7), rgba(8, 22, 18, .35) 60%, rgba(8, 22, 18, .6)); } }
.swatches { flex-wrap: wrap; }
.day:disabled { cursor: default; }
.day:disabled:hover { box-shadow: none; }

/* One wallet entry */
.op-sheet { display: grid; justify-items: center; gap: 6px; text-align: center; }
.cat-ico.big { width: 72px; height: 72px; border-radius: 24px; font-size: 36px; margin-bottom: 6px; }
.op-sheet b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; }
.op-sheet b.plus { color: var(--success); }
.op-sheet .t { font-weight: 700; font-size: 17px; }
.op-sheet p { margin: 8px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--track); }
.modal .actions .btn.del { background: #f4b4a6; color: #3b130c; }
.modal .actions .btn.soft { background: var(--track); color: var(--ink); }

/* Admin: customers */
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ad-list { padding: 4px 0; }
.ad-row { display: grid; grid-template-columns: 40px minmax(0, 1.6fr) 120px minmax(0, 1.3fr) 110px; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.ad-row + .ad-row { border-top: 1px solid var(--line); }
.ad-row:hover { background: color-mix(in srgb, var(--track) 50%, transparent); }
.ad-who, .ad-cell { display: grid; min-width: 0; font-size: 14px; }
.ad-who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-who small, .ad-cell small { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-pill { justify-self: start; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ad-pill.green { background: rgba(47, 138, 78, .14); color: var(--success); }
.ad-pill.blue { background: rgba(60, 110, 200, .14); color: #3c6ec8; }
.ad-pill.amber { background: rgba(214, 140, 20, .16); color: #a86a00; }
.ad-pill.red { background: rgba(201, 80, 12, .13); color: var(--warning); }
.ad-pill.grey { background: var(--track); color: var(--ink-2); }
@media (max-width: 760px) { .ad-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); } .ad-row .ad-cell:nth-of-type(3), .ad-row .hide-sm { display: none; } }
.stat.money { background: var(--premium); }

/* Admin: visitors from Umami */
.an { margin-top: 26px; display: grid; gap: 12px; transition: opacity .2s; }
.an.loading { opacity: .55; pointer-events: none; }
.an-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.an-head .sec { margin: 0; display: flex; align-items: center; gap: 12px; }
.an-switches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.an-switches .seg button { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.an-switches .seg small { font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }
.an-live { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--sans, inherit); color: var(--ink-2); padding: 6px 10px; border-radius: 999px; background: var(--track); }
.an-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: an-pulse 1.8s infinite; }
@keyframes an-pulse { 0% { box-shadow: 0 0 0 0 rgba(213, 241, 97, .8); } 70%, 100% { box-shadow: 0 0 0 8px rgba(213, 241, 97, 0); } }
.stat b .an-delta { font: 700 12px/1 var(--sans, inherit); margin-left: 8px; vertical-align: middle; color: var(--ink-2); font-style: normal; }
.an-delta.up { color: #2f8a4c; }
.an-delta.down { color: #c4553f; }
.an-card { padding: 18px; border-radius: 22px; min-width: 0; }
.an-card h3 { margin: 0 0 12px; font-size: 15px; }
.an-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 10px; height: 10px; border-radius: 3px; }
.an-legend .v, .an-bar .v { background: var(--fixed-ink); }
.an-legend .p, .an-bar .p { background: var(--track); }
:root[data-theme="dark"] .an-legend .v, :root[data-theme="dark"] .an-bar .v { background: var(--lime); }
.an-chart { display: flex; align-items: end; gap: 3px; height: 160px; }
.an-bar { position: relative; flex: 1; height: 100%; min-width: 2px; border-radius: 5px; }
.an-bar:hover { background: var(--track); }
.an-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 5px 5px 2px 2px; }
.an-bar .v { left: 18%; right: 18%; }
.an-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.an-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: start; }
.an-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; isolation: isolate; }
.an-row::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 10px; background: var(--track); z-index: -1; }
.an-row span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-row b { font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: baseline; }
.an-row b small { font-weight: 500; color: var(--ink-2); font-size: 12px; min-width: 32px; text-align: right; }
.an-row.more { display: none; }
.an-card.open .an-row.more { display: flex; }
.an-more { margin-top: 6px; border: 0; background: none; padding: 6px 10px; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.an-more:hover { color: var(--ink); }
.an-empty { color: var(--ink-2); font-size: 14px; padding: 6px 0; }
.an-visitor { width: 100%; display: grid; grid-template-columns: minmax(120px, 1fr) 1.4fr auto; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.an-visitor:hover { background: var(--track); }
.an-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-who small, .an-num small, .an-event small, .an-step small { display: block; color: var(--ink-2); font-size: 12px; }
.an-who small { margin-left: 2px; }
.an-meta { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-event { display: grid; grid-template-columns: 44px 18px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; font-size: 14px; border-bottom: 1px solid var(--line, rgba(0,0,0,.06)); }
.an-event:last-child { border-bottom: 0; }
.an-event time, .an-step time { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.an-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--fixed-ink); font-size: 12px; }
.an-path { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.an-step { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 4px; font-size: 14px; border-left: 2px solid var(--track); padding-left: 12px; }
.an-gap { margin: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 900px) { .an-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .an-visitor { grid-template-columns: 1fr auto; } .an-meta { display: none; } .an-event { grid-template-columns: 40px 18px 1fr; } .an-event > small { display: none; } }
