﻿[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --text: #1a1f1c;
  --muted: #5d6a63;
  --border: #dfe4e0;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --user-bubble: #0f766e;
  --user-ink: #ffffff;
  --danger: #c2410c;
  --best: #fef3c7;
  --radius: 14px;
  --tabbar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1412;
    --surface: #171d1a;
    --surface-2: #202825;
    --text: #e8ece9;
    --muted: #9aa8a0;
    --border: #2b3531;
    --accent: #2dd4bf;
    --accent-ink: #062621;
    --user-bubble: #115e57;
    --user-ink: #ecfdf9;
    --danger: #fb923c;
    --best: #3a2f0b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1412;
  --surface: #171d1a;
  --surface-2: #202825;
  --text: #e8ece9;
  --muted: #9aa8a0;
  --border: #2b3531;
  --accent: #2dd4bf;
  --accent-ink: #062621;
  --user-bubble: #115e57;
  --user-ink: #ecfdf9;
  --danger: #fb923c;
  --best: #3a2f0b;
}
#reportPinDialog button, #reportLinksDialog button, #userList button[data-uact="reportPin"] {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 9px 14px; border-radius: 8px; font-weight: 600;
}
#reportPinDialog input, #reportPinDialog select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); padding: 8px; border-radius: 8px; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
h2, h3 { margin: 0 0 8px; }
h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 18px; }
.muted { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); font-size: 14px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2);
  display: grid; place-items: center; font-size: 18px;
}
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; text-align: left;
}
.primary {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 12px; padding: 10px 16px; font-weight: 600;
}
.wide { width: 100%; margin-top: 12px; padding: 14px; }

/* tabs */
main { flex: 1; display: flex; min-height: 0; }
.tab { display: none; flex: 1; flex-direction: column; padding: 16px; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; }
.tab.active { display: flex; }
#tab-chat { padding: 0; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.tabbar button {
  background: none; border: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted);
}
.tabbar .ico { font-size: 20px; }
.tabbar button.active { color: var(--accent); font-weight: 700; }

