/* IGCDM dark workspace. Visual direction: Figma Shiteru polished dark screens.
   Presentation only: existing routes, IDs, state, forms and API calls stay intact. */
:root {
  --ink: #f4f6fb;
  --muted: #b3bac8;
  --bg: #1d2026;
  --paper: #1d2026;
  --panel: #303641;
  --dark: #07090d;
  --brand: #7189ff;
  --green: var(--brand);
  --lime: #91a4ff;
  --line: #454c58;
  --soft: #272c35;
  --danger: #ff918b;
  --control-border: #68717f;
  --focus-ring: #b3c2ff;
  --shadow-card: 0 2px 12px #0506091c;
  --shadow-float: 0 22px 64px #0009;
  --radius: 13px;
  color-scheme: dark;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); }
body, button, input, select, textarea { font-family: var(--font-ui); }
p, .lead, .heading p:not(.eyebrow), .hint, .small, footer { color: var(--muted); }
h1, h2, h3, h4, strong { color: var(--ink); }
a { color: #b9c5ff; }
a:hover { color: #dce3ff; }
.kicker, .eyebrow { color: #a3b3ff; }
.badge, .status-pill, .setup-progress, .channel-state, .environment {
  background: #2e3955; color: #e5eaff; border: 1px solid #6575a0;
}
.badge.live { background: #344565; color: #f4f6ff; }
.panel, .card, .row, .table-panel, .channel-card, .campaign-card,
.setup-card, .source-card, .channel-summary, .compact-metrics {
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.card:hover, .channel-card:hover, .campaign-card:hover { border-color: #8294bc; }
button, .secondary, .more-actions>summary {
  background: #313741; border: 1px solid #596371; color: var(--ink);
  box-shadow: none;
}
button:hover:not(:disabled), .secondary:hover:not(:disabled) {
  background: #3b4351; border-color: #8292aa; color: #fff;
}
.primary, button:not(.secondary):is(#new,#save-business,#approve,#test-answer,#add-source,#import-website,#add-block) {
  background: var(--brand); border-color: var(--brand); color: #090e25;
}
.primary:hover:not(:disabled), button:not(.secondary):is(#new,#save-business,#approve,#test-answer,#add-source,#import-website,#add-block):hover:not(:disabled) {
  background: #91a3ff; border-color: #91a3ff; color: #090e25;
}
button:disabled, .oauth-button.disabled,
button:is(#new,#save-business,#approve,#test-answer,#add-source,#import-website,#add-block):disabled {
  background: #343943; border-color: #4e5562; color: #aab1be; opacity: 1;
}
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background-color: #343b47; border-color: var(--control-border); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #b4bdca; opacity: 1; }
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { border-color: #9cabcb; }
input:focus, textarea:focus, select:focus { background-color: #394251; border-color: #a6b5ff; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 3px;
}
dialog { background: #252a33; color: var(--ink); border-color: #66707f; box-shadow: var(--shadow-float); }
dialog::backdrop { background: #03050bcc; backdrop-filter: blur(3px); }
.dialog-title, .dialog-heading { border-color: var(--line); }
.notice, .info, .release-note { background: #28344b; border: 1px solid #5b7097; color: #e1eaff; }
.error, .modal-error, .diagnostic-error { background: #4b292d; color: #ffe2de; border-color: #b67171; }
.empty { background: #262b34; border-color: #626e82; }
.skip, .skip-link { background: #f2f4ff; color: #151a2d; }

/* Main app: ink-black rail, charcoal content, blue action language. */
.workspace-dashboard .sidebar { background: #07090d; border-color: #323846; }
.workspace-dashboard .brand { color: #f5f7fc; }
.workspace-dashboard .brand-mark { background: #f7f8ff; color: #6079fa; box-shadow: none; }
.workspace-dashboard .workspace-card { background: #222833; border-color: #3b4552; }
.workspace-dashboard .workspace-avatar { background: #3a4664; color: #e6ebff; }
.workspace-dashboard .workspace-card small, .workspace-dashboard .sidebar-foot small { color: #b6c0d0; }
.workspace-dashboard .nav-label { color: #9ba6ba; }
.workspace-dashboard .nav { background: transparent; border-color: transparent; color: #c7cedb; }
.workspace-dashboard .nav.active { background: #343a49; color: #fff; box-shadow: inset 3px 0 #8298ff; }
.workspace-dashboard .nav:not(.active):hover { background: #262d3b; color: #fff; }
.workspace-dashboard .sidebar-foot { border-color: #343b47; }
.workspace-dashboard .sidebar :focus-visible { outline-color: var(--focus-ring); }
.workspace-dashboard main { background: var(--bg); }
.workspace-dashboard .topbar, .workspace-dashboard .account-toolbar { border-color: var(--line); }
.workspace-dashboard .topbar { min-height: 64px; }
.workspace-dashboard .environment { background: #303a59; color: #e4eaff; border-color: #6577ae; }
.workspace-dashboard #workspace-identity { color: var(--ink); }
.workspace-dashboard #workspace-usage { background: #2e3440; border-color: var(--line); color: var(--ink); }
.workspace-dashboard .hero-row h1 em { color: #9eadff; }
.workspace-dashboard .metric-grid { background: transparent; }
.workspace-dashboard .metric, .workspace-dashboard .metric.attention {
  background: #303641; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-card);
}
.workspace-dashboard .metric>span, .workspace-dashboard .metric small,
.workspace-dashboard .compact-metrics span, .workspace-dashboard .section-heading>span { color: var(--muted); }
.workspace-dashboard .setup-list { border-color: var(--line); }
.workspace-dashboard .setup-item, .workspace-dashboard .setup-item.complete {
  background: #343b47; border-color: var(--line); color: var(--ink);
}
.workspace-dashboard .setup-item small { color: #c1c9d7; }
.workspace-dashboard .setup-item:not(.complete) button { background: #4a63d1; color: #fff; border-color: #7189ff; }
.workspace-dashboard .setup-number, .workspace-dashboard .setup-item.complete .setup-number {
  background: #4c5e8d; color: #f3f5ff;
}
.workspace-dashboard .focus-panel { background: #29344c; border-color: #6276a9; }
.workspace-dashboard .focus-panel p:not(.kicker) { color: #c6d1eb; }
.workspace-dashboard .focus-panel .kicker, .workspace-dashboard .focus-panel .text-button { color: #c4d0ff; }
.workspace-dashboard .compact-metrics { background: #303641; }
.workspace-dashboard .compact-metrics>div:not(:last-child) { border-color: var(--line); }
.workspace-dashboard .channel-summary small, .workspace-dashboard .channel-summary span { color: var(--muted); }
.workspace-dashboard .channel-card.selected { box-shadow: inset 0 0 0 1px #91a4ff; }
.workspace-dashboard .channel-card, .workspace-dashboard .channel-card.live,
.workspace-dashboard .activity-item { background: #303641; color: var(--ink); border-color: var(--line); }
.workspace-dashboard .channel-card:not(.live) .channel-icon, .workspace-dashboard .empty-icon {
  background: #3b4b70; color: #e2e9ff;
}
.workspace-dashboard .roadmap-label { color: #b7c1d5; }
.workspace-dashboard .sample, .workspace-dashboard .endpoint,
.workspace-dashboard .data-header, .workspace-dashboard .preview {
  background: #282f3a; color: var(--ink); border-color: #596779;
}
.workspace-dashboard .sample p, .workspace-dashboard .activity-item p { color: #c4ccda; }
.workspace-dashboard .data-row, .workspace-dashboard .table-head { border-color: var(--line); }
.workspace-dashboard .data-header { color: #d3daeb; }
.workspace-dashboard .contact-cell i { background: #40558d; color: #fff; }
.workspace-dashboard .channel-filters button[aria-pressed=true] { background: var(--brand); color: #080e25!important; border-color: var(--brand); }
.workspace-dashboard .channel-setup-button { background: var(--brand); border-color: var(--brand); color: #080e25; }
.workspace-dashboard .empty { background: #292e38; border-color: #75819a; }
.workspace-dashboard .inbox-layout { background: #252a33; border-color: var(--line); }
.workspace-dashboard .inbox-list { background: #222731; border-color: var(--line); }
.workspace-dashboard .inbox-item { color: var(--ink); }
.workspace-dashboard .inbox-item[aria-current=true] { background: #374467; border-color: #8196e4; }
.workspace-dashboard .inbox-item small, .workspace-dashboard .inbox-message small { color: var(--muted); }
.workspace-dashboard .inbox-message { background: #373e49; color: var(--ink); }
.workspace-dashboard .inbox-message.agent { background: #354676; }
.workspace-dashboard .editor-step { background: #303d5c; color: #e4eaff; }
.workspace-dashboard .post-card, .workspace-dashboard .post-picker, .workspace-dashboard .post-selection { background: #2b313c; border-color: var(--line); }
.workspace-dashboard .post-card:hover { border-color: #8fa1d9; }
.workspace-dashboard .oauth-connect-panel, .workspace-dashboard .roadmap-note,
.workspace-dashboard .diagnostics-panel, .workspace-dashboard .advanced-settings { background: #303641; border-color: var(--line); }
.workspace-dashboard .oauth-steps li, .workspace-dashboard .diagnostic-grid>div,
.workspace-dashboard .channel-detail { background: #303641; border-color: var(--line); }
.workspace-dashboard .oauth-steps span { background: #40558d; color: #fff; }
.workspace-dashboard .meta-symbol { background: #4e66d1; color: white; }
.workspace-dashboard footer { border-color: var(--line); }

/* UX repair: use one dark material and one scrolling surface in the editor. */
.workspace-dashboard #campaign-dialog .actions { background: #252a33; border-color: var(--line); bottom: -28px; }
.workspace-dashboard #campaign-dialog .automation-choices select,
.workspace-dashboard #campaign-dialog select,
.workspace-dashboard #campaign-dialog select option { background: #343b47; color: #f4f6fb; border-color: #738096; }
.workspace-dashboard #campaign-dialog .post-picker,
.workspace-dashboard #campaign-dialog .post-card,
.workspace-dashboard #campaign-dialog .post-selection,
.workspace-dashboard .inbox-detail,
.workspace-dashboard .inbox-messages,
.workspace-dashboard .inbox-reply,
.workspace-dashboard .inbox-item { background: #2b313c; color: #f4f6fb; border-color: #596779; }
.workspace-dashboard .inbox-item:hover { background: #374151; }
.workspace-dashboard .inbox-item[aria-current=true] { background: #374467; border-color: #9bafff; }
.workspace-dashboard .inbox-item span,
.workspace-dashboard .inbox-detail-head small,
.workspace-dashboard .inbox-placeholder,
.workspace-dashboard .inbox-readonly { color: #c9d2df; }
.workspace-dashboard .inbox-detail-head,
.workspace-dashboard .inbox-reply { border-color: #596779; }
.workspace-dashboard #campaign-dialog .post-grid { max-height: none; overflow: visible; }
.workspace-dashboard #campaign-dialog .post-card[aria-pressed=true] { border-color: #a8b7ff; box-shadow: 0 0 0 2px #a8b7ff; }
.workspace-dashboard .post-card-copy small { color: #c0c9d8; }
.workspace-dashboard .more-actions { position: relative; margin-inline-start: auto; }
.workspace-dashboard .more-actions summary { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.workspace-dashboard .more-actions .danger { display: block; min-height: 44px; margin-top: 6px; }
.workspace-dashboard .more-actions[open] { z-index: 3; }
.workspace-dashboard .library-toolbar,
.workspace-dashboard .post-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.workspace-dashboard .library-toolbar label,
.workspace-dashboard .post-filters label { display: block; min-width: 0; flex: 1 1 160px; font-size: 12px; font-weight: 650; color: var(--ink); }
.workspace-dashboard .library-toolbar label:first-child { flex-grow: 2; }
.workspace-dashboard .library-toolbar input,
.workspace-dashboard .library-toolbar select,
.workspace-dashboard .post-filters input:not([type=checkbox]),
.workspace-dashboard .post-filters select { min-height: 44px; margin-top: 6px; }
.workspace-dashboard .library-toolbar input,
.workspace-dashboard .library-toolbar select,
.workspace-dashboard .post-filters input:not([type=checkbox]),
.workspace-dashboard .post-filters select { display: block; box-sizing: border-box; width: 100%; max-width: 100%; }
.workspace-dashboard .library-toolbar>span,
.workspace-dashboard .post-filters>span { color: var(--muted); font-size: 12px; flex: 1 1 100%; padding: 0; }
.workspace-dashboard .post-filters .checkbox { flex: 0 1 auto; min-height: 44px; margin: 0; white-space: nowrap; }
.workspace-dashboard #campaign-form[data-wizard-step="1"] .wizard-2,
.workspace-dashboard #campaign-form[data-wizard-step="1"] .wizard-3,
.workspace-dashboard #campaign-form[data-wizard-step="2"] .wizard-1,
.workspace-dashboard #campaign-form[data-wizard-step="2"] .wizard-3,
.workspace-dashboard #campaign-form[data-wizard-step="3"] .wizard-1,
.workspace-dashboard #campaign-form[data-wizard-step="3"] .wizard-2 { display: none !important; }
.workspace-dashboard #campaign-form .wizard-progress { color: #dbe3ff; background: #303d5c; border: 1px solid #6575a0; border-radius: 9px; padding: 11px 13px; font-size: 12px; font-weight: 700; }
.workspace-dashboard #campaign-form .wizard-review { background: #303641; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.workspace-dashboard #campaign-form .wizard-review p { overflow-wrap: anywhere; }
.workspace-dashboard #campaign-form .actions button { min-height: 44px; }
.workspace-dashboard .technical-details { margin-top: 12px; color: #c5cede; }
.workspace-dashboard .technical-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.workspace-dashboard .setup-complete { color: #e1eaff; background: #303d5c; border: 1px solid #6575a0; padding: 14px; border-radius: 10px; }
.workspace-dashboard .setup-complete button { margin-inline-start: 8px; min-height: 44px; }
.workspace-dashboard .metric-period { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.workspace-dashboard .metric-period label { color: var(--ink); font-size: 12px; font-weight: 650; }
.workspace-dashboard .metric-period select { min-width: 160px; min-height: 44px; margin-top: 5px; }
.workspace-dashboard .metric-period p { max-width: 580px; margin: 0 0 5px; color: #c7cfde; font-size: 12px; }
@media(max-width:760px) {
  .workspace-dashboard #campaign-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom)); }
  .workspace-dashboard #campaign-dialog .actions { bottom: calc(-18px - env(safe-area-inset-bottom)); }
  .workspace-dashboard .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-dashboard .library-toolbar { align-items: stretch; }
  .workspace-dashboard .library-toolbar label { min-width: min(100%,145px); }
}
@media(max-width:360px) { .workspace-dashboard .post-grid { grid-template-columns: 1fr; } }
.workspace-account .signup-journey { display: grid; gap: 10px; padding: 0; margin: 22px 0; list-style: none; }
.workspace-account .signup-journey li { padding: 12px 14px; border: 1px solid #596779; border-radius: 10px; background: #303641; }
.workspace-account .signup-journey strong,
.workspace-account .signup-journey small { display: block; }
.workspace-account .signup-journey small { color: #c7cfde; margin-top: 4px; line-height: 1.45; }

/* Workflow Studio and chatbot setup retain their existing information architecture. */
:is(.workspace-studio,.workspace-chatbot) .top { background: #080a0e; border-color: #363d48; color: #f7f8ff; }
:is(.workspace-studio,.workspace-chatbot) .top .brand { color: #f7f8ff; }
:is(.workspace-studio,.workspace-chatbot) .top .brand span { background: #f7f8ff; color: #6079fa; }
:is(.workspace-studio,.workspace-chatbot) .top>a:last-child { color: #c0c9df; }
:is(.workspace-studio,.workspace-chatbot) main { background: var(--bg); }
.workspace-studio .tabs { border-color: var(--line); }
.workspace-studio .tabs button { background: transparent; border-color: transparent; color: var(--muted); }
.workspace-studio .tabs [aria-current] { background: #37466f; color: #f7f9ff; border-color: #7189ff; }
.workspace-studio .card, .workspace-studio .board, .workspace-studio .panel,
.workspace-studio .entry-settings, .workspace-studio .row { background: #303641; border-color: var(--line); }
.workspace-studio .more-actions>div { background: #303641; border-color: var(--line); }
.workspace-studio #publish { background: var(--brand); color: #0a1030; border-color: var(--brand); }
.workspace-studio #publish:hover:not(:disabled) { background: #91a3ff; }
.workspace-studio #publish:disabled { background: #343943; color: #aab1be; border-color: #4e5562; }
.workspace-studio .canvas-wrap {
  background-color: #252b35;
  background-image: radial-gradient(#566276 0.8px,transparent 0.8px);
  border-color: var(--line);
}
.workspace-studio .node { background: #363e4c; border-color: #768399; color: var(--ink); }
.workspace-studio .node:hover:not(:disabled) { background: #3c4655; border-color: #9db0e0; }
.workspace-studio .node.selected { border-color: #9bafff; box-shadow: 0 0 0 3px #9bafff44; }
.workspace-studio .node-copy, .workspace-studio .node-footer, .workspace-studio .step-number { color: #c4cbda; }
.workspace-studio .node-footer { border-color: #5a6474; }
.workspace-studio .edge { stroke: #a3b1c7; }
.workspace-studio .edge.active { stroke: #aabaff; }
.workspace-studio .edge-label { fill: #d8e1fa; stroke: #252b35; }
.workspace-studio .tone-green,.workspace-studio .tone-blue,.workspace-studio .tone-purple,
.workspace-studio .tone-amber,.workspace-studio .tone-neutral { --tone: #afbeff; --tint: #3b4a70; }
.workspace-studio .entry-badge, .workspace-studio .template-sample,
.workspace-studio .template-steps span, .workspace-studio .preview-chat,
.workspace-studio .simulation-header, .workspace-studio .simulation-composer,
.workspace-studio .bubble, .workspace-studio dialog pre { background: #343d4a; border-color: #626d7f; color: var(--ink); }
.workspace-studio .bubble.customer { background: #374a79; border-color: #7f95d7; }
.workspace-studio .simulation-device { border-color: var(--line); }
.workspace-studio .simulation-state { color: #c0ceff; }
.workspace-chatbot .release-note { background: #2d3b55; border-color: #6479a7; }
.workspace-chatbot .setup-steps { background: #252b35; }
.workspace-chatbot .setup-steps button { color: var(--muted); }
.workspace-chatbot .setup-steps button[aria-current] { background: #39496f; color: #fff; border-color: #7d94d8; }
.workspace-chatbot .setup-steps span { color: #b3c1ff; }
.workspace-chatbot .setup-card, .workspace-chatbot .knowledge-health { background: #303641; border-color: var(--line); }
.workspace-chatbot .knowledge-health li { border-color: var(--line); }
.workspace-chatbot .knowledge-health li strong { color: #dce4ff; }
.workspace-chatbot .number { background: #3c4c75; color: #e4eaff; border-color: #7285b5; }
.workspace-chatbot .privacy-note, .workspace-chatbot .faq-row,
.workspace-chatbot .review-summary details, .workspace-chatbot .channel-activation-card,
.workspace-chatbot .ai-status, .workspace-chatbot .ai-consent { background: #292f39; border-color: var(--line); }
.workspace-chatbot .answer-preview { background: #303f5c; border-color: #667fb2; }
.workspace-chatbot .answer-source { border-color: #6c80a8; }
.workspace-chatbot .answer-source blockquote { border-color: #8ca2ff; }
.workspace-chatbot .save-bar { background: #292f39; border-color: #73809b; }
.workspace-chatbot .sample-questions button { background: #3a455a; border-color: #687ca7; color: #f6f8ff; }
.workspace-chatbot #test-progress { color: #c0ceff; }

/* Account entry uses the Figma split-screen rhythm without copying its assets. */
.workspace-account .oauth-page { min-height: 100dvh; background: #1d2026; padding: 0; }
.workspace-account .oauth-shell {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(440px,1fr);
  align-items: center; width: 100%; max-width: none; min-height: 100dvh; margin: 0;
  position: relative;
}
.workspace-account .oauth-brand {
  position: absolute; z-index: 1; top: 48px; left: 6vw; color: #fff;
}
.workspace-account .oauth-brand .brand-mark { background: #f7f8ff; color: #6079fa; }
.workspace-account .oauth-intro {
  align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100dvh; padding: 144px 6vw 10vh;
  background: radial-gradient(circle at 62% 27%, #5268b6 0, #273661 27%, #101725 53%, #07090d 74%);
  border-right: 1px solid #3f4b6d;
}
.workspace-account .oauth-intro h2 { max-width: 13ch; font-size: clamp(32px,4vw,58px); line-height: 1.1; letter-spacing: -.05em; }
.workspace-account .oauth-intro p { max-width: 44ch; font-size: 16px; line-height: 1.7; }
.workspace-account .oauth-card {
  justify-self: center; width: min(480px,calc(100% - 64px)); padding: 40px;
  background: transparent; border: 0; box-shadow: none;
}
.workspace-account .oauth-card h1 { font-size: clamp(28px,3vw,38px); }
.workspace-account .oauth-card .lead { color: var(--muted); }
.workspace-account #account-links { border-color: var(--line); }
.workspace-account #account-links a, .workspace-account #terms-label a { color: #b9c5ff; }

/* Owner approvals is part of the same workspace, not a separate brand. */
.workspace-admin .admin-shell {
  width: min(100% - 48px, 1100px); max-width: none; margin: 0 auto;
  min-height: 100dvh; padding: 48px 0 72px;
}
.workspace-admin .admin-shell > a { display: inline-flex; align-items: center; min-height: 44px; }
.workspace-admin .admin-shell > .kicker { margin-top: 42px; }
.workspace-admin .admin-shell > h1 {
  margin: 6px 0 16px; font: 650 clamp(32px, 4vw, 52px)/1.1 var(--font-display, 'Manrope', sans-serif);
  letter-spacing: -.045em;
}
.workspace-admin .admin-shell > p:not(.kicker) { max-width: 75ch; line-height: 1.7; }
.workspace-admin .admin-workspace {
  background: var(--panel); border-color: var(--line); color: var(--ink);
  box-shadow: var(--shadow-card);
}
.workspace-admin .admin-workspace h2 { margin-bottom: 10px; }
.workspace-admin .admin-workspace p { color: var(--muted); overflow-wrap: anywhere; }
.workspace-admin .admin-actions button { min-height: 44px; }
.workspace-admin .recovery-link { background: #28344b; border: 1px solid #5b7097; border-radius: 10px; padding: 16px; }

@media (max-width: 1100px) {
  .workspace-dashboard .overview-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-dashboard .journey-panel, .workspace-dashboard .focus-panel { min-width: 0; }
  .workspace-dashboard .journey-panel .panel-head { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .workspace-dashboard .sidebar { background: #080a0f; }
  .workspace-dashboard main { padding-inline: 16px; }
  .workspace-dashboard .topbar { min-height: 60px; }
  .workspace-dashboard .account-toolbar { flex-wrap: wrap; }
  .workspace-dashboard .hero-row, .workspace-dashboard .title-row { gap: 16px; }
  .workspace-dashboard .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-dashboard .channel-summary { grid-template-columns: 1fr; }
  .workspace-dashboard .channel-summary>div { border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-dashboard .channel-summary>div:last-child { border-bottom: 0; }
  .workspace-dashboard .journey { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-dashboard .inbox-layout { border-radius: 12px; }
  .workspace-chatbot .setup-steps { gap: 5px; }
  .workspace-chatbot .setup-steps button { min-width: 0; overflow-wrap: anywhere; }
  .workspace-account .oauth-shell { display: block; min-height: 100dvh; padding-top: 136px; }
  .workspace-account .oauth-brand { top: 26px; left: 24px; }
  .workspace-account .oauth-intro { min-height: auto; padding: 0 24px 24px; background: transparent; border: 0; }
  .workspace-account .oauth-intro h2 { font-size: 27px; max-width: none; }
  .workspace-account .oauth-intro p { font-size: 14px; margin: 0; }
  .workspace-account .oauth-card { width: 100%; padding: 24px; }
  .workspace-admin .admin-shell { width: min(100% - 32px, 1100px); padding-top: 28px; }
}
@media (max-width: 380px) {
  .workspace-dashboard .metric-grid { grid-template-columns: 1fr; }
  .workspace-dashboard .top-actions { gap: 6px; }
  .workspace-dashboard .hero-row h1 { font-size: 24px; }
  .workspace-chatbot .setup-steps button { font-size: 11px; padding: 10px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
