/* NEXUS in the Nasser Holdings brand, "The Letter": white page, near black ink, square corners,
   hairline rules, orange only as a small mark. Tokens from design/nov28/tokens.json. */
:root {
  --ink: #111111; --white: #FFFFFF; --grey: #555555; --rule: #E4E4E4; --tint: #F5F5F3; --orange: #E2552B;
  --run: #1F9D55; --down: #E2552B; --paused: #BBBBBB; --blue: #6E8DB8;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* The older views read these names. Mapping them to the Letter keeps those views legible until each is rebuilt. */
  --graphite: #FFFFFF; --graphite-2: #F5F5F3; --graphite-3: #F5F5F3; --graphite-4: #EDEDEA; --graphite-5: #E4E4E4;
  --chalk: #111111; --chalk-2: #333333; --chalk-3: #555555; --chalk-4: #777777;
  --brass: #111111; --brass-2: #555555; --brass-dim: #F5F5F3;
  --moss: #1F9D55; --ember: #E2552B; --amber: #B7791F;
  --line: #E4E4E4; --line-2: #E4E4E4; --line-3: #D6D6D6;
}
* { box-sizing: border-box; border-radius: 0 !important; }
html, body { height: 100%; margin: 0; background: var(--white); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.os { display: block; overflow: hidden; }
button, input, textarea, select { font-family: inherit; color: inherit; }
a { color: var(--ink); }
.body { display: flex; height: 100vh; min-height: 0; background: var(--white); }

/* The left menu, pinned. Only the content scrolls. */
.rail { position: sticky; top: 0; height: 100vh; flex: 0 0 248px; width: 248px; border-right: 1px solid var(--rule); background: var(--white); padding: 36px 20px 24px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.rail .logo { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; padding: 0 12px 32px; display: block; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.rail .logo i { display: inline-block; width: 7px; height: 7px; background: var(--orange); margin-left: 2px; }
.rail button.item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 9px 12px; border: 0; background: none; font-size: 16px; text-align: left; cursor: pointer; color: var(--ink); }
.rail button.item:hover { background: var(--tint); }
.rail button.item.on { background: var(--tint); font-weight: 600; }
.rail button.item .cnt { font-family: var(--sans); font-size: 14px; color: var(--grey); font-weight: 400; }
.rail button.item .cnt.bad { color: var(--orange); font-weight: 600; }
.rail .sep { height: 1px; background: var(--rule); margin: 14px 12px; }
.rail .foot { margin-top: auto; padding: 24px 12px 0; font-size: 14px; color: var(--grey); line-height: 1.5; }

.main { flex: 1 1 auto; min-width: 0; height: 100vh; overflow-y: auto; position: relative; background: var(--white); display: block; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 48px 64px 0; border: 0; background: none; height: auto; min-height: 0; }
.workspace-head .eyebrow { font-size: 15px; font-weight: 600; color: var(--grey); letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.workspace-head .eyebrow span { color: var(--paused); }
.workspace-head h1 { margin: 8px 0 0; font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-transform: lowercase; }
.workspace-head h1::after { content: "."; color: var(--orange); }
.workspace-head .pulse, .workspace-head .clock { font-size: 15px; color: var(--grey); }
.workspace-head .pulse { display: none; }
.view { display: none; padding: 40px 64px 64px; }
.view.on { display: block; }
body.letter-full .workspace-head { display: none; }
body.letter-full .main { overflow: hidden; }
.view[data-view="map"] { padding: 0; height: 100vh; }
.view[data-view="map"].on { display: flex; flex-direction: column; }

/* Shared Letter pieces */
.lt-light { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; }
.lt-light::before, .lt-light::after { content: ""; position: absolute; inset: 0; background: var(--c, var(--paused)); }
.lt-light.ping::before { animation: nxping var(--speed, 2.2s) ease-out var(--delay, 0s) infinite; }
.lt-light.hollow::after { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--paused); }
.lt-light.hollow::before { display: none; }
@keyframes nxping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.lt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.lt-btn.dark { background: var(--ink); color: var(--white); }
.lt-btn:hover { background: var(--tint); }
.lt-btn.dark:hover { background: #333333; }
.lt-label { font-size: 15px; font-weight: 600; color: var(--grey); }
.lt-mono { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Map: the blueprint */
.bp-top { height: 64px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--rule); background: var(--white); position: relative; z-index: 3; }
.bp-crumbs { display: flex; align-items: center; gap: 4px; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.bp-crumbs span { color: var(--paused); padding: 0 2px; }
.bp-crumbs button { border: 0; background: none; padding: 6px 4px; font-size: 15px; cursor: pointer; color: var(--ink); }
.bp-crumbs button.here { font-weight: 600; }
.bp-source { font-size: 13px; color: var(--grey); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.view[data-view="map"] > .bp-vp { flex: 1 1 0; min-height: 0; }
.bp-vp { position: relative; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.bp-vp.dragging { cursor: grabbing; }
.bp-grid { position: absolute; inset: 0; background-color: #EDEFEF; background-image: linear-gradient(rgba(17,17,17,0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,0.15) 1px, transparent 1px), linear-gradient(rgba(17,17,17,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,0.06) 1px, transparent 1px); }
.bp-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 80% at 50% 50%, rgba(255,255,255,0) 45%, rgba(255,255,255,0.7) 80%, #FFFFFF 100%); }
.bp-cam { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.bp-vp.moving .bp-cam { will-change: transform; }
.bp-vp.moving .lt-light::before, .bp-vp.far .lt-light::before { animation: none; }
.bp-card, .bp-strip, .bp-rail, .bp-term, .bp-stops { contain: layout style; }
.bp-world { position: absolute; left: 0; top: 0; font-family: var(--sans); color: var(--ink); }
.bp-world button { font-family: inherit; cursor: pointer; }
.bp-world button.bp-sys, .bp-world button.bp-box:not(.dark), .bp-card button { color: var(--ink); }
.bp-seg { position: absolute; pointer-events: none; }
.bp-dot { position: absolute; width: 9px; height: 9px; margin: -5px 0 0 -5px; background: var(--white); border: 2px solid var(--blue); border-radius: 50% !important; pointer-events: none; }
.bp-label { position: absolute; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; }
.bp-label small { font-weight: 400; color: var(--grey); letter-spacing: 0; margin-left: 10px; font-family: var(--sans); font-size: 13px; }

.bp-strip { position: absolute; background: var(--white); border: 1px solid #D6D6D6; display: grid; align-content: center; padding: 18px 20px; gap: 14px 0; }
.bp-sys { border: 0; background: none; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; min-width: 0; }
.bp-sys .code { width: 54px; height: 54px; background: var(--ink); color: var(--white); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; }
.bp-sys.planned .code { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #D6D6D6; }
.bp-sys .st { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; background: var(--c); border: 2px solid var(--white); }
.bp-sys .nm { font-size: 12px; color: var(--grey); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }

.bp-box { position: absolute; padding: 18px 22px; text-align: left; background: var(--white); color: var(--ink); border: 1px solid #D6D6D6; overflow: hidden; }
.bp-box.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bp-box .t { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.bp-box .items { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14px; line-height: 1.35; color: #333333; }
.bp-box.dark .items { font-family: var(--mono); color: #E2B23B; }
.bp-box .foot { position: absolute; left: 22px; bottom: 14px; font-size: 12px; color: var(--grey); }
.bp-box.dark .foot { color: #BBBBBB; }

.bp-nexus { position: absolute; background: var(--ink); color: var(--white); border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; box-shadow: 0 0 0 6px rgba(17,17,17,0.08); }
.bp-nexus .nm { display: flex; align-items: center; gap: 14px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.bp-nexus .nm b { color: var(--orange); font-weight: 600; }
.bp-nexus .lt-light { width: 12px; height: 12px; }
.bp-nexus .chips { display: flex; gap: 10px; }
.bp-nexus .chips span { padding: 6px 12px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
.bp-nexus .chips span.off { background: none; color: #999999; box-shadow: inset 0 0 0 1px #444444; font-weight: 400; }
.bp-nexus .sub { font-size: 13px; color: #BBBBBB; }

.bp-card { position: absolute; background: var(--white); border: 1px solid #D6D6D6; border-top: 4px solid var(--c); transition: opacity 300ms; display: flex; flex-direction: column; }
.bp-card.dim { opacity: 0.35; }
.bp-card .hd { width: 100%; border: 0; background: none; padding: 14px 18px 4px; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bp-card .hd b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-card .hd span { font-family: var(--mono); font-size: 12px; color: var(--grey); white-space: nowrap; }
.bp-card .who { padding: 0 18px 8px; font-size: 13px; color: var(--grey); border-bottom: 1px solid #EEEEEE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-card .who em { font-style: normal; color: var(--orange); }
.bp-agent { width: 100%; height: 38px; flex: none; border: 0; border-bottom: 1px solid #F2F2F2; background: var(--white); padding: 0 18px; display: flex; align-items: center; gap: 10px; text-align: left; }
.bp-agent:hover { background: var(--tint); }
.bp-agent.sel { background: #FDF1EC; }
.bp-agent .tile { width: 22px; height: 22px; background: #E8E8E8; color: var(--ink); font-size: 9px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.bp-agent .tile:first-child { background: var(--ink); color: var(--white); }
.bp-agent .tile.none { background: none; box-shadow: inset 0 0 0 1px #E4E4E4; color: #BBBBBB; }
.bp-agent .n { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-agent .m { font-size: 11px; color: var(--grey); white-space: nowrap; }
.bp-more { width: 100%; height: 34px; border: 0; background: none; font-size: 13px; color: var(--grey); text-align: left; padding: 0 18px; }
.bp-card .empty { padding: 14px 18px; font-size: 14px; color: var(--grey); }

.bp-rail { position: absolute; width: 300px; }
.bp-rail .lt-mono { display: block; margin-bottom: 12px; }
.bp-rail button { width: 100%; margin-bottom: 10px; background: var(--ink); color: var(--white); border: 0; padding: 14px 16px; text-align: left; display: block; }
.bp-rail button.off { background: var(--white); color: var(--grey); box-shadow: inset 0 0 0 1px #D6D6D6; }
.bp-rail .r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; }
.bp-rail .r2 { display: block; font-size: 13px; color: #BBBBBB; margin-top: 6px; }
.bp-rail button.off .r2 { color: var(--grey); }
.bp-rail .lights { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.bp-rail .lights i { width: 9px; height: 9px; background: var(--c); }
.bp-rail .lights i.hollow { background: none; box-shadow: inset 0 0 0 1.5px #777777; }
.bp-rail .hn { font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.bp-rail .hn span { color: #BBBBBB; font-weight: 400; font-size: 12px; }

.bp-term { position: absolute; background: var(--ink); color: var(--white); padding: 22px 28px; font-family: var(--mono); overflow: hidden; }
.bp-term .dots { display: flex; gap: 8px; margin-bottom: 16px; }
.bp-term .dots i { width: 11px; height: 11px; border-radius: 50% !important; }
.bp-term .ln { display: flex; font-size: 19px; line-height: 1.6; }
.bp-term .ln span:first-child { width: 330px; flex: none; }
.bp-term .src { margin-top: 10px; font-size: 13px; color: #888888; font-family: var(--sans); }
.bp-stops { position: absolute; background: var(--white); border: 1px solid #D6D6D6; padding: 22px 28px; }
.bp-stops .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 16px; }
.bp-stops .grid > div { border-top: 1px solid #EEEEEE; padding-top: 10px; }
.bp-stops .k { font-size: 16px; font-weight: 500; }
.bp-stops .row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.bp-stops .code { min-width: 26px; height: 26px; padding: 0 4px; background: var(--tint); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.bp-stops .to { color: var(--orange); font-size: 14px; }
.bp-stops .who { height: 26px; padding: 0 8px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.bp-stops .src { margin-top: 14px; font-size: 13px; color: var(--grey); }

.bp-ring { outline: 2px solid var(--orange); outline-offset: 4px; }

.bp-ctrl { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.bp-zoom { display: flex; border: 1px solid var(--ink); background: var(--white); width: max-content; }
.bp-zoom button { width: 44px; height: 44px; border: 0; background: var(--white); font-size: 22px; cursor: pointer; }
.bp-zoom button:hover { background: var(--tint); }
.bp-zoom .pct { width: 64px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.bp-zoom .fit { width: auto; border-left: 1px solid var(--rule); padding: 0 14px; font-size: 14px; font-weight: 600; }
.bp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--grey); background: rgba(255,255,255,0.92); padding: 6px 8px; max-width: 640px; }
.bp-legend span { display: flex; align-items: center; gap: 6px; }
.bp-legend i { width: 8px; height: 8px; background: var(--c); }
.bp-legend i.dash { width: 16px; height: 0; background: none; border-top: 2px dashed var(--orange); }
.bp-legend i.hollow { background: none; box-shadow: inset 0 0 0 1.5px var(--paused); }
.bp-hint { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font-size: 13px; color: var(--grey); pointer-events: none; transition: opacity 400ms; background: rgba(255,255,255,0.92); padding: 6px 10px; white-space: nowrap; }
.bp-hint.gone { opacity: 0; }

.bp-panel { position: absolute; right: 24px; top: 24px; bottom: 24px; width: 380px; max-width: calc(100% - 48px); background: var(--white); border: 1px solid var(--ink); overflow-y: auto; z-index: 4; padding: 24px; display: flex; flex-direction: column; gap: 20px; cursor: auto; }
.bp-panel .ph { display: flex; justify-content: space-between; align-items: center; }
.bp-panel .kind { font-size: 13px; font-weight: 600; color: var(--grey); }
.bp-panel .x { width: 44px; height: 44px; border: 0; background: var(--white); font-size: 24px; margin: -10px -10px -10px 0; cursor: pointer; }
.view .bp-panel h2, .bp-panel h2 { text-transform: none; letter-spacing: -0.02em; font-family: var(--sans); color: var(--ink); margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.bp-panel .stat { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; }
.bp-panel .src { font-size: 13px; color: var(--grey); margin-top: 4px; }
.bp-panel p { margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-line; }
.bp-panel .rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.bp-panel .rows > div > span:first-child { color: var(--grey); flex: none; }
.bp-panel .rows > div > span:last-child { text-align: right; overflow-wrap: anywhere; }
.bp-panel .lt-label { font-size: 13px; margin-bottom: 4px; }
.bp-panel .list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 0; border: 0; border-top: 1px solid var(--rule); background: var(--white); font-size: 15px; text-align: left; min-height: 44px; cursor: pointer; }
.bp-panel .list button:hover { background: var(--tint); }
.bp-panel .list button > span:nth-child(2) { flex: 1; min-width: 0; }
.bp-panel .list button > span:last-child { color: var(--grey); font-size: 13px; white-space: nowrap; }
.bp-panel .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bp-panel .warn { background: #FDF1EC; padding: 12px 14px; font-size: 14px; line-height: 1.5; }

.bp-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--grey); }

/* ---------- phone and tablet */
@media (max-width: 900px) {
  body.os { overflow: auto; }
  .body { flex-direction: column; height: auto; min-height: 100vh; }
  .rail { position: sticky; top: 0; z-index: 20; width: 100%; height: auto; flex: none; flex-direction: row; align-items: center; gap: 2px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; overflow-y: hidden; }
  .rail .logo { padding: 0 12px 0 4px; font-size: 22px; }
  .rail button.item { width: auto; flex: none; min-height: 40px; white-space: nowrap; font-size: 15px; }
  .rail .sep, .rail .foot { display: none; }
  .main { height: auto; overflow: visible; }
  .workspace-head { padding: 28px 20px 0; flex-wrap: wrap; }
  .workspace-head h1 { font-size: 40px; }
  .view { padding: 24px 20px 48px; }
  body.letter-full .main { overflow: hidden; }
  .view[data-view="map"] { height: calc(100vh - 57px); height: calc(100dvh - 57px); }
  .bp-top { height: 52px; padding: 0 12px; gap: 8px; }
  .bp-top .lt-btn { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .bp-top .bp-source, .bp-top .hide-phone { display: none; }
  .bp-ctrl { left: 12px; bottom: 12px; }
  .bp-legend { display: none; }
  .bp-zoom button { width: 40px; height: 40px; }
  .bp-zoom .pct { width: 52px; }
  .bp-hint { font-size: 12px; top: 10px; }
  .bp-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; max-height: 58%; border-width: 1px 0 0; padding: 20px; gap: 16px; }
  .bp-panel h2 { font-size: 26px; }
  .bp-panel.open ~ .bp-ctrl { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lt-light.ping::before { animation: none; } .bp-cam, .bp-grid { transition: none !important; } }

/* ---------- Letter screens: Home, Org, Talk, Builder, Agent */
body.letter-own .workspace-head { display: none; }
.view[data-view="talk"], .view[data-view="builder"] { padding: 0; height: 100vh; }
.view[data-view="talk"].on, .view[data-view="builder"].on { display: flex; flex-direction: column; }
.view[data-view="talk"] > *, .view[data-view="builder"] > * { flex: 1 1 0; min-height: 0; }
.sr { position: absolute; left: -9999px; }
.lt-page { display: flex; flex-direction: column; gap: 48px; max-width: 1400px; }
.lt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.lt-title, .view h1.lt-title { margin: 8px 0 0; font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.lt-per { color: var(--orange); }
.view h1.lt-title.mid { font-size: 44px; text-transform: none; }
.lt-headnote { font-size: 15px; color: var(--grey); }
.lt-label.sm { font-size: 13px; margin-bottom: 6px; }
.lt-src { font-size: 13px; color: var(--grey); margin-top: 10px; }
.lt-src.inline { margin: 0 0 0 4px; }
.lt-empty { font-size: 15px; color: var(--grey); margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); }
.lt-empty.pad { padding: 16px 20px; border: 0; }
.lt-link { border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.lt-link.back { align-self: flex-start; margin-bottom: -32px; color: var(--grey); text-decoration: none; font-weight: 400; }
.lt-btn.quiet { border-color: var(--rule); font-weight: 400; }
.lt-btn.white { background: var(--white); color: var(--ink); border-color: var(--white); }
.lt-btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.lt-btn:disabled { opacity: .5; cursor: default; }
.lt-sec { min-width: 0; }
.lt-h2, .view h2.lt-h2 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--grey); letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.lt-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.view .lt-sechead h2.lt-h2 { margin: 0; }
.lt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.lt-cols.tight { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.lt-ask { display: flex; border: 1px solid var(--ink); background: var(--white); }
.lt-ask input { flex: 1; min-width: 0; border: 0; padding: 22px 24px; font-size: 20px; outline: none; background: none; }
.lt-ask.small input { padding: 16px 18px; font-size: 17px; }
.lt-ask .go { border: 0; background: var(--ink); color: var(--white); padding: 0 32px; font-size: 16px; font-weight: 600; cursor: pointer; }
.lt-mic { width: 64px; border: 0; border-left: 1px solid var(--rule); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.lt-mic.on { background: var(--ink); color: var(--white); }
.lt-need { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.lt-need .t { font-size: 17px; font-weight: 500; }
.lt-need .s { font-size: 14px; color: var(--grey); margin-top: 4px; }
.lt-gap { padding: 18px 20px; background: var(--tint); margin-bottom: 12px; }
.lt-gap .q { font-size: 14px; color: var(--grey); }
.lt-gap .f { font-size: 17px; font-weight: 500; margin-top: 6px; line-height: 1.45; }
.lt-gap .n { font-size: 14px; margin-top: 8px; }
.lt-gap .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.lt-company { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--ink); }
.lt-dept { text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 20px 20px 22px 0; cursor: pointer; }
.lt-dept:hover .n { text-decoration: underline; text-underline-offset: 4px; }
.lt-dept .n { display: flex; align-items: flex-start; gap: 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.lt-dept .sq, .lt-acc .sq, .lt-run .sq { width: 8px; height: 8px; flex: none; display: inline-block; }
.lt-dept .sq { margin-top: 10px; }
.lt-dept .s { font-size: 14px; color: var(--grey); margin-top: 8px; }
.lt-dept em, .lt-orgbox em { font-style: normal; color: var(--orange); }
.lt-dept .a { font-size: 14px; margin-top: 4px; }
.lt-done { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.lt-done .t { color: var(--grey); width: 72px; flex: none; }
.lt-signin { flex-wrap: wrap; }
.lt-signin .t { width: 140px; }
.lt-signin .st { margin-left: auto; color: var(--grey); font-size: 14px; }
.lt-signin .st.on { color: #16733F; }
.lt-model { padding: 14px 0; border-top: 1px solid var(--rule); }
.lt-model .r { display: flex; justify-content: space-between; font-size: 16px; }
.lt-model .r b { font-weight: 500; }
.lt-model .bar { height: 6px; background: var(--tint); margin-top: 10px; }
.lt-model .bar i { display: block; height: 6px; background: var(--ink); }
.lt-model .s { font-size: 14px; color: var(--grey); margin-top: 8px; }
.lt-model.off .r span { color: var(--grey); }

.lt-banner { background: var(--ink); color: var(--white); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.lt-banner .who { flex: 1 1 280px; min-width: 0; }
.lt-banner .nm { display: flex; align-items: center; gap: 12px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.lt-banner .nm b { color: var(--orange); font-weight: 600; }
.lt-banner .s { font-size: 16px; color: #BBBBBB; margin-top: 8px; }
.lt-banner .stats { display: flex; gap: 32px; flex-wrap: wrap; }
.lt-banner .stats .l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #BBBBBB; }
.lt-banner .stats .l i { width: 8px; height: 8px; display: inline-block; }
.lt-banner .stats .n { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.lt-page.org { gap: 28px; max-width: none; }
.lt-orggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.lt-orgbox { border: 1px solid var(--rule); border-top: 4px solid var(--c); display: flex; flex-direction: column; height: 380px; background: var(--white); }
.lt-orgbox .hd { padding: 18px 20px 14px; }
.lt-orgbox .hd .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lt-orgbox .nm { border: 0; background: none; padding: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; text-align: left; color: var(--ink); }
.lt-orgbox .nm:hover { text-decoration: underline; text-underline-offset: 4px; }
.lt-orgbox .hl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lt-orgbox .hd .s { font-size: 14px; color: var(--grey); margin-top: 6px; }
.lt-orgbox .hd .c { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 13px; }
.lt-orgbox .hd .c .dn { color: var(--orange); font-weight: 600; }
.lt-orgbox .hd .c .ps { color: var(--grey); }
.lt-scroll { flex: 1; overflow-y: auto; border-top: 1px solid var(--rule); }
.lt-scroll::-webkit-scrollbar { width: 6px; } .lt-scroll::-webkit-scrollbar-thumb { background: #D0D0D0; }
.lt-arow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 0; border-bottom: 1px solid #F0F0F0; min-height: 44px; background: var(--white); text-align: left; cursor: pointer; }
.lt-arow:hover { background: var(--tint); }
.lt-arow .x { flex: 1; min-width: 0; }
.lt-arow .n { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-arow .s { display: block; font-size: 12px; color: var(--grey); margin-top: 2px; }
.mt { font-size: 12px; padding: 3px 8px; background: var(--ink); color: var(--white); white-space: nowrap; }
.mt.lite { background: #E4E4E4; color: var(--ink); }
.mt.none { background: none; color: var(--grey); box-shadow: inset 0 0 0 1px var(--rule); }
.lt-orgbox .ft { display: flex; border-top: 1px solid var(--rule); }
.lt-orgbox .ft button { flex: 1; border: 0; background: var(--white); padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border-right: 1px solid var(--rule); }
.lt-orgbox .ft button.q { color: var(--grey); font-weight: 400; border-right: 0; }
.lt-orgbox .ft button:hover { background: var(--tint); }

/* Talk */
.lt-talk { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lt-talkhead { flex: none; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--rule); }
.lt-talkhead .lt-label { flex: 1; }
.lt-switch { display: flex; border: 1px solid var(--ink); }
.lt-switch button { min-height: 40px; padding: 0 22px; border: 0; background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; }
.lt-switch button.on { background: var(--ink); color: var(--white); }
.lt-talkbody { flex: 1; min-height: 0; display: flex; }
.lt-chatcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lt-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 40px 0; }
.lt-thread .in { max-width: 760px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 28px; }
.lt-thread .you { align-self: flex-end; max-width: 80%; background: var(--tint); padding: 14px 18px; font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.lt-thread .nx { display: flex; gap: 14px; }
.lt-thread .av { width: 28px; height: 28px; background: var(--ink); flex: none; display: flex; align-items: center; justify-content: center; }
.lt-thread .av i { width: 6px; height: 6px; background: var(--orange); }
.lt-thread .b { min-width: 0; flex: 1; }
.lt-thread .t { font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.lt-thread .t.grey { color: var(--grey); }
.lt-thread .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lt-thread .src { font-size: 13px; color: var(--grey); margin-top: 10px; }
.lt-hello p { font-size: 17px; margin: 8px 0 0; }
.lt-steps { font-size: 13px; color: var(--grey); margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.lt-chatcol > .lt-ask { margin: 0 auto 28px; width: calc(100% - 64px); max-width: 760px; flex: none; }
.lt-talkside { flex: 0 0 320px; border-left: 1px solid var(--rule); padding: 32px 28px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.lt-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.lt-kv > span:first-child { color: var(--grey); }
.lt-kv > span:last-child { text-align: right; }
.lt-line { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; }
.lt-conv { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font-size: 14px; cursor: pointer; }
.lt-conv small { color: var(--grey); white-space: nowrap; }
.lt-conv.on { font-weight: 600; }
.lt-note { background: var(--tint); padding: 16px; font-size: 14px; line-height: 1.5; }
.lt-voice { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 40px 24px; }
.lt-voice .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(17,17,17,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,0.06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 30%, transparent 100%); }
.lt-voice .sq { position: relative; width: 180px; height: 180px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.lt-voice .ring { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; border: 1px solid var(--ink); transform: translate(-50%, -50%); opacity: 0; }
.lt-voice.live .ring { animation: nxring 2.2s ease-out infinite; }
.lt-voice.live .ring.two { animation-delay: 1.1s; }
.lt-voice .bars { display: flex; gap: 6px; align-items: center; }
.lt-voice .bars i { width: 8px; height: 64px; background: var(--white); transform: scaleY(.18); }
.lt-voice.live .bars i { animation-name: nxbar; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes nxring { 0% { transform: translate(-50%, -50%) scale(1); opacity: .5; } 100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } }
@keyframes nxbar { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.lt-voice .txt { position: relative; text-align: center; max-width: 760px; }
.lt-voice .heard { font-size: 22px; color: var(--grey); margin-top: 16px; line-height: 1.4; }
.lt-voice .big { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-top: 16px; white-space: pre-line; }
.lt-voice .acts { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Builder */
.lt-builder { display: flex; height: 100%; min-height: 0; }
.lt-bchat { flex: 0 0 440px; min-width: 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.lt-bchat .hd { padding: 32px 32px 8px; }
.view .lt-bchat .hd h1.lt-title { font-size: 40px; margin: 0 0 8px; }
.lt-bchat .lt-thread { padding: 24px 0; }
.lt-bchat .lt-thread .in { padding: 0 32px; gap: 20px; }
.lt-bchat .lt-thread .you, .lt-bchat .lt-thread .t { font-size: 16px; }
.lt-bchat > .lt-ask { margin: 0 32px 28px; flex: none; }
.lt-bplan { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 32px 48px 56px; display: flex; flex-direction: column; gap: 36px; }
.lt-bhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.lt-bhead .nm { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.lt-bhead .s { font-size: 15px; color: var(--grey); margin-top: 4px; }
.lt-bhead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lt-lede { font-size: 20px; line-height: 1.5; margin: -12px 0 0; max-width: 760px; }
.lt-job { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.lt-job .x { flex: 1 1 260px; min-width: 0; }
.lt-job .t { font-size: 17px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.lt-job .s { font-size: 14px; color: var(--grey); margin-top: 4px; }
.lt-seg { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); }
.lt-seg button { min-height: 44px; padding: 0 14px; border: 0; font-size: 14px; background: var(--white); cursor: pointer; }
.lt-seg button.on { background: var(--ink); color: var(--white); opacity: 1; }
.lt-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lt-acc .x { flex: 1 1 220px; min-width: 0; }
.lt-acc .t { font-size: 16px; font-weight: 500; }
.lt-acc .t span { font-weight: 400; color: var(--grey); }
.lt-acc b { font-size: 14px; }
.lt-rule { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.lt-rule > span:first-child { width: 110px; flex: none; color: var(--grey); }
.lt-big { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.lt-big.sm { font-size: 28px; margin-bottom: 8px; }
.lt-costbar { display: flex; height: 8px; margin-top: 12px; background: var(--tint); }
.lt-costbar i { background: var(--ink); }
.lt-legendrow { display: flex; gap: 14px; font-size: 13px; color: var(--grey); margin-top: 8px; }
.lt-legendrow span { display: flex; align-items: center; gap: 6px; }
.lt-legendrow i { width: 8px; height: 8px; background: var(--ink); }
.lt-tint { background: var(--tint); padding: 20px; }
.lt-tint .lt-line:last-child { border-bottom: 0; }
.lt-offer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--ink); padding: 18px 20px; }
.lt-offer .t { font-size: 17px; font-weight: 500; }
.lt-offer .s { font-size: 14px; color: var(--grey); margin-top: 4px; }
.lt-emptybig { max-width: 560px; margin-top: 40px; }
.lt-emptybig p { font-size: 20px; line-height: 1.5; }

/* Agent page */
.lt-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 17px; }
.lt-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lt-agentcols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.lt-agentcols > div { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.lt-body { font-size: 18px; line-height: 1.55; margin: 0; max-width: 720px; }
.lt-wrong { background: #FDF1EC; padding: 24px; }
.lt-timeline > div { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #F3D9CE; font-size: 15px; }
.lt-timeline > div > span:first-child { width: 120px; flex: none; color: var(--grey); }
.lt-must { margin-top: 16px; background: var(--white); padding: 16px; font-size: 16px; font-weight: 500; }
.lt-run { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.lt-run .w { width: 130px; flex: none; color: var(--grey); }
.lt-run .x { flex: 1; min-width: 0; }
.lt-run .c { color: var(--grey); white-space: nowrap; font-size: 14px; }
.lt-agentside { display: flex; flex-direction: column; gap: 20px; }
.lt-card { border: 1px solid var(--rule); padding: 20px; }
.lt-advice { background: var(--tint); padding: 14px; margin-top: 14px; font-size: 14px; line-height: 1.5; }

/* the answer sheet for answers given away from Talk */
.sheet { position: fixed; right: 24px; bottom: 24px; width: min(520px, calc(100vw - 48px)); max-height: 60vh; overflow-y: auto; background: var(--white); border: 1px solid var(--ink); padding: 24px; z-index: 30; box-shadow: none; }
.sheet .q { font-size: 14px; color: var(--grey); }
.sheet .a { font-size: 16px; line-height: 1.55; margin-top: 10px; white-space: pre-wrap; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.sheet .meta { font-size: 13px; color: var(--grey); }

@media (max-width: 1100px) {
  .lt-agentcols { grid-template-columns: 1fr; }
  .lt-talkside { display: none; }
  .lt-builder { flex-direction: column; height: auto; }
  .view[data-view="builder"] { height: auto; }
  .view[data-view="builder"] > * { flex: none; }
  .lt-bchat { flex: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .lt-bchat .lt-thread { max-height: 50vh; }
  .lt-bplan { overflow: visible; }
}
@media (max-width: 900px) {
  .lt-page { gap: 36px; }
  .view h1.lt-title { font-size: 40px; }
  .view h1.lt-title.mid { font-size: 32px; }
  .lt-ask input { padding: 16px; font-size: 17px; }
  .lt-ask .go { padding: 0 18px; }
  .lt-mic { width: 52px; }
  .lt-cols { grid-template-columns: 1fr; gap: 36px; }
  .lt-banner { padding: 22px 20px; gap: 20px; }
  .lt-banner .nm { font-size: 34px; }
  .lt-banner .stats { gap: 20px; }
  .lt-banner .stats .n { font-size: 30px; }
  .lt-orggrid { grid-template-columns: 1fr; }
  .view[data-view="talk"] { height: calc(100vh - 57px); height: calc(100dvh - 57px); }
  .lt-talkhead { padding: 0 16px; gap: 10px; height: 56px; }
  .lt-talkhead .lt-label { display: none; }
  .lt-talkhead .lt-btn { min-height: 40px; padding: 0 12px; font-size: 14px; margin-left: auto; }
  .lt-switch button { padding: 0 16px; }
  .lt-thread { padding: 20px 0; }
  .lt-thread .in { padding: 0 16px; }
  .lt-chatcol > .lt-ask { width: calc(100% - 32px); margin-bottom: 16px; }
  .lt-voice .big { font-size: 24px; }
  .lt-voice .sq { width: 140px; height: 140px; }
  .lt-bchat .hd { padding: 24px 20px 4px; }
  .view .lt-bchat .hd h1.lt-title { font-size: 32px; }
  .lt-bchat .lt-thread .in { padding: 0 20px; }
  .lt-bchat > .lt-ask { margin: 0 20px 20px; }
  .lt-bplan { padding: 24px 20px 48px; }
  .lt-bhead .nm { font-size: 28px; }
  .lt-rule > span:first-child { width: 90px; }
  .lt-run { flex-wrap: wrap; }
  .lt-run .w { width: auto; }
  .lt-link.back { margin-bottom: -20px; }
  .sheet { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
.lt-orgbox.flash { outline: 2px solid var(--orange); outline-offset: 4px; }
.lt-orggrid > .lt-orgbox, .lt-cols > *, .lt-agentcols > * { min-width: 0; }
.lt-orgbox .hd .r > .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .lt-status { flex-wrap: wrap; gap: 4px 10px; } .lt-status .lt-src.inline { flex-basis: 100%; margin: 0; } }

/* Agents page */
.lt-page.agents { gap: 28px; }
.lt-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.lt-tabs button { flex: none; border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 16px; font-size: 15px; cursor: pointer; white-space: nowrap; color: var(--ink); margin-bottom: -1px; }
.lt-tabs button span { color: var(--grey); margin-left: 6px; font-size: 13px; }
.lt-tabs button.on { border-bottom-color: var(--ink); font-weight: 600; }
.lt-tabs button:hover { background: var(--tint); }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-chips button { border: 1px solid var(--rule); background: var(--white); padding: 8px 14px; font-size: 14px; cursor: pointer; }
.lt-chips button.on { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lt-mgroup .hd { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.lt-mgroup .hd .mt { font-size: 14px; padding: 4px 10px; }
.lt-mgroup .hd .n { font-size: 15px; font-weight: 600; }
.lt-mgroup .hd .c { margin-left: auto; font-size: 14px; color: var(--grey); }
.lt-agrow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--rule); background: var(--white); text-align: left; cursor: pointer; min-height: 56px; }
.lt-agrow:hover { background: var(--tint); }
.lt-agrow .x { flex: 1; min-width: 0; }
.lt-agrow .n { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-agrow .s { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.lt-agrow .dp { font-size: 14px; color: var(--grey); width: 190px; flex: none; }
.lt-agrow .c { font-size: 14px; color: var(--grey); width: 80px; text-align: right; flex: none; }
@media (max-width: 900px) { .lt-agrow .dp { display: none; } .lt-agrow .c { width: auto; } }

/* Talk to Nexus lives on top: a slim bar on every page except the Map (it has its own) and Talk itself */
.lt-topbar { position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 32px; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--rule); }
body.no-top .lt-topbar { display: none; }
body:not(.no-top) .workspace-head { padding-top: 32px; }
body:not(.no-top) .view.on:not([data-view="map"]):not([data-view="talk"]):not([data-view="builder"]) { padding-top: 32px; }
@media (min-width: 1101px) { body:not(.no-top) .view[data-view="builder"] { height: calc(100vh - 64px); } }
.rail button.item.talk-phone { display: none; }
.lt-connect { border: 1px solid var(--ink); padding: 24px; margin-bottom: 32px; }
.lt-connect p { font-size: 16px; line-height: 1.5; margin: 0 0 16px; max-width: 760px; color: var(--ink); }
@media (max-width: 900px) {
  .lt-topbar { display: none; }
  .rail button.item.talk-phone { display: flex; background: var(--ink); color: var(--white); font-weight: 600; margin-right: 6px; }
  .rail button.item.talk-phone:hover { background: #333333; }
  body:not(.no-top) .view.on:not([data-view="map"]):not([data-view="talk"]):not([data-view="builder"]) { padding-top: 24px; }
}
.lt-seg.small button { min-height: 40px; padding: 0 12px; font-size: 14px; }
.lt-label.sm.inline { margin: 0 -10px 0 0; }
@media (max-width: 900px) { .lt-talkhead { flex-wrap: wrap; height: auto; padding: 10px 16px; } .lt-label.sm.inline { display: none; } }
.lt-talkhead .lt-label.inline { flex: none; }

/* a plain warning box: grey tint, orange rule on the left, one button */
.lt-warn { border-left: 3px solid var(--orange, #E2552B); background: #F5F5F3; padding: 14px 16px; margin: 0 0 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lt-warn p { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.5; }

/* Left menu list. On desktop it is part of the pinned column; at 900 and below it folds behind a Menu button and opens
   as a panel under the top strip, two or three columns wide, so nothing runs off the edge. */
.rail-list { display: contents; }
.rail .menu-btn { display: none; }
@media (max-width: 900px) {
  .rail { overflow: visible; flex-wrap: nowrap; }
  .rail .menu-btn { display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
  .rail .menu-btn .chev { font-size: 16px; line-height: 1; }
  .rail .menu-btn .cnt { color: var(--orange); font-weight: 600; }
  .rail-list { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--ink); padding: 8px 12px 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; max-height: calc(100dvh - 60px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  body.rail-open .rail-list { display: grid; }
  .rail-list .sep { display: block; grid-column: 1 / -1; margin: 6px 0; }
  .rail-list button.item { width: 100%; white-space: normal; }
  .rail-list .foot { display: none; }
}
.rail .menu-btn .word { display: none; }
@media (max-width: 600px) { .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rail .menu-btn .here { display: none; } .rail .menu-btn .word { display: inline; } }
