/* Extra screens, in the approved design's language: white, Open Sans,
   #CFD3D9 pills, hairline #E6E7EB borders, nothing heavier. Uses the
   design's own tokens from index.html. */

.sr { position: absolute; left: -9999px; }
.small { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.small:empty { display: none; }
.note { margin: 0 0 6px; color: var(--muted); }

.pillform { display: flex; align-items: center; gap: 8px; margin-top: 10px; max-width: 360px;
  background: var(--pill); border-radius: 999px; padding: 4px 4px 4px 14px; }
.pillform input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px var(--font); color: var(--ink); padding: 4px 0; }
.pillform input:focus { outline: none; }
.pillform:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent); }
.pillform button { border: 0; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 13px var(--font); padding: 6px 14px; cursor: pointer; flex: none; }

.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Account and Chats pills: top-left of the chat column, mirroring the
   design's New chat button on the right. */
.topleft { position: absolute; top: 0; left: 0; z-index: 2; display: flex; gap: 8px; align-items: flex-start; max-width: calc(100% - 110px); }
.acct { position: relative; font: 500 13px var(--font); min-width: 0; }
.acct summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 6px 14px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct summary::-webkit-details-marker { display: none; }
.acct[open] summary { background: var(--pill); border-color: var(--pill); }
/* The email pill gives way first; "Chats" always shows in full. */
#acct { flex: 0 1 auto; }
#acct summary { max-width: 100%; }
#history { flex: none; position: static; } /* its list anchors to the pill row, so it stays on screen */
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px; border: 1px solid var(--line);
  background: var(--bg); border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgb(27 27 31 / .06); }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 999px;
  padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.menu button:hover { background: var(--pill); }
.menu .small { margin: 6px 10px; }
.chats { width: min(320px, calc(100vw - 32px)); max-height: min(60vh, 420px); overflow-y: auto; }
.chats .row { display: flex; align-items: center; gap: 4px; }
.chats .open { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chats .del { flex: none; width: auto; color: var(--muted); font-weight: 400; }
.chats .del[data-armed="1"] { color: var(--ink); background: var(--pill); }
.acct summary:focus-visible, .pillform button:focus-visible, .linkbtn:focus-visible, .menu button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; }

