@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #fafafa;
  --panel: #fff;
  --surface: #f0f0f0;
  --line: #d9d9d9;
  --text: #161616;
  --muted: #616161;
  --pink: #ffbcca;
  --pink-hover: #ff91ac;
  --focus: #b31455;
  --selected: #ffe0e6;
  --dark: #212121;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --radius: 16px;
  --rail: 228px;
  font-family: "Helvetica Neue", Helvetica, "Apple SD Gothic Neo", system-ui, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161616;
  --panel: #212121;
  --surface: #303030;
  --line: #474747;
  --text: #fafafa;
  --muted: #c2c2c2;
  --focus: #ff91ac;
  --selected: #5a0026;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.mono, .eyebrow, .pill, .count { font-family: var(--mono); font-size: 11px; letter-spacing: .035em; }
.eyebrow { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset: -80px auto auto 16px; z-index: 10; background: var(--pink); color: #161616; padding: 12px; }
.skip:focus { top: 12px; }

.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-self: start; padding: 24px 16px 20px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 3px 6px; text-decoration: none; }
.brand strong { font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #161616; background: var(--pink); font-size: 21px; font-weight: 600; line-height: 1; }
.workspace { padding: 12px 14px; margin: 26px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.workspace small { display: block; color: var(--muted); }
.navlabel { margin: 0 12px 8px; }
.nav { display: grid; gap: 3px; }
.nav button { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 42px; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; }
.nav button:hover { background: var(--panel); color: var(--text); }
.nav button.active { background: var(--selected); color: var(--text); border-color: var(--selected); }
.count { margin-left: auto; border: 1px solid var(--line); padding: 0 6px; border-radius: 999px; background: var(--panel); }
.sidefoot { padding: 24px 6px 0; margin-top: auto; }
.user { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.avatar { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 11px var(--mono); flex: none; }
.user .small { color: var(--muted); }
.content { min-width: 0; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--bg); }
.breadcrumb { color: var(--muted); }
.breadcrumb span { color: var(--text); margin-left: 10px; }
.topactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.main { max-width: 1480px; padding: 24px clamp(16px, 4vw, 56px) 0; margin: 0 auto; }
.banner { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 32px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; }
.banner b { color: var(--text); font-weight: 600; }
.banner .mono { align-self: center; white-space: nowrap; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 26px; }
.pagehead p { margin-top: 9px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 500 12px/1.35 var(--mono); text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--line); }
.btn.primary { color: #212121; background: var(--pink); border-color: transparent; }
.btn.primary:hover:not(:disabled) { background: var(--pink-hover); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 6px 10px; }
.btn.iconbtn { width: 40px; height: 40px; padding: 0; }
.pill, .status { display: inline-flex; align-items: center; align-self: center; gap: 6px; max-width: 100%; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); white-space: nowrap; }
.status { font-size: 11px; }
.status.review, .status.changes { background: var(--selected); border-color: var(--selected); }
.status.approved, .status.delivered { background: var(--text); color: var(--bg); border-color: var(--text); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--focus); flex: none; }

.hero, .automation-canvas, .landing-hero {
  background-color: var(--surface);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 24px; padding: clamp(20px, 3.5vw, 48px); margin-bottom: 24px; }
