/* Todayswall — merged prototype. The globe is the wall; everything else floats over it. */
:root {
  --ink: #101318;
  --text: #1b1d22;
  --muted: #5f626b;
  --paper: #fffdf7;
  --glass: rgba(255, 253, 247, 0.94);
  --line: #e4dfd2;
  --lime: #e7dfd1;
  --lime-line: rgba(60, 48, 30, 0.18);
  --accent: #2744d0;
  --accent-soft: #e4e8fb;
  --free: #1f7a4a;
  --free-soft: #3fae74;
  --paid: #5b73ff;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(8, 12, 24, 0.28);
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font: 14px/1.45 var(--f-body); color: var(--text); background: #0b1020; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8ea0ff; outline-offset: 2px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

#map { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #15203f 0%, #070a14 72%); }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ---------- buttons ---------- */
.primary, .ghost, .dark { border-radius: 12px; min-height: 44px; padding: 0 18px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.primary { background: var(--accent); color: #fff; border: 0; box-shadow: 0 6px 20px rgba(39, 68, 208, 0.35); }
.primary:hover { background: #1f39b8; }
.primary:disabled { background: #9aa3c9; box-shadow: none; cursor: default; }
.ghost { background: var(--paper); color: var(--text); border: 1px solid #cfcabd; }
.ghost:hover { background: #f4f1e8; }
.dark { background: #15171c; color: #fff; border: 0; }
.wide { width: 100%; min-height: 50px; }
.small { min-height: 40px; padding: 0 12px; font-size: 13px; }
.icon { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; display: grid; place-items: center; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon:hover { background: rgba(0, 0, 0, 0.06); }
.row { display: flex; gap: 8px; align-items: center; }

/* ---------- top bar ---------- */
.top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 6; pointer-events: none; }
.brand, .top-right > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: rgba(16, 19, 24, 0.82); backdrop-filter: blur(10px); color: #ecece7; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.mark { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; }
.mark i { width: 5px; height: 5px; border-radius: 1px; background: #39414e; }
.mark i.on { background: #5b73ff; }
.top-right { display: flex; gap: 8px; align-items: center; }
.proto { font-family: var(--f-mono); font-size: 11px; color: #c9cdd6; padding: 6px 10px; border-radius: 999px; background: rgba(16, 19, 24, 0.7); }
.chip { font-size: 13px; font-weight: 600; padding: 0 14px; min-height: 36px; border-radius: 999px; border: 0; background: var(--paper); color: var(--text); box-shadow: var(--shadow); }

/* ---------- the wall's state ---------- */
.status { position: absolute; top: 70px; left: 14px; width: 320px; z-index: 5; padding: 14px 16px 12px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-wall { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.st-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
.st-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--free-soft); box-shadow: 0 0 0 3px rgba(63, 174, 116, 0.2); }
.st-state.sealed i { background: var(--accent); box-shadow: 0 0 0 3px rgba(39, 68, 208, 0.18); }
.st-state.closed i { background: #8a909c; box-shadow: none; }
.st-state.live i { animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(63, 174, 116, 0.05); } }
.st-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); }
.st-count b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.st-count span { font-size: 18px; color: var(--muted); font-weight: 600; }
.st-count .st-left { margin-left: auto; font-family: var(--f-mono); font-size: 12px; font-weight: 400; }
.meter { position: relative; height: 10px; border-radius: 999px; background: #e9e4d7; overflow: hidden; }
.meter i { position: absolute; top: 0; bottom: 0; transition: width 0.6s ease, left 0.6s ease; }
.meter .free { left: 0; background: var(--free-soft); }
.meter .paid { background: var(--paid); }
.meter b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paper); }
.st-legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.st-sub { margin: 2px 0 0; font-size: 13px; color: #3c3f47; }

/* ---------- bottom dock ---------- */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 14px calc(10px + var(--safe-b)); pointer-events: none; }
.dock > * { pointer-events: auto; }
.actions { display: flex; gap: 10px; }
.actions .primary { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.actions .ghost { min-height: 52px; border-radius: 14px; box-shadow: var(--shadow); }
.actions .ghost b { font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.pill { font-family: var(--f-mono); font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.primary.mine { background: var(--accent-soft); color: #1b2a8f; box-shadow: var(--shadow); }
.primary.mine .pill { background: var(--accent); color: #fff; }
.primary.calm { background: var(--paper); color: var(--text); box-shadow: var(--shadow); }

.strip { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px; border-radius: 14px; background: rgba(16, 19, 24, 0.78); backdrop-filter: blur(10px); }
.strip .arrow { width: 36px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #ecece7; font-size: 22px; }
.strip .arrow:disabled { opacity: 0.3; cursor: default; }
.days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 40px; height: 44px; border-radius: 9px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.06); color: #c9cdd6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.day span { font-family: var(--f-mono); font-size: 12px; }
.day i { position: relative; width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.day i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); background: var(--bar, #8a909c); }
.day.sealed { --bar: #8ea0ff; }
.day.open { --bar: var(--free-soft); }
.day.sel { background: var(--paper); color: var(--text); }
.day.sel i { background: #ddd8cb; }
.day.today span { font-weight: 500; }

/* ---------- note lights become handwriting when you come close ---------- */
.scrap { position: relative; display: block; max-width: 170px; padding: 7px 10px 6px; border: 0; border-radius: 3px; text-align: left; background: var(--lime); box-shadow: 0 6px 16px rgba(10, 12, 20, 0.28); transform: rotate(var(--rot, 0deg)); transform-origin: left bottom; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; line-height: 1.08; }
.scrap::before { content: ""; position: absolute; left: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff7df; box-shadow: 0 0 0 1px rgba(160, 90, 0, 0.5); }
.show-scraps .scrap { opacity: 1; pointer-events: auto; }
.show-scraps .scrap.covered { opacity: 0; pointer-events: none; }
.scrap:hover { z-index: 3; box-shadow: 0 10px 24px rgba(10, 12, 20, 0.35); }
.scrap .t { display: block; font-size: var(--fs, 19px); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.scrap .b { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font: 500 11px/22px var(--f-mono); text-align: center; }
.scrap.mine { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Your note while you write it */
.preview-pin { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.preview-pin .ring { width: 26px; height: 26px; margin: 0 0 -13px -13px; border-radius: 50%; border: 2.5px solid var(--accent); background: rgba(39, 68, 208, 0.18); animation: ring 1.6s ease-out infinite; order: 2; }
.preview-pin .scrap { opacity: 1; order: 1; outline: 2px dashed rgba(39, 68, 208, 0.55); outline-offset: 2px; margin-left: 6px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(39, 68, 208, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(39, 68, 208, 0); } }

/* ---------- reading a note ---------- */
.note-pop .maplibregl-popup-content { padding: 0; border-radius: 6px; background: transparent; box-shadow: none; }
.note-pop .maplibregl-popup-tip { border-top-color: var(--lime) !important; border-bottom-color: var(--lime) !important; }
.note-pop .maplibregl-popup-close-button { font-size: 22px; width: 36px; height: 36px; right: 2px; top: 2px; color: #5a564e; border-radius: 18px; }
.card { width: 290px; max-width: calc(100vw - 40px); background: var(--lime); border-radius: 6px; box-shadow: 0 16px 40px rgba(8, 12, 24, 0.4); padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.card .to { font-size: 20px; line-height: 1.05; }
.card .text { margin: 0; font-size: var(--fs, 30px); line-height: 1.06; overflow-wrap: anywhere; transform: rotate(var(--rot, 0deg)); transform-origin: left top; }
.card .tr { border-top: 1px dashed rgba(60, 48, 30, 0.35); padding-top: 8px; font-size: 15px; color: var(--text); }
.card .tr small { display: block; font-family: var(--f-mono); font-size: 10px; color: #5a564e; margin-bottom: 2px; }
.card .meta { font-family: var(--f-mono); font-size: 11px; color: #4f4b44; display: flex; flex-direction: column; gap: 2px; }
.card .acts { display: flex; align-items: center; gap: 2px; margin: 2px -8px 0; }
.card .acts button { min-height: 40px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--accent); }
.card .acts button:hover { background: rgba(0, 0, 0, 0.05); }
.card .acts .rep { color: #5a564e; font-weight: 400; margin-left: auto; }
.card .nav { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--lime-line); padding-top: 10px; margin-top: 2px; }
.card .nav-label { font-size: 12.5px; color: #5a564e; text-align: center; }
.card .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .nav-row button { min-width: 96px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(16, 19, 24, 0.18); border-radius: 999px; background: #fffdf8; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.card .nav-row button span { font-size: 20px; line-height: 1; margin-top: -2px; }
.card .nav-row button:hover:not(:disabled) { border-color: var(--ink); }
.card .nav-row button:disabled { opacity: 0.35; cursor: default; }
.card .dots { display: flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 12px; color: #5a564e; }
.card .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(16, 19, 24, 0.2); }
.card .dots i.on { background: var(--ink); }
/* a stack of paper behind the card when there are more notes here */
.stackwrap { position: relative; }
.stackwrap .card { position: relative; }
.stackwrap .paper-under { position: absolute; inset: 0; border-radius: 6px; background: #ddd4c2; box-shadow: 0 8px 20px rgba(8, 12, 24, 0.3); transform: translate(7px, 7px) rotate(2.2deg); }
.stackwrap .paper-under.s2 { background: #cfc5b1; transform: translate(-6px, 11px) rotate(-2.6deg); }
.card.in-right { animation: cardInR .22s ease-out; }
.card.in-left { animation: cardInL .22s ease-out; }
@keyframes cardInR { from { transform: translateX(60px) rotate(3deg); opacity: 0; } }
@keyframes cardInL { from { transform: translateX(-60px) rotate(-3deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .card.in-right, .card.in-left { animation: none; } }

/* ---------- the wall as a list ---------- */
.drawer { position: absolute; top: 70px; right: 14px; bottom: 150px; width: 360px; z-index: 6; border-radius: var(--radius); background: var(--lime); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 8px 8px 16px; }
.drawer-head h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.drawer-head .mono { font-size: 11px; color: #5a564e; }
.drawer-list { list-style: none; margin: 0; padding: 4px 12px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drawer-list button { width: 100%; min-height: 110px; padding: 10px; border-radius: 3px; border: 1px solid var(--lime-line); background: transparent; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.drawer-list button:hover { background: rgba(255, 255, 255, 0.35); }
.drawer-list button.mine { border: 2px solid var(--accent); }
.drawer-list .t { font-size: var(--fs, 20px); line-height: 1.06; overflow-wrap: anywhere; transform: rotate(var(--rot, 0deg)); transform-origin: left top; }
.drawer-list .m { font-family: var(--f-mono); font-size: 10px; color: #5a564e; }

/* ---------- writing ---------- */
.sheet { position: absolute; top: 70px; right: 14px; width: 380px; max-height: calc(100% - 90px); z-index: 7; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 8px 4px 18px; }
.sheet-head h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.sheet-head .mono { font-size: 11px; color: var(--muted); }
.step { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.step p { margin: 0; }
.paper { display: flex; flex-direction: column; gap: 2px; background: var(--lime); border: 1px solid var(--lime-line); border-radius: 6px; padding: 10px 12px 6px; }
.paper textarea { width: 100%; min-height: 96px; border: 0; padding: 0; background: transparent; resize: none; outline: none; font-size: 30px; line-height: 1.08; }
.paper textarea::placeholder { color: rgba(43, 42, 40, 0.42); }
.paper .count { align-self: flex-end; font-size: 11px; color: #5a564e; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; }
.field input { height: 44px; border: 1px solid #cfcabd; border-radius: 10px; padding: 0 12px; background: #fff; font: inherit; font-size: 15px; width: 100%; min-width: 0; }
.where { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid #cfcabd; border-radius: 10px; background: #fff; }
.where svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.where div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.where b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where span { font-size: 12px; color: var(--muted); }
.styles { display: flex; flex-direction: column; gap: 8px; }
.fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fonts button { min-height: 44px; border-radius: 10px; border: 1px solid #cfcabd; background: #fff; font-size: 20px; padding: 0; }
.fonts button[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.inks { display: flex; gap: 8px; }
.inks button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cfcabd; background: var(--lime); display: grid; place-items: center; padding: 0; }
.inks button i { width: 22px; height: 22px; border-radius: 50%; }
.inks button[aria-pressed="true"] { border: 3px solid var(--accent); }
.fine { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: center; }
.preview { background: var(--lime); border: 1px solid var(--lime-line); border-radius: 6px; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 6px; }
.preview .t { font-size: var(--fs, 26px); line-height: 1.08; overflow-wrap: anywhere; }
.preview .m { font-family: var(--f-mono); font-size: 10px; color: #5a564e; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bill { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.bill div { display: flex; justify-content: space-between; padding: 12px 0; }
.bill div + div { border-top: 1px solid #efebe1; }
.progress { height: 6px; border-radius: 999px; background: #e9e4d7; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
.error { margin: 0; padding: 0 18px 14px; color: #b3261e; font-size: 13px; min-height: 4px; }

/* choosing another spot */
.crosshair { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 4; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.crosshair::before { left: 19px; top: 0; width: 2px; height: 40px; }
.crosshair::after { top: 19px; left: 0; height: 2px; width: 40px; }
.crosshair span { position: absolute; left: 13px; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent); background: #fff; z-index: 1; }
.placebar { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); z-index: 7; width: min(420px, calc(100% - 28px)); padding: 12px 12px 12px 16px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.placebar .row > * { flex: 1; }

/* ---------- moments ---------- */
.celebrate { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px; background: rgba(6, 9, 18, 0.35); }
.cel-card { width: min(400px, 100%); padding: 24px 22px 18px; border-radius: 20px; background: var(--ink); color: #ecece7; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 10px; animation: rise 0.45s cubic-bezier(.2, .8, .2, 1); }
.cel-note { align-self: flex-start; max-width: 100%; margin: 4px 0 6px; padding: 12px 14px 10px; border-radius: 4px; background: var(--lime); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 4px; transform: rotate(var(--rot, -1deg)); line-height: 1.06; }
.cel-note .t { overflow-wrap: anywhere; }
.composing .scrap { opacity: 0 !important; pointer-events: none !important; }
.composing .preview-pin, .composing .preview-pin .scrap { opacity: 1 !important; }
.cel-card .mono { font-size: 11px; color: #a1a6b1; letter-spacing: 0.04em; text-transform: uppercase; }
.cel-card h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.cel-card p { margin: 0; color: #c3c7d0; font-size: 15px; }
.cel-card .addr { text-transform: none; letter-spacing: 0; color: #c3c7d0; border: 1px solid #2b303b; border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.cel-card .row { margin-top: 6px; }
.cel-card .row > * { flex: 1; }
.cel-card .primary { background: #8497ff; color: #0e1330; box-shadow: none; }
.cel-card .ghost { background: transparent; color: #ecece7; border-color: #3a404d; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.demo-menu { position: absolute; top: 62px; right: 14px; z-index: 8; width: 290px; padding: 14px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.demo-menu .muted { font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.demo-grid button { min-height: 44px; border-radius: 10px; border: 1px solid #cfcabd; background: #fff; font-size: 13px; font-weight: 600; padding: 4px 8px; }
.demo-grid button:hover { background: #f4f1e8; }
.demo-grid .seal { background: var(--accent); color: #fff; border: 0; }

.toast { position: absolute; left: 50%; bottom: calc(150px + var(--safe-b)); z-index: 10; transform: translate(-50%, 12px); max-width: calc(100% - 40px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .composing .status, .reading .status { opacity: 0; pointer-events: none; }
  .top { top: 10px; left: 10px; right: 10px; }
  .brand { font-size: 16px; padding: 8px 12px; }
  .status { top: 58px; left: 10px; right: 10px; width: auto; padding: 10px 12px 8px; gap: 4px; }
  .st-count b { font-size: 30px; }
  .st-count span { font-size: 15px; }
  .st-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock { padding: 0 10px calc(8px + var(--safe-b)); gap: 8px; }
  .actions { width: 100%; }
  .actions .primary { flex: 1; padding: 0 14px; }
  .actions .ghost { padding: 0 14px; }
  .strip { width: 100%; }
  .days { flex: 1; }
  .day { width: 36px; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 72%; border-radius: 20px 20px 0 0; z-index: 8; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78%; border-radius: 20px 20px 0 0; padding-bottom: var(--safe-b); }
  .paper textarea { min-height: 72px; font-size: 28px; }
  .placebar { bottom: calc(14px + var(--safe-b)); }
  .demo-menu { top: 54px; right: 10px; left: 10px; width: auto; }
  .toast { bottom: calc(140px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .preview-pin .ring, .st-state.live i, .cel-card { animation: none; }
  .meter i, .toast, .scrap { transition: none; }
}

/* drawer tabs + exploring all walls */
.tabs { display: flex; gap: 4px; margin: 0 12px 8px; padding: 3px; border-radius: 10px; background: rgba(16, 19, 24, 0.07); }
.tabs button { flex: 1; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; font: 600 13px var(--f-body); color: #5a564e; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fffdf8; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pane { flex: 1; min-height: 0; overflow-y: auto; }
.ex-search { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 0 12px; border-radius: 10px; background: #fffdf8; border: 1px solid var(--lime-line); }
.ex-search svg { width: 17px; height: 17px; fill: none; stroke: #5a564e; stroke-width: 2; flex: none; }
.ex-search input { flex: 1; min-width: 0; padding: 11px 0; border: 0; background: transparent; font-size: 15px; outline: none; }
#exBody { padding: 4px 0 12px; }
#exBody h3 { margin: 14px 16px 6px; font-family: var(--f-display); font-size: 15px; font-weight: 800; }
.ex-sum, .ex-hint { margin: 10px 16px 0; font-size: 13px; color: #5a564e; }
.ex-hint { margin-top: 0; margin-bottom: 6px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.chips button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--lime-line); background: #fffdf8; font-size: 13px; cursor: pointer; }
.chips button b { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: #8a857b; margin-left: 2px; }
.chips button:hover { border-color: var(--ink); }
.drawer-list .m.re { color: var(--accent); }

/* answers in the note card */
.note-pop .re { display: flex; flex-direction: column; gap: 3px; width: 100%; margin: 0 0 10px; padding: 8px 10px; border: 0; border-left: 3px solid var(--accent); border-radius: 3px; background: rgba(39, 68, 208, 0.07); text-align: left; cursor: pointer; }
.note-pop .re span { font-family: var(--f-mono); font-size: 10.5px; color: var(--accent); }
.note-pop .re em { font-style: normal; font-size: 13px; color: #3b3832; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-pop .ans { margin-top: 8px; padding: 0; border: 0; background: none; font: 600 12.5px var(--f-body); color: var(--accent); cursor: pointer; }
.note-pop .anslist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.note-pop .anslist button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 1px solid var(--lime-line); border-radius: 3px; background: rgba(255, 255, 255, 0.4); text-align: left; cursor: pointer; }
.note-pop .anslist em { font-style: normal; font-size: 17px; line-height: 1.1; }
.note-pop .anslist span { font-family: var(--f-mono); font-size: 10px; color: #5a564e; }
.note-pop .answer-btn { width: 100%; margin-top: 10px; padding: 9px 12px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13.5px var(--f-body); cursor: pointer; }

/* writing an answer */
.answering { display: flex; align-items: flex-start; gap: 6px; padding: 8px 6px 8px 10px; border-left: 3px solid var(--accent); border-radius: 3px; background: rgba(39, 68, 208, 0.07); }
.answering > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.answering span { font-family: var(--f-mono); font-size: 10.5px; color: var(--accent); }
.answering em { font-style: normal; font-size: 13px; color: #3b3832; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.answering .icon { width: 28px; height: 28px; flex: none; }
.note-pop .answer-hint { margin: 4px 0 0; font-size: 12px; color: #7a7466; line-height: 1.35; }

/* the wall's 24 hours: a small bar per hour (how many notes it got); the hour we're in pulses */
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 22px; align-items: end; }
.hours i { position: relative; height: 100%; border-radius: 2px; background: #ebe5d8; overflow: hidden; }
.hours i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, var(--h, 0%)); border-radius: 2px; background: var(--bar, #c9c1ae); }
.hours .h-done { --bar: #8ea0ff; }
.hours .h-now { --bar: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); animation: cellPulse 1.8s ease-in-out infinite; }
.hours .h-later { background: repeating-linear-gradient(135deg, #ebe5d8 0 3px, #e1dacb 3px 5px); }
.hours .h-later::after { display: none; }
@keyframes cellPulse { 50% { box-shadow: inset 0 0 0 1.5px rgba(39, 68, 208, 0.3); } }
@media (prefers-reduced-motion: reduce) { .hours .h-now { animation: none; } }

/* taken-down notes */
.gone-row { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 4px; border: 1px dashed #c9c2b0; color: #8a857b; min-height: 64px; justify-content: center; }
.note-pop .rep.sure { color: #b3261e; font-weight: 600; }

/* demo menu */
.demo-menu .demo-h { display: block; margin: 10px 0 4px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #8a857b; }
.demo-menu .demo-h em { font-style: normal; text-transform: none; letter-spacing: 0; }
.demo-menu .wide { grid-column: 1 / -1; }


/* the header's Read button */
.chip.read { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }

/* phones: the wall list reads as one column, nothing over it */
@media (max-width: 700px) {
  .proto { display: none; }
}

/* ---------- every wall (the drawer's second tab) ---------- */
.ar-pane { position: relative; }
.ar-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 12px; background: var(--lime); }
.ar-back { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; }
.ar-back span:first-child { font-size: 22px; line-height: 1; margin-top: -3px; }
.ar-title { flex: 1; font-family: var(--f-display); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; padding-right: 4px; }
.ar-search-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 20px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.ar-search-btn:hover { background: rgba(0, 0, 0, 0.05); }
.ar-search-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ar-search { padding: 0 12px 6px; }
.ar-search input { width: 100%; padding: 11px 14px; border: 1px solid #d6cfbe; border-radius: 10px; background: #fffdf8; font-size: 16px; outline: none; }
.ar-search input:focus { border-color: var(--ink); }
.ar-body { padding: 0 14px 24px; }
.ar-lead { margin: 2px 0 12px; font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.ar-quiet { margin: 10px 0 14px; font-size: 14px; color: #6b665c; }
.ar-cities { display: flex; gap: 16px; overflow-x: auto; margin: 0 -14px 6px; padding: 2px 14px 10px; scrollbar-width: none; border-bottom: 1px solid var(--lime-line); }
.ar-cities::-webkit-scrollbar { display: none; }
.ar-cities button { flex: none; padding: 6px 0; border: 0; background: none; font-family: var(--f-display); font-weight: 800; font-size: 17px; color: #9a9384; cursor: pointer; }
.ar-cities button:hover, .ar-cities button:focus-visible { color: var(--ink); }
.ar-h { margin: 22px 0 2px; font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.ar-sub { margin: 0 0 12px; font-size: 12.5px; color: #6b665c; }
.ar-col { display: flex; flex-direction: column; gap: 12px; }
.ar-note { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 14px 10px; border: 0; border-radius: 4px; background: #f7f2e7; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 6px 16px rgba(40, 30, 10, 0.1); text-align: left; transform: rotate(var(--rot, 0deg)); cursor: pointer; transition: transform 0.2s ease; }
.ar-note:hover { transform: rotate(0deg) translateY(-1px); }
.ar-note.mine { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(40, 30, 10, 0.1); }
.ar-note .to { font-size: 17px; line-height: 1.1; }
.ar-note .t { line-height: 1.08; overflow-wrap: anywhere; }
.ar-note .ar-where { margin-top: 4px; font-size: 12px; color: #7a7466; }
.ar-thread { display: flex; flex-direction: column; margin-bottom: 18px; }
.ar-link { display: flex; align-items: center; gap: 8px; margin: 8px 2px; font-size: 12px; color: #7a7466; text-align: center; }
.ar-link i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #b9b09c 0 4px, transparent 4px 8px); }
.ar-link span { max-width: 75%; }
.ar-end { margin: 26px 0 0; text-align: center; font-size: 13px; color: #8a857b; }
@media (prefers-reduced-motion: reduce) { .ar-note, .ar-note:hover { transition: none; transform: none; } }
.ar-thread + .ar-thread { padding-top: 18px; border-top: 1px solid var(--lime-line); }

/* ---------- open walls: a light per writer and city, map buttons, phones ---------- */
.card .dayline { align-self: flex-start; font-family: var(--f-mono); font-size: 10.5px; color: #6b5a2e; background: rgba(255, 200, 90, 0.28); border-radius: 999px; padding: 2px 8px; }
.mapbtns { position: absolute; left: 14px; bottom: calc(14px + var(--safe-b)); z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(16, 19, 24, 0.82); backdrop-filter: blur(10px); color: #ecece7; display: grid; place-items: center; box-shadow: var(--shadow); }
.round svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.round:hover { background: rgba(16, 19, 24, 0.95); }
.composing .mapbtns { display: none; }
.drawer .handle { display: none; }
@media (max-width: 700px) {
  .mapbtns { left: auto; right: 10px; bottom: calc(var(--dock-h, 120px) + 10px); }
  .reading .mapbtns, .drawer-open .mapbtns { display: none; }
  .hours { height: 16px; gap: 1.5px; }
  .st-legend { display: none; }
  .composing .dock { display: none; }
  /* the writing sheet leaves the top of the globe free, so you see where your note lights up */
  .sheet { max-height: 66%; }
  .sheet-head { padding: 10px 6px 0 16px; }
  .sheet-head h2 { font-size: 18px; }
  .step { padding: 6px 16px 4px; gap: 9px; }
  .paper { padding: 8px 10px 4px; }
  .paper textarea { min-height: 62px; }
  .field { gap: 3px; }
  .field label { font-size: 12px; }
  .field input { height: 42px; }
  .styles { flex-direction: row; align-items: center; gap: 10px; }
  .fonts { flex: 1; gap: 4px; }
  .fonts button { min-height: 42px; font-size: 16px; white-space: nowrap; overflow: hidden; }
  .actions .primary { font-size: 15px; white-space: nowrap; gap: 8px; }
  .actions .ghost { white-space: nowrap; }
  .inks { gap: 4px; }
  .inks button { width: 30px; height: 42px; border-radius: 15px; }
  .inks button i { width: 18px; height: 18px; }
  .inks button:not([aria-pressed="true"]):not(:hover) { border-color: transparent; background: transparent; }
  .wide { min-height: 48px; }
  .drawer { padding-top: 14px; }
  .drawer .handle { display: block; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border: 0; background: transparent; padding: 0; }
  .drawer .handle i { display: block; width: 42px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgba(16, 19, 24, 0.25); }
  .drawer-head { padding-top: 4px; }
}
@media (max-width: 380px) {
  .styles { flex-direction: column; align-items: stretch; }
  .inks { justify-content: space-between; }
}

/* ---------- events ---------- */
.evsvg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* pins: small dark buttons, notes stay the bright thing on the map */
.evpin { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(16, 19, 24, 0.86); color: #ecece7; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.evpin .evsvg { width: 15px; height: 15px; }
.evpin b { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffcf6e; color: #2b2200; font: 600 10px/18px var(--f-mono); text-align: center; }
.evpin.ev-live { border-color: #5fd39a; }
.evpin.ev-live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(95, 211, 154, 0.6); animation: evlive 1.8s ease-out infinite; }
.evpin.ev-upcoming { opacity: 0.78; }
.evpin.ev-past { opacity: 0.7; border-color: rgba(255, 255, 255, 0.4); }
.evpin.far { width: 22px; height: 22px; }
.evpin.far .evsvg { width: 11px; height: 11px; }
.evpin:hover { background: #10131a; transform: scale(1.08); }
@keyframes evlive { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.composing .evpin { opacity: 0.25; pointer-events: none; }

/* the event card: same paper as a note, set like a ticket */
.evcard { width: 320px; max-width: calc(100vw - 40px); max-height: min(560px, calc(100vh - 150px)); overflow-y: auto; background: var(--lime); border-radius: 6px; box-shadow: 0 16px 40px rgba(8, 12, 24, 0.4); padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 26px; }
.ev-badge { font: 600 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; background: rgba(16, 19, 24, 0.08); color: #4f4b44; }
.ev-b-live { background: #1f7a4a; color: #fff; }
.ev-b-today { background: var(--accent); color: #fff; }
.ev-type { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--f-mono); color: #5a564e; }
.evcard h3 { margin: 2px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ev-line { font-size: 13px; color: #3b3832; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.ev-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(16, 19, 24, 0.18); background: #fffdf8; font: 600 12.5px var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; }
.ev-chip:hover { border-color: var(--ink); }
.ev-chip.on { background: var(--accent-soft); border-color: var(--accent); color: #1b2a8f; }
.ev-wall { margin-top: 6px; padding-top: 10px; border-top: 1px dashed rgba(60, 48, 30, 0.35); display: flex; flex-direction: column; gap: 8px; }
.ev-wall-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ev-wall-h b { font-family: var(--f-display); font-size: 15px; }
.ev-wall-h span { font: 11px var(--f-mono); color: #5a564e; text-align: right; }
.ev-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
.ev-notes button { width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--lime-line); border-radius: 3px; background: rgba(255, 255, 255, 0.4); text-align: left; }
.ev-notes .t { line-height: 1.08; overflow-wrap: anywhere; }
.ev-notes .m { font: 10px var(--f-mono); color: #5a564e; }
.ev-empty { margin: 0; font-size: 13px; color: #6b665c; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font: 10.5px var(--f-mono); color: #7a7466; }
.ev-foot button { min-height: 36px; padding: 0 6px; border: 0; background: none; font: 400 12px var(--f-body); color: #5a564e; }
.ev-foot button.sure { color: #b3261e; font-weight: 600; }
.ev-pop .maplibregl-popup-content { max-width: none; }

/* a note written at an event */
.note-pop .evtag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 8px; border: 0; border-radius: 999px; background: rgba(16, 19, 24, 0.85); color: #fff; font: 600 11.5px var(--f-body); text-align: left; }
.note-pop .evtag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-pop .evtag .evsvg { width: 13px; height: 13px; }

/* writing: the event your note goes on */
.evlink { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 10px; background: var(--ink); color: #fff; }
.evlink .evico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; flex: none; }
.evlink > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.evlink span { font: 10.5px var(--f-mono); color: #a1a6b1; }
.evlink b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evlink .icon { width: 36px; height: 36px; color: #fff; }
.atev { display: flex; flex-direction: column; gap: 6px; }
.atev > span { font: 11px var(--f-mono); color: var(--muted); }
.atev-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.atev-row::-webkit-scrollbar { display: none; }
.atev-row button { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 230px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #cfcabd; background: #fff; font: 600 13px var(--f-body); }
.atev-row button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the Events tab */
.ev-pane { padding: 0 14px 20px; }
.ev-scope { margin: 2px 0 0; font: 11px var(--f-mono); color: #5a564e; }
.ev-pane .ar-h:first-child { margin-top: 10px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--lime-line); border-radius: 6px; background: rgba(255, 255, 255, 0.35); text-align: left; }
.ev-row:hover { background: rgba(255, 255, 255, 0.6); }
.evdot { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.evdot.ev-live { background: #1f7a4a; }
.evdot.ev-today { background: var(--accent); }
.ev-row-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-row-b b { font-size: 14px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-row-b > span { font: 11px var(--f-mono); color: #5a564e; }
.ev-row-b em { font-style: normal; color: #1f7a4a; font-weight: 600; }

/* signing in outside the writing card */
.sign-card { width: min(380px, 100%); padding: 22px 20px 16px; border-radius: 20px; background: var(--paper); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 10px; animation: rise 0.35s cubic-bezier(.2, .8, .2, 1); }
.sign-card h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.sign-card p { margin: 0; color: #3c3f47; }
.link { border: 0; background: none; min-height: 40px; color: var(--accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .evpin.ev-live::after { animation: none; } }
@media (max-width: 700px) {
  .tabs button { padding: 7px 4px; font-size: 12.5px; }
  .evcard { max-height: calc(100vh - 230px); }
}

/* events without an exact place: one badge on their city */
.evcity { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, 0.7); background: rgba(16, 19, 24, 0.78); color: #ecece7; font: 600 11.5px var(--f-body); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.evcity .evsvg { width: 13px; height: 13px; }
.evcity i { font-style: normal; font: 600 10px var(--f-mono); color: #5fd39a; }
.evcity:hover { background: #10131a; }
.composing .evcity, .reading .evcity { opacity: 0.25; pointer-events: none; }

/* ---------- answers to your notes ---------- */
.chip.answers { position: relative; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); gap: 4px; display: inline-flex; align-items: center; }
.chip.answers b { font: 500 12px var(--f-mono); }
.chip.answers.fresh { background: #ffcf6e; color: #2b2200; border-color: #ffcf6e; }
.chip.answers.fresh::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #101318; }

/* ---------- live notes on the turning globe ---------- */
.live-pop { display: flex; flex-direction: column; gap: 2px; max-width: 190px; padding: 7px 10px 6px; border: 0; border-radius: 3px; background: var(--lime); box-shadow: 0 8px 20px rgba(8, 12, 24, 0.4); text-align: left; animation: lpIn 0.45s cubic-bezier(.2, .8, .2, 1); transition: opacity 0.5s, transform 0.5s; transform-origin: 50% 100%; }
.live-pop.fresh { box-shadow: 0 0 0 2px #ffcf6e, 0 8px 20px rgba(8, 12, 24, 0.4); }
.live-pop.out { opacity: 0; transform: translateY(-8px) scale(0.96); }
.live-pop .lp-t { font-size: 17px; line-height: 1.05; overflow-wrap: anywhere; }
.live-pop .lp-m { font: 9.5px var(--f-mono); color: #5a564e; }
.live-pop.fresh .lp-m { color: #8a5a00; font-weight: 500; }
@keyframes lpIn { from { opacity: 0; transform: translateY(10px) scale(0.9); } }
.composing .live-pop, .reading .live-pop { display: none; }

/* ---------- the drop moment ---------- */
.drop-card { position: fixed; z-index: 11; max-width: 240px; padding: 10px 14px 8px; border-radius: 3px; background: var(--lime); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); font-size: 22px; line-height: 1.05; pointer-events: none; }
.drop-glow { position: relative; width: 0; height: 0; pointer-events: none; }
.drop-glow i, .drop-glow b { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.drop-glow b { width: 26px; height: 26px; background: radial-gradient(circle, #fffaf0 0%, #ffcf6e 45%, rgba(255, 176, 46, 0) 70%); animation: dropCore 4s ease-out forwards; }
.drop-glow i { width: 20px; height: 20px; border: 2px solid #ffcf6e; animation: dropRing 1.6s ease-out 2 forwards; }
.drop-glow i + i { animation-delay: 0.5s; }
@keyframes dropRing { from { width: 16px; height: 16px; opacity: 1; } to { width: 130px; height: 130px; opacity: 0; } }
@keyframes dropCore { 0% { width: 10px; height: 10px; } 15% { width: 70px; height: 70px; } 100% { width: 26px; height: 26px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-pop { animation: none; transition: none; } .drop-glow i { animation: none; display: none; } }
@media (max-width: 700px) {
  .live-pop { max-width: 160px; }
  .live-pop .lp-t { font-size: 15px; }
  .chip.answers { min-height: 36px; padding: 0 10px; }
}

/* ---------- signing in, your account ---------- */
.wide .logo, .sign-card .logo { width: 19px; height: 19px; flex: none; }
.dark.wide, .ghost.wide { gap: 10px; }
.real-signin .pretend-only { display: none !important; }
.chip.signin { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.chip.me { width: 36px; padding: 0; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.me-menu { position: absolute; top: 62px; right: 14px; z-index: 8; width: 260px; padding: 14px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.me-menu b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.me-menu .muted { font-size: 12px; margin-bottom: 8px; }
@media (max-width: 700px) {
  .me-menu { top: 54px; right: 10px; }
  .chip.signin { padding: 0 10px; }
}
