/* aldeaops.com/demo on the shared glass look (/site/glass.css). Layout only; tokens come from glass.css. */
main { width: min(var(--max), 100% - 2 * var(--gut)); margin: 0 auto; }
.screen { min-height: calc(100svh - 76px); padding: 28px 0 40px; display: grid; align-content: center; gap: 20px; scroll-margin-top: 64px; }
h1, h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.03em; text-wrap: balance; }
h1 { max-width: 22ch; }
.panel h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.lede { color: var(--ink-2); margin-top: 8px; max-width: 34ch; }

/* screen 1 */
.town { grid-template-columns: minmax(0, 1fr); }
.intro { grid-column: 1 / -1; }
.panel, .map { min-width: 0; }
@media (min-width: 980px) {
  .town { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .town .map { grid-column: 2; grid-row: 2 / span 2; }
}
.panel { border-radius: var(--r-card); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; }
/* screen 1: the business and trade pickers, one look: a track of equal cells, the chosen one raised */
.picks { display: grid; gap: 14px; }
.pick { min-inline-size: 0; border: 0; margin: 0; padding: 0; }
.pick legend { padding: 0; margin-bottom: 6px; font-size: .8125rem; color: var(--ink-3); }
.pick .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: var(--hair); }
.trades .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick label { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border-radius: 9px; text-align: center;
  font-size: .8125rem; font-weight: 500; line-height: 1.2; color: var(--ink-2); transition: background .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.pick input:checked + span { background: var(--glass-2); color: var(--ink); box-shadow: var(--sh-row); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) { .pick label:hover span { color: var(--ink); } }
.found { display: grid; gap: 4px; min-height: 132px; align-content: start; }
.big { font-size: clamp(3rem, 2.4rem + 2vw, 4rem); font-weight: 500; line-height: 1; color: var(--accent); }
.what, .worth, .quote, .under { text-wrap: pretty; }
.what { font-size: 1.0625rem; color: var(--ink); max-width: 30ch; }
.worth { color: var(--ink-2); font-size: .9375rem; max-width: 34ch; }
@keyframes pop { from { opacity: 0; translate: 0 6px; } }
.src { font-size: .8125rem; color: var(--ink-3); }
.panel .what-for { margin-top: -4px; font-size: .9375rem; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.weekly { font-size: .9375rem; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }

.map { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; min-height: 480px; }
@media (min-width: 980px) { .map { position: sticky; top: 88px; align-self: start; height: min(max(560px, calc(100svh - 280px)), 760px); } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* screen 1: the trade row under Home services folds away when not in play; the storm button plays and stops the replay. */
.fold { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -14px; transition: grid-template-rows .32s var(--ease-out), opacity .24s var(--ease-out), margin .32s var(--ease-out); }
.fold > * { min-height: 0; overflow: hidden; }
.fold.open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.storm { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -22px; transition: grid-template-rows .32s var(--ease-out), opacity .24s var(--ease-out), margin .32s var(--ease-out); }
.storm > * { min-height: 0; overflow: hidden; }
.storm.open { grid-template-rows: 1fr; opacity: 1; margin-top: -6px; }
.storm:not(.open) .ghost { visibility: hidden; }
.storm .ghost { display: inline-flex; align-items: center; gap: 8px; }
.storm .ghost svg { width: 14px; height: 14px; flex: none; }

/* screen 1: new on record */
.recent { display: grid; gap: 8px; }
.recent[hidden] { display: none; }
.recent .lt { display: flex; gap: 20px; border-bottom: 1px solid var(--hair); }
.recent .lt button[hidden], .recent ol[hidden], .recent .unit[hidden] { display: none; }
.recent .lt button { position: relative; display: inline-flex; align-items: flex-end; min-height: 40px; padding: 0 0 10px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: .875rem;
  font-weight: 500; cursor: pointer; transition: color .15s; }
.recent .lt button[aria-selected="true"] { color: var(--ink); }
.recent .lt button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0);
  transition: transform .25s var(--ease-out); }
.recent .lt button[aria-selected="true"]::after { transform: scaleX(1); }
.recent .lt button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.recent .unit { margin: 0; font-size: .75rem; color: var(--ink-3); }
.recent ol { list-style: none; margin: 0; padding: 0; display: grid; }
.recent li + li { border-top: 1px solid var(--hair); }
.recent ol button { display: grid; grid-template-columns: 8px 1fr; column-gap: 12px; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
.recent ol button::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--ink-3); }
.recent ol button.k-plat::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.recent ol button.k-permit::before { border-radius: 50%; background: var(--accent); }
.recent ol button.k-planning::before { border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.recent b { font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.recent .sub { grid-column: 2; font-size: .8125rem; color: var(--ink-2); }
/* A ranked lead: its place in the list, the address, the figure that ranks it, and why */
.recent button.rank { grid-template-columns: 16px 1fr auto; }
.recent button.rank::before { content: none; }
.recent button.rank i { grid-row: 1 / span 2; font-style: normal; font-size: .8125rem; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.recent button.rank em { grid-column: 3; grid-row: 1; justify-self: end; font-style: normal; font-size: 1rem; font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.recent button.rank .sub { grid-column: 2 / 4; }
@media (hover: hover) { .recent ol button:hover b { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; } }
.recent ol button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.recent li { animation: pop .3s var(--ease-out) both; }
.recent li:nth-child(2) { animation-delay: 60ms; } .recent li:nth-child(3) { animation-delay: 120ms; } .recent li:nth-child(4) { animation-delay: 180ms; }
.recent li:nth-child(5) { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .fold, .storm { transition: none; } .recent li { animation: none; } .recent .lt button::after { transition: none; } }
.ghost { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--hair); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: background .15s, scale .08s; }
@media (hover: hover) { .ghost:hover:not(:disabled) { background: var(--hair-2); } }
.ghost:active:not(:disabled) { scale: .97; }
.ghost:disabled { color: var(--ink-3); cursor: default; }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }



@keyframes pulse { 50% { opacity: .4; } }
.r-i { grid-area: i; display: grid; place-items: center; color: var(--ink-2); }
.r-i img, .r-i svg { width: 20px; height: 20px; object-fit: contain; }
.r-t { grid-area: t; min-width: 0; line-height: 1.3; }
.r-t small { display: block; font-size: .8125rem; color: var(--ink-3); }
.r-v { grid-area: v; justify-self: end; align-self: end; font-size: .875rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.r-v.rev, .r-v.cost { color: var(--ok); }
.sh-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Claude at a screen. The orange edge and the notice are Claude's own sign that it is using a computer or browser. */
.win { position: relative; border-radius: 8px; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 12px 28px -18px rgba(0, 0, 0, .45);
  transition: box-shadow .3s; font-size: .75rem; }
.win.live, .win.still { box-shadow: 0 0 0 2px #d97757, 0 0 22px 2px rgba(217, 119, 87, .45), 0 12px 28px -18px rgba(0, 0, 0, .45); }
.cu { position: absolute; z-index: 2; left: 50%; top: 0; translate: -50% -55%; display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px;
  background: #d97757; color: #fff; font-size: .75rem; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.cu i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.win.live .cu, .win.still .cu { opacity: 1; }
.w-bar { display: flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 8px 8px 0 0; background: #ececef; border-bottom: 1px solid #d6d6db; }
.w-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9cf; }
.w-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web .w-bar span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #424245; }
.w-body { position: relative; display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 6px 8px; align-items: center; padding: 12px; overflow: hidden; }
.w-k { color: #424245; }
.win output { display: flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #c7c7cd; border-radius: 5px; background: #fff; overflow: hidden; white-space: nowrap; }
.win output.on { border-color: #2f6fde; box-shadow: 0 0 0 2px rgba(47, 111, 222, .25); }
.w-btn { grid-column: 2; justify-self: start; padding: 5px 16px; border-radius: 5px; background: #2f6fde; color: #fff; font-weight: 600; transition: filter .1s, translate .1s; }
.w-btn.press { translate: 0 1px; filter: brightness(.88); }
.w-ok { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; min-height: 18px; margin: 0; color: #1a7f37; font-weight: 600; opacity: 0; transition: opacity .2s; }
.w-ok svg { width: 14px; height: 14px; }
.win.saved .w-ok { opacity: 1; }
.cur { position: absolute; left: 0; top: 0; width: 18px; height: 18px; fill: #1d1d1f; stroke: #fff; stroke-width: 1.4; transform: translate(70%, 210px); transition: transform .26s var(--ease-out); pointer-events: none; }
.win.still .cur { display: none; }
/* an old Windows program */
.win.desk { border-radius: 3px; background: #ece9e2; font-family: Tahoma, Verdana, "Segoe UI", sans-serif; }
.desk .w-bar { border-radius: 2px 2px 0 0; background: linear-gradient(#3a64a8, #22447d); border-bottom: 0; color: #fff; font-weight: 700; }
.desk output { border-radius: 0; border-color: #7f7f7f #dcdcdc #dcdcdc #7f7f7f; }
.desk output.on { box-shadow: none; outline: 1px dotted #000; outline-offset: -3px; }
.desk .w-btn { border-radius: 0; background: #ece9e2; color: #000; font-weight: 400; border: 1px solid; border-color: #fff #7f7f7f #7f7f7f #fff; }
.desk .w-btn.press { border-color: #7f7f7f #fff #fff #7f7f7f; filter: none; }
.screen-host.big { padding: 16px 0 6px; }
.screen-host.big .win { font-size: .875rem; }
.screen-host.big .w-body { grid-template-columns: 7rem minmax(0, 1fr); gap: 8px 10px; padding: 16px; }
.screen-host.big output { min-height: 30px; }

/* the sheet: a run, or where a number came from */
.sheet { width: min(560px, 100% - 32px); max-height: min(86svh, 760px); padding: 0; border: 0; border-radius: var(--r-card); color: var(--ink); background: var(--glass-solid);
  box-shadow: var(--sh-glass), 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 9, 8, .38); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .28s var(--ease-sheet); }
@keyframes sheet-in { from { opacity: 0; translate: 0 16px; } }
.sh-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px 22px; background: var(--glass-solid); }
.sh-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.sh-title h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.sh-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--glass-2); box-shadow: var(--sh-row); color: var(--ink-2); }
.sh-i img, .sh-i svg { width: 20px; height: 20px; object-fit: contain; }
.sh-title .r-v { font-size: 1rem; }
.sh-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--hair); color: var(--ink); cursor: pointer; }
.sh-x svg { width: 18px; height: 18px; }
@media (hover: hover) { .sh-x:hover { background: var(--hair-2); } }
.sh-body { display: grid; gap: 18px; padding: 4px 22px 24px; }
.sh-body .doc { width: 140px; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: var(--sh-row); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; font-size: .9375rem; line-height: 1.45; }
.steps b { font-weight: 500; color: var(--ink-3); font-size: .8125rem; padding-top: 2px; }
.time { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: .9375rem; color: var(--ink-2); }
.time b { color: var(--ink); font-weight: 500; }
.w-al { display: inline-flex; align-items: center; gap: 6px; }
.al { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.al .mark { width: 16px; height: 16px; }
.al .wordmark { font-size: 17px; letter-spacing: -.7px; }
.time s { text-decoration-color: var(--no); text-decoration-thickness: 2px; }
@media (max-width: 559px) {
  .sheet { width: 100%; max-width: none; max-height: 90svh; margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0; }
  .steps li { grid-template-columns: 1fr; gap: 2px; }
}

.more { padding: 56px 0; display: grid; gap: 20px; }
.more-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .more-grid { grid-template-columns: repeat(4, 1fr); } }
.more-col { display: grid; align-content: start; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hair-2); }
.more-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .9375rem; }
/* the build plan, as on the home page (home-glass.css .finale) */
.finale { position: relative; padding: 72px 0 24px; text-align: center; }
.finale::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 60%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side at 38% 50%, var(--glow-a), transparent), radial-gradient(closest-side at 64% 54%, var(--glow-b), transparent); }
.finale h2 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
.plan { position: relative; display: grid; gap: 28px; max-width: 880px; margin: 48px auto 0; padding: 0; list-style: none; counter-reset: s; }
.plan li { display: grid; justify-items: center; align-content: start; gap: 14px; max-width: 16em; margin-inline: auto; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.4; text-wrap: balance; counter-increment: s; }
.plan li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-2); box-shadow: var(--sh-row); color: var(--ink);
  font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.finale .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 48px; }
@media (min-width: 720px) {
  .plan { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .plan::before { content: ""; position: absolute; top: 20px; left: 16.67%; right: 16.67%; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2) 12%, var(--hair-2) 88%, transparent); }
}
/* header: the demo's sections replace the site links once the page starts, with reading progress on the bar's lower edge */
.bar .brand { position: relative; }
.bar .where { position: absolute; left: 39px; display: flex; align-items: baseline; gap: 8px; opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); white-space: nowrap; letter-spacing: -.01em; }
.bar .brand-name { transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.where b { font-weight: 500; font-size: .9375rem; }
#path-n { font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
header.bar nav.path { display: none; }  /* glass.css shows every header nav from 720px; this one only from 980px */
@media (max-width: 979px) {
  .top[data-at="story"] .brand-name { opacity: 0; translate: 0 -8px; }
  .top[data-at="story"] .where { opacity: 1; translate: 0 0; }
}
@media (min-width: 980px) {
  .bar .where { display: none; }
  .bar .site, .path { transition: opacity .3s var(--ease-out), visibility .3s; }
  header.bar nav.path { position: absolute; left: 50%; translate: -50% 0; display: block; opacity: 0; visibility: hidden; }
  .top[data-at="story"] .path { opacity: 1; visibility: visible; }
  .top[data-at="story"] .site { opacity: 0; visibility: hidden; }
  .path .links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .path .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-3); font-size: .875rem; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
  .path .links a.done { color: var(--ink-2); }
  .path .links a[aria-current] { color: var(--ink); background: var(--glass-2); box-shadow: var(--sh-row); }
  .path .links a:hover { color: var(--ink); }
  .path .links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.top::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; pointer-events: none; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .35s; }
.top[data-at="story"]::after { opacity: .7; }
.screen, .more { scroll-margin-top: 84px; }

.foot-min { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0 48px; color: var(--ink-3); font-size: .875rem; }
.foot-min .mark { width: 18px; height: 18px; color: var(--ink); }
.foot-min .wordmark { font-size: 17px; letter-spacing: -.7px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pick span, .ghost, .cur, .win { transition: none !important; }
  .cu i, .sheet[open] { animation: none; }
  .bar .where, .bar .brand-name, .bar .site, .path, .path .links a { transition: none; }
}

/* phones */
@media (max-width: 979px) {
  .panel { padding: 22px; gap: 18px; }
  .weekly { font-size: 1rem; }
}

/* press states: under 100ms, the same everywhere */
.pick label:active span { scale: .97; transition: scale .08s; }
.key:active { scale: .98; }
[data-theme="dark"] img[src$="netsuite-ink.svg"] { filter: invert(1) brightness(1.6); }
@media (max-width: 359px) { .found { min-height: 156px; } }

/* screen 1: Marlow's Monday inbox. Each row is read, checked, then turns into what was done and stays. */
.inbox-s .intro { display: grid; gap: 4px; }
.mail { border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.mail:not(.ready) { visibility: hidden; } /* empty until show.js fills it; a frosted blank panel flashed on load. No fade: opacity under the glass blur painted a blurred block */
.m-bar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--hair); }
.m-co { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9375rem; }
.m-co img { width: 18px; height: 18px; }
.m-co b { font-weight: 500; }
.m-n { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--hair); font-size: .8125rem; text-align: center; color: var(--ink-2); }
.m-clock { margin: 0 0 0 auto; font-size: .875rem; color: var(--ink-3); }
.m-play { display: inline-flex; align-items: center; gap: 8px; }
.m-play[hidden] { display: none; }
.m-play svg { width: 14px; height: 14px; }
.m-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .m-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 560px; } .m-side { border-left: 1px solid var(--hair); } }
.m-list { list-style: none; margin: 0; padding: 6px 8px; display: grid; align-content: start; }
.m-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "a f t" "a s s" "a p p" "a r r"; gap: 0 12px; padding: 10px 12px 10px 16px; border-radius: var(--r-ctl);
  position: relative; transition: background .25s var(--ease-out), opacity .3s var(--ease-out), translate .3s var(--ease-out), height .38s var(--ease-out), padding .38s var(--ease-out); }