.hero-copy h2 { font-size: clamp(26px, 3vw, 43px); }
.hero-copy p { color: var(--muted); margin: 10px 0 18px; }
.hero-art { min-width: 0; }
.flowmini { display: flex; align-items: stretch; justify-content: center; max-width: 640px; margin: auto; }
.node { display: grid; align-content: center; justify-items: center; gap: 8px; flex: 1; position: relative; min-width: 0; padding: 14px 8px; min-height: 98px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: center; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.node svg { width: 23px; height: 23px; }
.node small { color: var(--muted); font: 10px var(--mono); }
.node.highlight { border-color: var(--pink-hover); }
.node.highlight svg { color: var(--focus); }
.node::before, .node::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: 1px solid var(--port, #8f8f8f); border-radius: 50%; background: var(--panel); transform: translateY(-50%); }
.node::before { left: -5px; }
.node::after { right: -5px; }
.node:first-child::before, .node:last-child::after { display: none; }
.connector { position: relative; align-self: center; width: clamp(17px, 3vw, 42px); height: 1px; flex: none; background: var(--port, #8f8f8f); }
.connector::after { content: ""; position: absolute; top: -3px; right: 5px; width: 6px; height: 6px; border-right: 1px solid var(--port, #8f8f8f); border-top: 1px solid var(--port, #8f8f8f); transform: rotate(45deg); }
.dark-canvas { color-scheme: dark; --panel: #303030; --surface: #212121; --line: #474747; --text: #fafafa; --muted: #c2c2c2; --focus: #ff91ac; --port: #a8a8a8; }
.automation-canvas { padding: clamp(14px, 5vw, 64px); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat, .card, .panel, .column { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat { padding: 16px; }
.stat .label, .stat .note { color: var(--muted); font-size: 12px; }
.stat .value { margin: 4px 0; font-size: clamp(21px, 3vw, 34px); letter-spacing: -.045em; font-weight: 500; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.panel { min-width: 0; overflow: hidden; }
.panelhead, .settingrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panelhead h2 { font-size: 17px; }
.settingrow small { display: block; margin-top: 4px; color: var(--muted); }
.settingrow:last-child, .listrow:last-child { border-bottom: 0; }
.panel .checklist + .settingrow { border-top: 1px solid var(--line); background: var(--surface); }
.listrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; color: var(--text); }
.listrow:hover { background: var(--surface); }
.listrow:focus-visible, .task:focus-visible { outline-offset: -3px; }
.rowicon, .clientmark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rowmain { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rowmain strong { display: block; font-weight: 500; }
.rowmain small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.due { white-space: nowrap; }
.checklist { padding: 6px 20px; }
.checkrow { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.checkrow span { color: var(--muted); font-size: 12px; }
.checknum { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: var(--surface); font: 11px var(--mono); }
.toolbar, .filters, .pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar { margin: 16px 0; }
.toolbar > input { max-width: 275px; }
.filter { padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; }
.filter:hover { border-color: var(--line); }
.filter.active { background: var(--selected); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.column { padding: 12px; min-height: 265px; background: var(--surface); }
.columnhead, .taskbottom, .cardtop, .cardfooter, .detailmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.columnhead { padding: 2px 3px 12px; font-weight: 500; }
.task { display: block; width: 100%; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); text-align: left; overflow-wrap: anywhere; }
.task:hover { border-color: var(--focus); }
.task > strong { display: block; margin: 6px 0 15px; font-weight: 500; }
.task small { color: var(--muted); font-size: 11px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px; overflow-wrap: anywhere; }
.cardtop { margin-bottom: 14px; }
.clientmark { width: 46px; height: 46px; font-size: 22px; }
.card p { margin: 5px 0 15px; color: var(--muted); }
.cardfooter { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.empty { padding: 26px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.empty svg { margin-bottom: 6px; }
.notice { margin: 20px 0; padding: 12px 16px; border-inline-start: 2px solid var(--pink-hover); border-radius: 4px 8px 8px 4px; background: var(--surface); color: var(--muted); font-size: 13px; }
.notice strong { color: var(--text); }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0; font-size: 12px; color: var(--muted); }

.field { display: block; min-width: 0; margin-bottom: 15px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
textarea { min-height: 94px; resize: vertical; }
.formgrid, .summarygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.summarygrid { gap: 16px; overflow-wrap: anywhere; }
.summarygrid small { display: block; color: var(--muted); }
.span2 { grid-column: 1 / -1; }
dialog { box-sizing: border-box; width: min(calc(100% - 32px), 950px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #16161690; }
.modalhead, .modalfoot, .tabbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modalhead h2 { margin-top: 5px; }
.modalbody { padding: 20px 22px; }
.modalfoot { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.tabbar { justify-content: start; flex-wrap: wrap; padding-block: 8px; }
.tabbar button { padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.tabbar button.active { background: var(--selected); color: var(--text); }
.detailgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.preview { min-height: 210px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); }
.preview img, .preview video { max-width: 100%; max-height: 420px; object-fit: contain; }
.preview iframe { width: 100%; height: 380px; border: 0; background: #fff; }
.detailmeta { margin: 9px 0; overflow-wrap: anywhere; }
.btn:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:has(input[type="file"]) { cursor: pointer; }
.comment { border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin: 9px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment small { display: block; color: var(--muted); margin-bottom: 5px; }
.timeline { padding: 8px 0; color: var(--muted); font-size: 13px; }
.timeline > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.code { padding: 14px; overflow: auto; max-height: 500px; background: var(--surface); color: var(--text); border-radius: 8px; border: 1px solid var(--line); font: 12px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.loginbox { max-width: 410px; margin: 12vh auto; padding: 30px; width: calc(100% - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.loginbox p { margin: 12px 0 20px; color: var(--muted); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); opacity: 0; width: max-content; max-width: 90vw; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); transition: opacity .15s; z-index: 10; }
#toast.toastshow { opacity: 1; }
dialog:has(+ #toast.toastshow) { scroll-padding: 24px; }

.landing { max-width: 1380px; margin: auto; padding: 16px clamp(16px, 4vw, 48px) 0; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--surface); }
.landing-hero { padding: clamp(28px, 8vw, 104px) clamp(12px, 4vw, 48px); text-align: center; }
.landing-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.1; }
.landing-hero p { margin: 14px auto 24px; max-width: 34em; }
.landing-hero .flowmini { margin-top: 42px; }
.landing footer { padding-inline: 6px; }
.company-services { padding: clamp(24px, 4vw, 48px) 0 0; }
.company-services > h2 { font-size: clamp(24px, 3vw, 36px); }
.company-services .channel-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.company-services .channel-card { padding: 24px; background: var(--panel); }
.company-services .channel-card p { color: var(--muted); }


@media (max-width: 1150px) {
  :root { --rail: 192px; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .due { display: none; }
}
@media (max-width: 900px) {
  .hero, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin-bottom: 8px; }
  .sidebar .workspace, .navlabel, .sidefoot { display: none; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .nav button { justify-content: center; flex-wrap: wrap; gap: 4px; padding: 4px 3px; min-height: 44px; text-align: center; line-height: 1.2; font-size: 11px; }
  .nav svg { width: 14px; height: 14px; }
  .nav .count { margin: 0; padding: 0 3px; }
  .main { padding-top: 14px; }
  .topbar { gap: 7px; }
  .breadcrumb { font-size: 0; }
  .breadcrumb span { display: inline-block; margin: 0; font-size: 12px; }
  .topactions { gap: 4px; justify-content: flex-end; }
  .banner .mono { display: none; }
  .banner { margin-bottom: 20px; }
  .pagehead { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .detailgrid { grid-template-columns: minmax(0, 1fr); }
  .modalhead, .modalfoot, .modalbody, .tabbar { padding-inline: 14px; }
}
@media (max-width: 440px) {
  .cards, .formgrid { grid-template-columns: minmax(0, 1fr); }
  .column { padding: 8px; }
  .task { padding: 8px; }
  .taskbottom { flex-wrap: wrap; }
  .node { font-size: 11px; padding-inline: 4px; }
  .node small { font-size: 8px; }
  .automation-canvas { padding: 14px 10px; }
  .automation-canvas .connector { width: 12px; }
  .automation-canvas .connector::after { display: none; }
  .listrow { padding-inline: 10px; }
  .listrow .rowicon { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Auth, access and guide use the established n8n-derived tokens. */
.language { width: auto; min-width: 98px; padding: 7px 10px; font-size: 12px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-title { font-size: 27px; margin-top: 24px; letter-spacing: -.03em; }
.auth-submit, .upload-label { width: 100%; }
.auth-help { line-height: 1.65; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-list { max-height: 280px; overflow: auto; }
.detail-status { margin: auto 0 auto auto; }
.manual-intro { max-width: 760px; margin: 20px 0 28px; }
.manual-intro h2 { font-size: clamp(25px, 3vw, 36px); margin: 12px 0; }
.manual-intro p, .guide-step p, .guide-list, .guide-faq { color: var(--muted); line-height: 1.8; }
.manual-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-step { padding: 24px; margin-bottom: 16px; min-width: 0; }
.manual-steps .guide-step { margin-bottom: 0; }
.manual-steps + .guide-step { margin-top: 16px; }
.guide-step h3 { margin-bottom: 10px; }
.guide-list { padding-left: 22px; }
.guide-list li { padding: 6px 0; }
.guide-faq dt { font-weight: 600; color: var(--text); margin-top: 18px; }
.guide-faq dd { margin: 4px 0 0; }
.access-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 12px; margin-top: 20px; }
.access-form .field { margin: 0; }
.access-form > button { grid-column: 1/-1; justify-self: start; }
.member-row { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.member-row strong { overflow-wrap: anywhere; }
.member-row small, .timeline small { display: block; color: var(--muted); font-size: 11px; }
.member-row .pair, .modalfoot, .topactions { flex-wrap: wrap; }
.user > div { min-width: 0; }
.user .small { overflow-wrap: anywhere; }
.topbar { min-height: 64px; height: auto; padding-block: 10px; }
.settingrow > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .topbar { align-items: start; flex-wrap: wrap; } }
@media (max-width: 720px) {
 .topbar .breadcrumb { display: none; }
 .topactions { width: 100%; justify-content: space-between; }
 .topactions .pill { display: none; }
 .manual-steps { grid-template-columns: minmax(0, 1fr); }
 .guide-step { padding: 18px; }
 .tabbar { flex-wrap: wrap; }
 .detail-status { margin: 4px 0; }
 .landing-nav .brand strong { font-size: 13px; }
 .landing-nav { flex-wrap: wrap; border-radius: 20px; padding: 10px; }
 .landing-nav .pair { flex-wrap: wrap; }
 .access-form { grid-template-columns: minmax(0, 1fr); }
}

/* Publishing shares the n8n-inspired workspace tokens and components. */
.publishing-panel{margin-top:24px}.publication-row{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:24px;border-top:1px solid var(--line)}.publication-row>div{min-width:0}.publication-row h3{margin:8px 0}.publication-row .pair{flex-wrap:wrap;justify-content:flex-end;flex-shrink:0;max-width:45%}.publication-row .small{margin:6px 0}.publication-error{color:var(--focus)}.publication-url{overflow-wrap:anywhere}.publication-json{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}.channel-roadmap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px}.channel-roadmap>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.check-label{display:flex;align-items:flex-start;gap:12px;line-height:1.6}.check-label input{width:18px;min-width:18px;margin-top:5px}.publishing-panel .settingrow>div{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.publication-row{flex-direction:column;align-items:stretch;padding:18px}.publication-row .pair{max-width:none;justify-content:flex-start}.channel-roadmap{grid-template-columns:1fr}.channel-roadmap>div{padding-bottom:16px}.publishing-panel .settingrow{flex-wrap:wrap;gap:12px}}

.analytics-filters .field{min-width:140px;flex:1}.table-scroll{overflow:auto;max-width:100%}.metrics-table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}.metrics-table th,.metrics-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.funnel-row{display:grid;grid-template-columns:110px 1fr 85px;gap:16px;align-items:center;margin:18px 0}.funnel-row>div{height:14px;border-radius:20px;background:var(--surface);overflow:hidden}.funnel-row i{height:100%;display:block;background:var(--pink);border-radius:20px}.ai-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}.ai-message{padding:24px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.ai-message h3{font-size:16px}.study-sources{display:flex;gap:18px;flex-wrap:wrap}#budget-result .stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}#budget-result strong{overflow-wrap:anywhere}#work-ai-form textarea{min-height:130px}.guide-step p{word-break:keep-all;overflow-wrap:break-word}@media(max-width:700px){.ai-provider-grid{grid-template-columns:1fr}.funnel-row{grid-template-columns:65px 1fr 65px;gap:10px}.analytics-filters{align-items:stretch}#budget-result .stats{grid-template-columns:1fr}}

/* Channel directory reuses the fixed n8n-inspired palette and card system. */
.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.channel-grid.compact{margin-top:16px}.channel-card{border:1px solid var(--line,#dededb);border-radius:18px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.channel-card h3{margin:8px 0}.channel-card p{margin:0;overflow-wrap:anywhere}.channel-card .pair{flex-wrap:wrap}.channel-card .pill{white-space:normal}.channel-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#FFBCCA;color:#161616;font-size:11px;font-weight:750}.channel-card-foot{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:16px;font-size:12px}.channel-filter{display:flex;white-space:nowrap;gap:10px;align-items:center;font-size:12px}.channel-filter select{max-width:240px}.channel-hub>.panelhead{padding:0;border:0;gap:20px}.channel-hub>.panelhead h2{margin:6px 0}.channel-grid .small{line-height:1.7}.preview video{max-width:100%;max-height:450px}.detailgrid a{overflow-wrap:anywhere}.channel-grid.compact .btn{margin-top:auto}.channel-grid.compact a{display:inline-block;margin-top:8px}
@media(max-width:1100px){.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.channel-grid{grid-template-columns:1fr;gap:12px}.channel-card{padding:18px}.channel-filter{width:100%}.channel-filter select{width:100%;max-width:none;min-width:0}.channel-hub>.panelhead{align-items:flex-start;flex-direction:column}.settingrow{flex-wrap:wrap;gap:12px}}

.setup-panel .panelhead{padding:0;border:0;gap:16px;flex-wrap:wrap}.setup-panel .pill{white-space:normal}.setup-summary{margin:20px 0;padding:20px;background:var(--surface);border-radius:var(--radius)}.setup-summary>strong{display:block;margin-bottom:12px}.setup-links{display:flex;flex-wrap:wrap;gap:20px;font-size:13px}.setup-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.setup-facts>div{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:var(--radius);padding:18px}.setup-facts strong{font-size:22px}.setup-progress{width:100%;height:8px;accent-color:var(--focus);margin:16px 0}.setup-checks{list-style:none;padding:0}.setup-checks li{display:grid;grid-template-columns:24px minmax(0,1fr) 76px;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.setup-checks small{color:var(--muted);text-align:right}.setup-dot{display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--line);border-radius:50%;font-size:13px}.setup-dot.checked{background:var(--pink);color:#161616}.setup-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.setup-help summary{cursor:pointer;font-weight:500}.setup-form-checks{display:grid;gap:20px}.setup-panel select{max-width:100%;min-width:0}.setup-panel .formgrid .field{min-width:0}.analytics-filters select{min-width:0;max-width:100%}@media(max-width:700px){.setup-facts{grid-template-columns:1fr}.setup-checks li{grid-template-columns:24px minmax(0,1fr)}.setup-checks small{grid-column:2;text-align:left}.setup-panel .panelhead{align-items:flex-start}.analytics-filters .field{min-width:0;flex-basis:100%}}

/* Operations uses the established n8n-inspired tokens and spacing. */
.ops-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.ops-details dt{font-size:.78rem;color:var(--muted);margin-bottom:6px}.ops-details dd{margin:0;overflow-wrap:anywhere}.ops-report-row{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(80px,1fr));gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.ops-report-row small{display:block;color:var(--muted);font-size:.72rem;margin-top:5px}.ops-report-row b{display:block;margin-top:5px}.ops-remote select{max-width:100%}@media(max-width:760px){.ops-details{grid-template-columns:1fr}.ops-report-row{grid-template-columns:1fr 1fr}.ops-report-row>div{grid-column:1/-1}}

/* U.S. Business Hub preparation follows the existing n8n-inspired tokens. */
.hub-panel { min-width:0; }
.hub-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:20px 0; }
.hub-summary h3 { margin-bottom:10px; }
.hub-summary .pill { white-space:normal; }
.hub-flow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; padding:18px 0; margin:0 0 16px; list-style:none; }
.hub-flow li { position:relative; display:flex; align-items:center; gap:8px; padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:12px; font-size:12px; min-width:0; }
.hub-flow li+li::before { content:''; position:absolute; width:18px; height:1px; background:var(--line); top:50%; left:-19px; }
.hub-flow li span { display:grid; place-items:center; width:22px; height:22px; flex:none; border:1px solid var(--line); border-radius:50%; font:11px var(--mono); background:var(--panel); }
.hub-flow li.current { background:var(--selected); border-color:var(--pink); }
.hub-readiness { display:flex; flex-wrap:wrap; gap:10px 24px; padding:16px 0; font-size:13px; }
.hub-readiness span { color:var(--muted); }
.hub-help { border-top:1px solid var(--line); margin-top:16px; padding-top:16px; }
.hub-help summary { cursor:pointer; font-weight:500; }
.hub-guidance { padding:16px 0; }
.hub-guidance p { margin-top:12px; }
.hub-fieldset { padding:20px 0 0; margin:20px 0 0; border:0; border-top:1px solid var(--line); min-width:0; }
.hub-fieldset legend { padding-right:12px; font-size:17px; font-weight:500; }
.hub-fieldset .formgrid { margin:8px 0 16px; }
.hub-confirm { display:flex; align-items:flex-start; gap:10px; padding:12px; background:var(--surface); border-radius:12px; font-size:13px; }
.hub-confirm input { width:18px; height:18px; flex:none; margin:3px 0 0; accent-color:var(--focus); }
.hub-checklist { display:grid; }
.hub-check-row { display:grid; grid-template-columns:minmax(0,1fr) 170px; align-items:start; gap:20px; padding:20px 0; border-top:1px solid var(--line); }
.hub-check-row label { font-weight:500; }
.hub-check-row p { margin:8px 0; }
.hub-check-row a { font-size:12px; }
.hub-check-row select { width:100%; min-height:42px; }
.hub-form-body { min-width:0; }
@media(max-width:700px) {
 .hub-flow { grid-template-columns:1fr; gap:12px; }
 .hub-flow li+li::before { width:1px; height:12px; left:23px; top:-13px; }
 .hub-check-row { grid-template-columns:1fr; gap:12px; }
 .hub-check-row select { width:100%; }
 .hub-summary { align-items:flex-start; }
}

/* Account connection workflow: shared n8n-inspired tokens and operator-only progress. */
.connection-flow { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:24px; margin:24px 0; border-radius:var(--radius); background:radial-gradient(var(--line) .7px,transparent .7px) 0 0/18px 18px; border:1px solid var(--line); }
.connection-flow li { position:relative; display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--panel); font-size:13px; }
.connection-flow li+li::before { content:''; position:absolute; width:20px; height:1px; background:var(--muted); left:-21px; top:50%; }
.connection-flow li>span { font:12px var(--mono); border:1px solid var(--line); border-radius:50%; width:30px; height:30px; flex:none; display:grid; place-items:center; }
.connection-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:20px; margin-bottom:24px; }
.connection-toolbar .field { min-width:200px; flex:1; max-width:360px; }
.connection-toolbar p { align-self:center; }
.connection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.connection-card { min-width:0; border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.connection-card .panelhead { align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.connection-card h3 { font-size:20px; }
.connection-card .pill { white-space:normal; }
.connection-stages { margin:0; }
.connection-stages div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.connection-stages dt { color:var(--muted); }
.connection-stages dd { margin:0; text-align:right; }
.connection-next { margin:16px 0; padding:16px; border-radius:12px; background:var(--surface); }
.connection-next small { display:block; color:var(--muted); font-family:var(--mono); margin-bottom:4px; }
.connection-next p { margin-top:8px; }
.connection-links { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:16px; font-size:13px; }
.connection-account { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.connection-account>span { display:block; margin:4px 0 12px; }
.connection-center .toolbar { gap:8px; flex-wrap:wrap; }
.connection-center .setup-help ol { padding-left:20px; }
.connection-center .setup-help li { margin:10px 0; }
@media(max-width:1100px) { .connection-flow { grid-template-columns:repeat(2,minmax(0,1fr)); } .connection-flow li:nth-child(3)::before { display:none; } }
@media(max-width:700px) {
 .connection-grid { grid-template-columns:1fr; }
 .connection-card { padding:20px; }
 .connection-flow { grid-template-columns:1fr; padding:16px; gap:12px; }
 .connection-flow li+li::before, .connection-flow li:nth-child(3)::before { display:block; width:1px; height:12px; left:28px; top:-13px; }
 .connection-toolbar { align-items:stretch; gap:12px; }
 .connection-toolbar .field { width:100%; max-width:none; }
 .connection-stages div { flex-wrap:wrap; gap:4px 12px; }
}

.connection-uri{overflow-wrap:anywhere}.connection-card details{margin:16px 0}.connection-card dd{overflow-wrap:anywhere}
