html, body.workspace { height: 100%; }
.workspace {
  --ws-base: #f7f6fa;
  --ws-card: #fff;
  --ws-line: #e8e3ed;
  --ws-tint: #f2edfc;
  --ws-purple: #5736a2;
  --ws-shadow: 0 15px 42px #3a22600a, 0 2px 5px #3a226007;
  color: var(--veli-ink);
  background: var(--ws-base);
  font-family: var(--veli-body);
  overflow: hidden;
}
.workspace :is(button, input, select, textarea) { font-family: inherit; }
.workspace button { cursor: pointer; }
.workspace .new-chat { font-weight: 800; }
.workspace button:disabled { cursor: default; opacity: .55; }
.app { display: grid; grid-template-columns: 242px minmax(0, 1fr); height: 100dvh; }
.ui-icon { display: block; flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--veli-muted);
}
.icon-button:hover { background: var(--ws-tint); color: var(--ws-purple); }

.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 21px 14px 13px; border-right: 1px solid var(--ws-line); background: #fcfbfe; }
.sidebar .brand-lockup { margin: 0 8px 26px; }
.new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #ded0f3;
  border-radius: 13px;
  background: linear-gradient(135deg, #efe6ff, #f7f0fc);
  color: #462582;
  text-align: left;
}
.new-chat:hover { background: #e9dcfb; }
.side-links { display: grid; gap: 3px; margin-block: 16px; }
.side-links a, .profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 7px 10px;
  border-radius: 11px;
  color: var(--veli-muted);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
}
.side-links a:hover, .profile-link:hover, .side-links a[aria-current] { color: var(--ws-purple); background: var(--ws-tint); }
.side-links a[aria-current] { box-shadow: inset 0 0 0 1px #e2d7f5; }
.side-links .ui-icon, .profile-link .ui-icon { color: var(--ws-purple); }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #e8dff6; color: #503185; font-size: .7rem; }
.history-pane { min-height: 0; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--ws-line); padding-top: 10px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 1px 10px; }
.history-heading h2 { color: var(--veli-muted); font-size: .77rem; font-weight: 800; }
#historySearch { --field-height: 40px; margin-block: 5px 7px; }
.history-list { flex: 1; overflow: auto; scrollbar-width: thin; padding: 3px; }
.history-empty { padding: 6px 7px; color: var(--veli-muted); font-size: .78rem; }
.history-row { display: flex; align-items: center; gap: 1px; min-width: 0; margin-bottom: 3px; border-radius: 10px; }
.history-row:is(:hover, .selected, :focus-within) { background: var(--ws-tint); }
.history-chat { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 39px; gap: 7px; padding: 5px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--veli-muted); text-align: left; }
.history-chat span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .79rem; }
.history-chat[aria-current] { color: var(--ws-purple); font-weight: 800; }
.history-chat .ui-icon { width: 15px; height: 15px; }
.history-delete { width: 32px; height: 36px; opacity: 0; }
.history-delete .ui-icon { width: 16px; height: 16px; }
.history-row:is(:hover, :focus-within, .selected) .history-delete { opacity: 1; }
@media (hover: none) { .history-delete { opacity: 1; } }
.profile-link { margin-block: 6px; }
.profile-link .ui-icon:last-child { width: 14px; height: 14px; margin-left: auto; }
.user-box { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 11px 3px 0; border-top: 1px solid var(--ws-line); }
.user-ava { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 12px; background: #eae0f8; color: var(--ws-purple); font-size: .78rem; font-weight: 800; }
.user-meta { min-width: 0; flex: 1; }
.user-meta :is(b, small) { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-meta b { font-size: .83rem; }
.user-meta small { color: var(--veli-muted); font-size: .72rem; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; flex: none; gap: 11px; min-height: 67px; padding: 8px clamp(13px, 2.8vw, 37px); border-bottom: 1px solid var(--ws-line); background: #fff; }
.tb-id { display: flex; align-items: center; min-width: 0; gap: 9px; margin-right: auto; font-size: .95rem; font-weight: 800; }
.tb-id span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-id .ui-icon { color: var(--ws-purple); }
.agent-status { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 31px; padding: 4px 10px; border-radius: 999px; background: #f5f1ea; color: #67513b; font-size: .72rem; font-weight: 750; }
.agent-status::before { width: 7px; height: 7px; border-radius: 50%; background: #a77533; content: ''; }
.agent-status.is-online { background: #eaf5eb; color: #2f6543; }
.agent-status.is-online::before { background: #469961; }
.drawer-toggle, .drawer-backdrop { display: none; }

.chat-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(224px, 270px); flex: 1; min-height: 0; }
.chat-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 45% 0, #faf7ff 0%, #fbfafc 54%); }
.chat-scroll { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 28px max(18px, calc((100% - 780px) / 2)) 18px; }
.chat-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  flex: none;
  margin-top: auto;
  padding: clamp(20px, 4vw, 49px);
  border: 1px solid #e9dff7;
  border-radius: 27px;
  background: radial-gradient(ellipse at 100% 5%, #e5dcfd 0%, transparent 62%), linear-gradient(132deg, #fcf6ee, #f4eefe 80%);
  box-shadow: var(--ws-shadow);
}
.welcome-copy { min-width: 0; }
.welcome-name { display: inline-flex; padding: 4px 10px; margin-bottom: 13px; border: 1px solid #e8def2; border-radius: 999px; background: #ffffffbd; color: #654590; font-size: .79rem; font-weight: 800; overflow-wrap: anywhere; }
.chat-intro h1 { font: 780 clamp(2.4rem, 5.3vw, 5.2rem)/.93 var(--veli-display); letter-spacing: -.067em; }
.welcome-copy > p:last-child { margin-top: 13px; color: #63526e; font-size: .99rem; line-height: 1.42; }
.welcome-portrait { display: block; width: clamp(90px, 13vw, 175px); height: auto; aspect-ratio: 1; object-fit: cover; border: 5px solid #fff; border-radius: 35%; background: var(--veli-lime); box-shadow: 0 9px 28px #52317e23; rotate: 5deg; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 auto; }
.quick button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--ws-line);
  border-radius: 13px;
  background: #fff;
  color: var(--veli-ink);
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
}
.quick button:is(:hover, :focus-visible) { border-color: #c8b5e8; background: var(--ws-tint); }
.quick .ui-icon { width: 16px; height: 16px; }
.quick :is(span, .ui-icon) { color: var(--ws-purple); }

.messages { display: flex; flex-direction: column; gap: 22px; }
.messages:empty { display: none; }
.chat-turn {
  min-width: 0;
  overflow-wrap: anywhere;
  animation: msgin .22s var(--veli-ease) both;
}
.chat-turn time { color: var(--veli-muted); font-size: .7rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.chat-turn-user {
  align-self: flex-end;
  width: fit-content;
  max-width: min(80%, 510px);
  padding: 9px 12px 7px;
  border: 1px solid #e2d6f0;
  border-radius: 16px 16px 5px 16px;
  background: #f1eafa;
  color: var(--veli-ink);
}
.chat-question { white-space: pre-wrap; font-size: .94rem; line-height: 1.5; }
.chat-turn-user time { display: block; margin-top: 3px; text-align: end; }
.chat-turn-abi { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: start; gap: 10px; width: min(100%, 700px); }
.chat-abi-avatar { width: 35px; height: 35px; border-radius: 12px; overflow: hidden; background: var(--veli-lime); }
.chat-abi-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-abi-copy { min-width: 0; }
.chat-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.chat-byline b { color: var(--veli-ink); font-size: .87rem; font-weight: 800; }
.chat-answer {
  width: fit-content;
  max-width: 100%;
  padding: 13px 15px;
  border: 1px solid #e9e2ed;
  border-radius: 5px 17px 17px 17px;
  background: #fff;
  color: #332940;
  box-shadow: 0 4px 14px #41285608;
}
.reply-text { display: grid; gap: 10px; font-size: .965rem; line-height: 1.62; }
.reply-text p { margin: 0; }
.reply-text strong { color: var(--veli-ink); font-weight: 780; }
.reply-text em { font-style: italic; }
.reply-text h3 { margin: 4px 0 0; font: 780 1.08rem/1.25 var(--veli-display); letter-spacing: -.025em; color: var(--veli-ink); }
.reply-text :is(ul, ol) { display: grid; gap: 5px; margin: 0; padding-inline-start: 21px; }
.reply-text li::marker { color: var(--ws-purple); font-weight: 750; }
.reply-text a { color: var(--ws-purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.reply-text a:hover { text-decoration-thickness: 2px; }
.reply-text blockquote { margin: 0; padding: 7px 11px; border-inline-start: 3px solid #d2b9ec; border-radius: 0 8px 8px 0; background: #f8f3fc; }
.reply-text blockquote p + p { margin-block-start: 4px; }
.reply-text pre { max-width: 100%; overflow: auto; margin: 0; padding: 9px 11px; border: 1px solid #e8dfee; border-radius: 9px; background: #f8f4fb; white-space: pre; }
.reply-text code { font: .83em/1.5 ui-monospace, monospace; }
.reply-text :not(pre) > code { padding: 2px 4px; border-radius: 4px; background: #f3ecf9; }
.reply-sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee7f2; }
.reply-sources-title { display: flex; align-items: center; gap: 5px; color: #605269; font-size: .78rem; font-weight: 780; }
.reply-sources-title .ui-icon { width: 15px; height: 15px; color: var(--ws-purple); }
.reply-sources ul { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 6px; list-style: none; }
.reply-sources li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: 100%; }
.reply-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #e9def2;
  border-radius: 9px;
  background: #faf6fd;
  color: #553286;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}
.reply-source-link:hover { border-color: #dac6ed; background: #f1e8f9; }
.reply-source-arrow { flex: none; }
.reply-source-note { padding-inline: 2px; color: var(--veli-muted); font-size: .72rem; line-height: 1.4; }
.chat-pending { display: flex; align-items: center; gap: 7px; margin-inline-start: 45px; color: var(--veli-muted); font-size: .79rem; }
.chat-pending-dots { display: inline-flex; gap: 3px; align-items: center; }
.chat-pending-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9173bc; animation: tp 1.15s infinite; }
.chat-pending-dots i:nth-child(2) { animation-delay: .16s; }
.chat-pending-dots i:nth-child(3) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .chat-turn, .chat-pending-dots i { animation: none; }
}
.chat-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid #eae3d8; border-radius: 12px; background: #fffaf2; color: #67513b; font-size: .83rem; }
.chat-notice button { flex: none; }

.composer-wrap { padding: 0 max(18px, calc((100% - 780px) / 2)) 12px; }
.composer { --field-radius: 18px; --field-shadow: 0 8px 24px #4b306610; display: flex; align-items: flex-end; gap: 5px; padding: 6px; }
.composer textarea { flex: 1; min-height: 45px; max-height: 160px; field-sizing: content; resize: none; padding: 11px 10px; }
.send { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--veli-lime); color: var(--veli-ink); transition: background-color var(--veli-fast); }
.send:hover:not(:disabled) { background: #dce96c; }
.composer-hint { margin-top: 8px; text-align: center; color: var(--veli-muted); font-size: .73rem; }

.chat-rail { min-width: 0; overflow: auto; padding: 25px 14px; border-left: 1px solid var(--ws-line); background: #fcfbfe; }
.chat-rail h2 { margin: 2px 5px 13px; font: 770 1.15rem/1.2 var(--veli-display); letter-spacing: -.03em; }
.rail-link { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; padding: 9px 8px; border: 1px solid var(--ws-line); border-radius: 14px; background: #fff; color: var(--veli-ink); text-decoration: none; }
.rail-link :is(b, small) { display: block; }
.rail-link b { font-size: .81rem; }
.rail-link small { margin-top: 3px; color: var(--veli-muted); font-size: .71rem; line-height: 1.24; }
.rail-link:hover { border-color: #cbb7e8; background: #faf6ff; }
.rail-arrow { margin-left: auto; align-self: flex-start; color: var(--ws-purple); font-size: .88rem; }
.feature-icon { display: inline-grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 12px; color: #50347c; }
.tone-lilac { background: #eee3fb; }
.tone-peach { background: #fae8df; color: #8a4937; }
.tone-mint { background: #e6f1e3; color: #3b6441; }
.tone-blue { background: #e5edfc; color: #3e558d; }

.page-view { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(18px, 4vw, 43px) max(18px, calc((100% - 1050px) / 2)) 37px; background: radial-gradient(ellipse at 50% 0, #fbf8ff, #f9f8fb 68%); }
.page-intro { margin-bottom: 23px; padding: clamp(18px, 3.2vw, 33px); border: 1px solid #e8e0ef; border-radius: 24px; background: linear-gradient(122deg, #fff 15%, #f5eefa); }
.page-intro h1 { margin-top: 11px; font: 790 clamp(2.12rem, 4.5vw, 4rem)/.97 var(--veli-display); letter-spacing: -.068em; }
.page-intro p, .tool-detail > p { max-width: 62ch; margin-top: 9px; color: var(--veli-muted); line-height: 1.5; }
.view-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.search-field { display: flex; align-items: center; gap: 3px; width: min(100%, 360px); padding-inline: 11px 3px; }
.search-field .ui-icon { color: var(--field-accent); }
.filter-field { display: grid; width: min(100%, 216px); }
.search-field input { width: 100%; }
.result-summary { margin: 8px 0 10px; color: var(--veli-muted); font-size: .81rem; }
.catalog-grid, .tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 11px; }
.catalog-card, .tool-card, .tool-detail, .task-board { padding: 17px; border: 1px solid var(--ws-line); border-radius: 18px; background: #fff; box-shadow: var(--ws-shadow); }
.catalog-card { display: flex; flex-direction: column; min-width: 0; }
.catalog-meta { display: flex; align-items: center; gap: 8px; color: var(--veli-muted); font-size: .76rem; font-weight: 750; }
.catalog-card h2, .tool-card h2 { margin-top: 13px; font: 760 1.31rem/1.11 var(--veli-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.catalog-card p, .tool-card p { margin: 7px 0 14px; color: var(--veli-muted); font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-action { margin-top: auto; }
.tool-card { display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: var(--veli-ink); transition: border-color var(--veli-fast), translate var(--veli-fast); }
.tool-card :is(h2, p) { grid-column: 1 / -1; }
.tool-card p { margin-bottom: 0; }
.tool-card:hover { translate: 0 -2px; border-color: #c7b3e3; }
.tool-detail { max-width: 740px; padding: clamp(16px, 3vw, 26px); }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--ws-purple); text-decoration: none; font-size: .87rem; font-weight: 800; }
.back-link:hover { text-decoration: underline; }
.tool-detail h2 { font: 780 clamp(1.55rem, 2.7vw, 2.34rem)/1.04 var(--veli-display); letter-spacing: -.04em; }
.service-form, .task-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-block: 17px; }
.service-form label { display: grid; flex: 1; max-width: 410px; min-width: min(100%, 190px); gap: 6px; color: var(--veli-ink); font-size: .86rem; font-weight: 750; }
.service-form label > span:not(.field-message) { display: inline; color: var(--veli-muted); font-size: .77rem; font-weight: 500; }
.service-results { display: grid; gap: 8px; color: var(--veli-muted); }
.result-card { padding: 13px; border: 1px solid var(--ws-line); border-radius: 13px; background: #fcfbfe; font-size: .9rem; line-height: 1.5; }
.result-card h3, .result-card h4 { margin-bottom: 4px; color: var(--veli-ink); }
.result-card h4 { margin-top: 13px; }
.result-card ul { padding-left: 19px; }
.result-card blockquote { margin-block: 7px; padding: 7px 10px; border-left: 3px solid #c9b2ed; background: #f6effd; color: var(--veli-ink); }
.result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.city-locator { display:grid; gap:11px; max-width:720px; }
.city-locator-form,.city-locator-results { display:grid; gap:10px; }
.city-locator-form label { display:grid; gap:4px; font-weight:650; }
.city-locator-form .field-control { width:100%; min-width:0; }
.city-locator-datetime { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.city-locator-note { color:var(--veli-muted); overflow-wrap:anywhere; }
.city-locator-note:empty,#cityLocatorChoices:empty,#cityLocatorResults:empty { display:none; }
.city-locator-row h3 { margin:0 0 5px; }
.city-locator-row p { margin:4px 0; }
.city-locator-sources { display:flex; flex-wrap:wrap; gap:7px 12px; font-size:.85rem; }
.city-locator-sources a { color:var(--ws-purple); }
.transit-board,.transit-search,.transit-monitor { display:grid; gap:10px; }
.transit-board { max-width:760px; }
.transit-search label,.transit-filters label { font-weight:650; }
.transit-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.transit-heading h3,.transit-monitor p { margin:0; }
.transit-filters { display:grid; grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr); gap:8px; }
.transit-filters select { width:100%; min-width:0; margin-top:4px; }
.transit-choices { display:flex; flex-wrap:wrap; gap:7px; }
.transit-choices:empty,#transitNotices:empty { display:none; }
.journey-place { display:grid; gap:6px; align-content:start; min-width:0; }
.journey-place > button { justify-self:start; }
.transit-departures { padding:0; margin:0; list-style:none; }
.transit-departures li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:7px 10px; border-block-start:1px solid var(--ws-line); padding:10px 0; }
.transit-tag { min-width:39px; padding:3px 6px; background:#eee1f7; border-radius:7px; text-align:center; color:#49266a; font-weight:750; }
.transit-destination,.transit-notice { overflow-wrap:anywhere; }
.transit-age { display:grid; text-align:right; white-space:nowrap; }
.transit-meta { color:var(--veli-muted); font-size:.82rem; font-weight:450; }
.transit-notice { padding:8px 0; }
.transit-notice summary { cursor:pointer; }
.events-board { max-width: 900px; }
.events-filters { display:grid; gap:12px; }
.workspace .events-filters [aria-pressed="true"] { background:#6140ac; border-color:#6140ac; color:#fff; }
.workspace .events-filters [aria-pressed="true"]:hover { background:#4a2e88; }
.events-selects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.events-selects label { font-size:.9rem; font-weight:700; }
.events-selects .field-control { display:block; width:100%; min-width:0; margin-top:5px; }
.events-dates-form { margin:0; min-width:0; padding:9px 10px 10px; border:1px solid var(--ws-line); border-radius:10px; }
.events-dates-form legend { padding:0 4px; font-size:.86rem; font-weight:750; }
.events-dates-form > button { margin-top:9px; }
.events-free { display:flex; align-items:center; gap:9px; width:fit-content; font-size:.9rem; font-weight:700; }
.events-free input { accent-color:#6140ac; width:17px; height:17px; }
.events-note { margin-block:10px; color:var(--veli-muted); font-size:.87rem; }
.events-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin-bottom:13px; }
.events-card { display:flex; flex-direction:column; align-items:start; gap:8px; overflow-wrap:anywhere; }
.events-card :is(h3,p) { margin:0; }
.events-card h3 { font-size:1rem; }
.events-dates,.events-tags { margin:0; padding:0; list-style:none; }
.events-dates { font-size:.9rem; font-weight:650; }
.events-tags { display:flex; flex-wrap:wrap; gap:5px; }
.events-tags li { padding:3px 7px; border-radius:7px; background:#f0e6f8; color:#4b2c70; font-size:.81rem; }
.events-card .secondary-button { margin-block-start:auto; }
@media (max-width:560px) {
  .events-results { grid-template-columns:1fr; }
  .events-selects { grid-template-columns:1fr; }
}
.restaurant-booking { display: grid; gap: 14px; max-width: 680px; }
.restaurant-form { display: grid; gap: 9px; }
#restaurantChoices h3 { font-size: 1rem; margin: 0 0 8px; }
.restaurant-choice-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:8px; margin-block-end:6px; }
.workspace .restaurant-choice { display:grid; justify-content:stretch; gap:3px; min-width:0; text-align:start; padding:9px 11px; overflow-wrap:anywhere; }
.restaurant-choice :is(span,small) { color:var(--veli-muted); font-weight:550; }
.workspace .restaurant-choice[aria-pressed="true"] { border-color:#6140ac; background:#ede3fa; }
.restaurant-booking label, .restaurant-booking summary { font-weight: 650; }
.restaurant-booking summary { cursor: pointer; }
.restaurant-form label small { font-weight: 400; }
.restaurant-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.restaurant-fields .field-control { display: block; width: 100%; min-width: 0; margin-top: 5px; }
.restaurant-booking :is(.restaurant-address,.restaurant-status):empty { display: none; }
.restaurant-booking :is(.restaurant-address,.restaurant-status) { color: var(--veli-muted); }
.restaurant-booking p { overflow-wrap: anywhere; }
#restaurantContact .restaurant-fields { margin-top: 10px; }
.restaurant-check { display:flex; gap:8px; align-items:center; }
#restaurantSaveChoice p { margin:4px 0 0; font-size:.85rem; }
#restaurantContact p { margin: 6px 0 0; }
.restaurant-tracking { border-block-start: 1px solid var(--ws-line); padding-top: 13px; }
.restaurant-tracking h3 { margin: 0 0 5px; }
.restaurant-tracking p { margin: 0 0 8px; }
.restaurant-widget-dialog { width:min(640px,calc(100% - 22px)); height:min(830px,calc(100dvh - 22px)); max-height:none; margin:auto; padding:12px; border:1px solid var(--ws-line); border-radius:16px; background:var(--ws-card); color:var(--veli-ink); }
.restaurant-widget-dialog[open] { display:flex; flex-direction:column; gap:10px; }
.restaurant-widget-dialog::backdrop { background:#2b203280; }
.restaurant-widget-header { display:flex; gap:8px; justify-content:space-between; align-items:center; }
.restaurant-widget-header h3,.restaurant-widget-dialog p { margin:0; }
.restaurant-widget-dialog iframe { flex:1; min-height:0; width:100%; border:0; border-radius:10px; background:white; }
.restaurant-widget-dialog a { color:#503086; align-self:start; }
.city-locator-filters { display:grid; gap:8px; min-width:0; margin:0; padding:9px 11px 11px; border:1px solid var(--ws-line); border-radius:10px; }
.city-locator-filters legend { color:var(--veli-muted); padding:0 5px; font-size:.85rem; font-weight:700; }
.city-locator-form .city-locator-check { display:flex; align-items:center; gap:8px; }
@media (max-width: 470px) {
  .restaurant-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .restaurant-fields label:first-child { grid-column: 1 / -1; }
}
.workspace :is(.primary-button, .secondary-button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 41px; padding: 7px 11px; border: 1px solid transparent; border-radius: 10px; font-size: .83rem; font-weight: 800; text-decoration: none; }
.workspace .primary-button { min-height: var(--field-height); background: #6140ac; color: #fff; }
.workspace .primary-button:hover:not(:disabled) { background: #4a2e88; }
.workspace .secondary-button { border-color: #e5d8f4; background: #f4edfc; color: #503086; }
.workspace .secondary-button:hover:not(:disabled) { border-color: #c9b0ec; background: #eee2fb; }
.task-board { max-width: 740px; }
.task-progress { display: grid; gap: 7px; font-size: .85rem; font-weight: 750; }
.task-progress progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--ws-tint); accent-color: var(--ws-purple); }
.task-progress progress::-webkit-progress-bar { background: var(--ws-tint); }
.task-progress progress::-webkit-progress-value { background: var(--ws-purple); border-radius: 999px; }
.task-form input { min-width: 0; flex: 1; }
.task-form .field-message { flex: 0 0 100%; }
.task-list { list-style: none; }
.task-row { display: flex; gap: 5px; align-items: center; min-height: 50px; border-top: 1px solid var(--ws-line); color: var(--veli-ink); }
.task-row label { display: flex; align-items: center; gap: 10px; min-height: 47px; min-width: 0; flex: 1; cursor: pointer; overflow-wrap: anywhere; }
.task-row input:checked + span { text-decoration: line-through; color: var(--veli-muted); }
.empty-note { color: var(--veli-muted); font-size: .87rem; }

.chat-contact-options { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 6px; }
.chat-contact-dialog { width: min(460px, calc(100% - 26px)); margin: auto; padding: 17px; border: 1px solid var(--ws-line); border-radius: 18px; background: white; color: var(--veli-ink); box-shadow: var(--ws-shadow); }
.chat-contact-dialog::backdrop { background: #2b20325e; }
.chat-contact-dialog form { display: grid; gap: 12px; }
.chat-contact-dialog label { display: grid; gap: 5px; color: var(--veli-ink); font-size: .85rem; font-weight: 750; }
.chat-contact-dialog textarea { resize: vertical; }
.chat-contact-head, .chat-contact-actions { display: flex; align-items: center; gap: 8px; }
.chat-contact-head { justify-content: space-between; }
.chat-contact-head h2 { font: 780 1.4rem/1.05 var(--veli-display); overflow-wrap: anywhere; }
.chat-contact-actions { flex-wrap: wrap; }
.chat-contact-actions span { color: var(--veli-muted); font-size: .82rem; }

@media (max-width: 1080px) {
  .chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .chat-rail { display: none; }
}
@media (max-width: 740px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 71; width: min(286px, 88vw); box-shadow: 0 0 30px #24203830; }
  .sidebar.open { display: flex; }
  .drawer-toggle { display: inline-grid; }
  .drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 70; border: 0; background: #2b203255; }
  .topbar { min-height: 56px; padding-inline: 10px; gap: 6px; }
  .tb-id .ui-icon { display: none; }
  .chat-scroll { padding-inline: 13px; }
  .composer-wrap { padding-inline: 13px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .messages { gap: 18px; }
  .chat-turn-user { max-width: 90%; }
  .chat-turn-abi { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; }
  .chat-abi-avatar { width: 28px; height: 28px; border-radius: 9px; }
  .chat-answer { padding: 11px 10px; }
  .reply-text { gap: 8px; font-size: .94rem; line-height: 1.57; }
  .reply-source-link { min-height: 40px; }
  .chat-pending { margin-inline-start: 35px; }
}
@media (max-width: 390px) {
  .chat-intro { gap: 8px; padding: 16px; }
  .chat-intro h1 { font-size: 2.35rem; }
  .welcome-portrait { width: 78px; border-width: 3px; }
  .welcome-copy > p:last-child { font-size: .89rem; }
  .quick { margin-top: 11px; }
  .chat-notice { align-items: start; flex-direction: column; }
}

.workspace [hidden] { display: none; }
.transit-notice-board { display:grid; gap:10px; }
.transit-notice-card h3 { margin:0 0 6px; }
.transit-notice-card p { margin:4px 0; overflow-wrap:anywhere; }
.chat-brief-context { display:flex; align-items:center; gap:4px 10px; flex-wrap:wrap; }
.chat-brief-context button { border:0; padding:4px; background:transparent; color:var(--ws-purple); font:inherit; text-decoration:underline; cursor:pointer; }
.workspace-verification { padding: 12px; border: 1px solid var(--ws-line); border-radius: 12px; background: var(--ws-card); color: var(--veli-ink); }
.workspace-verification form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; }
.workspace-verification input { width: 7.5rem; letter-spacing: .12em; }
.workspace-verification [role="status"]:empty { display: none; }
.workspace-verification [role="status"] { margin-top: 5px; }
.fm-guide-foot [data-pilot-guide-notice] { display: block; padding: 2px 4px; font-size: .75rem; }
.fm-guide-foot [data-pilot-guide-notice][hidden] { display: none; }

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.brief-panel {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 25px);
  border: 1px solid var(--ws-line);
  border-radius: var(--veli-frame);
  background: var(--ws-card);
}
.brief-panel h2 { margin: 0; font: 780 1.42rem/1.18 var(--veli-display); letter-spacing: -.035em; }
.brief-panel > p { margin: 6px 0 0; color: var(--veli-muted); font-size: .9rem; }
.brief-district-controls { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:8px; margin-top:12px; }
.brief-district-controls label { display:grid; gap:5px; font-weight:700; font-size:.875rem; }
.brief-district-controls select { width:100%; min-width:0; }
.brief-district-controls label:only-child, .brief-district-controls label:has(+ [hidden]) { grid-column:1 / -1; }
.brief-district-status:empty { display:none; }
.brief-list { display: grid; gap: 10px; margin-top: 16px; }
.brief-card { min-width: 0; padding: 13px; border-radius: var(--veli-card); background: #f9f6fb; }
.brief-card h3 { margin: 0; font: 750 1rem/1.32 var(--veli-display); overflow-wrap: anywhere; }
.brief-card p { margin: 6px 0 0; font-size: .9rem; line-height: 1.48; }
.brief-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--veli-muted); font-size: .79rem; }
.brief-meta a { color: var(--ws-purple); font-weight: 700; text-decoration: underline; text-underline-offset: .16em; }
.brief-card button { margin-top: 10px; }
.brief-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.brief-share-result p:empty { display:none; }
.brief-share-result input { width:100%; margin-top:8px; }
.brief-shared { margin-block: 0 16px; }
.brief-shared > p { color:var(--veli-muted); }
.brief-shared #briefSharedCard { margin-top:10px; }
.brief-sample { margin-top:10px; font-size:.85rem; color:var(--veli-muted); }
.brief-sample summary { cursor:pointer; color:var(--ws-purple); font-weight:700; }
.brief-sample ul { margin:7px 0 0; padding-left:16px; }
.brief-sample a { color:var(--ws-purple); text-underline-offset:.16em; }
.brief-social-group { border:1px solid #e8dbf5; background:#f6effb; }
.brief-group-count { color:#51317f; font-weight:700; }
.brief-group-posts { list-style:none; margin:6px 0 0; padding:0; }
.brief-group-posts .brief-meta { margin-top:5px; }
.brief-count-history { flex-basis:100%; margin:0 0 4px; font-size:.79rem; }
.brief-count-history li { margin:3px 0; }
.brief-topic-context h4 { margin:12px 0 4px; color:var(--veli-ink); }
.brief-topic-context li + li { margin-top:8px; }
.brief-topic-context .brief-meta { margin-top:3px; }
.brief-development dl { margin:10px 0 0; display:grid; gap:4px; }
.brief-development dt { font-weight:750; color:var(--veli-ink); }
.brief-development dd { margin:0 0 8px; padding-inline-start:10px; border-inline-start:2px solid var(--ws-line); }
.brief-development dd p { margin-top:0; }
.brief-development .brief-meta { margin-top:4px; }
.brief-empty { margin: 0; color: var(--veli-muted); }
.brief-topics { grid-column: 1 / -1; }
.brief-topics .brief-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
@media (max-width: 720px) { .brief-grid { grid-template-columns: minmax(0, 1fr); } }