/* chat */
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.welcome { margin: auto 0; padding: 12px 0; }
.suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; align-items: flex-start; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: var(--radius); word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--user-bubble); color: var(--user-ink); border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.error { border-color: var(--danger); color: var(--danger); }
.msg.widget { max-width: 100%; width: 100%; padding: 0; background: none; border: 0; }
.typing { display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer {
  display: flex; gap: 8px; padding: 10px 12px; align-items: center;
  background: var(--surface); border-top: 1px solid var(--border);
}
.composer input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.send { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 600; }
.mic.on { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* product cards */
.products { display: flex; flex-direction: column; gap: 8px; }
.p-head { font-size: 13px; color: var(--muted); }
.product { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.product.best { background: var(--best); }
.tag { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 700; color: var(--accent); }
.p-name { font-weight: 600; padding-right: 70px; }
.p-price { font-size: 20px; font-weight: 800; margin: 2px 0; }
.p-store { font-size: 13px; color: var(--muted); }
.p-actions { display: flex; gap: 8px; margin-top: 8px; }
.p-actions a, .p-actions button, .link-btn {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.p-actions a, .link-btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* camera */
.viewer { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-height: 52vh; width: 100%; }
.viewer video { width: 100%; height: 100%; object-fit: cover; }
.cam-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5d1; }
.rec-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #ff4d4d; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.rec-badge.paused { color: #facc15; }
.cam-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cam-controls button:not(.primary) { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cap img, .cap video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #000; }
.cap-actions { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 13px; }
.cap-actions a, .cap-actions button { background: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: none; padding: 0; }

/* places & lists */
.map { height: 42vh; min-height: 220px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.list li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }
.list .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.list a, .list button { font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: 0; text-decoration: none; white-space: nowrap; }
.list button.del { color: var(--danger); }
.shop-form { display: flex; gap: 8px; }
.shop-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }

/* settings */
.brand > div { display: flex; flex-direction: column; line-height: 1.15; }
.ai-label { font-size: 11px; font-weight: 500; color: var(--muted); }
.sheet { border: 1px solid var(--border); border-radius: 18px; padding: 20px; width: min(92vw, 440px); background: var(--surface); color: var(--text); }
.sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet form { display: flex; flex-direction: column; gap: 12px; }
.sheet label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.sheet select, .sheet input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 400; }
.sheet .small { font-size: 12px; margin: 0; }
.sheet a { color: var(--accent); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sheet-actions button:not(.primary) { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 10px 16px; }
.sheet label .muted { font-weight: 400; font-size: 13px; }
.sheet { max-height: 90vh; overflow-y: auto; }
.sheet hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
.sheet textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-weight: 400; resize: vertical; }
.sheet label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.sheet label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.msg.quick { font-size: 14px; }

/* command bar on every tab */
:root { --composer-h: 62px; }
body { padding-bottom: calc(var(--tabbar-h) + var(--composer-h) + env(safe-area-inset-bottom)); }
.composer { position: fixed; left: 0; right: 0; z-index: 9; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); height: var(--composer-h); }
.composer > * { max-width: 760px; }
.toast {
  position: fixed; left: 16px; right: 16px; z-index: 11; margin: 0 auto; max-width: 560px;
  bottom: calc(var(--tabbar-h) + var(--composer-h) + 12px + env(safe-area-inset-bottom));
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
}

/* drawn icons */
.icon-btn svg, .tabbar .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .ico { height: 22px; display: grid; place-items: center; }
.tabbar .ico svg { width: 22px; height: 22px; }
#settingsBtn svg circle { fill: var(--surface-2); }
.icon-btn[aria-pressed="true"] svg { stroke: var(--accent-ink); }
.mic.on svg { stroke: #fff; }
.composer input.listening::placeholder { color: var(--danger); font-weight: 600; }
.typing { align-items: center; }
.typing .wait { margin-left: 8px; color: var(--muted); font-size: 12px; }

/* sites memory */
.sites-panel { margin-top: 8px; }
.sites-panel h4 { margin: 16px 0 0; font-size: 14px; }
.site-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.site-form input { flex: 1 1 160px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.site-form .primary, .site-form .ghost { padding: 10px 12px; font-size: 14px; }
.ghost { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; font-weight: 600; }
.list li button + button { margin-left: 2px; }

/* compare answers */
.compare { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.compare summary { cursor: pointer; font-size: 14px; }
.c-ans { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.c-ans.best .c-head b { color: var(--accent); }
.c-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.c-head .muted { margin-left: auto; }
.c-tag { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 1px 8px; }
.c-prods { margin: 6px 0 0; padding-left: 18px; }
.c-prods a { color: var(--accent); }
.c-err { color: var(--danger); }
.small { font-size: 12px; }

/* each tab scrolls inside the screen, so nothing hides under the command bar */
.tab { overflow-y: auto; padding-bottom: 24px; }
#tab-chat { overflow: hidden; padding-bottom: 0; }

/* notes */
.note-form { display: flex; flex-direction: column; gap: 8px; }
.note-form textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font: inherit; resize: vertical; min-height: 64px; }
.note-form .row { display: flex; gap: 8px; }
.note-form .row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.note-text { white-space: pre-wrap; word-break: break-word; }
.tabbar { grid-template-columns: repeat(5, 1fr); }

.note-form select { padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.note-form input[type=datetime-local] { flex: 1 1 auto; }
#remForm > input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.rem-due { color: var(--danger); font-weight: 600; }
.link-like { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; text-decoration: underline; cursor: pointer; }

/* usage */
.usage-head { display: flex; justify-content: space-between; align-items: center; }
.usage-list li { flex-wrap: wrap; }
.usage-list select, .usage-list input { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-size: 13px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; background: var(--surface-2); color: var(--muted); }
.chip.on { background: #dcfce7; color: #166534; }
.chip.off { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) { .chip.on { background: #14532d; color: #bbf7d0; } .chip.off { background: #7f1d1d; color: #fecaca; } }
.limits { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 6px; }
.limits label { font-size: 12px; font-weight: 500; gap: 2px; }
.limits .full { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.chat-row .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.current .title { color: var(--accent); }
.top-actions { gap: 4px; }
@media (max-width: 380px) { .icon-btn { width: 36px; height: 36px; } }
.usage-list .grow { flex: 1 1 100%; }
.usage-list li > select, .usage-list li > button { margin-top: 2px; }

/* reminder alarm */
.alarm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.6); padding: 16px; }
.alarm-box { width: min(92vw, 380px); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 20px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.alarm-bell { font-size: 52px; animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.alarm-text { font-size: 20px; font-weight: 700; margin: 8px 0 4px; word-break: break-word; }
.alarm-actions { display: flex; gap: 10px; margin-top: 18px; }
.alarm-actions button { flex: 1; padding: 14px; font-size: 16px; }

/* bell: grey = off, green = alerts on, red dot = blocked */
#bellBtn { position: relative; }
#bellBtn.bell-on { background: var(--accent); border-color: var(--accent); }
#bellBtn.bell-on svg { stroke: var(--accent-ink); }
#bellBtn.bell-off::after { content: ''; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.brand span#appName { white-space: nowrap; }
@media (max-width: 400px) { .icon-btn { width: 34px; height: 34px; } .icon-btn svg { width: 18px; height: 18px; } .ai-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } }

/* mic shows a small green dot while the wake word is listening */
.mic { position: relative; }
.mic.wake::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: wakepulse 2s infinite; }
@keyframes wakepulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* email send confirmation */
.mail-preview { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; font-size: 14px; }
.mail-preview pre { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 6px 0 0; max-height: 40vh; overflow-y: auto; }
#gmailBox code { font-size: 11px; word-break: break-all; }

/* holding the mic (push-to-talk) */
.mic.ptt { background: var(--danger); color: #fff; border-color: var(--danger); transform: scale(1.15); }
.mic.ptt svg { stroke: #fff; }
.mic { touch-action: none; -webkit-user-select: none; user-select: none; }

.voice-debug pre { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 8px; max-height: 30vh; overflow-y: auto; margin: 6px 0 0; }

/* ---- several users: Messages tab + Users list ---- */
.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar button[hidden] { display: none !important; }
.tabbar .ico { position: relative; }
.badge { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.msg-list li { flex-direction: column; align-items: stretch; gap: 4px; }
.msg-list li.mine { background: var(--surface-2); margin-left: 28px; }
.msg-list li.theirs { margin-right: 28px; }
.msg-list li.unread { border-color: var(--accent); }
.msg-list .who { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.msg-list .who b { color: var(--text); }
.msg-list .txt { white-space: pre-wrap; word-break: break-word; }
.msg-list .reply { align-self: flex-start; }
.user-add { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
#reportWelcome { position: fixed; inset: 0; z-index: 10000; background: var(--surface, #fff); display: grid; place-items: center; padding: 24px; }
#reportWelcome[hidden] { display: none; }
#reportWelcomeForm { display: grid; gap: 16px; width: min(320px, 100%); text-align: center; }
#reportWelcomeCode { font: inherit; font-size: 24px; letter-spacing: 12px; text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
#reportPinDialog { max-width: 90vw; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.user-add input { flex: 1 1 120px; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; color: var(--text); }
.user-add textarea { flex: 1 1 100%; width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; resize: vertical; }
#reportLinksDialog { width: min(520px, 90vw); box-sizing: border-box; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
#reportLinksDialog textarea { width: 100%; box-sizing: border-box; display: block; margin-bottom: 12px; padding: 10px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
#userList li { flex-wrap: wrap; }
#userList li .name { flex: 1; }
body[data-owner="0"] .owner-only { display: none; }

/* ---- instant delivery apps + settings inputs ---- */
.app-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 6px 0 10px; }
.app-checks label { display: flex; gap: 6px; align-items: center; font-size: 14px; margin: 0; }
.text-in { width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; color: var(--text); }
.instant { display: flex; flex-direction: column; gap: 6px; }
.instant .p-head { font-weight: 600; }
.instant .row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.instant .row.best { border-color: var(--accent); }
.instant .app { font-weight: 700; min-width: 76px; }
.instant .info { flex: 1; min-width: 0; font-size: 13px; }
.instant .info .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.instant .price { font-weight: 700; }
.instant .tag { font-size: 11px; color: var(--accent); font-weight: 700; }
.instant a.open { white-space: nowrap; padding: 7px 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.instant .note { font-size: 12px; }
.area-row { display: flex; gap: 6px; align-items: center; }
.area-row .text-in { flex: 1; min-width: 0; }
.area-row .chip { white-space: nowrap; }
.instant .deliver { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.instant .deliver-sel { padding: 4px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.addr-box { margin: 4px 0 10px; }
.addr-box summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.addr-box .text-in, .addr-box button { margin-top: 6px; }
.addr-box textarea.text-in { resize: vertical; }
.instant .live-btn { display: block; text-align: center; padding: 9px 10px; border-radius: 12px; border: 1px dashed var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.orderlist .row .tick { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.orderlist .row .tick input { width: 20px; height: 20px; flex: none; }
.orderlist .row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orderlist .row.opened { border-color: var(--accent); }
.orderlist .row.done .nm { text-decoration: line-through; color: var(--muted); }
.orderlist .row.done a.open { opacity: .5; }
.ol-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ol-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.ol-row select { padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.hotels .row .info b { font-size: 14px; }
.site-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.site-chips .chip { text-decoration: none; }
.instant .tag.live { color: #b45309; }
.instant .row s { margin-left: 2px; }

/* ---- Excel / CSV reports ---- */
.datacard { display: flex; flex-direction: column; gap: 8px; }
.datacard .p-head { font-weight: 600; }
.datacard details.sheet summary { cursor: pointer; font-size: 14px; }
.tbl-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--border); border-radius: 10px; margin-top: 6px; }
.dtable { border-collapse: collapse; width: 100%; font-size: 13px; }
.dtable th, .dtable td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.dtable th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; }
.dtable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable td.det { white-space: normal; min-width: 180px; color: var(--muted); }
.datacard .warn { color: var(--danger); }
.dc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.composer #attachBtn { flex: none; }