/* Model replies (web/markdown.ts). */
.msg.bot p { margin: 0 0 8px; }
.msg.bot p:last-child, .msg.bot ol:last-child, .msg.bot ul:last-child { margin-bottom: 0; }
.msg.bot ul { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.msg.bot ol { margin-bottom: 8px; }
.msg.bot code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1F2F4; border-radius: 6px; padding: 1px 5px; }
.msg.bot pre { margin: 6px 0 8px; background: #F1F2F4; border-radius: 12px; padding: 10px 12px; overflow-x: auto; }
.msg.bot pre code { background: none; padding: 0; }
.msg.bot a { color: var(--ink); }

/* Eyes: paperclip in the bar, file chips above it. */
.attach { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.attach:hover { color: var(--ink); }
.attach svg { width: 16px; height: 16px; }
.attach:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bar.dragging { box-shadow: 0 0 0 2px var(--blue); }
.chips { width: 58%; margin: clamp(24px, 4vw, 40px) auto 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips[hidden] { display: none; }
.chips:not([hidden]) + .bar { margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 240px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 4px; font-size: 12px; }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.chip .kind { font: 600 10px var(--font); background: var(--pill); border-radius: 999px; padding: 2px 6px; flex: none; }
.chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font: 16px/1 var(--font); padding: 0 4px; flex: none; }
.chip button:hover { color: var(--ink); }
.chip-error { width: 100%; font-size: 12px; color: var(--muted); }
.msg.user .files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.msg.user .files:first-child { margin-top: 0; }
.msg.user .files span { font-size: 12px; background: var(--bg); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 760px) { .chips { width: 100%; } }

/* Ears: mic in the bar. On while listening; a soft pulse while Whisper works. */
.mic.on { background: var(--ink); color: var(--bg); }
.mic.busy { color: var(--ink); animation: blink 1s infinite; }
@media (prefers-reduced-motion: reduce) { .mic.busy { animation: none; } }

/* Plans card. */
.plans { display: grid; gap: 6px; margin: 8px 0 4px; max-width: 420px; }
.plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; }
.plan .small { display: block; margin: 0; }
.plan button { border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 13px var(--font); padding: 6px 14px; cursor: pointer; flex: none; }
.plan button:disabled { opacity: .5; cursor: default; }
.plan button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#planline { margin: 6px 10px 4px; }

/* Connections panel: opens above the chat bar from the plug icon. */
.connpanel { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(3% + 52px); width: 58%; z-index: 3;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 12px 32px rgb(27 27 31 / .08);
  max-height: min(70vh, 560px); overflow-y: auto; }
.connpanel h2 { font: 400 18px "Montserrat", var(--font); margin: 0 0 4px; }
.connpanel .x { position: absolute; top: 10px; right: 10px; border: 0; background: none; font: 20px/1 var(--font); color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.connpanel .x:hover { color: var(--ink); background: var(--pill); }
.conns { display: grid; gap: 6px; margin: 12px 0; }
.conn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; }
.conn > div { flex: 1; min-width: 0; }
.conn strong { font-weight: 600; }
.conn .small { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pillbtn { border: 0; border-radius: 999px; background: var(--pill); color: var(--ink); font: 600 13px var(--font); padding: 6px 14px; cursor: pointer; flex: none; }
.pillbtn.dark { background: var(--ink); color: var(--bg); }
.pillbtn:disabled { opacity: .5; cursor: default; }
.pillbtn:focus-visible, .connpanel .x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.connform { display: grid; gap: 8px; margin-top: 4px; }
.connform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.connform input { width: 100%; min-width: 0; border: 0; background: var(--pill); border-radius: 999px; padding: 8px 14px; font: 14px var(--font); color: var(--ink); }
.connform input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent); }
.connform .pillbtn { justify-self: start; }
.connform select, .tiers select { width: 100%; min-width: 0; border: 0; background: var(--pill); border-radius: 999px; padding: 8px 14px; font: 14px var(--font); color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.connform select:focus, .tiers select:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent); }
.connform .small a, .msg .small a { color: inherit; }
.connpanel .sub { font: 400 16px "Montserrat", var(--font); margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tier { display: grid; gap: 4px; min-width: 0; }
.tier > span { font: 600 12px var(--font); color: var(--muted); padding-left: 14px; letter-spacing: .02em; }
.msg .waiting { margin: 6px 0 0; color: var(--muted); }
.provgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
#plug[aria-expanded="true"] { color: var(--ink); }
@media (max-width: 760px) { .connpanel { width: 100%; } .connform .row2, .tiers { grid-template-columns: 1fr; } }

/* Approve / Not now card. */
.approve-row { display: flex; gap: 8px; margin-top: 10px; }

/* Delete my account. */
.menu .danger { color: #B42318; }
.menu .danger:hover { background: rgb(180 35 24 / .08); }
.danger-form button { background: #B42318; }
.danger-form button:disabled { opacity: .45; cursor: not-allowed; }

/* Hands run card: Live View in a glass frame, steps, result. */
.msg.bot.run > div { width: min(640px, 100%); }
.run-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.run-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.run-state b { color: var(--ink); font-weight: 600; }
.run-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgb(79 123 233 / .5); animation: run-pulse 1.6s ease-out infinite; }
.run-card[data-status="done"] .run-dot { background: #2E9D5B; animation: none; }
.run-card[data-status="stopped"] .run-dot, .run-card[data-status="failed"] .run-dot { background: var(--muted); animation: none; }
@keyframes run-pulse { to { box-shadow: 0 0 0 8px rgb(79 123 233 / 0); } }
.run-stop { margin-left: 4px; }
.run-head { flex-wrap: wrap; }
.run-view { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: rgb(255 255 255 / .6);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9); }
.run-view iframe, .run-view img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: top; }
.run-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.run-log { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.run-log li:last-child { color: var(--ink); }
.run-result:not(:empty) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .run-dot { animation: none; } }

/* Rules in replies (--- in Markdown). */
.msg hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* Hands: waiting for the user's Approve / Not now. */
.run-ask { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0; background: color-mix(in srgb, var(--blue) 6%, var(--bg)); }
.run-ask p { margin: 0 0 8px; }
.run-ask-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.run-ask-left { margin: 0; color: var(--muted); }

/* Hands: take over / give back, needs-you banner, time left. */
.run-left { margin: 0 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.run-left.warn { color: #B4532A; font-weight: 600; }
.run-head .run-take, .run-head .run-give { margin-left: 4px; }
.run-shield[hidden], .run-need[hidden], .run-ask[hidden] { display: none; }
.run-shield { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 10px; cursor: not-allowed; }
.run-shield span { background: rgb(27 27 31 / .72); color: #fff; font: 600 12px var(--font); padding: 5px 12px; border-radius: 999px; }
.run-card[data-control="user"] .run-view { outline: 2px solid var(--blue); outline-offset: 2px; }
.run-need { border: 1px solid color-mix(in srgb, #B4532A 40%, var(--line)); background: color-mix(in srgb, #B4532A 7%, var(--bg)); border-radius: 14px; padding: 10px 12px; margin: 10px 0; }

/* Screen share: the "sharing" chip and the button while on. */
#screen.on { background: var(--ink); color: var(--bg); }
.chip.sharing { max-width: 100%; padding-left: 10px; gap: 8px; border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.chip.sharing .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #D64545; flex: none; animation: share-pulse 1.6s ease-in-out infinite; }
.chip.sharing .stop-share { font: 600 12px var(--font); color: var(--ink); background: var(--pill); border-radius: 999px; padding: 3px 10px; }
@media (prefers-reduced-motion: reduce) { .chip.sharing .live-dot { animation: none; } }
@keyframes share-pulse { 50% { opacity: .35; } }

/* Task shortcuts (quick starts run by Hands) and their cards. */
.shortcuts { width: 58%; margin: clamp(24px, 4vw, 40px) auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.shortcuts[hidden] { display: none; }
.shortcuts:not([hidden]) + .chips[hidden] + .bar { margin-top: 10px; }
.shortcut { border: 1px solid var(--line); background: rgb(255 255 255 / .62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px; padding: 7px 14px; font: 600 13px var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgb(27 27 31 / .06); }
.shortcut:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.shortcut:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.taskform { display: grid; gap: 6px; margin-top: 8px; }
.taskform label { font: 600 12px var(--font); color: var(--muted); padding-left: 2px; }
.taskform input, .taskform textarea { width: 100%; min-width: 0; border: 0; background: var(--pill); border-radius: 14px; padding: 8px 12px; font: 14px var(--font); color: var(--ink); resize: vertical; }
.taskform input { border-radius: 999px; }
.taskform input:focus, .taskform textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent); }
.taskform-btns { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 760px) { .shortcuts { width: 100%; } }

/* What Automanton knows about you. */
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 10px 0 0; cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--ink); }
.conn.mem .memtext { display: block; overflow-wrap: anywhere; }
.conn.mem .small { white-space: normal; }
.memedit { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.memedit input { flex: 1 1 200px; min-width: 0; border: 0; background: var(--pill); border-radius: 999px; padding: 8px 14px; font: 14px var(--font); color: var(--ink); }
.memedit .status { width: 100%; margin: 0; }
.msg .remembered { margin: 10px 0 0; color: var(--muted); }
.linkbtn.danger { color: #B4532A; }

/* Cited answers: inline source numbers and the list under the reply. */
.msg a.cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 1px; border-radius: 999px; vertical-align: 2px;
  background: color-mix(in srgb, var(--blue) 14%, var(--bg)); color: var(--ink); font: 600 10px/1 var(--font); text-decoration: none; }
.msg a.cite:hover, .msg a.cite:focus-visible { background: var(--blue); color: #fff; outline: none; }
.msg ol.sources { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.msg ol.sources a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; text-decoration: none; color: var(--ink); font-size: 13px; }
.msg ol.sources .sn { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--pill); font: 600 11px var(--font); }
.msg ol.sources .st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.msg ol.sources .sd { color: var(--muted); font-size: 12px; }
.msg ol.sources a:hover .st { text-decoration: underline; }
.msg .source-note { margin: 10px 0 0; color: var(--muted); }

/* The suggested next step under an answer. */
.msg .next-action { margin: 12px 0 0; }

/* Deep research card. */
.run-card.research .subqs { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 2px; font-size: 13px; }
.run-card.research .subqs:empty, .run-card.research .run-log:empty { display: none; }
.run-card.research .run-result h1, .run-card.research .run-result h2, .run-card.research .run-result h3 { font-size: 15px; margin: 14px 0 4px; }

/* Signed out: Sign in / Join the waitlist, top right; the waitlist popup under them. */
.topright { position: absolute; top: 0; right: 0; z-index: 3; display: flex; gap: 8px; }
.app.chatting .topright { display: none; }
.wlpop { position: absolute; top: 50px; right: 0; z-index: 4; width: min(360px, 100%); box-sizing: border-box; padding: 16px; border-radius: 20px; overflow-y: auto;
  background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 28px rgb(79 123 233 / .10), var(--glass-hi); display: grid; gap: 10px; }
.wlpop h2 { font: 400 18px "Montserrat", var(--font); margin: 0; }
.wlpop .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; font: 20px/1 var(--font); color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.wlpop .x:hover { color: var(--ink); background: var(--pill); }
.wlpop .small { margin: 0; }
.wl-row { display: flex; gap: 6px; }
.wl-row input { box-sizing: border-box; flex: 1; min-width: 0; border: 1px solid rgb(46 62 120 / .14); background: rgb(255 255 255 / .6); box-shadow: var(--glass-hi); border-radius: 999px; padding: 8px 14px; font: 14px var(--font); color: var(--ink); }
.wl-row input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent); }
.wl-pos { margin: 0; font: 400 15px var(--font); padding-right: 24px; } .wl-pos strong { font: 500 30px "Montserrat", var(--font); letter-spacing: -.02em; }
.wl-more { display: grid; gap: 8px; border-top: 1px solid var(--glass-edge); padding-top: 10px; }
.wl-more-h { margin: 0; font-weight: 600; font-size: 14px; }
.wl-more select { border: 1px solid rgb(46 62 120 / .14); background: rgb(255 255 255 / .6); border-radius: 999px; padding: 7px 12px; font: 13px var(--font); color: var(--ink); }
.wl-wants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.wl-wants legend { margin-bottom: 4px; padding: 0; }
.wl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wl-chip span { display: inline-block; border: 1px solid rgb(46 62 120 / .12); background: rgb(255 255 255 / .5); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.wl-chip input:checked + span { background: linear-gradient(135deg, rgb(79 123 233 / .22), rgb(168 140 235 / .2)), rgb(255 255 255 / .7); border-color: rgb(79 123 233 / .4); }
.wl-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.wl-btns { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) { .wlpop { width: 100%; } }
/* Join the waitlist: the chat bar's glass, with a small blue-purple dot. */
.acct-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--glass-edge); background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 6px 24px rgb(79 123 233 / .12), var(--glass-hi);
  border-radius: 999px; padding: 6px 13px 6px 11px; font: 600 12px var(--font); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .3s ease; }
.acct-link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 0 8px rgb(124 120 235 / .65); }
.acct-link:hover, .acct-link[aria-expanded="true"] { transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(79 123 233 / .3), 0 8px 26px rgb(79 123 233 / .26), 0 0 40px rgb(168 140 235 / .22), var(--glass-hi); }
.wlpop .pillbtn.dark { background: linear-gradient(135deg, rgb(79 123 233 / .2), rgb(168 140 235 / .18)), rgb(255 255 255 / .6); color: var(--ink);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); }
.acct-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Scheduled tasks: the confirm card, the panel, the account-menu switch. */
.runas { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.runas label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.runas input { accent-color: var(--ink); }
.conn.sched strong { display: block; }
.menu-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer; }
.menu-toggle input { accent-color: var(--ink); }
.run-away { margin: 0 0 8px; color: var(--muted); }
.minutes-note[hidden] { display: none; }
.conn.sched { flex-wrap: wrap; }
.conn.sched > div { flex: 1 1 220px; }
.conn.sched .small, .conn.sched .memtext { white-space: normal; overflow: visible; }
/* Tables in replies: scroll sideways when wide; Download CSV underneath. */
.tablewrap { overflow-x: auto; margin: 8px 0; }
.tablewrap table { border-collapse: collapse; font-size: 13px; min-width: 60%; }
.tablewrap th, .tablewrap td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tablewrap th { font-weight: 600; white-space: nowrap; }
.tablewrap .csv { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.tablewrap .csv:hover { color: var(--ink); }