.m-row::before { content: ""; position: absolute; left: 4px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* a sender without a photo: initials on a soft tint from the name */
.m-av { grid-area: a; align-self: start; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border-radius: 50%; font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  background: hsl(var(--h) 40% 86%); color: hsl(var(--h) 45% 28%); }
[data-theme="dark"] .m-av { background: hsl(var(--h) 25% 26%); color: hsl(var(--h) 45% 82%); }
.m-clip { width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; color: var(--ink-3); }
.m-pre { grid-area: p; font-size: .8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row + .m-row { box-shadow: 0 -1px 0 var(--hair); }
.m-from { grid-area: f; font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row time { grid-area: t; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.m-subj { grid-area: s; font-size: .875rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-read { grid-area: r; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s var(--ease-out), opacity .25s var(--ease-out), padding .3s var(--ease-out); }
.m-row.is-read { background: var(--glass-2); box-shadow: var(--sh-row); }
.m-row.is-read .m-read { max-height: 96px; opacity: 1; padding-top: 8px; }
.m-tag { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; line-height: 22px; }
.m-tag.ai { background: var(--accent-wash); color: var(--accent); }
.m-tag.code { background: var(--hair); color: var(--ink-2); }
.m-note { font-size: .875rem; color: var(--ink); opacity: 0; translate: 0 4px; transition: opacity .25s var(--ease-out), translate .25s var(--ease-out); text-wrap: pretty; }
.m-row.is-found .m-note { opacity: 1; translate: 0 0; }
.m-row.is-done { padding: 0; background: none; box-shadow: none; animation: done .4s var(--ease-out); }
.m-row.is-done + .m-row, .m-row + .m-row.is-done { box-shadow: 0 -1px 0 var(--hair); }
.m-row.is-done::before { display: none; }
@keyframes done { from { opacity: .3; } }

.m-side { display: grid; align-content: start; gap: 20px; padding: 20px; min-width: 0; }
/* the reading pane: the open email, then what the check found, then what was done */
.m-pane { display: grid; align-content: start; gap: 12px; min-height: 300px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.m-pane[hidden] { display: none; }
.pv-h { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pv-h .m-av { grid-area: auto; margin: 0; }
.pv-who { display: grid; min-width: 0; }
.pv-who b { font-weight: 600; font-size: .9375rem; }
.pv-who small { font-size: .8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-h time { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pv-s { margin: 4px 0 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.pv-b { margin: 0; font-size: .9375rem; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.pv-att { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: .8125rem; }
.pv-att .m-clip { margin: 0; }
.pv-c { display: grid; gap: 10px; margin-top: 4px; }
.pv-f, .pv-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .9375rem; opacity: 0; translate: 0 4px; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.pv-r img, .pv-r svg { width: 18px; height: 18px; }
.pv-r span:not(.m-st) { font-weight: 500; }
.m-pane.is-found .pv-f, .m-pane.is-done .pv-r { opacity: 1; translate: 0 0; }
@media (min-width: 900px) { .m-row.is-read .m-read { display: none; } }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.t-v { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.tally > div:first-child .t-v { color: var(--accent); }
.t-l { margin: 4px 0 0; font-size: .8125rem; color: var(--ink-2); }
.m-sum { margin: 0; padding-top: 18px; border-top: 1px solid var(--hair); font-size: .9375rem; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; animation: done .5s var(--ease-out); }
.m-sum[hidden] { display: none; }
/* a handled email: what was done on top, the email under it, its worth and whether it waits for a person on the right */
.p-open { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "i t v" "i t s"; align-items: center; gap: 2px 12px; width: 100%; min-height: 60px; padding: 10px 12px;
  border: 0; border-radius: var(--r-ctl); background: none; color: var(--ink); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer; min-width: 0; }
.p-open .r-i { align-self: start; padding-top: 2px; }
.p-open .r-t { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.p-open .r-t small { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-open .r-v { align-self: end; }
.m-st { grid-area: s; justify-self: end; align-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.m-st.wait { padding: 0 8px; border-radius: 999px; line-height: 20px; background: var(--accent-wash); color: var(--accent); }
.m-st.ok { color: var(--ok); }
.m-st svg { width: 14px; height: 14px; }
@media (hover: hover) { .p-open:hover { background: var(--hair); } }
.p-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* phones: the tallies first, then the inbox, then the note */
@media (max-width: 899px) {
  .m-body { display: flex; flex-direction: column; }
  .m-side { display: contents; }
  .tally { order: -1; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
  .m-list { order: 0; }
  .m-sum { order: 1; margin: 0 20px 20px; }
  .m-pane { display: none !important; }
  .p-open .r-t small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .m-row, .m-read, .m-note, .pv-f, .pv-r { transition: none; } .m-row.is-done, .m-sum { animation: none; } }
.data-src { grid-column: 1 / -1; }
.town .map { min-height: 420px; }
@media (min-width: 980px) { .town .map { position: relative; top: auto; height: 600px; grid-row: 2; } .town .data-src { grid-row: 3; } }
.m-bar .tag { padding: 4px 10px; border-radius: 999px; background: var(--hair); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 479px) { .m-clock { display: none; } .m-play { margin-left: auto; white-space: nowrap; } .m-bar { gap: 8px; } .m-n { display: none; } }
.data-src { display: flex; flex-wrap: wrap; gap: 0 20px; }
.data-src a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
@media (hover: hover) { .data-src a:hover { color: var(--ink); } }
/* the map enlarged by its own button: fills the window over a dim backdrop; its twin holds its place in the page */
.map-twin { visibility: hidden; }
.map.big { position: fixed !important; z-index: 100; inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  width: auto !important; height: auto !important; min-height: 0 !important; margin: 0; align-self: stretch; justify-self: stretch; animation: map-grow .26s var(--ease-out); }
@keyframes map-grow { from { opacity: .5; scale: .97; } }
.map-scrim { position: fixed; inset: 0; z-index: 99; background: rgb(0 0 0 / .5); opacity: 0; pointer-events: none; transition: opacity .24s var(--ease-out); }
html.map-big { overflow: hidden; }
html.map-big .map-scrim { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .map.big { animation: none; } .map-scrim { transition: none; } }
.m-row.is-done { display: block; }
