/* General Sans by Indian Type Foundry, bundled under the ITF Free Font License.
   Font files are unmodified; see fonts/general-sans/FFL.txt. */
@font-face {
  font-family: "General Sans";
  src: url("./fonts/general-sans/GeneralSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("./fonts/general-sans/GeneralSans-VariableItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --font-ui: "General Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #fcfbf8;
  --shell-surface: #f8f7f3;
  --shell-width: 260px;
  --topbar-height: 44px;
  --nav-ink: #493b69;
  --nav-muted: #625f59;
  --nav-hover: #f0ede7;
  --nav-selected: #eee7f7;
  --primary: #0b57d0;
  --primary-hover: #0842a0;
  --primary-soft: #e8f0fe;
  --paper: #ffffff;
  --ink: #292824; --brand-blue: #315f9c; --brand-blue-ink: #ffffff;
  --muted: #55514a; /* was #6b675f; darkened 2026-10-25 for readability */
  --line: #e7e3dc;
  --line-strong: #d5cfc5;
  --border: var(--line);
  --ink-muted: var(--muted);
  --teal: #137333;
  --teal-soft: #e6f4ea;
  --coral: #b3261e;
  --coral-soft: #fce8e6;
  --lavender: #7627bb;
  --lavender-soft: #f1e8fd;
  --butter: #f9ab00;
  --butter-soft: #fef7e0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px; /* was 13px; trial 2026-10-25 for readability */
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; min-width: 980px; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The header and libraries form one quiet navigation frame. */
.topbar {
  position: relative;
  z-index: 40;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--shell-surface);
  --wails-draggable: drag;
}
.topbar button, .topbar input { --wails-draggable: no-drag; }
.topbar:has(.account-panel) { z-index: 80; }
.brand { justify-self: start; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; }
.brand-mark { width: 38px; height: 32px; display: grid; place-items: center; flex: 0 0 38px; }
.brand-mark img { display: block; width: 36px; height: 32px; object-fit: contain; }
.brand > span:last-child { min-width: 0; display: grid; gap: 1px; }
.brand strong { font-size: 24px; font-weight: 500; letter-spacing: -.65px; }
.brand small { color: var(--muted); font-size: 11px; }

.topnav { justify-self: center; align-self: stretch; display: flex; align-items: stretch; gap: 12px; min-width: 0; }
.topnav button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; line-height: 22px; border: 0; background: transparent; color: var(--nav-muted); font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; white-space: nowrap; transition: color .15s; }
.topnav button::before { content: ""; position: absolute; z-index: -1; inset: 4px 3px; border-radius: 7px; background: transparent; transition: background .15s; }
.topnav button:hover { color: var(--nav-ink); }
.topnav button:hover::before { background: var(--nav-hover); }
.topnav button.is-active { color: var(--nav-ink); }
.topnav button.is-active::after { content: ""; position: absolute; bottom: -1px; left: 3px; right: 3px; height: 2px; border-radius: 2px 2px 0 0; background: var(--nav-ink); }
.topnav button > svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.75; }
.topnav .inbox-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 6px; background: var(--nav-ink); color: white; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.topbar button:focus-visible, :is(.work-sidebar, .dashboards-sidebar) button:focus-visible { outline: 2px solid var(--nav-ink); outline-offset: 3px; }
.topnav button:focus-visible { outline-offset: -7px; border-radius: 10px; }
.shell-utilities { justify-self: end; display: flex; align-items: center; }

.badge { min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: white; font-size: 11.250px; }
.badge.teal { background: var(--teal); }

.account { position: relative; justify-self: end; }
.account-chip { display: flex; align-items: center; padding: 3px; border: 1px solid transparent; border-radius: 999px; background: transparent; transition: .15s; }
.account-chip:hover, .account-chip.is-open { border-color: var(--line); background: white; }
.account-chip i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e8ebe4; color: #52604b; font-size: 12.500px; font-style: normal; font-weight: 650; }
.account-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: 205px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: white; box-shadow: 0 18px 44px rgba(30, 38, 34, .16); animation: menu-in .18s cubic-bezier(.16, 1, .3, 1); }
.account-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13.750px; font-weight: 700; text-align: left; }
.account-menu button:hover { background: var(--canvas); }
.account-menu svg { width: 15px; height: 15px; color: var(--muted); }
.account-panel { position: fixed; top: calc(var(--topbar-height) + 6px); right: 24px; width: min(410px, calc(100vw - 24px)); max-height: calc(100dvh - var(--topbar-height) - 20px); overflow-y: auto; overscroll-behavior: contain; gap: 0; --wails-draggable: no-drag; }
.account-card { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); }
.account-card i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 13.750px; font-style: normal; font-weight: 850; }
.account-card > span { min-width: 0; flex: 1; display: grid; gap: 1px; }
.account-card strong { font-size: 15.000px; font-weight: 780; }
.account-card small { color: var(--muted); font-size: 11.875px; }
.session-pill { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 11.250px; font-weight: 780; }
.session-pill.is-on { background: var(--teal-soft); color: var(--teal); }
.account-section-label { margin: 10px 10px 6px; color: var(--muted); font-size: 10.625px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.account-session { display: grid; gap: 2px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.account-session > div { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 6px; }
.account-session > div > span { flex: 0 0 auto; color: var(--muted); font-size: 12.500px; font-weight: 700; }
.session-value { max-width: 240px; overflow: hidden; margin: 0; padding: 2px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.000px; font-weight: 600; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.account-menu button.session-value { display: inline-block; padding: 2px 7px; font-size: 12.000px; }
.account-menu button.session-value:hover { background: var(--teal-soft); color: var(--teal); }
.session-value.is-plain { font-family: inherit; font-size: 12.500px; font-weight: 720; }
.session-value.is-empty { color: var(--muted); }
.account-build { padding: 8px 4px 10px; border-bottom: 1px solid var(--line); }
.build-heading { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.account-menu .build-heading button { padding: 7px; }
.build-version { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 4px 6px 8px; }
.build-version strong { font-size: 15px; font-weight: 650; }
.build-version > span { color: var(--muted); font-size: 12px; }
.build-summary { padding: 0; border: 0; }
.build-status { margin: 10px 6px 4px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.build-note { margin: 4px 6px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.build-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.account-menu .build-controls button, .account-menu [data-runtime-refresh] { gap: 6px; padding: 7px 6px; font-size: 12px; font-weight: 600; }
.account-menu [data-check-updates] { background: var(--canvas); }
.account-menu button:disabled { opacity: .5; cursor: default; }
.account-menu button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.build-details { margin-top: 10px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
.build-details .session-value { white-space: normal; overflow-wrap: anywhere; text-align: right; }
.build-details > div { align-items: baseline; }
.account-actions { display: grid; gap: 2px; padding-top: 6px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* Give the navigation/filter rail enough room for names, counts, and actions. */
.workspace { width: calc(100% - 32px); height: calc(100vh - 100px); margin: 16px auto; display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 16px; }
.workspace-single { grid-template-columns: minmax(0, 1fr); }
.feed-panel, .rail-panel { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: white; box-shadow: 0 2px 7px rgba(30, 38, 34, .035); }
.feed-panel { display: flex; flex-direction: column; }

.feed-bar { min-height: 66px; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.feed-bar > p { display: flex; align-items: center; gap: 7px; margin: 0 auto 0 0; color: var(--teal); font-size: 11.250px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.feed-bar > p svg { width: 13px; height: 13px; }
.feed-tools { display: flex; align-items: center; gap: 5px; }
.tool-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); }
.tool-button:hover, .tool-button.is-active { border-color: var(--line); background: var(--canvas); color: var(--ink); }
.tool-button svg { width: 16px; height: 16px; }
.search-field, .rail-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.search-field { width: 190px; height: 34px; padding: 0 10px; }
.search-field svg, .rail-search svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--muted); }
.search-field input, .rail-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.750px; }
.filters { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.filters button { min-height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11.875px; font-weight: 720; }
.filters button:hover { background: white; color: var(--ink); }
.filters button b { min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #e7e8e5; color: var(--muted); font-size: 10.000px; }
.filters button.is-active { background: #e3f0e9; color: #245e53; box-shadow: inset 0 0 0 1px #c8ded2; }
.filters button.is-active b { background: #cfe3d8; color: #245e53; }

.feed-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.eyebrow { color: var(--teal); font-size: 11.250px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.signal-list { display: grid; gap: 12px; padding: 14px 16px 18px; }
.activity-groups { display: grid; gap: 4px; padding-bottom: 18px; }
.activity-group > header { height: 42px; display: flex; align-items: center; gap: 7px; padding: 10px 19px 0; color: var(--muted); }
.activity-group > header svg { width: 14px; height: 14px; }
.activity-group > header strong { font-size: 11.250px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.activity-group > header b { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: #eceeeb; font-size: 9.375px; }
.activity-group.is-meetings > header { color: var(--teal); }
.activity-group.is-sources > header { color: var(--lavender); }
.activity-group.is-knowledge > header { color: #80671d; }
.activity-group.is-actions > header { color: #9f4a3b; }
.activity-group.is-agents > header { color: var(--coral); }
.activity-group .signal-list { padding-top: 7px; padding-bottom: 7px; }
.signal-card { --tone: var(--teal); --soft: var(--teal-soft); min-height: 126px; display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 21px 24px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 2px 7px rgba(30, 38, 34, .05); transition: .2s cubic-bezier(.16, 1, .3, 1); }
.signal-card.is-coral { --tone: var(--coral); --soft: var(--coral-soft); }
.signal-card.is-lavender { --tone: var(--lavender); --soft: var(--lavender-soft); }
.signal-card.is-butter { --tone: #8a6b12; --soft: var(--butter-soft); }
.signal-card.status-done { opacity: .76; }
.signal-card:hover { border-color: var(--line-strong); background: #fbfcfb; box-shadow: 0 16px 34px -20px rgba(30, 38, 34, .38); }
.signal-card:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.signal-author { min-width: 0; display: flex; align-items: center; gap: 11px; }
.signal-author > i, .modal-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; border: 1px solid color-mix(in srgb, var(--tone) 22%, white); border-radius: 50%; background: var(--soft); color: var(--tone); font-size: 12.500px; font-style: normal; font-weight: 850; }
.signal-author > span { min-width: 0; display: grid; gap: 3px; }
.signal-author strong { overflow: hidden; font-size: 15.000px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.signal-author small { color: #8a928d; font-size: 11.250px; }
.signal-content { min-width: 0; display: grid; gap: 5px; }
.signal-kicker { display: flex; align-items: center; gap: 8px; }
.signal-kicker > em { color: var(--tone); font-size: 11.250px; font-style: normal; font-weight: 820; letter-spacing: .075em; text-transform: uppercase; }
.task-state { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 999px; font-size: 9.375px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.task-state svg { width: 10px; height: 10px; }
.task-state.is-immediate { background: var(--coral-soft); color: #b64f3b; }
.task-state.is-blocked { background: var(--butter-soft); color: #745b12; }
.task-state.is-done { background: var(--teal-soft); color: var(--teal); }
.signal-content > strong { font-size: 18.750px; font-weight: 740; line-height: 1.3; }
.signal-content > small { color: var(--muted); font-size: 13.750px; line-height: 1.45; }
.task-dependency { display: flex; align-items: center; gap: 3px; color: #8a928d; font-size: 10.625px; }
.task-dependency b { color: #6c5512; font-weight: 800; }
.task-dependency.is-blocked { color: #8a6b12; }
.task-dependency.is-immediate { color: #b65e4b; }
.task-dependency.is-done { color: var(--teal); }
.signal-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.signal-chips b { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--tone); font-size: 10.000px; font-weight: 780; }
.signal-action { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.250px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.signal-action svg { width: 13px; height: 13px; transition: transform .15s; }
.signal-card:hover .signal-action { color: var(--ink); }
.entity-actions { display: grid; justify-items: end; gap: 9px; }
.entity-actions > button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--teal); font: inherit; font-size: 10.625px; font-weight: 800; text-transform: none; }
.entity-actions > button:hover { border-color: var(--teal); background: var(--teal-soft); }
.entity-actions > button svg { width: 12px; height: 12px; }
.entity-actions > span { display: inline-flex; align-items: center; gap: 5px; }
.empty-results { margin: 26px; color: var(--muted); font-size: 13.750px; text-align: center; }

.rail-panel { position: relative; display: flex; flex-direction: column; border-top: 4px solid var(--teal); }
.rail-panel.compact-rail { align-self: start; max-height: calc(100vh - 100px); }
.compact-rail .rail-scroll { flex: 0 1 auto; max-height: calc(100vh - 220px); }
.rail-title { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 0 13px; border-bottom: 1px solid var(--line); }
.rail-title.compact-rail-title { min-height: 62px; grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 9px; padding-inline: 11px; }
.rail-title.compact-rail-title > span { width: 34px; height: 34px; border-radius: 10px; }
.rail-title.compact-rail-title > span svg { width: 17px; height: 17px; }
.rail-title.compact-rail-title > button { width: 30px; height: 30px; }
.rail-title.compact-rail-title strong { font-size: 15px; }
.rail-title > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.rail-title > span svg { width: 21px; height: 21px; }
.rail-title > div { display: grid; gap: 2px; }
.rail-title small { color: var(--muted); font-size: 11.250px; }
.rail-title strong { font-size: 17.500px; font-weight: 820; }
.rail-title > button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--canvas); color: var(--muted); }
.rail-title > button svg { width: 15px; height: 15px; }
.rail-search { flex: 0 0 44px; margin: 10px 12px; padding: 0 12px; }
.rail-scroll { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail-rows { display: grid; padding: 0 12px 7px; }
.rail-rows-flat { padding-top: 7px; }
.rail-row { width: 100%; min-height: 61px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: white; text-align: left; }
.material-row { min-height: 118px; align-items: start; padding-block: 13px; }
.rail-row:hover { background: var(--canvas); }
.rail-row > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10.000px; font-style: normal; font-weight: 850; }
.rail-row > i.is-coral { background: var(--coral-soft); color: var(--coral); }
.rail-row > i.is-lavender { background: var(--lavender-soft); color: var(--lavender); }
.rail-row > i.is-butter { background: var(--butter-soft); color: #80671d; }
.rail-row > span { min-width: 0; display: grid; gap: 3px; }
.rail-row strong { overflow: hidden; font-size: 13.125px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.rail-row small { color: var(--muted); font-size: 10.625px; }
.rail-row > svg { width: 12px; height: 12px; color: #9ba29e; }
.material-row > svg { align-self: center; }
.material-body { gap: 4px !important; }
.material-time { display: flex !important; align-items: center; gap: 5px !important; margin-bottom: 1px; color: var(--teal); font-size: 10.000px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.material-time svg { width: 10px; height: 10px; }
.material-body > strong { font-size: 14.375px; }
.material-progress { display: flex !important; align-items: center; gap: 8px !important; margin-top: 4px; }
.material-progress > i { height: 4px; min-width: 64px; flex: 1; overflow: hidden; border-radius: 999px; background: #eceeeb; }
.material-progress > i b { height: 100%; display: block; border-radius: inherit; background: var(--teal); }
.material-progress > em { color: var(--muted); font-size: 9.375px; font-style: normal; font-weight: 750; white-space: nowrap; }
.material-progress > em.is-ready { color: var(--teal); }
.material-next { display: flex !important; align-items: center; gap: 5px !important; color: #956537; font-size: 10.000px; font-weight: 720; }
.material-next.is-ready { color: var(--teal); }
.material-next svg { width: 10px; height: 10px; flex: 0 0 auto; }
.rail-empty { color: var(--muted); font-size: 12.500px; text-align: center; }

/* Clients & Meetings entity pages (shared list panel + filter rail) */
.entity-card .signal-kicker { flex-wrap: wrap; }
.entity-card .task-state { white-space: nowrap; }
.entity-count { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.500px; font-weight: 720; white-space: nowrap; }
.entity-count b { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--ink); color: white; font-size: 10.625px; }
.entity-count button { margin-left: 4px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--teal); font: inherit; cursor: pointer; }
.entity-count button.entity-new { display: inline-flex; align-items: center; gap: 4px; border-color: var(--teal); background: var(--teal); color: white; }
.entity-count button svg { width: 11px; height: 11px; }
.task-state.tone-teal { background: var(--teal-soft); color: var(--teal); }
.task-state.tone-coral { background: var(--coral-soft); color: #b64f3b; }
.task-state.tone-butter { background: var(--butter-soft); color: #745b12; }
.task-state.tone-lavender { background: var(--lavender-soft); color: var(--lavender); }
.task-state.tone-neutral { background: #eff0ee; color: #59625d; }
.rail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 13px; }
.rail-stat { display: grid; gap: 2px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.rail-stat strong { font-family: var(--font-ui); font-size: 23.750px; font-weight: 600; letter-spacing: -.02em; }
.rail-stat small { color: var(--muted); font-size: 10.625px; font-weight: 750; }
.rail-filter-group { display: grid; gap: 9px; padding: 13px 14px 15px; border-top: 1px solid var(--line); }
.rail-filter-group h3 { margin: 0; color: var(--muted); font-size: 10.000px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.compact-rail-summary { display: flex; flex-wrap: wrap; gap: 5px; padding: 3px 12px 11px; }
.compact-rail-summary span { padding: 5px 8px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 10px; font-weight: 700; }
.compact-rail-summary b { color: var(--ink); }
.rail-disclosure { border-top: 1px solid var(--line); }
.rail-disclosure summary { min-height: 43px; display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; padding: 0 13px; color: var(--muted); cursor: pointer; list-style: none; }
.rail-disclosure summary::-webkit-details-marker { display: none; }
.rail-disclosure summary > span { color: var(--ink); font-size: 11.875px; font-weight: 780; }
.rail-disclosure summary > b { max-width: 95px; overflow: hidden; padding: 3px 7px; border-radius: 999px; background: var(--canvas); font-size: 9.375px; text-overflow: ellipsis; white-space: nowrap; }
.rail-disclosure summary > svg { width: 12px; height: 12px; transition: transform .15s; }
.rail-disclosure[open] summary > svg { transform: rotate(180deg); }
.rail-disclosure > .rail-chips, .rail-disclosure > .rail-checks { padding: 0 12px 12px; }
.rail-chips { display: grid; gap: 5px; }
.rail-chips button { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: 11.875px; font-weight: 720; text-align: left; transition: .15s; }
.rail-chips button:hover { border-color: #cbded3; background: #f3f8f5; color: #245e53; }
.rail-chips button b { min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #e7e8e5; color: var(--muted); font-size: 10.000px; }
.rail-chips button.is-active { border-color: #c8ded2; background: #e3f0e9; color: #245e53; box-shadow: inset 3px 0 0 #498977; }
.rail-chips button.is-active b { background: #cfe3d8; color: #245e53; }
.rail-checks { display: grid; gap: 5px; }
.rail-checks button { width: 100%; min-height: 38px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); text-align: left; }
.rail-checks button:hover { border-color: var(--line-strong); background: var(--canvas); color: var(--ink); }
.rail-checks button.is-active { border-color: color-mix(in srgb, var(--teal) 42%, white); background: var(--teal-soft); color: var(--ink); }
.rail-checks button > span { min-width: 0; display: grid; gap: 2px; font-size: 11.875px; font-weight: 720; }
.rail-checks button > span strong { overflow: hidden; font-size: 11.875px; text-overflow: ellipsis; white-space: nowrap; }
.rail-checks button > span small { color: var(--muted); font-size: 9.375px; font-weight: 600; }
.rail-checks button > b { font-size: 9.375px; }
.filter-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: white; }
.filter-check.is-checked { border-color: var(--teal); background: var(--teal); }
.filter-check svg { width: 11px; height: 11px; }
.meeting-filter-rail .rail-filter-group { padding-inline: 12px; }
.rail-internal { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.topnav button:focus-visible, .filters button:focus-visible, .rail-chips button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.client-nav .rail-chips { gap: 6px; }
.client-nav .rail-chips button { min-height: 38px; border-color: transparent; background: #f7f9f7; color: #586b62; }
.client-nav .rail-chips button:hover { border-color: #d6e4db; background: #eef5f0; color: #245e53; }
.client-nav .rail-chips button.is-active { border-color: #c8ded2; background: #e3f0e9; color: #245e53; }
.client-nav .rail-chips button > span { display: flex; align-items: center; gap: 8px; }
.client-nav .rail-chips button > span svg { width: 14px; height: 14px; }
.client-nav .rail-chips button > svg { width: 11px; height: 11px; }
.client-rail-avatar { font-size: 11.250px; font-style: normal; font-weight: 850; }
.client-facts { display: grid; gap: 10px; margin: 0; }
.client-facts div { display: grid; gap: 3px; }
.client-facts dt { color: var(--muted); font-size: 9.375px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.client-facts dd { margin: 0; font-size: 12.500px; font-weight: 720; }

.client-detail-body { max-width: 900px; margin: 0 auto; padding: 26px 28px 44px; }
.client-hero { display: flex; align-items: flex-start; gap: 17px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.client-hero > div { min-width: 0; }
.client-hero h1 { margin: 7px 0 8px; font-family: var(--font-ui); font-size: 35px; font-weight: 600; letter-spacing: -.035em; }
.client-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13.750px; line-height: 1.6; }
.client-hero .modal-facts { margin-bottom: 0; }
.client-activity { display: grid; gap: 22px; padding-top: 22px; }
.client-activity-group { display: grid; gap: 8px; }
.client-activity-group > header { display: flex; align-items: center; gap: 7px; color: var(--teal); }
.client-activity-group.is-prs > header { color: var(--lavender); }
.client-activity-group.is-agents > header { color: var(--coral); }
.client-activity-group > header span { display: grid; place-items: center; }
.client-activity-group > header svg { width: 14px; height: 14px; }
.client-activity-group > header strong { font-size: 11.250px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.client-activity-group > header b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 9.375px; }
.client-activity-row { --activity-tone: var(--teal); display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-left: 3px solid var(--activity-tone); border-radius: 12px; background: white; }
.client-activity-row.is-lavender { --activity-tone: var(--lavender); }
.client-activity-row.is-coral { --activity-tone: var(--coral); }
.client-activity-row.is-butter { --activity-tone: #a27a16; }
.client-activity-row > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--activity-tone) 10%, white); color: var(--activity-tone); }
.client-activity-row > i svg { width: 16px; height: 16px; }
.client-activity-row > div { min-width: 0; display: grid; gap: 3px; }
.client-activity-row > div > span { color: var(--activity-tone); font-size: 9.375px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.client-activity-row > div > strong { font-size: 14.375px; }
.client-activity-row p { margin: 0; color: var(--muted); font-size: 11.875px; line-height: 1.4; }
.client-activity-row > button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--canvas); color: var(--muted); }
.client-activity-row > button svg { width: 12px; height: 12px; }

.new-client-modal { width: min(620px, 100%); }
.new-client-modal .modal-icon svg { width: 19px; height: 19px; }
.client-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 24px; }
.client-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10.625px; font-weight: 800; }
.client-form label.is-wide { grid-column: 1 / -1; }
.client-form input, .client-form select, .client-form textarea { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 13.125px; outline: 0; }
.client-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.client-form textarea { min-height: 84px; padding-block: 10px; resize: vertical; line-height: 1.45; }
.client-form input:focus, .client-form select:focus, .client-form textarea:focus { border-color: var(--teal); background-color: white; box-shadow: 0 0 0 3px var(--teal-soft); }
.client-form label > small { margin-top: -3px; color: #979d99; font-size: 9.375px; font-weight: 650; }
.new-meeting-modal { width: min(700px, 100%); max-height: calc(100vh - 38px); overflow-y: auto; }
/* Shared pill buttons (the detail-modal footer recipe, reusable anywhere). */
.pill-button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 999px; font-size: 12.500px; font-weight: 800; white-space: nowrap; }
.pill-button.secondary { border: 1px solid var(--line-strong); background: white; }
.pill-button.secondary:hover { background: var(--canvas); }
.pill-button.primary { border: 1px solid var(--ink); background: var(--ink); color: white; }
.pill-button:disabled { opacity: .55; cursor: default; }
.pill-button svg { width: 13px; height: 13px; }

/* Meeting drill-in: a full main-view page (overview + transcript) in place
   of the list, dispio-manual style. */
.meeting-detail-body { max-width: 860px; margin: 0 auto; padding: 26px 28px 40px; }
.meeting-hero { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.meeting-hero h1 { margin: 7px 0 12px; font-family: var(--font-ui); font-size: 32.500px; font-weight: 600; letter-spacing: -.03em; }
.meeting-hero .modal-facts { margin: 0; }
.activity-lede { max-width: 720px; margin: 0 0 14px; color: var(--muted); font-size: 14.375px; line-height: 1.55; }
.meeting-section { padding-top: 22px; }
.meeting-section h2 { margin: 0 0 10px; color: var(--muted); font-size: 11.250px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.meeting-section > p { max-width: 720px; margin: 0 0 10px; color: #4f5954; font-size: 13.750px; line-height: 1.65; }
.meeting-note { color: var(--muted); font-size: 13.750px; }
.meeting-action { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.meeting-action:first-of-type { border-top: 0; }
.meeting-action > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.meeting-action > i svg { width: 12px; height: 12px; }
.meeting-action > span { min-width: 0; display: grid; gap: 2px; }
.meeting-action strong { font-size: 13.750px; font-weight: 740; }
.meeting-action small { color: var(--muted); font-size: 11.250px; }
.transcript-turn { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.transcript-turn:first-of-type { border-top: 0; }
.transcript-turn > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10.625px; font-style: normal; font-weight: 850; }
.transcript-turn header { display: flex; align-items: baseline; gap: 8px; }
.transcript-turn strong { font-size: 12.500px; font-weight: 780; }
.transcript-turn small { color: #8a928d; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.625px; }
.transcript-turn p { max-width: 680px; margin: 4px 0 0; color: #4f5954; font-size: 13.750px; line-height: 1.6; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(25, 31, 28, .34); backdrop-filter: blur(4px); animation: fade-in .16s ease-out; }
.detail-modal { width: min(520px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: white; box-shadow: 0 30px 80px rgba(20, 27, 23, .22); animation: modal-in .24s cubic-bezier(.16, 1, .3, 1); }
.detail-modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-icon { --tone: var(--teal); --soft: var(--teal-soft); }
.modal-icon.is-coral { --tone: var(--coral); --soft: var(--coral-soft); }
.modal-icon.is-lavender { --tone: var(--lavender); --soft: var(--lavender-soft); }
.modal-icon.is-butter { --tone: #80671d; --soft: var(--butter-soft); }
.detail-modal header button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--muted); }
.detail-modal header button svg { width: 15px; height: 15px; }
.detail-modal h2 { margin: 8px 0 10px; font-family: var(--font-ui); font-size: 32.500px; font-weight: 600; letter-spacing: -.03em; }
.detail-modal > p { margin: 0; color: var(--muted); font-size: 15.000px; line-height: 1.65; }
.modal-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 25px; }
.modal-facts span { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: 11.250px; font-weight: 750; }
.modal-facts svg { width: 11px; height: 11px; color: var(--teal); }
.detail-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-modal footer button { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 12.500px; font-weight: 800; }
.detail-modal footer button.secondary { border: 1px solid var(--line-strong); background: white; }
.detail-modal footer button.primary { border: 1px solid var(--ink); background: var(--ink); color: white; }
.detail-modal footer svg { width: 13px; height: 13px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.feedback-widget { position: fixed; z-index: 70; right: 22px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.feedback-button { min-width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 21px; overflow: hidden; border: 1px solid #1b201e; border-radius: 999px; background: var(--ink); color: white; box-shadow: 0 14px 32px rgba(24, 31, 27, .22); transition: transform .15s, gap .2s, box-shadow .2s; }
.feedback-button:hover { gap: 10px; box-shadow: 0 17px 36px rgba(24, 31, 27, .27); }
.feedback-button svg { width: 29px; height: 29px; flex: 0 0 auto; }
.feedback-button span { max-width: 0; overflow: hidden; opacity: 0; font-size: 12.500px; font-weight: 800; transition: max-width .2s, opacity .2s; }
.feedback-button:hover span { max-width: 105px; opacity: 1; }
.feedback-button.is-open { width: 78px; height: 78px; padding: 0; overflow: visible; border: 4px solid white; background: white; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 32px rgba(24, 31, 27, .24); }
.feedback-button.is-open span { display: none; }
.feedback-button.is-open .feedback-avatar { position: relative; width: 100%; max-width: none; height: 100%; display: block; overflow: visible; opacity: 1; }
.feedback-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.feedback-avatar i { position: absolute; right: -7px; bottom: -6px; width: 29px; height: 29px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 3px 8px rgba(24, 31, 27, .24); }
.feedback-avatar i svg { width: 14px; height: 14px; }
.feedback-panel { width: 330px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 15px; background: white; box-shadow: 0 22px 58px rgba(20, 27, 23, .2); animation: feedback-in .22s cubic-bezier(.16, 1, .3, 1); }
.feedback-panel header { display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.feedback-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.feedback-icon svg { width: 17px; height: 17px; }
.feedback-panel header > div { display: grid; gap: 2px; }
.feedback-panel header small { color: var(--teal); font-size: 10.000px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feedback-panel header strong { font-size: 15.000px; }
.feedback-panel header button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--muted); }
.feedback-panel header button svg { width: 13px; height: 13px; }
.feedback-panel > p { margin: 12px 0 10px; color: var(--muted); font-size: 12.500px; line-height: 1.5; }
.feedback-panel textarea { width: 100%; min-height: 92px; resize: vertical; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--canvas); color: var(--ink); font: inherit; font-size: 13.750px; line-height: 1.5; }
.feedback-panel textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(39, 119, 108, .1); }
.feedback-actions { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.feedback-status { color: var(--coral); font-size: 11.250px; }
.feedback-actions button { min-width: 82px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--teal); color: white; font-size: 12.500px; font-weight: 800; }
.feedback-actions button:disabled { cursor: default; opacity: .62; }
.feedback-actions svg { width: 13px; height: 13px; }
.feedback-panel footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; color: #909793; font-size: 10.000px; }
@keyframes feedback-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Chat-driven view composer */
.composed-workspace { height: calc(100vh - var(--topbar-height)); overflow: auto; padding: 34px clamp(24px, 4vw, 64px) 70px; background: var(--canvas); }
#app:has(.assistant-panel) .composed-workspace { padding-right: 450px; }
.composed-view-header { width: min(1180px, 100%); display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 auto 26px; }
.composed-view-header > div:first-child { max-width: 790px; }
.composed-view-header span { color: var(--teal); font-size: 11.250px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.composed-view-header h1 { margin: 8px 0 7px; font-family: var(--font-ui); font-size: clamp(38.750px, 5vw, 62.500px); font-weight: 540; letter-spacing: -.045em; line-height: 1.02; }
.composed-view-header p { max-width: 690px; margin: 0; color: var(--muted); font-size: 15.000px; line-height: 1.6; }
.composed-view-header > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }
.composed-view-header button { min-height: 37px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 999px; font-size: 11.250px; font-weight: 800; }
.composed-view-header button.secondary { border: 1px solid var(--line-strong); background: white; }
.composed-view-header button.primary { border: 1px solid var(--ink); background: var(--ink); color: white; }
.composed-view-header button svg { width: 13px; height: 13px; }
.composed-canvas { width: min(1180px, 100%); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; margin: auto; animation: canvas-in .35s cubic-bezier(.16, 1, .3, 1); }
.composed-canvas > * { grid-column: 1 / -1; }
/* Authored content must paint before an entry animation can advance. */
@keyframes canvas-in { from { transform: translateY(9px); } }

.composer-layout { min-width: 0; display: grid; grid-template-columns: repeat(var(--composer-columns), minmax(0, 1fr)); gap: 15px; }
.composer-layout.is-stack { grid-template-columns: 1fr; }
.composer-layout > .composer-block-heading { grid-column: 1 / -1; }
.composer-block-heading { margin-bottom: 3px; }
.composer-block-heading h2 { margin: 0; font-family: var(--font-ui); font-size: 26.250px; font-weight: 560; letter-spacing: -.025em; }
.composer-block-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12.500px; line-height: 1.55; }
.composer-card { min-width: 0; padding: 19px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: white; box-shadow: 0 3px 10px rgba(28, 35, 31, .035); }
.composer-heading { padding: 12px 2px 3px; }
.composer-heading > span { color: var(--component-accent, var(--teal)); font-size: 10.000px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.composer-heading h2 { max-width: 850px; margin: 6px 0; font-family: var(--font-ui); font-size: 35.000px; font-weight: 560; letter-spacing: -.035em; }
.composer-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13.750px; line-height: 1.65; }
.composer-text > p { margin: 8px 0 0; color: #535d58; font-family: var(--font-ui); font-size: 17.500px; line-height: 1.72; }
.composer-text .composer-text-markdown p { margin: 8px 0 0; color: #535d58; font-family: var(--font-ui); font-size: 17.500px; line-height: 1.72; }
.composer-text .composer-text-markdown .chat-table { margin: 12px 0 0; }
.composer-metric { position: relative; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; }
.composer-metric::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--component-accent, var(--teal)); content: ""; }
.composer-metric > span { color: var(--muted); font-size: 10.000px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.composer-metric > strong { margin-top: 8px; font-family: var(--font-ui); font-size: 40.000px; font-weight: 560; letter-spacing: -.04em; }
.composer-metric > p { margin: 7px 0 0; color: var(--muted); font-size: 11.250px; line-height: 1.5; }
.composer-callout { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 17px 19px; border: 1px solid color-mix(in srgb, var(--component-accent, var(--teal)) 25%, white); border-radius: 15px; background: var(--component-soft, var(--teal-soft)); }
.composer-callout > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: white; color: var(--component-accent, var(--teal)); }
.composer-callout > span svg { width: 16px; height: 16px; }
.composer-callout .composer-block-heading h2 { font-size: 21.250px; }
.composer-callout p { margin: 5px 0 0; color: #52615b; font-size: 12.500px; line-height: 1.6; }

.composer-table-card { padding: 0; }
.composer-table-card > .composer-block-heading { padding: 18px 19px 13px; }
.composer-table-wrap { overflow: auto; }
.composer-table { width: 100%; }
.composer-table-card table { width: 100%; border-collapse: collapse; font-size: 12.500px; text-align: left; }
.composer-table-card th { padding: 10px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--canvas); color: var(--muted); font-size: 9.375px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.composer-table-card td { padding: 13px 15px; border-bottom: 1px solid var(--line); color: #4f5954; line-height: 1.45; }
.composer-table-card tbody tr:last-child td { border-bottom: 0; }
.composer-table-card tbody tr:hover { background: #fcfcfb; }

.composer-bars { display: grid; gap: 13px; margin-top: 15px; }
.composer-bars > div { display: grid; gap: 6px; }
.composer-bars span { display: flex; justify-content: space-between; gap: 12px; font-size: 11.250px; }
.composer-bars span b { font-weight: 720; }
.composer-bars span em { color: var(--muted); font-style: normal; font-weight: 760; }
.composer-bars > div > i, .composer-progress > div > i { height: 8px; display: block; overflow: hidden; border-radius: 999px; background: #eef0ed; }
.composer-bars > div > i b, .composer-progress > div > i b { height: 100%; display: block; border-radius: inherit; background: var(--component-accent, var(--teal)); }
.composer-list > div { display: grid; margin-top: 10px; }
.composer-list section { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.composer-list section > i { position: relative; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--component-soft, var(--teal-soft)); color: var(--component-accent, var(--teal)); }
.composer-list section > i svg { width: 10px; height: 10px; }
.composer-list.is-timeline section > i::before { position: absolute; top: 5px; left: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--component-accent, var(--teal)); content: ""; }
.composer-list.is-timeline section:not(:last-child) > i::after { position: absolute; top: 15px; bottom: -25px; left: 8px; width: 1px; background: var(--line-strong); content: ""; }
.composer-list section strong { font-size: 12.500px; }
.composer-list section p { margin: 4px 0 0; color: var(--muted); font-size: 11.250px; line-height: 1.5; }
.composer-list section > b { padding: 4px 7px; border-radius: 999px; background: var(--component-soft, var(--teal-soft)); color: var(--component-accent, var(--teal)); font-size: 9.375px; }
.composer-progress > div { display: grid; gap: 9px; margin-top: 12px; }
.composer-progress > div > span { display: flex; justify-content: space-between; gap: 15px; font-size: 12.500px; }
.composer-progress > div > span strong { color: var(--component-accent, var(--teal)); }
.composer-progress > div > p { margin: 0; color: var(--muted); font-size: 11.250px; }
.composer-field { display: grid; gap: 6px; }
.composer-field span { color: var(--muted); font-size: 10.000px; font-weight: 800; text-transform: uppercase; }
.composer-field input { height: 41px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: white; }
.composer-field input:focus { border-color: var(--component-accent, var(--teal)); box-shadow: 0 0 0 3px rgba(39, 119, 108, .09); }
.composer-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; padding: 0 15px; border: 1px solid var(--component-accent, var(--ink)); border-radius: 999px; background: var(--component-accent, var(--ink)); color: white; font-size: 11.250px; font-weight: 800; }
.composer-action svg { width: 13px; height: 13px; }
.composer-code pre { max-height: 360px; margin: 12px 0 0; overflow: auto; padding: 14px; border-radius: 10px; background: #202523; color: #e7ece9; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.composer-divider { width: 100%; margin: 5px 0; border: 0; border-top: 1px solid var(--line-strong); }
.tone-neutral { --component-accent: #59625d; --component-soft: #f2f3f2; }
.tone-teal, .tone-positive { --component-accent: var(--teal); --component-soft: var(--teal-soft); }
.tone-coral, .tone-danger { --component-accent: var(--coral); --component-soft: var(--coral-soft); }
.tone-lavender { --component-accent: var(--lavender); --component-soft: var(--lavender-soft); }
.tone-butter, .tone-warning { --component-accent: #9a771c; --component-soft: var(--butter-soft); }

.assistant-widget { position: fixed; z-index: 75; right: 20px; bottom: 20px; }
.assistant-backdrop { position: fixed; z-index: 73; inset: 0; background: rgba(8, 12, 10, .5); backdrop-filter: blur(1.5px); animation: assistant-shade-in .18s ease-out; }
@keyframes assistant-shade-in { from { opacity: 0; } }
.assistant-button { position: relative; z-index: 76; width: 58px; min-width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--brand-blue); border-radius: 50%; background: var(--brand-blue); color: var(--brand-blue-ink); box-shadow: 0 14px 34px rgba(24, 31, 27, .24); transition: .18s; }
.assistant-button:hover { box-shadow: 0 18px 38px rgba(24, 31, 27, .29); }
.assistant-button.is-open { border: 3px solid white; overflow: visible; background: white; color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 14px 34px rgba(24, 31, 27, .24); }
.assistant-button > svg { width: 23px; height: 23px; }
.assistant-button.is-open .assistant-avatar { position: relative; width: 100%; height: 100%; display: block; border-radius: 50%; background: url("./cofounder-feedback.png") center 42% / cover no-repeat var(--paper); }
.assistant-avatar i { position: absolute; right: -5px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 3px 8px rgba(24, 31, 27, .24); }
.assistant-avatar i svg { width: 10px; height: 10px; }
.assistant-panel { position: fixed; z-index: 74; top: 32px; right: 32px; bottom: 92px; left: 32px; width: auto; min-height: 520px; display: grid; grid-template-columns: 248px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(255, 255, 255, .99); box-shadow: 0 32px 90px rgba(7, 12, 9, .32); backdrop-filter: blur(18px); animation: assistant-in .24s cubic-bezier(.16, 1, .3, 1); }
@keyframes assistant-in { from { opacity: 0; transform: translateY(8px) scale(.975); } }
.assistant-sidebar { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f5f6f4; }
.assistant-sidebar > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.assistant-sidebar > header > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.assistant-sidebar > header strong { font-size: 15px; }
.assistant-sidebar > header button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: white; color: var(--muted); }
.assistant-sidebar > header button:hover { border-color: var(--teal); color: var(--teal); }
.assistant-sidebar > header button svg { width: 15px; height: 15px; }
.assistant-sidebar nav { display: grid; align-content: start; gap: 3px; flex: 1; min-height: 0; overflow-y: auto; padding: 10px 8px; }
.assistant-sidebar nav button { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px 9px; border: 0; border-radius: 10px; background: transparent; color: #525b57; text-align: left; }
.assistant-sidebar nav button:hover { background: white; }
.assistant-sidebar nav button.is-active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(28, 35, 31, .06); }
.assistant-sidebar nav button > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.assistant-sidebar nav button svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); }
.assistant-sidebar nav button strong { overflow: hidden; font-size: 11.25px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.assistant-sidebar nav button small { color: #89918d; font-size: 8.75px; }
.assistant-sidebar > footer { display: flex; align-items: center; gap: 6px; padding: 11px 13px; border-top: 1px solid var(--line); color: #858d89; font-size: 8.75px; }
.assistant-sidebar > footer svg { width: 12px; height: 12px; }
.assistant-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.assistant-chat > header { min-height: 68px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; align-items: center; gap: 10px; flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.assistant-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: white; }
.assistant-mark svg { width: 17px; height: 17px; }
.assistant-sidebar .assistant-mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 11px; font-weight: 850; }
.assistant-chat > header > div { min-width: 0; display: grid; gap: 2px; }
.assistant-chat > header small { color: var(--teal); font-size: 9.375px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.assistant-chat > header strong { overflow: hidden; font-family: var(--font-ui); font-size: 20.000px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.assistant-chat > header button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--muted); }
.assistant-chat > header button svg { width: 14px; height: 14px; }
.assistant-history { min-height: 130px; display: flex; flex: 1 1 auto; flex-direction: column; gap: 11px; overflow-y: auto; padding: 15px 14px 10px; }
.assistant-history article { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 8px; align-items: start; }
.assistant-history article > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 10.000px; font-weight: 850; }
.assistant-history article > p { justify-self: start; max-width: 470px; margin: 0; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--canvas); color: #4d5752; font-size: 12.500px; line-height: 1.55; }
.assistant-history article.is-user { grid-template-columns: minmax(0, 1fr) 27px; }
.assistant-history article.is-user > span { grid-column: 2; background: var(--ink); color: white; }
.assistant-history article.is-user > p { grid-row: 1; justify-self: end; border-radius: 12px 4px 12px 12px; background: var(--ink); color: white; }
.assistant-history .is-thinking p { display: flex; gap: 4px; padding-block: 13px; }
.assistant-history .is-thinking i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: think 1s infinite alternate; }
.assistant-history .is-thinking i:nth-child(2) { animation-delay: .2s; }.assistant-history .is-thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes think { to { opacity: .25; transform: translateY(-2px); } }
.assistant-prompts { display: grid; gap: 5px; flex: 0 0 auto; padding: 0 14px 10px; }
.assistant-prompts button { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #57615c; font-size: 11.250px; text-align: left; }
.assistant-prompts button:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.assistant-prompts svg { width: 12px; height: 12px; }
.artifact-list { max-height: 150px; flex: 0 0 auto; overflow-y: auto; margin: 0 14px 8px; border: 1px solid var(--line); border-radius: 11px; }
.artifact-list > header { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9.375px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.artifact-list > header b { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 10.000px; }
.artifact-list > button { width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-top: 1px solid var(--line); background: white; color: var(--muted); text-align: left; }
.artifact-list > button:first-of-type { border-top: 0; }
.artifact-list > button.is-active, .artifact-list > button:hover { background: var(--teal-soft); color: var(--teal); }
.artifact-list svg { width: 13px; height: 13px; }
.artifact-list strong, .artifact-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-list strong { color: var(--ink); font-size: 11.250px; }.artifact-list small { margin-top: 2px; font-size: 9.375px; }
.assistant-composer { flex: 0 0 auto; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: white; }
.assistant-error { margin: 0 0 7px; padding: 7px 9px; border-radius: 8px; background: var(--coral-soft); color: #9f4a3b; font-size: 10.625px; line-height: 1.45; }
.assistant-composer > label { position: relative; display: block; }
.assistant-composer textarea { width: 100%; min-height: 70px; max-height: 150px; resize: vertical; padding: 10px 46px 10px 11px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: var(--canvas); color: var(--ink); font: inherit; font-size: 12.500px; line-height: 1.5; }
.assistant-composer textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(39, 119, 108, .09); }
.assistant-composer label > button { position: absolute; right: 7px; bottom: 7px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: var(--teal); color: white; }
.assistant-composer label > button:disabled { opacity: .5; cursor: default; }
.assistant-composer label > button svg { width: 14px; height: 14px; }
.assistant-composer footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: #8b938f; font-size: 8.750px; }

.toast { position: fixed; z-index: 100; right: 82px; bottom: 25px; max-width: 360px; padding: 11px 14px; border-radius: 10px; background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(22, 29, 25, .22); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .2s; font-size: 12.500px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 300px; }
  .signal-card { grid-template-columns: 150px minmax(0, 1fr); }
  .signal-action { display: none; }
  .topnav .compose-nav span { display: none; }
  .composed-workspace { padding-inline: 24px; }
  #app:has(.assistant-panel) .composed-workspace { padding-right: 440px; }
}

/* Sign-in gate (Clerk PKCE flow runs in the system browser). */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--cream, #fafaf9); }
.signin-card { display: grid; gap: 14px; justify-items: start; max-width: 420px; padding: 36px 40px; border: 1px solid rgba(28, 25, 23, 0.1); border-radius: 18px; background: white; box-shadow: 0 18px 48px rgba(28, 25, 23, 0.08); }
.signin-card .brand { pointer-events: none; }
.signin-card h1 { font-size: 24px; font-weight: 830; letter-spacing: -0.02em; }
.signin-card p { font-size: 14.5px; line-height: 1.55; color: rgba(28, 25, 23, 0.72); }
.signin-button { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--ink, #1c1917); color: white; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.signin-button:disabled { opacity: 0.55; cursor: default; }
.signin-detail { font-size: 12.5px; color: rgba(28, 25, 23, 0.55); }
.account-id { display: grid; gap: 2px; padding: 10px 12px 8px; border-bottom: 1px solid rgba(28, 25, 23, 0.08); margin-bottom: 4px; }
.account-id strong { font-size: 13.5px; font-weight: 760; }
.account-id small { font-size: 11.5px; color: rgba(28, 25, 23, 0.55); overflow-wrap: anywhere; }

/* --- Agents surfaces — the standard workspace shell + the chain editor.
   List/runs/queue render as feed-panel + rail-panel like every entity page;
   the editor is a full-width Zapier-style vertical chain. ----------------- */
.agents-body { display: grid; gap: 12px; align-content: start; padding: 14px 16px 18px; }
.agent-card .signal-content > strong { font-size: 15.000px; }
.rail-actions { display: grid; gap: 7px; padding: 12px 13px 4px; }
.rail-actions .pill-button { width: 100%; justify-content: center; }
.rail-actions .pill-button.primary { border-color: var(--teal); background: var(--teal); color: white; }
.rail-actions .pill-button.primary:hover { border-color: #205f56; background: #205f56; }
.rail-actions .pill-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.agents-editor-error { margin: 10px 16px 0; flex: 0 0 auto; }
/* The editor keeps the standard rail but a little wider: node config lives
   in it below the action buttons. Two-class selector so it survives the
   1180px media override on .workspace. */
.workspace.workspace-wide-rail { grid-template-columns: minmax(0, 1fr) 400px; }
.rail-config { display: flex; flex-direction: column; gap: 12px; padding: 13px 14px 22px; }
.rail-name-input { width: 100%; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); font: inherit; font-size: 12.500px; outline: 0; }
.rail-name-input:focus { border-color: var(--teal); }
.pill-button.is-confirm { border-color: var(--coral); background: var(--coral-soft); color: #9f4a3b; }
.chain-node-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 10px; background: var(--component-soft, var(--teal-soft)); color: var(--node, var(--teal)); }
.chain-node-icon svg { width: 16px; height: 16px; }

/* The agent canvas: absolutely-positioned draggable nodes over a dot grid,
   one SVG underneath for the edges, config in the rail. The stage carries
   the zoom transform; the inner div is sized to the scaled stage so the
   scroll area tracks the zoom. */
.agents-canvas { position: relative; min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.canvas-palette { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 12px; border-bottom: 1px solid var(--line); background: white; }
.canvas-hint { margin-left: 6px; color: var(--teal); font-size: 11.875px; font-weight: 720; }
.agents-canvas-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; background: var(--canvas); }
.agents-canvas-scroll.is-panning { cursor: grabbing; }
.agents-canvas-inner { position: relative; }
.canvas-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: var(--canvas); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
/* width/height must be explicit: the global icon rule (svg { width: 18px }) would clamp the layer otherwise. */
.canvas-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.canvas-edges path { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.canvas-edges .edge-hit { pointer-events: stroke; stroke: transparent; stroke-width: 16; cursor: pointer; }
.canvas-edges .edge:hover .edge-line { stroke: var(--teal); }
.canvas-edges .edge-x { pointer-events: auto; opacity: 0; cursor: pointer; transition: opacity .12s; }
.canvas-edges .edge:hover .edge-x, .canvas-edges .edge-x:hover { opacity: 1; }
.canvas-edges .edge-x circle { fill: white; stroke: var(--line-strong); stroke-width: 1.5; }
.canvas-edges .edge-x:hover circle { stroke: var(--coral); }
.canvas-edges .edge-x path { stroke: var(--ink); stroke-width: 1.8; }
.canvas-edges .edge-x:hover path { stroke: var(--coral); }
.canvas-zoom { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; box-shadow: 0 4px 14px rgba(30, 38, 34, .12); }
.canvas-zoom button { min-width: 28px; height: 26px; padding: 0 7px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 12.500px; font-weight: 700; cursor: pointer; }
.canvas-zoom button:hover { background: var(--canvas); }
.canvas-zoom button svg { width: 13px; height: 13px; }
.canvas-quickadd { position: absolute; z-index: 7; display: grid; gap: 2px; min-width: 216px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: white; box-shadow: 0 14px 34px rgba(30, 38, 34, .2); }
.canvas-quickadd header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 8px 6px; border-bottom: 1px solid var(--line); }
.canvas-quickadd header small { color: var(--muted); font-size: 9.375px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.canvas-quickadd header span { color: var(--teal); font-size: 10.625px; font-weight: 750; }
.canvas-quickadd button { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 12.500px; font-weight: 720; text-align: left; cursor: pointer; }
.canvas-quickadd button:hover { background: var(--teal-soft); }
.canvas-quickadd button svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--teal); }
.canvas-quickadd button small { margin-left: auto; color: var(--muted); font-size: 10.625px; font-weight: 600; }
.canvas-node { --node: var(--teal); --node-soft: var(--teal-soft); position: absolute; width: 240px; padding: 12px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--node); border-radius: 12px; background: white; box-shadow: 0 2px 7px rgba(30, 38, 34, .07); }
.canvas-node.kind-trigger { --node: var(--lavender); --node-soft: var(--lavender-soft); }
.canvas-node.kind-condition { --node: #9a771c; --node-soft: var(--butter-soft); }
.canvas-node.kind-action.is-gated { --node: var(--coral); --node-soft: var(--coral-soft); }
.canvas-node .chain-node-icon { background: var(--node-soft); color: var(--node); }
.canvas-node.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(34, 39, 37, .14), 0 10px 24px -14px rgba(30, 38, 34, .4); }
.canvas-node.is-disconnected { border-style: dashed; border-left-style: solid; opacity: .88; }
.canvas-node.is-disconnected > header small { color: #b64f3b; }
.canvas-node { cursor: grab; user-select: none; }
.canvas-node:active { cursor: grabbing; }
.node-toolbar { position: absolute; top: -13px; right: 8px; z-index: 3; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; }
.canvas-node:hover .node-toolbar, .canvas-node.is-selected .node-toolbar { opacity: 1; }
.node-toolbar button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--muted); cursor: pointer; box-shadow: 0 2px 6px rgba(30, 38, 34, .12); }
.node-toolbar button:hover { color: var(--ink); border-color: var(--ink); }
.node-toolbar button svg { width: 12px; height: 12px; }
.canvas-node > header { position: relative; display: flex; align-items: center; gap: 9px; user-select: none; }
.canvas-node > header > div { min-width: 0; flex: 1; display: grid; gap: 1px; }
.canvas-node > header small { color: var(--muted); font-size: 9.375px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canvas-node > header strong { overflow: hidden; font-size: 13.750px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.canvas-node > p { margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: 11.250px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.canvas-gate { display: inline-flex; align-items: center; gap: 3px; color: #b64f3b; font-weight: 750; }
.canvas-gate svg { width: 10px; height: 10px; }
.canvas-branches { display: grid; gap: 4px; margin-top: 9px; }
.canvas-branch { position: relative; display: flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--canvas); }
.canvas-branch em { overflow: hidden; color: #745b12; font-size: 11.250px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.port { position: absolute; z-index: 2; width: 13px; height: 13px; border: 2px solid var(--line-strong); border-radius: 50%; background: white; cursor: pointer; transition: .12s; }
.port:hover { border-color: var(--teal); }
.port.is-fixed { width: 9px; height: 9px; cursor: default; pointer-events: none; }
.port.is-armed { border-color: var(--teal); background: var(--teal); }
.canvas-node > header .port-out { top: 50%; right: -21px; transform: translateY(-50%); }
.canvas-node > header .port-in { top: 50%; left: -21px; transform: translateY(-50%); }
.canvas-branch .port-out { top: 50%; right: -24px; transform: translateY(-50%); }
.agents-canvas.is-connecting .port-in:not(.is-fixed) { border-color: var(--coral); animation: port-pulse 1s infinite alternate; }
@keyframes port-pulse { to { transform: translateY(-50%) scale(1.3); } }
.canvas-edges path.is-temp { stroke: var(--teal); stroke-dasharray: 6 5; }
.palette-ghost { position: fixed; z-index: 999; padding: 8px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--teal); border-radius: 10px; background: white; box-shadow: 0 10px 26px rgba(30, 38, 34, .18); font-size: 12.500px; font-weight: 750; pointer-events: none; }
.rail-config h3 { margin: 0; color: var(--muted); font-size: 10.625px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.drawer-note { margin: 0; color: var(--muted); font-size: 11.875px; line-height: 1.55; }
.drawer-note b { color: var(--ink); }
.drawer-branch { display: flex; align-items: center; gap: 6px; }
.drawer-branch select { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; font-size: 12.500px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.agents-editor .agents-test { flex: 0 0 auto; max-height: 260px; overflow-y: auto; margin: 0; padding: 12px 16px 16px; }
.agents-no-event { margin-top: 10px; }
.agents-no-event .pill-button { margin-top: 9px; width: auto; }
.agents-empty { margin: 8px 0; }
.agents-row { cursor: pointer; }
.agents-row:hover td { background: color-mix(in srgb, var(--teal-soft) 40%, transparent); }
.agents-row-action svg { width: 14px; height: 14px; color: var(--muted); }
.agent-badge { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.agent-badge.is-on, .agent-badge.status-done, .agent-badge.status-executed, .agent-badge.status-approved { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.agent-badge.status-failed, .agent-badge.status-exec_failed { background: var(--coral-soft); color: var(--coral); border-color: transparent; }
.agent-badge.status-pending { background: var(--butter-soft); color: var(--ink); border-color: transparent; }
.agent-badge.status-queued, .agent-badge.status-running, .agent-badge.is-dry { background: var(--lavender-soft); color: var(--lavender); border-color: transparent; }
.run-pre { margin: 8px 0 0; padding: 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.run-pre code { font: inherit; }
.run-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.500px; color: #4f5954; }
.run-meta small { color: #8a928d; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.625px; }
.meeting-section h2.run-subhead { margin: 18px 0 8px; }
.run-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 7px 14px; margin: 0; }
.run-kv dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding-top: 1px; }
.run-kv dd { margin: 0; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.run-ids { margin-top: 14px; }
.run-ids dd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: #6b736e; }
.agents-queue { display: flex; flex-direction: column; gap: 12px; }
.agents-queue-filters { padding: 0 4px; }
.agents-proposal header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.agents-proposal header em { margin-left: auto; font-style: normal; font-size: 12px; }
.agents-proposal footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.agents-proposal footer span { display: inline-flex; gap: 8px; }
.agents-proposal footer button { border-radius: 10px; padding: 7px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; gap: 6px; }
.agents-proposal footer button.primary { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.agents-proposal footer button svg { width: 14px; height: 14px; }
.agents-error { color: var(--coral); }
.linkish { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font-size: 12px; }
.agents-filter-note { color: var(--muted); font-size: 13px; padding: 0 4px; }
.agent-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.500px; color: var(--muted); }
.agent-field span small { font-weight: 400; }
.agent-field input, .agent-field select, .agent-field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; color: var(--ink); background: var(--paper); }
.agent-field textarea { resize: vertical; }
.agents-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.agent-field-wide { grid-column: 1 / -1; }
.agents-test { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.agents-test header p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.agents-test-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.agents-test-results pre { margin: 6px 0 0; padding: 10px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 11px; max-height: 180px; }
.agent-detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.agent-detail-metrics article { display: grid; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas); }
.agent-detail-metrics strong { font-family: var(--font-ui); font-size: 30px; font-weight: 600; }
.agent-detail-metrics span { color: var(--muted); font-size: 11px; font-weight: 760; }
.agent-events-table > table { min-width: 720px; }
.agents-event-row { cursor: pointer; }
.agents-event-row:hover td { background: #f4f7f6; }
.agents-event-row.is-open td { background: #eef4f2; border-bottom-color: transparent; }
.agents-event-toggle { width: 28px; color: var(--muted); }
.agents-event-toggle svg { width: 13px; height: 13px; transition: transform .16s ease; }
.agents-event-row.is-open .agents-event-toggle svg { transform: rotate(90deg); }
.agents-event-detail > td { padding: 0 !important; background: #f8faf9; }
.agents-event-detail > td > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 16px 18px 20px 46px; border-bottom: 1px solid var(--line); }
.agents-event-detail section { min-width: 0; }
.agents-event-detail h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.agents-event-detail table { width: 100%; min-width: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: 10px; background: white; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.agents-event-detail th { width: 116px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--canvas); color: var(--muted); font-size: 10px; text-align: left; vertical-align: top; }
.agents-event-detail td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: top; }
.agents-event-detail tr:last-child th, .agents-event-detail tr:last-child td { border-bottom: 0; }
.agents-event-detail code { display: block; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; }

/* Client portal opening: the real app mark becomes the whole viewport, the
   opening question appears, then lands as the first turn in a chat. */
.client-portal-intro { position: fixed; z-index: 200; inset: 0; overflow: hidden; display: grid; place-items: center; background: #293842; color: #17201c; }
.client-portal-exit { position: fixed; z-index: 10; top: 24px; right: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(23,32,28,.12); border-radius: 50%; background: rgba(255,255,255,.74); color: #1d2421; opacity: 0; backdrop-filter: blur(12px); animation: portal-exit-in .45s ease 6.55s forwards; }
.client-portal-exit svg { width: 16px; height: 16px; }
.portal-logo { position: absolute; z-index: 1; width: clamp(190px, 24vw, 360px); aspect-ratio: 1; transform-origin: center; animation: portal-logo-journey 4.5s cubic-bezier(.72,0,.2,1) forwards; }
.portal-logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 20px 35px rgba(7,16,23,.34)) drop-shadow(0 0 16px rgba(224,238,247,.26)); }
.portal-question-intro { position: relative; z-index: 2; max-width: 1040px; margin: 0; padding: 0 40px; color: white; font-family: var(--font-ui); font-size: clamp(54px, 7vw, 112px); font-weight: 400; line-height: .98; letter-spacing: -.055em; text-align: center; opacity: 0; transform: translateY(24px); animation: portal-question-sequence 2.9s cubic-bezier(.2,.8,.2,1) 3.55s forwards; }
.portal-chat { position: absolute; z-index: 3; inset: 0; display: grid; grid-template-rows: 68px minmax(0, 1fr) auto; background: #f8f8f6; opacity: 0; transform: translateY(22px) scale(.985); pointer-events: none; animation: portal-chat-in .85s cubic-bezier(.2,.8,.2,1) 6.25s forwards; }
.portal-chat > header { display: flex; align-items: center; gap: 10px; padding: 0 28px; border-bottom: 1px solid rgba(23,32,28,.09); }
.portal-chat > header strong { font-size: 14px; font-weight: 820; }
.portal-chat-mark { position: relative; width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; overflow: hidden; border-radius: 10px; background: #1d2421; color: white; }
.portal-chat-mark svg { width: 23px; height: 23px; display: block; color: #e8edf0; }
.portal-conversation { width: min(820px, calc(100% - 48px)); align-self: stretch; justify-self: center; overflow-y: auto; }
.portal-conversation-in { min-height: 100%; display: grid; gap: 20px; align-content: center; padding: 36px 0; }
.portal-assistant-message { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 14px; }
.portal-assistant-message p { margin: 3px 0 0; font-family: var(--font-ui); font-size: clamp(28px, 3vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
.portal-assistant-message.followup p { margin: 5px 0 0; font-family: inherit; font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; color: #1d2421; }
.portal-assistant-message.followup small { display: block; margin-top: 3px; color: #7b837f; font-size: 12.5px; }
@keyframes portal-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.portal-user-msg { justify-self: end; max-width: 72%; padding: 10px 15px; border-radius: 15px 15px 5px 15px; background: #1d2421; color: #f4f6f7; font-size: 13.5px; font-weight: 650; animation: portal-rise .4s ease both; }
.portal-typing { display: inline-flex; gap: 5px; padding: 8px 0 4px 48px; animation: portal-rise .3s ease both; }
.portal-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5a0; animation: ptp 1s infinite; }
.portal-typing i:nth-child(2) { animation-delay: .15s; }
.portal-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ptp { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.portal-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 48px; animation: portal-rise .4s ease both; }
.portal-opts.spent { opacity: .45; pointer-events: none; }
.portal-opts .popt { padding: 9px 14px; border: 1px solid rgba(23,32,28,.18); border-radius: 999px; background: white; color: #1d2421; font: inherit; font-size: 13px; font-weight: 650; transition: border-color .15s, transform .15s, background .15s; }
.portal-opts .popt:hover { border-color: #4f857d; }
.portal-opts.multi .popt.on { background: #1d2421; border-color: #1d2421; color: #fff; }
.portal-opts.multi .popt.on::before { content: "✓ "; font-weight: 800; }
.portal-buildrow { padding-left: 48px; animation: portal-rise .4s ease both; }
.pbuild { padding: 11px 20px; border: 0; border-radius: 11px; background: #1d2421; color: #fff; font: inherit; font-size: 13.5px; font-weight: 750; box-shadow: 0 10px 24px rgba(23,32,28,.18); transition: transform .15s, box-shadow .15s; }
.pbuild:hover { box-shadow: 0 14px 30px rgba(23,32,28,.22); }
.pbuild:disabled { opacity: .4; transform: none; }
.portal-build { display: grid; gap: 7px; padding-left: 48px; animation: portal-rise .4s ease both; }
.portal-build span { display: flex; align-items: center; gap: 8px; color: #5c6663; font-size: 12.5px; font-weight: 650; animation: portal-rise .35s ease both; }
.portal-build span i { width: 7px; height: 7px; border-radius: 50%; background: #4f857d; }
.portal-suggestions { display: grid; gap: 8px; padding-left: 48px; }
.portal-suggestions.leaving { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.portal-suggestion-label { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; color: #1d2421; font-size: 13.5px; font-weight: 850; letter-spacing: -.01em; }
.portal-suggestion-label svg { width: 14px; height: 14px; color: #4f857d; }
.portal-suggestion-sub { margin: 0 0 4px; color: #7b837f; font-size: 12.5px; }
.portal-suggestion-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-suggestion-cards button { position: relative; min-height: 152px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 16px; border: 1px solid #344954; border-radius: 16px; background: linear-gradient(160deg, #31434e, #23323b); color: #f4f6f7; font: inherit; text-align: left; box-shadow: 0 16px 38px rgba(23,39,48,.16); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.portal-suggestion-cards button:hover { border-color: #4f857d; box-shadow: 0 22px 48px rgba(23,39,48,.24), 0 0 0 1px rgba(79,133,125,.35); }
.portal-suggestion-cards .ps-glyph { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(159,224,209,.13); font-size: 17px; }
.portal-suggestion-cards .ps-title { font-size: 14.5px; font-weight: 780; line-height: 1.3; letter-spacing: -.01em; }
.portal-suggestion-cards .ps-sub { color: #aebcc5; font-size: 12px; line-height: 1.45; }
.portal-suggestion-cards .ps-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #9fe0d1; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.portal-suggestion-cards .ps-go svg { width: 12px; height: 12px; transition: transform .18s ease; }
.portal-dash { display: grid; gap: 14px; animation: portal-rise .5s ease both; }
.portal-dash-head { display: flex; align-items: center; gap: 12px; }
.portal-dash-head h2 { margin: 0; color: #1d2421; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.portal-dash-head .live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e3f2ec; color: #2f6b5b; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-dash-head .live i { width: 7px; height: 7px; border-radius: 50%; background: #4f857d; animation: ptp 1.4s infinite; }
.portal-dash-head .back { margin-left: auto; padding: 7px 12px; border: 1px solid rgba(23,32,28,.14); border-radius: 9px; background: white; color: #1d2421; font: inherit; font-size: 12px; font-weight: 700; }
.portal-dash-head .back:hover { background: #f2f4f3; }
.portal-dash-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.portal-dash-meta span { padding: 5px 11px; border: 1px solid rgba(23,32,28,.1); border-radius: 999px; background: white; color: #5c6663; font-size: 11.5px; font-weight: 650; }
.portal-dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-stat { padding: 14px 16px; border: 1px solid rgba(23,32,28,.09); border-radius: 13px; background: white; box-shadow: 0 8px 22px rgba(23,32,28,.05); }
.portal-stat b { display: block; color: #1d2421; font-size: 22px; font-weight: 820; letter-spacing: -.03em; }
.portal-stat span { color: #7b837f; font-size: 11.5px; font-weight: 650; }
.portal-dash-panel { border: 1px solid rgba(23,32,28,.09); border-radius: 14px; background: white; box-shadow: 0 10px 26px rgba(23,32,28,.05); overflow: hidden; }
.portal-dash-panel > h3 { margin: 0; padding: 13px 16px; border-bottom: 1px solid rgba(23,32,28,.07); color: #7b837f; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid rgba(23,32,28,.06); font-size: 13px; }
.portal-row .pr-main { flex: 1; min-width: 0; }
.portal-row b { color: #1d2421; font-weight: 700; }
.portal-row .muted { margin-top: 2px; color: #7b837f; font-size: 12px; }
.portal-row .pill { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.portal-row .pill.ok { background: #e3f2ec; color: #2f6b5b; }
.portal-row .pill.warn { background: #fdf0e4; color: #a2611f; }
.portal-row .pill.info { background: #e8eefb; color: #3c5aa6; }
.portal-chat > footer { width: min(720px, calc(100% - 48px)); justify-self: center; display: grid; gap: 7px; padding: 0 0 24px; opacity: .78; transition: opacity .15s; }
.portal-chat > footer:focus-within { opacity: 1; }
.portal-chat > footer label { min-height: 52px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 0 9px 0 17px; border: 1px solid rgba(23,32,28,.13); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(23,32,28,.06); }
.portal-chat > footer label > svg { width: 18px; height: 18px; color: #4f857d; }
.portal-chat > footer input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.portal-chat > footer button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #1d2421; color: white; }
.portal-chat > footer button svg { width: 15px; height: 15px; }
.portal-chat > footer small { color: #7b837f; font-size: 10.5px; text-align: center; }
@keyframes portal-logo-journey { 0% { transform: scale(.56); opacity: 0; filter: blur(7px); } 15% { transform: scale(1); opacity: 1; filter: blur(0); } 43% { transform: scale(1); } 66% { transform: scale(7); opacity: 1; } 79% { transform: scale(10); opacity: 0; } 100% { transform: scale(13); opacity: 0; filter: blur(2px); } }
@keyframes portal-question-sequence { 0% { opacity: 0; transform: translateY(28px); } 20%, 67% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translate(calc(-50vw + 410px), -112px) scale(.43); } }
@keyframes portal-chat-in { to { opacity: 1; transform: none; pointer-events: auto; } }
@keyframes portal-exit-in { to { opacity: 1; } }
@media (max-width: 760px) { .portal-suggestion-cards { grid-template-columns: 1fr; } .portal-conversation-in { align-content: start; padding-top: 90px; } }
@media (prefers-reduced-motion: reduce) { .portal-logo, .portal-question-intro { display: none; } .portal-chat, .client-portal-exit { opacity: 1; transform: none; pointer-events: auto; animation: none; } }

/* ===== Portal signup journey (guided chat, "wizard in chat clothing") =====
   Mirrors frontend/website/signup-journey.html, classes prefixed pj- so they
   never collide with the workspace. The A-mark is inline SVG throughout —
   no raster, so nothing can paint an opaque square mid-animation. */
.portal-journey { position: fixed; z-index: 200; inset: 0; overflow-y: auto; background: #f5f7fb; color: #5c6b82; }
.pj-intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(1200px 700px at 50% 38%, #ffffff 0%, #eef2f8 62%, #e6ecf5 100%); transition: opacity .55s ease, visibility .55s; cursor: pointer; }
.pj-intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.pj-intro-mark { width: 148px; height: 148px; filter: drop-shadow(0 0 34px rgba(159,224,209,.28)); animation: pj-rise .6s .1s ease both; }
.pj-intro-mark path { fill: #9fe0d1; stroke: none; }
.pj-intro-word { margin-top: 22px; color: #1c273d; font-size: 15px; font-weight: 650; letter-spacing: .34em; text-transform: uppercase; text-align: center; opacity: 0; animation: pj-fillin .6s 1.25s ease forwards; }
.pj-intro-word small { display: block; margin-top: 10px; color: #8492a7; font-size: 11px; letter-spacing: .18em; font-weight: 550; }
@keyframes pj-fillin { to { opacity: 1; } }

/* Client-preview strip: sits between the onboarding and the full app shell
   once the journey completes — the same nav, the same pages, framed as the
   client's own dashboard. */
.client-portal-flag {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 22px;
  background: #e4f5ef; border-bottom: 1px solid #cdeee2;
  color: #2f6b5b; font-size: 12.5px; font-weight: 700;
}
.client-portal-flag small { color: #8492a7; font-weight: 600; }
.client-portal-flag button {
  margin-left: auto;
  padding: 5px 11px; border: 1px solid #cdeee2; border-radius: 8px;
  background: #fff; color: #2f6b5b; font: inherit; font-size: 11.5px; font-weight: 700;
}
.client-portal-flag button:last-child { margin-left: 0; }
.client-portal-flag button:hover { background: #f4faf8; }
.pj-topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #dfe5ed; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.pj-topbar-in { max-width: 860px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.pj-brand { display: inline-flex; align-items: center; gap: 9px; color: #1c273d; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.pj-brand svg { width: 24px; height: 24px; color: #9fe0d1; }
.pj-progress { display: flex; gap: 7px; margin: 0 auto; }
.pj-progress .pj-dot { width: 22px; height: 5px; border-radius: 3px; background: #d8dfe9; transition: background .3s ease; }
.pj-progress .pj-dot.done, .pj-progress .pj-dot.now { background: #3c917e; }
.pj-restart { border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; color: #5c6b82; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.pj-restart:hover { background: #f3f6fb; color: #1c273d; }
.pj-exit { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dfe5ed; border-radius: 50%; background: #fff; color: #5c6b82; }
.pj-exit:hover { color: #1c273d; background: #f3f6fb; }
.pj-exit svg { width: 14px; height: 14px; }
.pj-thread { max-width: 760px; margin: 0 auto; padding: 34px 20px 60px; display: flex; flex-direction: column; gap: 22px; }
.pj-msg { display: flex; gap: 12px; align-items: flex-start; animation: pj-rise .45s ease both; }
.pj-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #22385e, #1a2a47); border: 1px solid rgba(159,224,209,.25); color: #9fe0d1; }
.pj-avatar svg { width: 19px; height: 19px; }
.pj-avatar.thinking svg { animation: pj-pulse 1.1s ease-in-out infinite; }
@keyframes pj-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .55; } }
.pj-bubble { max-width: 560px; padding: 14px 17px; border-radius: 14px; border-top-left-radius: 5px; background: #fff; border: 1px solid #dfe5ed; color: #45576d; font-size: 15px; line-height: 1.55; }
.pj-bubble h1, .pj-bubble h2 { margin: 0 0 4px; color: #1c273d; font-family: var(--font-ui); font-weight: 500; letter-spacing: -.01em; font-size: 21px; line-height: 1.25; }
.pj-bubble .pj-sub { color: #8492a7; font-size: 13.5px; margin: 0; }
.pj-bubble b { color: #24456f; }
.pj-msg.user { justify-content: flex-end; }
.pj-msg.user .pj-bubble { border-radius: 14px; border-top-right-radius: 5px; background: #9fe0d1; border-color: transparent; color: #173755; font-weight: 600; font-size: 14.5px; }
@keyframes pj-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pj-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.pj-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a9b6c9; animation: pj-tp 1s infinite; }
.pj-typing i:nth-child(2) { animation-delay: .15s; }
.pj-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pj-tp { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.pj-choices { display: flex; flex-direction: column; gap: 10px; max-width: 560px; animation: pj-rise .45s .05s ease both; }
.pj-choices.spent { opacity: .45; pointer-events: none; filter: saturate(.4); }
.pj-opt { display: flex; gap: 13px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid #dfe5ed; background: #fff; color: #1c273d; transition: border-color .15s, background .15s, transform .15s; }
.pj-opt:hover { border-color: #3c917e; background: #f4faf8; }
.pj-opt .pj-glyph { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #e4f5ef; font-size: 17px; }
.pj-opt b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.pj-opt .pj-opt-sub { display: block; margin-top: 2px; color: #8492a7; font-size: 13px; line-height: 1.45; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 9px; max-width: 560px; animation: pj-rise .45s .05s ease both; }
.pj-chips.spent { opacity: .45; pointer-events: none; }
.pj-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1px solid #dfe5ed; background: #fff; color: #45576d; font-size: 13.5px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.pj-chip:hover { border-color: #3c917e; }
.pj-chip .pj-tick { display: none; width: 15px; height: 15px; border-radius: 50%; background: #173755; color: #9fe0d1; font-size: 10px; font-weight: 800; place-items: center; line-height: 1; }
.pj-chip.on { background: #9fe0d1; border-color: #9fe0d1; color: #173755; }
.pj-chip.on .pj-tick { display: grid; }
.pj-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; animation: pj-rise .45s .08s ease both; }
.pj-row.spent { opacity: .45; pointer-events: none; }
.pj-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid #9fe0d1; border-radius: 10px; background: #9fe0d1; color: #173755; font-size: 14px; font-weight: 700; transition: transform .15s, background .15s; }
.pj-cta:hover { background: #b2eadd; }
.pj-cta:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.pj-ghost { padding: 12px 16px; border: 1px solid #dfe5ed; border-radius: 10px; background: #fff; color: #5c6b82; font-size: 13.5px; font-weight: 600; }
.pj-ghost:hover { background: #f3f6fb; color: #1c273d; }
.pj-src-groups { display: flex; flex-direction: column; gap: 12px; max-width: 560px; animation: pj-rise .45s .05s ease both; }
.pj-src-groups.spent { opacity: .45; pointer-events: none; }
.pj-src-group { display: flex; gap: 12px; align-items: baseline; }
.pj-src-group > span { flex: 0 0 132px; color: #8492a7; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.pj-src-group .pj-chips { max-width: none; animation: none; }
.pj-src-groups .pj-chips.spent { opacity: 1; }
.pj-other-input { padding: 8px 12px; border-radius: 999px; border: 1px dashed #8492a7; background: #fff; color: #1c273d; font: inherit; font-size: 13px; outline: none; width: 185px; }
.pj-other-input:focus { border-color: #3c917e; }
.pj-other-input::placeholder { color: #8492a7; }
.pj-src-groups.spent .pj-other-input { display: none; }
.pj-examples { max-width: 560px; animation: pj-rise .45s .08s ease both; }
.pj-exp-toggle { padding: 8px 13px; border: 1px dashed #dfe5ed; border-radius: 8px; background: transparent; color: #8492a7; font-size: 12.5px; font-weight: 600; }
.pj-exp-toggle:hover { color: #1c273d; border-color: #8492a7; }
.pj-exp-list { display: none; margin-top: 8px; padding: 10px 12px; border: 1px dashed #dfe5ed; border-radius: 10px; background: #fafbfd; }
.pj-examples.open .pj-exp-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pj-exp-list .pj-ex { padding: 7px 11px; border-radius: 999px; border: 1px solid #dfe5ed; background: #fff; color: #5c6b82; font-size: 12.5px; font-weight: 550; }
.pj-freetext { max-width: 560px; display: grid; gap: 10px; animation: pj-rise .45s .05s ease both; }
.pj-freetext.spent { opacity: .45; pointer-events: none; }
.pj-freetext textarea { width: 100%; min-height: 96px; resize: vertical; padding: 13px 14px; border-radius: 11px; border: 1px solid #dfe5ed; background: #fff; color: #1c273d; font: inherit; font-size: 14.5px; line-height: 1.5; }
.pj-freetext textarea::placeholder { color: #8492a7; }
.pj-proposal { display: grid; gap: 12px; max-width: 600px; animation: pj-rise .45s .05s ease both; }
.pj-p-card { display: flex; gap: 14px; padding: 16px 17px; border-radius: 13px; border: 1px solid rgba(60,145,126,.35); background: linear-gradient(120deg, #e9f7f3, #f6fcfa); }
.pj-p-card .pj-glyph { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #9fe0d1; font-size: 18px; }
.pj-p-card b { display: block; color: #1c273d; font-size: 14.5px; letter-spacing: -.01em; }
.pj-p-card .pj-p-sub { display: block; margin-top: 3px; color: #5c6b82; font-size: 13px; line-height: 1.5; }
.pj-p-note { padding: 13px 16px; border-radius: 11px; font-size: 13px; line-height: 1.55; border: 1px dashed #dfe5ed; color: #5c6b82; background: #fafbfd; }
.pj-p-note b { color: #1c273d; }
.pj-auth-card { max-width: 400px; padding: 26px 24px; border-radius: 14px; background: #fff; color: #5c6b82; border: 1px solid #dfe5ed; box-shadow: 0 18px 44px rgba(35,58,96,.14); animation: pj-rise .45s .05s ease both; }
.pj-auth-card .pj-auth-brand { display: flex; align-items: center; gap: 8px; color: #1c273d; font-weight: 700; font-size: 16px; }
.pj-auth-card .pj-auth-brand svg { width: 21px; height: 21px; color: #24456f; }
.pj-auth-card h2 { margin: 16px 0 3px; font-family: inherit; font-size: 17px; font-weight: 700; color: #1c273d; letter-spacing: -.01em; }
.pj-auth-card .pj-auth-sub { font-size: 13px; color: #8492a7; margin-bottom: 18px; }
.pj-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; margin-bottom: 9px; border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; color: #1c273d; font-size: 14px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.pj-oauth:hover { background: #f7fafd; box-shadow: 0 3px 10px rgba(35,58,96,.09); }
.pj-a-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #8492a7; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pj-a-divider::before, .pj-a-divider::after { content: ""; flex: 1; height: 1px; background: #dfe5ed; }
.pj-a-email { display: flex; gap: 8px; }
.pj-a-email input { flex: 1; padding: 11px 12px; border: 1px solid #cfd8e3; border-radius: 8px; font: inherit; font-size: 14px; color: #1c273d; min-width: 0; }
.pj-a-email button { padding: 11px 15px; border: 0; border-radius: 8px; background: #24456f; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.pj-a-email button:hover { background: #2d5588; }
.pj-a-foot { margin-top: 18px; text-align: center; color: #8492a7; font-size: 11.5px; }
.pj-a-foot b { color: #6c63ff; font-weight: 700; }
.pj-a-sent { display: none; text-align: center; padding: 12px 0 4px; }
.pj-a-sent .pj-env { font-size: 30px; }
.pj-a-sent p { margin: 10px 0 0; font-size: 14px; color: #1c273d; font-weight: 600; }
.pj-a-sent small { display: block; margin-top: 6px; color: #8492a7; font-size: 12.5px; }
.pj-a-sent .pj-mock-advance { margin-top: 14px; background: none; border: 0; color: #24456f; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
@media (max-width: 720px) { .pj-progress .pj-dot { width: 14px; } .pj-bubble h1, .pj-bubble h2 { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .pj-intro { display: none; } .portal-journey * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* Portal reflects the completed onboarding: outcome tiles above the chat. */
.portal-setup { display: grid; gap: 9px; padding-left: 48px; box-sizing: border-box; }
.portal-setup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-setup-head p { margin: 0; color: #737d78; font-size: 10.5px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.portal-setup-head button { border: 0; background: none; color: #4f857d; font: inherit; font-size: 11.5px; font-weight: 700; text-decoration: underline; white-space: normal; text-align: right; }
.portal-setup-tile { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid rgba(79,133,125,.32); border-radius: 13px; background: #eef7f2; }
.portal-setup-tile .portal-setup-mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #dcefe4; color: #4f857d; }
.portal-setup-mark svg { width: 17px; height: 17px; }
.portal-setup-tile b { display: block; color: #17201c; font-size: 13.5px; }
.portal-setup-tile small { display: block; margin-top: 2px; color: #5d6a66; font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) { .portal-setup { padding-left: 0; } }

/* View runtime (EPIC-132.4): live-view controls, freshness, and per-block
   degradation. */
.view-live-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 48, 46, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.view-params {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.view-param {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(23, 48, 46, 0.72);
}
.view-param span {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.view-param input,
.view-param select {
  border: 1px solid rgba(23, 48, 46, 0.18);
  border-radius: 8px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  color: #17302e;
  max-width: 130px;
}
.view-freshness {
  margin-left: auto;
  font-size: 12px;
  color: rgba(23, 48, 46, 0.58);
}
.view-freshness.is-degraded {
  color: #ae3e2c;
}
.view-live-bar button[data-view-refresh] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.composer-degraded {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px dashed rgba(174, 62, 44, 0.4);
  background: #fdf3f1;
  color: #7c2d1f;
}
.composer-degraded svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.composer-degraded p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(124, 45, 31, 0.85);
}
.composer-degraded.is-loading {
  border-style: solid;
  border-color: rgba(23, 48, 46, 0.15);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(23, 48, 46, 0.55);
}

/* Email conversation: a reading surface with quiet background agent activity. */
.email-demo-label { color: #7d857f; font-size: 10px; white-space: nowrap; }
.email-reading { max-width: 1000px; margin: 0 auto; padding: 30px 32px 40px; }
.email-subject { padding: 0 0 25px; }
.email-subject h1 { margin: 9px 0 13px; font-size: clamp(23px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -.035em; font-weight: 720; }
.email-subject > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.email-label { margin-left: 5px; padding: 4px 8px; border-radius: 6px; background: #edf4ef; color: #416d5d; }
.email-avatar { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 50%; background: #eeeaf7; color: #796394; font-size: 11px; font-style: normal; font-weight: 750; }
.email-avatar.is-team { background: #e9f2ed; color: #477460; }
.email-earlier { margin-bottom: 16px; border: 1px solid #e5e9e5; border-radius: 12px; background: #f8faf8; }
.email-earlier summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.email-earlier summary > span { min-width: 0; flex: 1; display: grid; gap: 5px; }
.email-earlier strong { font-size: 12px; }
.email-earlier em { color: #7c837d; font-style: normal; font-weight: 400; }
.email-earlier small { overflow: hidden; color: #818781; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.email-earlier time, .email-letter time { margin-left: auto; color: #848b85; font-size: 10px; white-space: nowrap; }
.email-earlier summary > svg { width: 13px; color: #949d96; }
.email-earlier .email-body { padding: 8px 24px 24px 67px; }
.email-letter { margin-bottom: 22px; border: 1px solid #e1e7e2; border-radius: 14px; background: white; box-shadow: 0 3px 12px rgba(36, 64, 47, .025); }
.email-letter > header { display: flex; align-items: flex-start; gap: 12px; padding: 23px 24px 19px; }
.email-letter > header > div { min-width: 0; }
.email-letter > header strong { font-size: 13px; }
.email-address { display: inline-block; margin-left: 7px; color: #848b85; font-size: 10px; }
.email-letter > header p { margin: 6px 0 0; color: #909791; font-size: 10px; line-height: 1.5; }
.email-letter > header p span { color: #69766d; overflow-wrap: anywhere; }
.email-body { padding: 0 25px 24px; color: #435148; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.email-body p { margin: 0 0 17px; white-space: normal; }
.email-signature { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid #d8e4db; font-size: 11px; line-height: 1.7; }
.email-signature span { color: #8a938b; }
.email-attachments { padding: 18px 24px 22px; border-top: 1px solid #edf0ec; background: #fbfcfa; border-radius: 0 0 14px 14px; }
.email-attachments h2 { display: flex; gap: 7px; align-items: center; margin: 0 0 12px; color: #79857b; font-size: 10px; font-weight: 650; }
.email-attachments h2 svg { width: 13px; height: 13px; }
.email-attachments h2 span { color: #a0aaa1; }
.email-attachments > div { display: flex; flex-wrap: wrap; gap: 10px; }
.email-file { flex: 1 1 230px; min-width: 0; border: 1px solid #e1e7df; border-radius: 9px; background: white; }
.email-file summary { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; list-style: none; }
.email-file-type { display: grid; place-items: center; width: 32px; height: 38px; flex: 0 0 32px; border-radius: 5px; color: #b36d59; background: #fcf0ea; font-size: 8px; font-style: normal; font-weight: 800; }
.email-file-type.is-sheet { color: #497b61; background: #eaf4ed; }
.email-file summary > span { display: grid; gap: 5px; min-width: 0; flex: 1; }
.email-file strong { font-size: 11px; overflow-wrap: anywhere; }
.email-file small { color: #8a938b; font-size: 9px; }
.email-file svg { width: 13px; color: #91a095; }
.email-file pre { margin: 0; padding: 14px; border-top: 1px solid var(--line); font-family: inherit; font-size: 11px; line-height: 1.8; white-space: pre-wrap; color: #536459; }
.email-composer { border: 1px solid #cadcd0; border-radius: 14px; background: white; box-shadow: 0 4px 18px rgba(49, 87, 66, .045); overflow: hidden; }
.email-composer > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #eff2ee; }
.email-composer > header strong { display: flex; align-items: center; gap: 8px; color: #47765e; font-size: 12px; }
.email-composer > header svg { width: 14px; }
.email-composer > header > span { color: #7d887f; font-size: 10px; }
.email-composer > header b { font-weight: 400; color: #99a198; }
.email-reply-label { display: block; margin: 15px 20px 0; color: #7d897f; font-size: 10px; }
.email-composer .email-editor { display: block; width: 100%; min-height: 200px; padding: 13px 20px; border: 0; outline-offset: -3px; resize: vertical; background: transparent; color: #435148; font-family: inherit; line-height: 1.8; font-size: 13px; }
.email-composer .email-editor::placeholder { color: #9aa69d; }
.email-composer footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 13px 16px; background: #f8fbf8; border-top: 1px solid #eaf0e9; }
.email-composer footer > span { color: #929d94; font-size: 9px; flex: 1; }
.email-draft-button { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #dfd9ed; border-radius: 7px; background: #f6f2fa; color: #76628f; font-size: 10px; font-weight: 650; }
.email-draft-button svg { width: 13px; height: 13px; }
.email-composer .pill-button.primary { border-color: var(--teal); background: var(--teal); font-size: 10px; }
.email-composer .pill-button:disabled { opacity: .4; cursor: default; }
.email-composer button:focus-visible, .email-reading summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.email-agent-rail { border-top: 1px solid #dbe5dc; background: #fcfdfa; }
.email-agent-rail .rail-title { border-bottom-color: #e8ede6; }
.email-agent-rail .rail-title strong { font-size: 14px; }
.email-agent-rail .rail-title > .email-agent-count { width: 23px; height: 23px; border-radius: 50%; background: #eef3ed; color: #7d8b7e; font-size: 10px; }
.email-agent-summary { padding: 19px 17px; color: #617361; font-size: 11px; }
.email-agent-summary small { display: block; padding: 7px 0 0 12px; color: #778371; font-size: 9px; }
.email-live-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #7f9f78; }
.email-agent-proposal { margin: 0 12px 22px; padding: 15px; border: 1px solid #e4dfcf; border-radius: 12px; background: #fffdf7; }
.email-agent-name { display: flex; align-items: center; gap: 6px; color: #777c6c; }
.email-agent-name svg { width: 13px; height: 13px; }
.email-agent-name strong { font-size: 10px; }
.email-agent-name > span { margin-left: auto; color: #a3a694; font-size: 9px; }
.email-review-status { display: inline-block; margin-top: 17px; padding: 4px 7px; border-radius: 5px; background: #f7edce; color: #98752b; font-size: 9px; font-weight: 650; }
.email-agent-proposal h3 { font-size: 14px; line-height: 1.5; margin: 9px 0 7px; font-weight: 650; color: #4e594a; }
.email-agent-proposal p { color: #6e7864; font-size: 11px; line-height: 1.65; }
.email-crm-change { padding: 12px; margin: 15px 0; border: 1px solid #eee8d8; border-radius: 8px; background: white; }
.email-crm-change > span { font-size: 9px; color: #9b9c88; }
.email-crm-change > div { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 10px; }
.email-crm-change s { color: #9ba397; }
.email-crm-change svg { width: 12px; color: #aeb7a7; }
.email-crm-change strong { font-weight: 600; color: #52745a; }
.email-agent-evidence summary { display: flex; align-items: center; justify-content: space-between; color: #817952; font-size: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.email-agent-evidence svg { width: 12px; }
.email-agent-evidence blockquote { margin: 14px 0 0; padding-left: 10px; border-left: 2px solid #dfd5af; font-size: 11px; line-height: 1.6; color: #81866f; }
.email-quiet-runs { margin: 0 17px; }
.email-quiet-runs h3 { margin: 0 0 13px; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: #9ba493; font-weight: 600; }
.email-quiet-runs details { padding: 12px 0; border-top: 1px solid #e9eee5; }
.email-quiet-runs summary { display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; }
.email-run-check { color: #8aab8a; }
.email-run-check svg { width: 13px; height: 13px; }
.email-quiet-runs summary > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.email-quiet-runs strong { color: #7e8a79; font-size: 10px; font-weight: 550; }
.email-quiet-runs small { color: #778371; font-size: 9px; }
.email-quiet-runs summary > svg { width: 11px; color: #b0b9a8; }
.email-quiet-runs p { font-size: 10px; line-height: 1.6; color: #879581; padding-left: 22px; }
.email-agent-note { display: flex; gap: 8px; margin: 22px 17px; color: #a2ad99; font-size: 9px; line-height: 1.7; }
.email-agent-note svg { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .email-reading { padding: 24px 20px; }
  .email-address { display: block; margin: 4px 0 0; }
  .email-earlier time { display: none; }
  .email-letter > header { flex-wrap: wrap; }
}

/* Action-oriented email workspace; all actions are local mock interactions. */
.mail-workspace { grid-template-columns: minmax(0, 1fr) 370px; }
.mail-workspace .email-reading { padding: 26px 28px 36px; }
.mail-workspace .email-subject { padding-bottom: 22px; }
.mail-workspace .email-subject h1 { font-size: 27px; }
.mail-outcome { margin-bottom: 27px; padding: 20px; border: 1px solid #dce6df; border-radius: 13px; background: linear-gradient(125deg, #f1f7f3, #fafcf9); }
.mail-outcome > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mail-outcome > header > span { display: flex; align-items: center; gap: 7px; color: #51765f; font-size: 11px; font-weight: 650; }
.mail-outcome svg { width: 14px; height: 14px; }
.mail-outcome > header b { padding: 4px 8px; border-radius: 6px; background: #f5e9c9; color: #85672e; font-size: 9px; font-weight: 650; }
.mail-outcome > p { margin: 13px 0 20px; color: #344a3c; font-size: 15px; line-height: 1.6; letter-spacing: -.015em; }
.mail-next-steps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dce6dd; padding-top: 17px; gap: 20px; }
.mail-next-steps > div { display: flex; flex-direction: column; align-items: flex-start; }
.mail-next-steps > div + div { padding-left: 20px; border-left: 1px solid #dce6dd; }
.mail-next-steps > div > span { display: flex; align-items: center; gap: 6px; color: #7c8e7f; font-size: 8px; letter-spacing: .08em; }
.mail-next-steps strong { display: block; margin: 8px 0 12px; color: #4e6254; font-size: 11px; line-height: 1.65; font-weight: 550; }
.mail-next-steps button { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 6px 0; border: 0; background: transparent; color: #2d7867; font-size: 10px; font-weight: 650; text-align: left; }
.mail-next-steps button:hover { color: #174d40; text-decoration: underline; }
.mail-conversation-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 13px; }
.mail-conversation-label h2 { margin: 0; color: #667a6b; font-size: 11px; font-weight: 650; }
.mail-conversation-label > span { color: #8b978d; font-size: 9px; }
.mail-workspace .email-earlier summary { align-items: flex-start; }
.mail-workspace .email-earlier small { white-space: normal; line-height: 1.7; color: #6e7d72; }
.mail-workspace .email-earlier time { font-size: 9px; }
.mail-latest > summary { display: flex; align-items: flex-start; gap: 12px; padding: 19px; cursor: pointer; list-style: none; }
.mail-latest > summary > span { flex: 1; display: grid; gap: 8px; min-width: 0; }
.mail-latest > summary strong { font-size: 12px; }
.mail-latest > summary em { color: #8a978e; font-size: 10px; font-weight: 400; font-style: normal; }
.mail-latest > summary small { font-size: 12px; color: #52685a; line-height: 1.7; }
.mail-latest > summary b { color: #7a8c7f; font-size: 9px; font-weight: 500; }
.mail-latest > summary > svg { width: 13px; height: 13px; color: #849b8c; }
.mail-latest[open] > summary { border-bottom: 1px solid #e8eee8; margin-bottom: 8px; }
.mail-workspace .email-composer .email-editor { min-height: 150px; }
.mail-work-rail { display: flex; flex-direction: column; background: #f7f9f6; border: 1px solid #dce4dc; }
.mail-work-header { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 16px 18px; }
.mail-work-header > i { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #d6e3d8; border-radius: 10px; color: #537e62; background: #eef5ed; }
.mail-work-header h2 { margin: 0 0 4px; font-size: 15px; color: #354d3c; font-weight: 650; }
.mail-work-header div > span { color: #80907e; font-size: 9px; }
.mail-work-header > b { margin-left: auto; font-size: 8px; color: #7f917b; font-weight: 500; padding: 4px 6px; border: 1px solid #dfe7dc; border-radius: 5px; }
.mail-work-context { flex-shrink: 0; display: flex; align-items: center; gap: 10px; margin: 0 16px 14px; padding: 10px 12px; border: 1px solid #e1e7de; border-radius: 8px; background: #fff; }
.mail-work-context svg { color: #829880; width: 14px; height: 14px; }
.mail-work-context > span { display: grid; gap: 4px; color: #5d715b; font-size: 10px; font-weight: 600; }
.mail-work-context small { color: #869580; font-size: 9px; font-weight: 400; }
.mail-work-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 15px; scrollbar-width: thin; scrollbar-color: #cfd9cc transparent; }
.mail-work-intro { padding: 8px 3px 15px; }
.mail-work-intro h3 { margin: 0 0 9px; color: #4f684f; font-size: 14px; letter-spacing: -.02em; font-weight: 550; }
.mail-work-intro p { color: #73866f; font-size: 11px; line-height: 1.75; margin: 0; }
.mail-chat-message { margin: 15px 0; }
.mail-chat-message > span { display: block; margin-bottom: 7px; color: #7c9078; font-size: 9px; font-weight: 650; }
.mail-chat-message p { margin: 0; color: #53684f; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-chat-message.is-user { margin-left: 28px; padding: 12px 14px; border: 1px solid #dce7d8; border-radius: 11px 11px 3px 11px; background: #eaf2e5; }
.mail-chat-message.is-user p { color: #4e6644; }
.mail-work-suggestions { display: grid; gap: 7px; margin: 12px 0 20px; }
.mail-work-suggestions button { display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px solid #dfe7da; border-radius: 8px; background: #fff; text-align: left; color: #607b54; font-size: 10px; }
.mail-work-suggestions svg { width: 12px; height: 12px; flex-shrink: 0; }
.mail-work-suggestions svg:last-child { margin-left: auto; color: #9daa92; }
.mail-work-suggestions button:hover { border-color: #b7cab0; box-shadow: 0 3px 10px #344a3c0c; }
.mail-background-runs { border-top: 1px solid #e1e8dc; padding: 14px 0 4px; }
.mail-background-runs > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #7f9277; }
.mail-background-runs svg { width: 12px; height: 12px; }
.mail-background-runs > summary > span { flex: 1; font-size: 10px; }
.mail-background-runs small { display: block; padding-top: 5px; font-size: 9px; color: #8a9a80; }
.mail-background-runs p { display: grid; gap: 5px; margin: 13px 0; padding-left: 20px; font-size: 9px; color: #788d6e; line-height: 1.6; }
.mail-background-runs strong { font-weight: 550; color: #637b58; }
.mail-work-composer { flex-shrink: 0; margin: 0 12px 12px; border: 1px solid #c7d8bd; border-radius: 12px; background: white; box-shadow: 0 4px 15px #43593409; overflow: hidden; }
.mail-work-composer label { display: block; padding: 12px 13px 3px; color: #68855c; font-size: 9px; font-weight: 600; }
.mail-work-composer textarea { display: block; width: 100%; min-height: 75px; max-height: 170px; resize: vertical; padding: 7px 13px; border: 0; outline-offset: -3px; color: #4b6440; background: transparent; font: 11px/1.7 Inter, sans-serif; }
.mail-work-composer textarea::placeholder { color: #8b9d80; }
.mail-work-composer footer { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 10px 13px; }
.mail-work-composer footer span { color: #8b9a81; font-size: 8px; }
.mail-work-composer button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 8px; background: #698853; color: white; }
.mail-work-composer button:disabled { opacity: .35; cursor: default; }
.mail-work-card { margin: 16px 0; padding: 14px; border: 1px solid #dce4d3; border-radius: 11px; background: white; box-shadow: 0 3px 10px #3f503009; }
.mail-work-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mail-work-card > header > span { color: #829173; font-size: 8px; letter-spacing: .08em; }
.mail-work-card > header > b { padding: 4px 6px; border-radius: 5px; color: #97742d; background: #fbf1d7; font-size: 8px; font-weight: 500; }
.mail-work-card > header > b.is-done { color: #557346; background: #eaf3e4; }
.mail-work-card h3 { margin: 13px 0; color: #4b6140; font-size: 13px; line-height: 1.5; font-weight: 600; }
.mail-work-card ul { padding-left: 17px; color: #6a7c5d; font-size: 11px; line-height: 1.8; }
.mail-work-card li + li { margin-top: 6px; }
.mail-work-card details { border-top: 1px solid #e9eee3; padding-top: 12px; }
.mail-work-card summary { display: flex; align-items: center; justify-content: space-between; color: #80906e; font-size: 9px; cursor: pointer; }
.mail-work-card summary svg { width: 12px; }
.mail-work-card details p { color: #718063; font-size: 10px; line-height: 1.7; }
.mail-work-card > button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; padding: 9px; border: 1px solid #cbdabc; border-radius: 7px; background: #eff5e9; color: #607c48; font-size: 10px; font-weight: 600; }
.mail-work-card > button:hover { background: #e5eedc; }
.mail-work-card > button svg { width: 12px; height: 12px; }
.mail-work-receipt { display: flex; align-items: center; gap: 5px; margin: 12px 0 0; font-size: 9px; color: #65814f; }
.mail-work-receipt svg { width: 12px; height: 12px; }
.mail-work-rail button:focus-visible, .mail-work-rail summary:focus-visible, .mail-next-steps button:focus-visible { outline: 2px solid #698853; outline-offset: 2px; }
@media (max-width: 1100px) {
  .mail-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .mail-workspace .email-reading { padding: 22px 20px; }
  .mail-conversation-label { align-items: flex-start; flex-direction: column; gap: 5px; }
}
#app:has(.mail-workspace) .assistant-button:not(.is-open) { display: none; }

/* Separate reading, replying, and assistant work into focused sections. */
.email-subnav, .mail-panel-tabs { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e5e8ef; }
.email-subnav { margin: 0 0 26px; }
.email-subnav button, .mail-panel-tabs button { display: flex; align-items: center; gap: 7px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #737c8b; font-size: 12px; font-weight: 550; }
.email-subnav button[aria-current="page"], .mail-panel-tabs button[aria-current="page"] { color: #4165c0; border-bottom-color: #5378cf; }
.email-subnav button:hover, .mail-panel-tabs button:hover { color: #3558ac; }
.email-subnav button span, .mail-panel-tabs button span { padding: 2px 5px; border-radius: 5px; background: #edf1f8; color: #62749b; font-size: 9px; }
.email-detail:not([data-email-page="overview"]) .mail-outcome,
.email-detail:not([data-email-page="conversation"]) .mail-conversation-label,
.email-detail:not([data-email-page="conversation"]) .email-earlier,
.email-detail:not([data-email-page="conversation"]) .mail-latest,
.email-detail:not([data-email-page="conversation"]) .email-local-reply,
.email-detail[data-email-page="files"] .email-composer { display: none; }
.mail-workspace .email-composer .email-editor { min-height: 270px; }
.mail-work-rail { background: #fff; border-color: #e1e5ed; box-shadow: 0 4px 18px #22355b05; }
.mail-work-header { min-height: 79px; padding: 18px 20px; }
.mail-work-header > i { color: #5576c6; border-color: #e0e7f8; background: #f0f4ff; }
.mail-work-header h2 { color: #29364d; font-size: 15px; }
.mail-work-header div > span { color: #7d889b; font-size: 10px; }
.mail-work-header > b { color: #8390a5; border-color: #e2e7ef; }
.mail-panel-tabs { flex-shrink: 0; padding: 0 20px; gap: 28px; }
.mail-panel-tabs button { padding: 10px 2px 12px; font-size: 11px; }
.mail-work-context { margin: 16px 18px 5px; padding: 10px 12px; background: #f8f9fc; border-color: #edf0f5; }
.mail-work-context svg { color: #8c9ab4; }
.mail-work-context > span { color: #5c6c84; }
.mail-work-context small { color: #8996aa; }
.mail-work-scroll { padding: 0 18px 20px; scrollbar-color: #dae0eb transparent; }
.mail-work-intro { padding: 32px 7px 20px; }
.mail-chat-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 19px; border: 1px solid #dfe6fa; border-radius: 13px; background: linear-gradient(145deg,#eff5ff,#f7f2ff); color: #6580ca; }
.mail-chat-mark svg { width: 21px; height: 21px; }
.mail-work-intro h3 { color: #303d56; font-size: 21px; line-height: 1.35; letter-spacing: -.03em; font-weight: 620; max-width: 250px; }
.mail-work-intro p { color: #7a879c; font-size: 11px; line-height: 1.9; margin-top: 12px; }
.mail-work-rail:has(.mail-chat-message) .mail-work-intro { display: none; }
.mail-chat-message { margin: 22px 3px; }
.mail-chat-message > span { color: #7b8ba6; font-size: 10px; }
.mail-chat-message p { color: #485873; font-size: 12px; line-height: 1.85; }
.mail-chat-message.is-user { background: #eef3ff; border-color: #e1e9fc; margin-left: 27px; padding: 14px; }
.mail-chat-message.is-user p { color: #3e5485; }
.mail-work-suggestions { margin-top: 14px; }
.mail-work-suggestions button { border-color: #e5eaf3; padding: 13px 12px; border-radius: 10px; color: #52698e; font-size: 11px; }
.mail-work-suggestions button:hover { border-color: #bfcee9; background: #f9fbff; box-shadow: 0 3px 12px #253e7208; }
.mail-work-suggestions svg:last-child { color: #8fa2c5; }
.mail-work-composer { margin: 0 14px 14px; border-color: #d6dfef; border-radius: 14px; box-shadow: 0 5px 20px #3f5a8d0a; }
.mail-work-composer label { color: #7b89a2; font-size: 9px; padding: 14px 14px 4px; }
.mail-work-composer textarea { padding: 8px 14px; color: #344867; font-size: 12px; }
.mail-work-composer textarea::placeholder { color: #9aa5b8; }
.mail-work-composer footer span { color: #98a3b5; }
.mail-work-composer button { background: #5176cd; width: 32px; height: 32px; border-radius: 9px; }
.mail-work-composer button:not(:disabled):hover { background: #3f62b6; box-shadow: 0 3px 9px #5176cd30; }
.mail-results > header { padding: 25px 3px 6px; }
.mail-results h3 { color: #344762; font-size: 16px; font-weight: 600; margin: 0 0 7px; }
.mail-results > header p { color: #8793a7; font-size: 11px; line-height: 1.7; margin: 0; }
.mail-results-empty { display: grid; justify-items: center; text-align: center; padding: 55px 20px; color: #8e9ab0; }
.mail-results-empty > svg { width: 30px; height: 30px; margin-bottom: 17px; }
.mail-results-empty strong { color: #536582; font-size: 13px; }
.mail-results-empty p { font-size: 11px; line-height: 1.8; }
.mail-results-empty button { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #dce4f6; border-radius: 8px; color: #5477bd; background: #f7f9ff; font-size: 11px; }
.mail-result-link { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 18px; padding: 13px; border: 1px solid #dfe7f8; border-radius: 10px; background: #f7f9ff; color: #5273b9; text-align: left; }
.mail-result-link > span { flex: 1; font-size: 11px; font-weight: 600; }
.mail-result-link small { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; color: #8191ae; }
.mail-result-link svg { width: 15px; height: 15px; }
.mail-work-card { border-color: #e1e6ef; box-shadow: none; }
.mail-work-card h3 { color: #344967; }
.mail-work-card > header > span, .mail-work-card summary { color: #7a8ba8; }
.mail-work-card ul, .mail-work-card details p { color: #63748f; }
.mail-work-card details { border-color: #e8edf5; }
.mail-work-card > button { border-color: #d7e2f7; color: #4e70b8; background: #f0f5ff; }
.mail-work-card > button:hover { background: #e5eeff; }
.mail-background-runs { margin-top: 24px; border: 0; }
.mail-background-runs > summary { color: #617596; }
.mail-background-runs small { color: #8b9ab0; line-height: 1.7; }
.mail-background-runs p { padding: 17px 12px; border: 1px solid #e8ecf3; border-radius: 10px; margin: 12px 0; color: #8897ab; font-size: 10px; }
.mail-background-runs strong { color: #4d6181; font-size: 11px; }
.mail-work-rail:not([data-work-panel="chat"]) .mail-work-intro,
.mail-work-rail:not([data-work-panel="chat"]) .mail-work-messages,
.mail-work-rail:not([data-work-panel="chat"]) .mail-work-suggestions,
.mail-work-rail:not([data-work-panel="chat"]) .mail-result-link,
.mail-work-rail:not([data-work-panel="chat"]) .mail-work-composer,
.mail-work-rail:not([data-work-panel="chat"]) .mail-results,
.mail-work-rail:not([data-work-panel="activity"]) .mail-background-runs { display: none; }
.mail-work-rail button:focus-visible, .mail-work-rail summary:focus-visible, .email-subnav button:focus-visible { outline: 2px solid #6186d9; outline-offset: 3px; }
.mail-outcome { background: #fafbfe; border-color: #e3e8f1; }
.mail-outcome > header > span { color: #7182a1; }
.mail-outcome > p { color: #3c4a60; }
.mail-next-steps, .mail-next-steps > div + div { border-color: #e4e9f2; }
.mail-next-steps strong { color: #5d6b81; }
.mail-next-steps > div > span { color: #8b97a9; }
.mail-next-steps button { color: #5074bd; }
.mail-work-intro { padding: 20px 5px 8px; }
.mail-chat-mark { width: 32px; height: 32px; margin-bottom: 12px; border-radius: 10px; }
.mail-work-intro h3 { max-width: none; font-size: 19px; }
.mail-work-intro p { margin-top: 8px; }
.mail-work-composer textarea { min-height: 65px; }
.mail-work-context { margin-bottom: 0; }

/* Files are available directly and remain attached to their original messages. */
.email-detail:not([data-email-page="files"]) .email-files-panel { display: none; }
.email-files-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.email-files-panel h2 { margin: 0 0 8px; font-size: 17px; font-weight: 620; color: #3d4d67; }
.email-files-panel header p { margin: 0; color: #8995a7; font-size: 11px; line-height: 1.7; }
.email-files-panel header button { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 9px 11px; border: 1px solid #e0e7f3; border-radius: 8px; background: #f8faff; color: #5775af; font-size: 10px; }
.email-files-panel header button svg { width: 13px; height: 13px; }
.email-files-list { display: grid; gap: 12px; }
.email-files-list .email-file { border-color: #e2e7f0; }
.email-files-list .email-file summary { padding: 18px; }
.email-files-list .email-file strong { font-size: 13px; }
.email-files-list .email-file small { font-size: 10px; }
.mail-work-header > .mail-assistant-photo { width: 38px; height: 38px; flex-shrink: 0; object-fit: cover; object-position: center 42%; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #e0e6f0; }
.mail-chat-photo { display: block; width: 43px; height: 43px; border-radius: 50%; object-fit: cover; object-position: center 42%; margin-bottom: 13px; }
.mail-results:empty { display: none; }
.email-download-row { display: flex; align-items: stretch; overflow: hidden; }
.email-file-download { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 16px; border: 0; background: white; text-align: left; }
.email-file-download > span { display: grid; gap: 6px; min-width: 0; }
.email-file-download strong { color: #435574; }
.email-file-preview { display: grid; place-items: center; width: 46px; flex-shrink: 0; border: 0; border-left: 1px solid #edf0f6; background: #fafbfe; color: #6785bc; }
.email-file-preview svg { width: 17px; height: 17px; color: inherit; }
.email-file-download:hover, .email-file-preview:hover { background: #f3f7fe; }
.email-download-row:focus-within { outline: 2px solid #6186d9; outline-offset: 2px; }
.email-download-row button:focus-visible { outline: 2px solid #6186d9; outline-offset: -3px; }

/* Keep the latest source messages and the reply together on Overview. */
.email-detail:not([data-email-page="overview"]) .email-overview-exchange { display: none; }
.email-overview-exchange > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.email-overview-exchange h2 { margin: 0; color: #536780; font-size: 12px; font-weight: 650; }
.email-overview-exchange > header button { display: flex; align-items: center; gap: 7px; border: 0; padding: 5px 0; background: transparent; color: #6480b6; font-size: 10px; }
.email-overview-exchange > header button svg { width: 12px; height: 12px; }
.email-previous-message { margin-bottom: 12px; border: 1px solid #e6eaf0; border-radius: 11px; background: #fafbfc; }
.email-previous-message > summary { display: flex; gap: 11px; align-items: flex-start; padding: 17px; list-style: none; cursor: pointer; }
.email-previous-message > summary > span { min-width: 0; flex: 1; display: grid; gap: 8px; }
.email-previous-message strong { font-size: 11px; color: #56667d; }
.email-previous-message em { margin-left: 7px; font-size: 9px; font-style: normal; font-weight: 400; color: #8b98ac; }
.email-previous-message q { font-size: 12px; line-height: 1.75; color: #68778e; }
.email-previous-message small { font-size: 9px; color: #8798b4; }
.email-previous-message summary > svg { width: 12px; height: 12px; color: #91a0b7; }
.email-previous-message .email-body { padding: 12px 22px 22px; }
.email-latest-overview .email-body { font-size: 13px; line-height: 1.85; }
.email-draft-caption { display: flex; align-items: center; gap: 7px; padding: 12px 20px; background: #f8f6fc; color: #8a78a4; font-size: 10px; }
.email-draft-caption svg { width: 13px; height: 13px; }
.email-overview-exchange button:focus-visible, .email-previous-message summary:focus-visible { outline: 2px solid #6186d9; outline-offset: 3px; }
.email-detail[data-email-page="overview"] .mail-outcome { padding: 16px 20px; margin-bottom: 22px; }
.email-detail[data-email-page="overview"] .mail-outcome > p { margin: 10px 0 14px; font-size: 14px; }
.email-detail[data-email-page="overview"] .mail-next-steps { padding-top: 12px; }
.email-detail[data-email-page="overview"] .mail-next-steps strong { margin: 6px 0 7px; }
.email-overview-exchange { margin-bottom: 22px; }
.email-overview-exchange .email-letter { margin-bottom: 12px; }

.email-detail[data-email-page="overview"] .mail-outcome > p { margin-bottom: 0; }

/* Overview prioritizes replying; source messages expand only when needed. */
.email-overview-exchange { border: 1px solid #e1e7f0; border-radius: 11px; background: #fff; overflow: hidden; }
.email-overview-exchange > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; cursor: pointer; list-style: none; }
.email-overview-exchange > summary::-webkit-details-marker { display: none; }
.email-overview-exchange > summary > span { display: grid; gap: 6px; }
.email-overview-exchange > summary strong { color: #526680; font-size: 12px; font-weight: 600; }
.email-overview-exchange > summary small { color: #8493a8; font-size: 10px; }
.email-overview-exchange > summary svg { width: 14px; height: 14px; color: #8198bc; }
.email-overview-exchange[open] > summary { border-bottom: 1px solid #e7ecf4; }
.email-overview-exchange[open] > summary svg { transform: rotate(180deg); }
.email-exchange-content { padding: 14px; background: #fafbfd; }
.email-exchange-content .email-previous-message { margin-bottom: 0; }
.email-quick-reply { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 12px; border: 1px solid #d9e3f5; border-radius: 8px; background: #f1f5ff; color: #4c6fb8; font-size: 11px; font-weight: 600; }
.email-quick-reply svg { width: 13px; height: 13px; }
.email-quick-reply:hover { background: #e8efff; box-shadow: 0 3px 9px #466bb510; }
.email-quick-reply:focus-visible, .email-overview-exchange > summary:focus-visible { outline: 2px solid #6186d9; outline-offset: -3px; }
.email-detail[data-email-page="overview"] .email-subject { padding-bottom: 12px; }
.email-detail[data-email-page="overview"] .email-subnav { margin-bottom: 17px; }
.email-detail[data-email-page="overview"] .mail-outcome { margin-bottom: 14px; padding: 13px 16px; }
.email-detail[data-email-page="overview"] .mail-outcome > p { font-size: 12px; line-height: 1.7; margin-top: 8px; }
.email-detail[data-email-page="overview"] .email-overview-exchange { margin-bottom: 14px; }
.email-detail[data-email-page="overview"] .email-composer .email-editor { min-height: 185px; }

.email-composer .email-editor { cursor: text; caret-color: #426bc1; }
.email-composer .email-editor:focus { outline: none; background: #fdfcfb; }
.email-composer:focus-within { border-color: #c5c3bf; box-shadow: 0 2px 12px rgba(60, 55, 48, .06); }

.email-composer .email-editor::selection { background: #e4e0ea; color: #39404a; }

.email-editor { white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.email-editor:empty::before { content: attr(data-placeholder); color: #999; pointer-events: none; }
.email-editor ul, .email-editor ol { white-space: normal; padding-left: 24px; }
.email-context-sources { display: block; color: #86828d; font-size: 11px; line-height: 1.6; margin-top: 12px; }
.email-editor-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 8px 20px; border-top: 1px solid #efedf0; }
.email-editor-tools button, .email-format-options summary { background: #f8f7f9; border: 1px solid #e6e3e9; border-radius: 7px; padding: 6px 9px; color: #625a6e; font: inherit; font-size: 12px; cursor: pointer; }
.email-editor-tools button svg, .email-draft-files svg { width: 14px; height: 14px; vertical-align: middle; }
.email-format-options [role="toolbar"] { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; }
.email-draft-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.email-draft-files:empty { display: none; }
.email-draft-files > span { display: flex; gap: 8px; align-items: center; padding: 7px 10px; background: #f5f3f8; border-radius: 8px; }
.email-draft-files a { color: #615777; text-decoration: none; font-size: 12px; }
.email-draft-files small { color: #87808f; }
.email-draft-files button { border: 0; background: transparent; color: #74697d; cursor: pointer; }

.email-composer .email-editor { max-height: 240px; overflow-y: auto; }

.mail-workspace .email-composer .email-editor { min-height: 185px; max-height: 240px; }

/* A single-screen overview: context, latest exchange and reply share the available height. */
.email-detail > .feed-bar { min-height: 48px; height: 48px; padding: 0 18px; gap: 10px; }
.email-header-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; color: #37404a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-detail[data-email-page="overview"] .feed-scroll { display: flex; min-height: 0; overflow: hidden; }
.email-detail[data-email-page="overview"] .email-reading { display: grid; grid-template-rows: auto auto minmax(140px, .75fr) minmax(210px, 1.25fr); gap: 10px; flex: 1; min-width: 0; min-height: 0; padding: 12px 20px 14px; max-width: none; }
.email-detail[data-email-page="overview"] .email-subnav { margin: 0; padding: 0; min-height: 30px; }
.email-detail[data-email-page="overview"] .email-subnav button { padding: 5px 12px 9px; }
.email-detail[data-email-page="overview"] .mail-outcome { margin: 0; padding: 9px 12px; border-radius: 9px; }
.email-detail[data-email-page="overview"] .mail-outcome header { margin: 0; }
.email-detail[data-email-page="overview"] .mail-outcome > p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.email-detail[data-email-page="overview"] .email-context-sources { margin-top: 4px; font-size: 10px; line-height: 1.3; }
.email-detail[data-email-page="overview"] .email-overview-exchange { margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.email-exchange-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.email-exchange-heading strong { font-size: 12px; color: #4b5a70; }
.email-exchange-heading small { font-size: 10px; color: #8a91a0; }
.email-exchange-previous { font-size: 11px; color: #637189; }
.email-exchange-previous span { padding: 0 5px; color: #9aa1ae; }
.email-exchange-preview { font-size: 12px; line-height: 1.6; color: #465264; white-space: pre-wrap; overflow: auto; min-height: 0; }
.email-exchange-files { display: flex; gap: 7px; flex-shrink: 0; overflow-x: auto; margin-top: auto; }
.email-exchange-files button { display: flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 7px; border: 1px solid #e6e9ef; border-radius: 5px; background: #fafbfe; color: #687794; font-size: 10px; cursor: pointer; }
.email-exchange-files svg { width: 12px; height: 12px; }
.email-detail[data-email-page="overview"] .email-composer { display: flex; flex-direction: column; min-height: 0; margin: 0; position: relative; }
.email-detail[data-email-page="overview"] .email-composer > header { padding: 9px 12px; flex-shrink: 0; }
.email-detail[data-email-page="overview"] .email-draft-caption { padding: 4px 12px; font-size: 9px; flex-shrink: 0; }
.email-detail[data-email-page="overview"] .email-reply-label { display: none; }
.email-detail[data-email-page="overview"] .email-composer .email-editor { flex: 1; min-height: 45px; max-height: none; padding: 8px 12px; font-size: 12px; line-height: 1.6; }
.email-detail[data-email-page="overview"] .email-editor-tools { padding: 5px 12px; gap: 8px; flex-shrink: 0; }
.email-detail[data-email-page="overview"] .email-editor-tools button, .email-detail[data-email-page="overview"] .email-format-options summary { padding: 4px 7px; font-size: 11px; }
.email-detail[data-email-page="overview"] .email-format-options[open] [role="toolbar"] { position: absolute; bottom: 80px; left: 12px; right: 12px; padding: 10px; background: #fff; border: 1px solid #e4dfec; border-radius: 9px; box-shadow: 0 6px 24px #33333318; z-index: 3; }
.email-detail[data-email-page="overview"] .email-composer > footer { padding: 7px 12px; flex-shrink: 0; }
.email-detail[data-email-page="overview"] .email-composer > footer .pill-button { padding: 7px 12px; min-height: 30px; }
.email-detail[data-email-page="overview"] .email-draft-files { flex-wrap: nowrap; flex-shrink: 0; overflow-x: auto; padding: 0 12px 5px; }
.email-detail[data-email-page="overview"] .email-draft-files > span { white-space: nowrap; padding: 3px 7px; }
@media (max-height: 620px), (max-width: 760px) {
  .email-detail[data-email-page="overview"] .feed-scroll { overflow-y: auto; }
  .email-detail[data-email-page="overview"] .email-reading { display: flex; flex-direction: column; }
  .email-detail[data-email-page="overview"] .email-overview-exchange { min-height: 140px; }
  .email-detail[data-email-page="overview"] .email-composer { min-height: 240px; }
}

/* Overview reads like a conversation above a docked composer. */
.email-detail[data-email-page="overview"] .email-reading { grid-template-rows: auto auto minmax(130px, 1fr) 196px; gap: 10px; }
.email-detail[data-email-page="overview"] .mail-outcome { background: #f7f5f0; border-color: #eae5da; box-shadow: none; }
.email-detail[data-email-page="overview"] .mail-outcome > p { font-size: 13px; line-height: 1.55; }
.email-detail[data-email-page="overview"] .email-overview-exchange { padding: 0; gap: 0; border: 0; background: #f5f6f8; border-radius: 10px; }
.email-overview-exchange .email-exchange-heading { padding: 9px 14px; border-bottom: 1px solid #e3e6ec; background: #eef0f4; flex-shrink: 0; }
.email-exchange-heading strong { font-size: 13px; }
.email-exchange-heading small { font-size: 11px; }
.email-thread-viewport { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; scroll-padding: 12px; }
.email-thread-viewport:focus-visible { outline: 1px solid #a6a0b1; outline-offset: -2px; }
.email-thread-message { padding: 16px 18px; background: white; border: 1px solid #e4e7ec; border-radius: 10px; margin-bottom: 14px; }
.email-thread-message:last-child { margin-bottom: 0; }
.email-thread-message.is-team { background: #fafbfd; }
.email-thread-message.is-client { border-left: 3px solid #aaa0c2; }
.email-thread-message > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.email-thread-message strong { color: #424a59; font-size: 14px; }
.email-thread-message time, .email-thread-message > small { font-size: 11px; color: #858b98; }
.email-thread-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #424a55; font-size: 14px; line-height: 1.75; margin: 14px 0; }
.email-thread-message .email-exchange-files { margin-top: 10px; flex-wrap: wrap; }
.email-thread-message .email-exchange-files button { font-size: 11px; padding: 6px 8px; }
.email-detail[data-email-page="overview"] .email-composer { border: 1px solid #cbc5d7; box-shadow: 0 -3px 16px #3e304909; background: #fff; overflow: visible; }
.email-detail[data-email-page="overview"] .email-composer > header { background: #f8f5fc; border-radius: 11px 11px 0 0; padding: 8px 12px; gap: 15px; }
.email-detail[data-email-page="overview"] .email-composer > header > strong { color: #6d587f; font-size: 13px; white-space: nowrap; }
.email-detail[data-email-page="overview"] .email-draft-caption { display: none; }
.email-detail[data-email-page="overview"] .email-composer .email-editor { font-size: 14px; line-height: 1.65; min-height: 45px; }
.email-recipient-editor { position: relative; flex: 1; min-width: 0; font-weight: normal; }
.email-recipient-editor > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #756b80; font-size: 11px; }
.email-recipient-editor > summary::-webkit-details-marker { display: none; }
.email-recipient-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.email-recipient-editor > summary b { font-size: 11px; font-weight: 500; color: #775c98; }
.email-recipient-fields { position: absolute; bottom: calc(100% + 12px); right: 0; width: min(440px, 65vw); z-index: 5; padding: 14px; border: 1px solid #ded7e7; border-radius: 10px; background: white; box-shadow: 0 8px 28px #44325222; }
.email-recipient-fields label { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: #756681; font-size: 12px; }
.email-recipient-fields input { flex: 1; min-width: 0; border: 1px solid #e4deeb; border-radius: 6px; padding: 8px; font: inherit; color: #48404f; background: #fcfbfd; }
.email-recipient-fields input:focus { outline: 1px solid #b8a7c9; }
.email-recipient-fields small { font-size: 10px; color: #8c8493; }
.email-recipient-fields button { float: right; border: 0; border-radius: 6px; padding: 6px 12px; background: #eee8f5; color: #6a517e; cursor: pointer; }
@media (max-height: 620px), (max-width: 760px) {
  .email-detail[data-email-page="overview"] .email-overview-exchange { height: 300px; flex-shrink: 0; }
  .email-detail[data-email-page="overview"] .email-composer { min-height: 196px; }
}

/* Reply opens in the reading flow; only the page scrolls while composing. */
.email-detail[data-email-page="overview"][data-composing="false"] .email-reading { grid-template-rows: auto auto minmax(160px, 1fr) auto; }
.email-start-reply { display: none; }
.email-detail[data-email-page="overview"][data-composing="false"] .email-composer { display: none; }
.email-detail[data-email-page="overview"][data-composing="false"] .email-start-reply { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border: 1px solid #d8cede; border-radius: 10px; background: #faf7fd; color: #6c507d; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.email-start-reply svg { width: 17px; height: 17px; }
.email-start-reply span { color: #93869f; font-size: 12px; }
.email-detail[data-email-page="overview"][data-composing="true"] .feed-scroll { overflow-y: auto; display: block; }
.email-detail[data-email-page="overview"][data-composing="true"] .email-reading { display: flex; flex-direction: column; min-height: 100%; }
.email-detail[data-email-page="overview"][data-composing="true"] .email-overview-exchange { flex-shrink: 0; }
.email-detail[data-email-page="overview"][data-composing="true"] .email-thread-viewport { overflow: visible; flex: none; }
.email-detail[data-email-page="overview"][data-composing="true"] .email-composer { flex: none; margin-top: 6px; }
.email-detail[data-email-page="overview"][data-composing="true"] .email-composer .email-editor { overflow: visible; height: auto; min-height: 110px; max-height: none; flex: none; resize: none; }
.email-collapse-reply { border: 0; background: transparent; color: #8a7896; font: inherit; font-size: 11px; cursor: pointer; margin-left: auto; }
.email-composer .email-recipient-editor { flex-basis: 50%; }
.email-thread-message { margin-left: calc(var(--reply-depth, 0) * 9px); }
.email-thread-message + .email-thread-message { position: relative; }
.email-thread-message + .email-thread-message::before { content: ""; position: absolute; left: -8px; top: -15px; height: 27px; width: 5px; border-left: 1px solid #d4cfdd; border-bottom: 1px solid #d4cfdd; border-radius: 0 0 0 4px; }
.email-thread-files { display: flex; flex-wrap: wrap; gap: 8px; }
.email-thread-files .email-file { flex: 1; min-width: 220px; }
.email-thread-files .email-file-download { padding: 9px 11px; gap: 8px; }
.email-thread-files .email-file-download strong { font-size: 12px; }
.email-thread-files .email-file-download small { font-size: 10px; }
.email-thread-files .email-file-preview { width: 36px; }
.email-local-file-preview { border-left: 1px solid #dcd5e6; padding-left: 7px; }
.email-recipient-fields { max-height: 360px; overflow-y: auto; }
.email-recipient-row { display: flex; gap: 9px; margin-bottom: 10px; align-items: flex-start; }
.email-recipient-row > label { width: 25px; padding-top: 8px; flex-shrink: 0; }
.email-recipient-entry { flex: 1; min-width: 0; }
.email-recipient-entry > input { width: 100%; margin-top: 5px; }
.email-recipient-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.email-recipient-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 4px 6px 4px 9px; background: #f0ebf6; color: #6f577e; font-size: 12px; }
.email-recipient-fields .email-recipient-chip button { float: none; padding: 0 3px; background: transparent; font-size: 16px; }
.email-recipient-suggestions:empty { display: none; }
.email-recipient-suggestions { border: 1px solid #e7dfed; border-radius: 6px; margin-top: 5px; }
.email-recipient-fields .email-recipient-suggestions button { float: none; display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px; background: white; text-align: left; }
.email-recipient-fields .email-recipient-suggestions button:hover { background: #f6f1fa; }
.email-recipient-suggestions strong { font-size: 12px; font-weight: 500; }

.email-action-bar { display: none; }
.email-detail[data-email-page="overview"][data-composing="false"] .email-action-bar { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.email-detail[data-email-page="overview"][data-composing="false"] .email-action-bar .email-start-reply { padding: 11px 16px; }
.email-action-bar > button, .email-remind-menu > summary { border: 1px solid #e3dfE8; background: #fff; border-radius: 9px; padding: 11px 16px; color: #72687c; font: inherit; font-size: 13px; cursor: pointer; list-style: none; }
.email-remind-menu { position: relative; margin-left: auto; }
.email-remind-menu > summary::-webkit-details-marker { display: none; }
.email-remind-menu > div { position: absolute; bottom: calc(100% + 8px); right: 0; width: 245px; padding: 10px; border: 1px solid #e1dbe9; background: white; box-shadow: 0 7px 24px #35244320; border-radius: 10px; z-index: 6; }
.email-remind-menu small { display: block; padding: 5px; color: #8e8298; font-size: 10px; }
.email-remind-menu button { display: block; width: 100%; text-align: left; padding: 9px; border: 0; border-radius: 6px; background: white; color: #665674; cursor: pointer; }
.email-remind-menu button:hover { background: #f6f2fa; }
.mail-activity-nav { padding: 20px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #ece9f0; }
.mail-activity-nav h3 { margin: 0 0 5px; font-size: 16px; color: #4d4658; }
.mail-activity-nav p { margin: 0; font-size: 11px; color: #93899d; line-height: 1.5; }
.mail-activity-nav button { display: flex; align-items: center; gap: 7px; white-space: nowrap; margin-left: auto; padding: 9px 11px; background: #f3edf9; border: 1px solid #e1d6ed; border-radius: 8px; color: #79608e; font-size: 12px; cursor: pointer; }
.mail-activity-nav svg { width: 13px; height: 13px; }
.mail-work-rail[data-work-panel="activity"] .mail-background-runs { margin: 0; padding: 0; }
.mail-work-rail[data-work-panel="activity"] .mail-background-runs p { border: 0; border-left: 2px solid #d7cde3; border-radius: 0; padding: 6px 0 6px 14px; margin: 20px 0; font-size: 12px; }
.mail-work-rail[data-work-panel="activity"] .mail-background-runs strong { font-size: 13px; color: #635572; }
.mail-work-rail[data-work-panel="activity"] .mail-work-context { display: none; }
/* Suggestions float over subsequent fields; their height never moves the input. */
.email-recipient-fields { overflow: visible; max-height: none; }
.email-recipient-entry { position: relative; }
.email-recipient-suggestions { position: absolute; top: 100%; left: 0; right: 0; max-height: 180px; overflow-y: auto; z-index: 12; background: white; box-shadow: 0 5px 18px #35244322; }

.email-link-popover { position: absolute; bottom: 90px; right: 12px; z-index: 8; width: min(360px, 85%); padding: 14px; border: 1px solid #ded5e7; border-radius: 10px; background: white; box-shadow: 0 6px 26px #38284622; }
.email-link-popover label { display: grid; gap: 5px; margin-bottom: 10px; font-size: 12px; color: #776482; }
.email-link-popover input { width: 100%; padding: 8px; border: 1px solid #e1dbe7; border-radius: 6px; font: inherit; color: #4e4359; }
.email-link-popover input:focus { outline: 1px solid #b8a7c9; }
.email-link-popover > div { display: flex; justify-content: flex-end; gap: 8px; }
.email-link-popover button { border: 0; border-radius: 6px; background: #f2ecf8; color: #715284; padding: 7px 12px; cursor: pointer; }
.email-editor a, .email-thread-body a, .email-body a { color: #765696; text-decoration: underline; }

.mail-work-composer textarea { caret-color: #79628e; }
.mail-work-composer textarea:focus, .mail-work-composer textarea:focus-visible { outline: none; box-shadow: none; }
.mail-work-composer:focus-within { border-color: #cfc6d9; box-shadow: 0 2px 12px #3f304608; }
.mail-activity-nav h3 { margin: 0; }

.mail-rail-tabs { display: grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; border-bottom: 1px solid #e8e2ee; }
.mail-rail-tabs button { padding: 13px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #93849f; font: inherit; font-size: 13px; cursor: pointer; }
.mail-rail-tabs button + button { border-left: 1px solid #eee9f3; }
.mail-rail-tabs button[aria-current="page"] { color: #715486; background: #f7f3fb; border-bottom-color: #a28ab5; }
.mail-rail-tabs button:hover { background: #faf7fc; }
.mail-rail-tabs button:focus-visible { outline: 1px solid #b8a7c9; outline-offset: -3px; }

/* Brief decision-relevant context, with evidence available in place. */
.email-detail[data-email-page="overview"] .email-reply-context { background: #fff; border: 0; border-bottom: 1px solid #e9e5ed; border-radius: 0; padding: 3px 2px 12px; overflow: visible; }
.email-reply-context > header > span { color: #817489; font-size: 11px; letter-spacing: .02em; }
.email-context-facts { display: grid; gap: 9px; margin-top: 10px; }
.email-context-fact { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.email-context-label { color: #948b9b; font-size: 11px; }
.email-context-fact p { display: inline; margin: 0; color: #77717e; font-size: 12px; line-height: 1.65; }
.email-context-fact p strong { color: #494251; font-weight: 650; }
.email-context-evidence { position: relative; display: inline-block; margin-left: 7px; }
.email-context-evidence > summary { list-style: none; display: inline-flex; gap: 3px; align-items: center; cursor: pointer; font-size: 10px; color: #8b77a0; border-bottom: 1px dotted #cfc2dd; }
.email-context-evidence > summary::-webkit-details-marker { display: none; }
.email-context-evidence summary svg { width: 10px; height: 10px; }
.email-context-evidence-card { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, 65vw); padding: 14px; z-index: 10; border: 1px solid #e0d8e8; border-radius: 9px; background: #fff; box-shadow: 0 6px 24px #40314920; }
.email-context-evidence-card > strong { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #665372; }
.email-context-evidence-card small { font-size: 10px; font-weight: normal; color: #9a90a2; }
.email-context-evidence-card p { display: block; white-space: pre-wrap; margin-top: 9px; font-size: 12px; }
.email-context-evidence-card button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #886a9f; font-size: 11px; margin-top: 12px; padding: 0; cursor: pointer; }
.email-context-evidence-card button svg { width: 12px; height: 12px; }
.email-context-evidence summary:focus-visible { outline: 1px solid #b8a7c9; outline-offset: 3px; }
@media (max-width: 760px) { .email-context-fact { grid-template-columns: 1fr; gap: 2px; } }

.email-reply-context > header > span { font-weight: 600; }
.email-context-label { font-weight: 500; }

/* Main email subnav stays anchored across Overview, Conversation and Files. */
.mail-workspace .email-detail .email-reading { padding: 12px 20px 14px; max-width: none; width: 100%; }
.mail-workspace .email-detail > .email-subnav { flex-shrink: 0; margin: 8px 20px 0; padding: 0; min-height: 34px; gap: 22px; }
.mail-workspace .email-detail > .email-subnav button { padding: 7px 12px 10px; font-size: 13px; font-weight: 550; }
.email-detail[data-email-page="overview"][data-composing="false"] .email-reading { grid-template-rows: auto minmax(150px, 1fr) auto; }
.email-detail[data-email-page="overview"] .email-reply-context { padding: 0; border: 1px solid #e5dfeb; border-radius: 10px; background: #fff; }
.email-reply-context > header { padding: 9px 13px; border-radius: 9px 9px 0 0; background: #f3eff7; border-bottom: 1px solid #e5dfeb; }
.email-reply-context > header h2 { margin: 0; font-size: 14px; font-weight: 600; color: #665473; }
.email-context-facts { margin: 0; padding: 12px 13px; gap: 10px; }
.email-context-label { font-size: 12px; color: #81748b; }
.email-context-fact p { font-size: 13px; color: #69616f; }
.email-context-evidence > summary { font-size: 11px; }
.email-exchange-heading strong { font-size: 14px; }
.email-exchange-heading small { font-size: 12px; }
.email-thread-body { font-size: 15px; }
.email-thread-message > header strong { font-size: 15px; }
.email-thread-message time, .email-thread-message > small { font-size: 12px; }
.email-action-bar > button, .email-remind-menu > summary { font-size: 14px; }

/* Inbox rows support scanning; folder navigation belongs in the side rail. */
.email-inbox .feed-bar { justify-content: space-between; padding: 20px 24px; }
.email-inbox .feed-bar h1 { margin: 0; font-size: 20px; color: #494150; font-weight: 600; }
.email-inbox .feed-bar > span { color: #968c9f; font-size: 12px; }
.email-inbox-rows { padding: 0 12px; }
.email-inbox-row { position: relative; border-bottom: 1px solid #ede9f0; }
.email-inbox-row[hidden] { display: none; }
.email-inbox-open { display: grid; gap: 7px; width: 100%; border: 0; background: transparent; text-align: left; padding: 20px 14px; cursor: pointer; color: #544b5e; font: inherit; }
.email-inbox-row:hover, .email-inbox-row:focus-within { background: #faf8fc; }
.email-inbox-open:focus-visible { outline: 1px solid #b8a7c9; outline-offset: -3px; }
.email-inbox-sender { display: flex; align-items: baseline; gap: 7px; font-size: 13px; min-width: 0; }
.email-inbox-sender strong { font-weight: 500; }
.email-inbox-sender > span { color: #8b8094; }
.email-inbox-sender time { margin-left: auto; color: #948b9b; font-size: 12px; white-space: nowrap; }
.email-inbox-subject { font-size: 15px; font-weight: 500; color: #554b60; }
.email-inbox-row.is-unread .email-inbox-subject, .email-inbox-row.is-unread .email-inbox-sender strong { font-weight: 650; color: #3f354c; }
.email-inbox-preview { font-size: 13px; line-height: 1.6; color: #827689; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-inbox-meta { display: flex; align-items: center; gap: 16px; min-height: 21px; color: #9a8ea4; font-size: 11px; }
.email-inbox-meta > span { display: inline-flex; gap: 5px; align-items: center; }
.email-inbox-meta .needs-reply { color: #92734b; }
.email-inbox-meta svg { width: 12px; height: 12px; }
.email-row-actions { position: absolute; right: 12px; bottom: 15px; display: flex; gap: 6px; opacity: 0; pointer-events: none; background: #faf8fc; padding-left: 10px; }
.email-inbox-row:hover .email-row-actions, .email-inbox-row:focus-within .email-row-actions, .email-row-actions:has(details[open]) { opacity: 1; pointer-events: auto; }
.email-row-actions button, .email-row-actions summary { border: 1px solid #e6dfee; border-radius: 6px; padding: 5px 8px; background: #fff; color: #877092; font: inherit; font-size: 11px; cursor: pointer; list-style: none; }
.email-row-actions summary::-webkit-details-marker { display: none; }
.email-row-actions details > div { position: absolute; right: 0; top: calc(100% + 5px); width: 210px; z-index: 8; background: #fff; border: 1px solid #e4dcea; border-radius: 9px; padding: 8px; box-shadow: 0 5px 18px #3e2c4d18; }
.email-row-actions details > div button { display: block; width: 100%; border: 0; text-align: left; padding: 8px; }
.email-row-actions small { display: block; color: #9c8ba6; font-size: 10px; padding: 5px; }
.email-inbox-rail > header { padding: 22px 24px 12px; }
.email-inbox-rail h2 { font-size: 16px; margin: 0; color: #5a4b66; }
.email-inbox-rail .rail-search { margin: 8px 20px 20px; }
.email-inbox-rail nav { display: grid; gap: 6px; padding: 0 16px; }
.email-inbox-rail nav button { display: flex; justify-content: space-between; padding: 13px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #85758f; font: inherit; font-size: 14px; cursor: pointer; }
.email-inbox-rail nav button[aria-current="page"] { background: #f5eff9; border-color: #e9dfef; color: #745583; font-weight: 600; }
.email-inbox-rail nav small { font-size: 12px; font-weight: 400; color: #a18cae; }
.email-inbox-rail > p { padding: 10px 28px; color: #a393ac; font-size: 11px; line-height: 1.6; }
@media (hover: none) { .email-row-actions { position: static; opacity: 1; pointer-events: auto; padding: 0 12px 12px; background: transparent; } }
.email-inbox-rail { border-top: 1px solid #e5dfeb; }

/* Meetings: a steady reading surface with work alongside the source. */
.meeting-workspace { grid-template-columns: minmax(0, 1fr) 350px; }
.meeting-detail .feed-bar { min-height: 66px; justify-content: flex-start; gap: 12px; }
.meeting-detail .feed-bar h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.meeting-subnav { display: flex; flex-shrink: 0; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; }
.meeting-subnav button { padding: 15px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; }
.meeting-subnav button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); font-weight: 650; }
.meeting-detail-body { width: 100%; max-width: 920px; padding: 24px 32px 40px; }
.meeting-meta { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
.meeting-meta > span { display: inline-block; margin-left: 10px; padding: 2px 8px; background: #f2f3f1; border-radius: 4px; font-size: 12px; }
.meeting-context { background: #f5f8f6; border: 1px solid #e0e8e2; border-radius: 10px; padding: 20px; }
.meeting-context h2, .meeting-section h2 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.meeting-context p, .meeting-section p { font-size: 15px; line-height: 1.65; white-space: pre-wrap; margin: 10px 0; }
.meeting-context details { font-size: 13px; color: var(--muted); }
.meeting-detail summary { cursor: pointer; line-height: 1.6; }
.meeting-section { padding-top: 28px; }
.meeting-section > small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.meeting-section-heading { display: flex; align-items: baseline; justify-content: space-between; }
.meeting-detail button:not(.tool-button):not([data-meeting-tab]), .meeting-work-rail button:not([data-meeting-panel]) { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; padding: 8px 12px; font-size: 13px; }
.meeting-source { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-top: 12px; background: #fcfcfb; }
.meeting-source .meeting-section { padding-top: 8px; }
.meeting-source h3 { font-size: 14px; }
.meeting-action { grid-template-columns: 22px minmax(0, 1fr); padding: 16px 0; align-items: start; }
.meeting-action input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--teal); margin-top: 3px; }
.meeting-action strong { font-size: 15px; }
.meeting-action small { font-size: 13px; line-height: 1.6; }
.meeting-action details { margin-top: 6px; font-size: 13px; }
.meeting-action label { display: grid; gap: 4px; margin: 10px 0; }
.meeting-action label input { padding: 9px; border: 1px solid var(--line-strong); border-radius: 5px; width: 100%; }
.meeting-editor-label { display: grid; gap: 8px; font-size: 13px; }
.meeting-editor-label textarea { width: 100%; min-height: 230px; resize: vertical; overflow: hidden; padding: 16px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 15px; line-height: 1.65; }
.meeting-note-preview { white-space: pre-wrap; }
.meeting-footer { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; }
.meeting-work-rail { border-top: 1px solid var(--line-strong); }
.meeting-assistant { min-height: 66px; display: flex; gap: 12px; align-items: center; padding: 12px 18px; }
.meeting-assistant img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.meeting-assistant strong { font-size: 14px; }
.meeting-assistant small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.meeting-work-rail .meeting-subnav { padding: 0; }
.meeting-work-rail .meeting-subnav button { width: 50%; }
.meeting-rail-scroll { flex: 1; min-height: 0; overflow: auto; padding: 20px; font-size: 14px; line-height: 1.6; }
.meeting-rail-caption { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.meeting-run { padding: 16px 0; border-top: 1px solid var(--line); }
.meeting-run h3 { font-size: 15px; margin: 6px 0; }
.meeting-run small { color: var(--muted); font-size: 12px; }
.meeting-run p { margin: 6px 0 14px; }
.meeting-chat-form { padding: 16px; border-top: 1px solid var(--line); }
.meeting-chat-form label { font-size: 12px; color: var(--muted); }
.meeting-chat-form textarea { margin-top: 8px; width: 100%; resize: vertical; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; font: inherit; font-size: 14px; line-height: 1.5; caret-color: var(--ink); }
.meeting-chat-form textarea:focus { outline: none; border-color: #858d86; box-shadow: none; }
.meeting-chat-form footer { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 8px; }
.meeting-chat-form small { font-size: 11px; color: var(--muted); }
.meeting-message { border-bottom: 1px solid var(--line); padding: 12px 0; }
.meeting-message p { white-space: pre-wrap; }
.meeting-list-workspace { grid-template-columns: 260px minmax(0, 1fr); }
.meeting-list-workspace .meeting-filter-rail { grid-column: 1; grid-row: 1; }
.meeting-list-workspace .feed-panel { grid-column: 2; grid-row: 1; }
.meeting-list-workspace .signal-card { padding: 18px; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 16px; }
.meeting-list-workspace .signal-chips, .meeting-list-workspace .entity-actions { display: none; }
.meeting-list-workspace .signal-content > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.meeting-list-workspace .signal-content > strong { font-size: 16px; }
.meeting-list-workspace .signal-card:hover, .meeting-workspace button:hover, .meeting-list-workspace button:hover, .topnav button:hover { transform: none; }
@media (max-width: 1100px) { .meeting-workspace { grid-template-columns: minmax(0, 1fr) 300px; } .meeting-detail-body { padding: 20px; } .meeting-list-workspace { grid-template-columns: 230px minmax(0, 1fr); } }
#app:has(.meeting-workspace) > .assistant-button { display: none; }
.meeting-workspace ~ .assistant-button { display: none; }
.meeting-footer a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; padding: 8px 12px; color: var(--ink); font-size: 13px; text-decoration: none; }
.meeting-context { padding: 16px 20px; }
.meeting-section { padding-top: 22px; }
#app:has(.meeting-workspace) .assistant-widget > .assistant-button { display: none; }
.meeting-run details { font-size: 13px; }
.meeting-run textarea { width: 100%; min-height: 160px; padding: 10px; font: inherit; line-height: 1.6; resize: vertical; border: 1px solid var(--line-strong); border-radius: 6px; }
.meeting-export-heading { margin-top: 24px; font-size: 14px; font-weight: 650; }
.meeting-file { position: relative; border: 1px solid var(--line); border-radius: 8px; }
.meeting-file > a { display: flex; gap: 12px; align-items: center; padding: 16px 52px 16px 16px; color: var(--ink); text-decoration: none; font-size: 14px; }
.meeting-file small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.meeting-file summary { position: absolute; top: 18px; right: 16px; list-style: none; padding: 4px; }
.meeting-file summary::-webkit-details-marker { display: none; }
.meeting-file pre { margin: 0; border-top: 1px solid var(--line); padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.65; }

/* Quiet color separates meeting context, source material, and resulting work. */
.meeting-detail .feed-bar { background: #f5f8f6; }
.meeting-title-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: #dfeee7; color: #326957; border: 1px solid #d1e3d8; border-radius: 10px; }
.meeting-title-icon svg { width: 18px; height: 18px; }
.meeting-detail .meeting-subnav button[aria-current="page"] { color: #286953; background: #f0f7f3; }
.meeting-meta > span { background: #eee9f6; color: #69538a; border: 1px solid #e2daed; border-radius: 5px; }
.meeting-context { background: #eff6f2; border-color: #d8e8de; border-left: 3px solid #72a18c; }
.meeting-context h2, .meeting-section h2 { display: flex; align-items: center; gap: 9px; }
.meeting-section-icon { display: inline-grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; background: #eeedf3; color: #76618f; }
.meeting-section-icon svg { width: 15px; height: 15px; }
.meeting-context .meeting-section-icon { background: #dcece1; color: #39715a; }
.meeting-recap .meeting-section-icon { background: #e8e4f2; color: #756091; }
.meeting-commitments > h2 .meeting-section-icon { background: #f6eacb; color: #926e25; }
.meeting-recap > p { padding-left: 36px; }
.meeting-action { border: 1px solid #e9e4d8; border-left: 3px solid #cfb777; border-radius: 9px; background: #fdfbf6; padding: 14px; margin-top: 10px; }
.meeting-action:first-of-type { border-top: 1px solid #e9e4d8; }
.meeting-action:has(input:checked) { background: #f2f7f3; border-color: #dce8df; border-left-color: #80a58d; }
.meeting-action details summary { color: #837041; }
.meeting-commitments > .meeting-source { background: #fcfaf4; border-color: #eae1cd; border-left: 3px solid #cfb777; }
.meeting-source-owner { display: inline-block; color: #80632d; font-size: 13px; padding: 2px 8px; border-radius: 5px; background: #f1e8d4; margin: 6px 0 2px; }
.meeting-source { background: #f8f8fb; border-color: #e4e2eb; }
.meeting-source > summary { color: #625778; }
.meeting-detail button[data-meeting-edit] { color: #695582; border-color: #e0d9e9; background: #f5f1fa; }
.meeting-assistant { background: #f6f3fa; }
.meeting-assistant img { box-shadow: 0 0 0 3px #e6dfee; }
.meeting-work-rail .meeting-subnav button[aria-current="page"] { color: #735b92; border-bottom-color: #9680b3; background: #f8f5fb; }
.meeting-rail-scroll { background: #fbfafc; }
.meeting-rail-caption { padding: 10px 12px; border-radius: 7px; background: #f0edf4; color: #70677d; }
.meeting-run { padding: 15px; margin-bottom: 12px; border: 1px solid #e8e5ed; border-radius: 10px; background: white; box-shadow: 0 2px 5px #33284404; }
.meeting-run > small { display: inline-block; padding: 3px 7px; border-radius: 5px; background: #f0eef3; color: #736d7d; font-size: 11px; }
.meeting-run.is-completed > small { color: #426e55; background: #edf5ee; }
.meeting-run.is-proposed { border-color: #e7dcc3; }
.meeting-run.is-proposed > small { color: #86682e; background: #faf1dc; }
.meeting-run h3 { margin-top: 11px; }
.meeting-work-rail button[data-meeting-chat-send] { color: white; border-color: #746087; background: #746087; }
.meeting-message { padding: 12px 14px; margin-bottom: 12px; border: 1px solid #e7e1ee; border-radius: 10px; background: white; }
.meeting-message > strong { color: #76608f; font-size: 12px; }
.meeting-file { background: #f8f6fb; border-color: #e5dfed; }
.meeting-file > a > svg { color: #8870a3; }
.meeting-file summary { color: #79608e; }
.meeting-list-workspace .feed-bar { background: #f3f7f4; }
.meeting-list-workspace .meeting-filter-rail { border-top-color: #8daa98; }
.meeting-list-workspace .signal-card { border-left: 3px solid transparent; }
.meeting-list-workspace .signal-card.is-teal { border-left-color: #96bbab; }
.meeting-list-workspace .signal-card.is-coral { border-left-color: #d7aaa0; }
.meeting-list-workspace .signal-card.is-lavender { border-left-color: #b9a6cf; }
.meeting-list-workspace .signal-card.is-butter { border-left-color: #d6c18b; }
.meeting-list-workspace .signal-card:hover { background: #fafbf9; box-shadow: 0 3px 10px #344e3910; }

/* Agents: shared email navigation and meeting reading surfaces. */
.agent-detail { min-width: 0; }
.agent-detail > .email-subnav { flex-shrink: 0; }
.agent-detail .meeting-detail-body { max-width: 980px; padding: 24px 30px 48px; }
.agent-detail .meeting-section { border: 1px solid #e7e7e3; border-radius: 12px; padding: 22px; margin: 0 0 20px; background: #fff; }
.agent-detail .meeting-section h2 { font-size: 17px; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.agent-detail .meeting-section p { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.agent-detail .run-pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f7f4; border: 1px solid #e8e8e4; padding: 18px; font-size: 13px; line-height: 1.7; }
.agent-data-notice { color: #73766f; font-size: 12px; line-height: 1.5; margin: 0 0 18px; }
.agent-search { margin-left: auto; display: flex; align-items: center; gap: 8px; max-width: 280px; min-width: 140px; }
.agent-search svg { width: 16px; height: 16px; }
.agent-search input { width: 100%; background: #f5f5f2; border: 1px solid #e3e4de; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 13px; }
.agent-list-row { display: flex; align-items: center; gap: 15px; padding: 20px 14px; border-bottom: 1px solid #e6e7e1; cursor: pointer; background: #fff; }
.agent-list-row:hover { background: #fafaf8; box-shadow: 0 2px 8px #22222208; }
.agent-list-row[hidden] { display: none; }
.agent-list-row > div { flex: 1; min-width: 0; }
.agent-list-row header { display: flex; align-items: center; gap: 12px; }
.agent-list-row header strong { font-size: 15px; }
.agent-list-row p { margin: 7px 0; color: #53584f; font-size: 13px; line-height: 1.5; }
.agent-list-row small { font-size: 12px; color: #797d74; }
.agent-list-row > svg, .agent-run-row > svg { width: 16px; height: 16px; flex-shrink: 0; }
.agent-list-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #ecf2ed; color: #557261; }
.agent-list-icon svg { width: 20px; height: 20px; }
.agent-list-outcome { font-size: 12px; line-height: 1.5; max-width: 175px; padding: 6px 9px; border-radius: 6px; }
.agent-run-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e7e7e2; padding: 16px 4px; font: inherit; cursor: pointer; color: inherit; }
.agent-run-row:hover { box-shadow: 0 2px 8px #2222220a; transform: none; }
.agent-run-row > span:nth-child(2) { flex: 1; min-width: 0; }
.agent-run-row strong, .agent-run-row small { display: block; line-height: 1.5; }
.agent-run-row strong { font-size: 14px; font-weight: 550; }
.agent-run-row small { font-size: 12px; color: #7a7d75; margin-top: 5px; }
.agent-outcome-dot { width: 9px; height: 9px; border-radius: 50%; background: #d1d5cc; flex-shrink: 0; }
.agent-outcome-dot.tone-coral { background: #c87e70; }
.agent-outcome-dot.tone-butter { background: #cfb764; }
.agent-outcome-dot.tone-teal { background: #76a895; }
.agent-outcome-dot.tone-lavender { background: #9e96ba; }
.agent-work-rail > .email-subnav { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.agent-work-rail > .email-subnav button { margin: 0; text-align: center; }
.agent-work-rail .meeting-assistant { background: #fafaf8; }
.agent-work-rail .meeting-assistant small { white-space: normal; line-height: 1.5; }
.agent-work-rail .meeting-chat-form textarea:focus { outline: none; box-shadow: none; border-color: #b7b9af; }
.agent-detail button:hover, .agent-work-rail button:hover { transform: none; }
.agent-proposal-payload { margin: 12px 0; font-size: 13px; }
.agent-proposal-payload summary { cursor: pointer; }
.agent-full-editor { padding: 26px 34px; }
.agent-full-editor textarea { min-height: 180px; max-height: none; resize: vertical; font-size: 14px; line-height: 1.65; }
.agent-full-editor .agent-field { max-width: 100%; }
@media (max-width: 1000px) { .agent-list-row { flex-wrap: wrap; } .agent-list-outcome { margin-left: 53px; max-width: none; } .agent-detail .meeting-detail-body { padding: 18px; } }
.agent-detail > .email-subnav { margin: 8px 20px 0; padding: 0; min-height: 34px; gap: 16px; }
.agent-detail > .email-subnav button { padding: 7px 10px 10px; font-size: 13px; }
.agent-detail .email-subnav button[aria-current="page"], .agent-work-rail .email-subnav button[aria-current="page"] { color: #476458; border-bottom-color: #7e9a89; }
.agent-work-rail > .email-subnav { margin: 0; gap: 0; }
.agent-work-rail > .email-subnav button { justify-content: center; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; padding: 13px 0; background: #fff; }
.agent-work-rail > .email-subnav button + button { border-left: 1px solid #e8e8e3; }
.agent-work-rail .meeting-rail-scroll { background: #fafaf8; }
.agent-work-rail .meeting-rail-caption { background: transparent; padding: 0; }
.agent-work-rail .agent-run-row { border: 0; border-bottom: 1px solid #e4e5de; border-radius: 0; background: transparent; }
.agent-editor-state { font-size: 12px; color: #6c7469; padding: 12px 24px; margin: 0; border-bottom: 1px solid #e7e8e1; }
.agent-list-row { padding-top: 15px; padding-bottom: 15px; }
.agent-list-outcome.tone-butter { background: #f7f0dc; color: #7d682d; }
.agent-list-outcome.tone-coral { background: #f9eae5; color: #9a5949; }
.agent-list-outcome.tone-teal { background: #eaf3ed; color: #47745c; }
.agent-list-outcome.tone-lavender { background: #eeebf5; color: #716487; }
.agent-source-download { display: inline-flex; align-items: center; gap: 8px; color: #547262; font-size: 13px; margin: 10px 0; }
.agent-source-download svg, .agent-detail summary svg { width: 16px; height: 16px; vertical-align: middle; }
.agent-detail summary { cursor: pointer; font-size: 13px; }

/* Workflow-first Agents workspace: branches are independent paths. */
.agent-detail .meeting-detail-body:has(.workflow-map) { max-width: none; padding: 20px; }
.workflow-map { border: 1px solid #dfe3dc; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #fafbf8; }
.workflow-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; gap: 12px; background: #fff; border-bottom: 1px solid #e4e7df; }
.workflow-toolbar > div { display: grid; gap: 5px; }
.workflow-toolbar strong { font-size: 15px; }
.workflow-toolbar small, .workflow-mode { font-size: 12px; color: #7a8075; }
.workflow-grid-scroll { overflow: auto; background-image: radial-gradient(#dfe3da 1px, transparent 1px); background-size: 18px 18px; }
.workflow-grid { display: flex; align-items: center; min-width: 740px; width: max-content; min-height: 310px; padding: 30px 18px; }
.workflow-origin, .workflow-lane, .workflow-action-path { display: flex; align-items: center; }
.workflow-lanes, .workflow-actions { display: grid; gap: 24px; }
.workflow-node { width: 164px; min-height: 182px; flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 13px; background: #fff; color: #333d33; border: 1px solid #d9ded4; border-radius: 11px; box-shadow: 0 3px 9px #33442a08; cursor: pointer; font: inherit; }
.workflow-node:hover { box-shadow: 0 5px 14px #33442a15; transform: none; border-color: #a6b59f; }
.workflow-node.is-selected { border-color: #63836e; box-shadow: 0 0 0 2px #63836e22; }
.workflow-node:focus-visible { outline: 2px solid #63836e; outline-offset: 3px; }
.workflow-node header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.workflow-node header i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #edf3ef; color: #587763; }
.workflow-node.kind-prompt header i { background: #efedf6; color: #8a75a4; }
.workflow-node.kind-condition header i { background: #fbf3de; color: #9a844d; }
.workflow-node svg { height: 17px; width: 17px; }
.workflow-node header small { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; color: #8a8d83; }
.workflow-node > strong { font-size: 14px; line-height: 1.4; }
.workflow-node p { font-size: 12px; line-height: 1.5; margin: 7px 0 12px; color: #7b8175; overflow-wrap: anywhere; }
.workflow-status { font-size: 11px; line-height: 1.4; margin-top: auto; padding: 6px 7px; border-radius: 5px; background: #f1f3ed; color: #73796a; }
.workflow-status.tone-teal { background: #e9f3ed; color: #48765d; }
.workflow-status.tone-coral { background: #f9eae4; color: #9e604e; }
.workflow-status.tone-butter { background: #faf1d9; color: #937536; }
.workflow-status.tone-lavender { background: #efecf6; color: #7a6998; }
.workflow-wire { width: 26px; flex-shrink: 0; display: grid; place-items: center; color: #9da994; }
.workflow-wire svg { width: 26px; height: 20px; }
.workflow-pass { width: 164px; text-align: center; padding: 12px; color: #8a907e; font-size: 12px; }
.workflow-map > footer { font-size: 12px; color: #858c7e; background: #fff; border-top: 1px solid #e4e7df; padding: 13px 18px; line-height: 1.5; }
.workflow-inspector, .workflow-inspector-empty { border: 1px solid #dfe3dc; padding: 20px; border-radius: 12px; background: #fff; margin-bottom: 20px; }
.workflow-inspector > header { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e7e9e1; padding-bottom: 15px; margin-bottom: 18px; }
.workflow-inspector > header > div { flex: 1; }
.workflow-inspector > header small { color: #8b9281; font-size: 11px; }
.workflow-inspector h2 { font-size: 17px; margin: 6px 0 0; }
.workflow-inspector p, .workflow-inspector .workflow-copy { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.workflow-inspector-empty { display: flex; align-items: center; gap: 10px; color: #858c7e; font-size: 13px; background: transparent; border-style: dashed; }
.workflow-inspector-empty svg { width: 18px; height: 18px; }
.agent-detail .workflow-inspector .meeting-section { border: 0; padding: 0; }
.workflow-map { container-type: inline-size; }
@container (max-width: 760px) {
  .workflow-grid { flex-direction: column; min-width: 0; width: 100%; gap: 36px; }
  .workflow-lane { position: relative; justify-content: center; }
  .workflow-lane > .workflow-wire { position: absolute; top: -29px; left: calc(50% - 13px); transform: rotate(90deg); }
  .workflow-pass { width: 164px; }
}

/* Saved dashboards follow the workspace's sidebar and section-tab layout. */
.dashboards-sidebar > header button { padding: 7px; }
.dashboards-sidebar nav { overflow: auto; min-height: 80px; }
.dashboards-sidebar footer { margin-top: auto; flex-shrink: 0; }
.dashboards-sidebar nav strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboards-sidebar nav small, .dashboards-sidebar footer { font-size: 10px; color: var(--muted); }
.dashboards-sidebar footer { display: flex; align-items: center; gap: 7px; padding-top: 16px; border-top: 1px solid var(--line); }
.dashboard-sidebar-empty { padding: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dashboard-detail { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: white; box-shadow: 0 2px 7px rgba(30, 38, 34, .035); min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dashboard-header { padding: 16px 26px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-header > div { min-width: 0; }
.dashboard-header h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 23px; letter-spacing: -.7px; font-weight: 550; overflow-wrap: anywhere; }
.dashboard-header p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.dashboard-header > button { flex-shrink: 0; }
.dashboard-rename-button { display: flex; padding: 6px; background: transparent; border: 0; color: var(--muted); }
.dashboard-detail > .email-subnav { flex-shrink: 0; margin: 0 26px; }
.dashboard-detail > .email-subnav button[aria-current="page"] { color: #395d48; border-bottom-color: #73937e; }
.dashboard-canvas { padding: 28px 34px 60px; overflow: auto; background: var(--canvas); flex: 1; }
.dashboard-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; }
.dashboard-empty > span { padding: 16px; border-radius: 14px; background: #edf2ee; color: #52735c; }
.dashboard-empty h2 { margin: 24px 0 10px; font-size: 24px; font-weight: 500; }
.dashboard-empty p { max-width: 360px; line-height: 1.7; color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.dashboard-editor { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 28px 34px; }
.dashboard-editor-heading h2 { font-size: 17px; font-weight: 550; margin: 0 0 8px; }
.dashboard-editor-heading p { font-size: 12px; color: var(--muted); margin: 0 0 24px; }
.dashboard-editor .assistant-history { flex: 1; }
.dashboard-editor .assistant-composer { border: 0; padding: 14px 0 0; }
.dashboard-rename { display: flex; gap: 8px; margin: 8px 0; }
.dashboard-rename input { min-width: 0; width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; padding: 8px; font-size: 21px; }
.dashboards-workspace button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.dashboards-workspace button:disabled { opacity: .5; cursor: wait; }
.dashboards-workspace .secondary, .dashboards-workspace .primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; font-size: 12px; font-weight: 500; }
.dashboards-workspace .primary { background: #3d6652; border-color: #3d6652; color: #fff; }
.dashboards-sidebar > header .secondary { padding: 7px; }
.dashboard-canvas .composer-block-heading h2 { font-family: inherit; font-size: 20px; font-weight: 550; }

/* Shared chat stays beside the current page, with dashboard editing separate. */
.assistant-panel.workspace-chat-panel { top: 84px; right: 22px; bottom: 88px; left: auto; width: 420px; min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 14px; background: #fff; box-shadow: 0 12px 48px rgba(24, 35, 29, .16); backdrop-filter: none; }
.workspace-chat-panel .assistant-chat > header { padding: 16px; }
.workspace-chat-panel .assistant-chat > header strong { font-family: inherit; font-size: 16px; font-weight: 550; }
.workspace-chat-panel .assistant-chat > header small { font-size: 10px; font-weight: 550; letter-spacing: .03em; }
.workspace-chat-panel .assistant-history { padding: 22px 16px; gap: 20px; }
.workspace-chat-panel .assistant-history article > p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.workspace-chat-panel .assistant-history article.is-assistant > p { background: transparent; padding: 3px 0; }
.workspace-chat-panel .assistant-history article.is-user > p { background: #edf2ee; color: var(--ink); border-radius: 12px; }
.workspace-chat-panel .assistant-composer { padding: 14px 16px; }
.workspace-chat-panel .assistant-composer textarea { display: block; resize: none; }
.workspace-chat-panel .assistant-composer label > button { top: 50%; bottom: auto; transform: translateY(-50%); }
.workspace-chat-tools { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.workspace-chat-tools > button { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 5px; color: var(--muted); font-size: 11px; }
.workspace-chat-tools summary { cursor: pointer; }
.workspace-chat-tools nav { position: absolute; top: 38px; left: 12px; right: 12px; z-index: 2; display: grid; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 5px; background: #fff; box-shadow: 0 8px 24px #0001; }
.workspace-chat-tools nav button { border: 0; background: transparent; text-align: left; padding: 10px; border-radius: 5px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chat-tools nav button[aria-current="true"], .workspace-chat-tools nav button:hover { background: #edf2ee; }
#app:has(.workspace-chat-panel) .composed-workspace { padding-right: clamp(24px, 4vw, 64px); }
.workspace-chat-panel button:focus-visible, .workspace-chat-tools summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.dashboard-detail > .email-subnav { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e5e8ef; }
.dashboard-detail > .email-subnav button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #737c8b; font-size: 12px; font-weight: 550; }
.dashboard-detail > .email-subnav button[aria-current="page"] { color: #395d48; border-bottom-color: #73937e; }

/* Agents studio — library, editable workflow canvas, and execution inspector. */
.agent-studio { --studio-accent: #407660; --studio-line: #e4e7e0; height: calc(100vh - 84px); min-height: 440px; margin: 8px 16px 16px; background: #fff; border: 1px solid #dce1d7; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; position: relative; color: #303a31; }
.agent-studio button, .agent-studio input, .agent-studio select, .agent-studio textarea { font-family: inherit; }
.agent-studio button:hover { transform: none; }
.agent-studio button:focus-visible { outline: 2px solid #83a995; outline-offset: 2px; }
.studio-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 26px; border-bottom: 1px solid var(--studio-line); flex-shrink: 0; }
.studio-heading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.studio-heading h1 { font-size: 18px; font-weight: 650; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-breadcrumb { border: 0; background: transparent; color: #667362; padding: 0; font-size: 15px; font-weight: 600; }
.studio-slash { color: #bec5b7; }
.studio-heading-note { color: #7a8473; font-size: 11px; padding: 4px 7px; border: 1px solid #e2e7dd; border-radius: 5px; }
.studio-header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.studio-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 1px solid #dce2d6; border-radius: 7px; font-size: 12px; font-weight: 600; color: #53634d; background: #fff; cursor: pointer; white-space: nowrap; }
.studio-button svg { width: 15px; height: 15px; }
.studio-button.primary { background: #407660; border-color: #407660; color: #fff; }
.studio-button:hover { box-shadow: 0 2px 6px #233b2812; }
.studio-button:disabled { opacity: .5; cursor: default; }
.studio-library-body { display: grid; grid-template-columns: minmax(0,1fr) 220px; flex: 1; min-height: 0; }
.studio-library-main { padding: 30px 34px; overflow: auto; }
.studio-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.studio-eyebrow { color: #8b957f; letter-spacing: .09em; font-size: 10px; font-weight: 650; }
.studio-intro h1 { font-size: 30px; letter-spacing: -.8px; margin: 8px 0 10px; font-weight: 650; }
.studio-intro p { font-size: 14px; color: #828b7a; line-height: 1.6; margin: 0; }
.studio-environment { color: #8a9481; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.studio-intro > .studio-environment { white-space: normal; max-width: 165px; text-align: right; }
.studio-metrics { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--studio-line); border-radius: 10px; margin: 18px 0; background: #fafbf8; }
.studio-metrics button { display: flex; align-items: center; text-align: left; gap: 12px; background: transparent; border: 0; padding: 16px 20px; }
.studio-metrics button + button { border-left: 1px solid var(--studio-line); }
.studio-metrics strong { font-size: 26px; font-weight: 600; }
.studio-metrics span { font-size: 12px; color: #828d7b; line-height: 1.4; }
.studio-search { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid #e1e6db; border-radius: 8px; margin-bottom: 22px; }
.studio-search svg { width: 17px; height: 17px; color: #8c9882; }
.studio-search input { border: 0; outline: 0; box-shadow: none; font-size: 13px; width: 100%; background: transparent; }
.studio-list-heading { display: flex; justify-content: space-between; padding: 0 42px 12px 0; color: #929a89; font-size: 10px; letter-spacing: .08em; border-bottom: 1px solid var(--studio-line); }
.studio-workflow-row { display: flex; align-items: center; padding: 18px 0; gap: 22px; border-bottom: 1px solid var(--studio-line); cursor: pointer; }
.studio-workflow-row:hover { background: #fafcf8; }
.studio-workflow-row[hidden] { display: none; }
.studio-workflow-summary { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.studio-workflow-emblem { width: 38px; height: 38px; background: #edf3ed; border: 1px solid #e2ebdf; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #719166; }
.studio-workflow-emblem svg { width: 20px; height: 20px; }
.studio-workflow-row h3 { margin: 0 0 9px; font-size: 15px; line-height: 1.5; }
.studio-workflow-row p { font-size: 13px; color: #7c8675; line-height: 1.5; margin: 0 0 13px; }
.studio-state { font-size: 10px; font-weight: 500; color: #8a9380; margin-left: 8px; padding: 3px 6px; border-radius: 4px; background: #f0f2eb; }
.studio-state.enabled { color: #558466; background: #ecf5ee; }
.studio-integrations { display: flex; align-items: center; gap: 7px; color: #7c8772; font-size: 11px; flex-wrap: wrap; }
.studio-integrations > svg { width: 13px; height: 13px; color: #b3bdab; }
.studio-app-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border-radius: 6px; border: 1px solid #e8e9e3; background: #fff; }
.studio-app-icon svg { width: 14px; height: 14px; }
.studio-app-icon.slack { color: #9a679e; font-size: 18px; }
.studio-app-icon.model { color: #8f7ba9; }
.studio-app-icon.schedule { color: #bd9c51; }
.studio-more { color: #9ba48f; margin-left: 4px; }
.studio-row-outcome { display: grid; gap: 10px; width: 180px; flex-shrink: 0; }
.studio-row-outcome .workflow-status { width: fit-content; }
.studio-row-outcome small { color: #8b9580; font-size: 11px; }
.studio-open-arrow svg { width: 16px; height: 16px; color: #9ca78d; }
.studio-library-nav { border-left: 1px solid var(--studio-line); padding: 28px 18px; background: #fafbf8; overflow: auto; }
.studio-library-nav > .studio-eyebrow { display: block; margin: 2px 10px 13px; }
.studio-library-nav > button { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; border-radius: 7px; background: transparent; color: #7b8771; padding: 12px; font-size: 13px; text-align: left; margin-bottom: 4px; }
.studio-library-nav > button.is-active { background: #e9f0e6; color: #477455; font-weight: 600; }
.studio-library-nav b { font-size: 11px; font-weight: 500; }
.studio-library-nav hr { border: 0; border-top: 1px solid #e2e7dc; margin: 23px 0; }
.studio-nav-note { margin: 35px 10px 0; color: #9aa48e; font-size: 11px; line-height: 1.6; }
.studio-nav-note svg { width: 17px; height: 17px; }
.studio-tabs { display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--studio-line); gap: 24px; flex-shrink: 0; min-height: 49px; }
.studio-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8a9380; padding: 15px 4px; font-size: 12px; }
.studio-tabs button[aria-current="page"] { border-bottom-color: #4c8063; color: #427355; font-weight: 600; }
.studio-tabs b { font-size: 10px; margin-left: 7px; padding: 2px 5px; border-radius: 4px; background: #f0f3eb; }
.studio-tabs .studio-environment { margin-left: auto; }
.studio-save-state { display: flex; align-items: center; padding: 10px 24px; gap: 18px; font-size: 11px; color: #949d89; border-bottom: 1px solid var(--studio-line); flex-shrink: 0; }
.studio-save-state .agent-editor-state { padding: 0; border: 0; margin: 0; color: #628364; font-size: 11px; }
.studio-save-state > .studio-button { margin-left: auto; padding: 5px 8px; }
.studio-save-state label { display: flex; align-items: center; gap: 10px; }
.studio-save-state input { border: 1px solid #dce2d6; padding: 6px 10px; border-radius: 5px; }
.studio-workbench { display: grid; grid-template-columns: minmax(0,1fr) 260px; min-height: 0; flex: 1; }
.studio-workbench.has-inspector { grid-template-columns: minmax(0,1fr) 350px; }
.studio-canvas-area { display: flex; min-width: 0; min-height: 0; flex-direction: column; background: #f7f9f3; }
.studio-canvas-caption { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; font-size: 12px; color: #839277; }
.studio-canvas-caption strong { color: #586e4d; font-weight: 600; }
.studio-canvas-help { padding: 13px 20px; border-top: 1px solid #e4e9dc; color: #96a38a; font-size: 11px; line-height: 1.5; display: flex; align-items: center; gap: 8px; }
.studio-canvas-help svg { width: 16px; height: 16px; flex-shrink: 0; }
.agent-studio .agents-canvas { flex: 1; min-height: 280px; background: #f7f9f3; }
.agent-studio .canvas-palette { padding: 12px 18px; border: 0; background: transparent; }
.agent-studio .canvas-palette button { border-radius: 6px; background: #fff; padding: 7px 10px; font-size: 11px; }
.agent-studio .agents-canvas-scroll { background-color: #f7f9f3; background-image: radial-gradient(#dce5d1 1px, transparent 1px); background-size: 22px 22px; }
.agent-studio .canvas-node { border-radius: 11px; border: 1px solid #d4decb; box-shadow: 0 4px 12px #3856260a; background: #fff; min-height: 112px; }
.agent-studio .canvas-node.kind-prompt { border-top: 3px solid #ac99c3; }
.agent-studio .canvas-node.kind-trigger { border-top: 3px solid #8bab79; }
.agent-studio .canvas-node.kind-condition { border-top: 3px solid #d3ba78; }
.agent-studio .canvas-node.kind-action { border-top: 3px solid #7ca893; }
.agent-studio .canvas-node.is-selected { border-color: #739e68; box-shadow: 0 0 0 3px #acc79c30; }
.agent-studio .canvas-node header strong { font-size: 15px; }
.agent-studio .canvas-node p { font-size: 12px; color: #88977c; }
.agent-studio .canvas-edges .edge-line { stroke: #a7bc94; stroke-width: 2; }
.agent-studio .canvas-zoom { border-radius: 7px; bottom: 18px; left: 18px; }
.studio-build-context { border-left: 1px solid var(--studio-line); padding: 24px 20px; overflow: auto; }
.studio-build-context h2 { font-size: 17px; margin: 9px 0 22px; line-height: 1.5; }
.studio-build-context ol { list-style: none; padding: 0; margin: 0 0 20px; }
.studio-build-context li { display: flex; gap: 12px; margin-bottom: 20px; }
.studio-build-context li > b { flex-shrink: 0; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f0f5eb; color: #91a580; font-size: 11px; font-weight: 500; }
.studio-build-context li strong { font-size: 12px; font-weight: 600; }
.studio-build-context p { font-size: 12px; line-height: 1.6; color: #909b84; margin: 7px 0 0; }
.studio-context-divider { border-top: 1px solid var(--studio-line); margin: 26px 0; }
.studio-build-context .agent-run-row strong { font-size: 12px; }
.studio-build-context .agent-run-row small { font-size: 10px; }
.studio-inspector { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--studio-line); background: #fff; }
.studio-inspector > header { display: flex; align-items: center; padding: 20px; gap: 8px; border-bottom: 1px solid var(--studio-line); }
.studio-inspector > header > div { flex: 1; }
.studio-inspector h2 { font-size: 15px; margin: 7px 0 0; }
.studio-inspector-form { overflow: auto; padding: 20px; flex: 1; }
.studio-inspector-form > h3 { display: none; }
.studio-form-note { font-size: 11px; color: #91a082; line-height: 1.6; margin: 0 0 22px; }
.agent-studio .agent-field { margin-bottom: 20px; }
.agent-studio .agent-field > span { font-size: 12px; color: #64765a; }
.agent-studio .agent-field input, .agent-studio .agent-field select, .agent-studio .agent-field textarea { border: 1px solid #dce4d4; border-radius: 7px; background: #fdfefb; padding: 10px; font-size: 13px; line-height: 1.6; }
.agent-studio .agent-field textarea { max-height: none; resize: vertical; min-height: 180px; }
.studio-workbench.editor-expanded { grid-template-columns: 1fr; }
.studio-workbench.editor-expanded .studio-canvas-area { display: none; }
.studio-inspector.expanded .studio-inspector-form { padding: 28px max(28px, calc((100% - 900px)/2)); }
.studio-inspector.expanded textarea { min-height: 260px; }
.studio-content-scroll { padding: 28px 32px; overflow: auto; flex: 1; min-height: 0; }
.studio-content-scroll h2 { font-size: 20px; }
.studio-run-filters { display: flex; gap: 10px; padding-bottom: 20px; flex-wrap: wrap; }
.studio-run-filters button { border: 1px solid #e1e7d9; border-radius: 6px; padding: 7px 12px; background: #fff; color: #8a977d; font-size: 12px; }
.studio-run-filters .is-active { background: #eaf2e3; color: #598043; border-color: #cddfc2; }
.studio-run-row { display: flex; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--studio-line); background: #fff; width: 100%; padding: 20px 8px; text-align: left; color: inherit; }
.studio-run-glyph { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #f0f4eb; flex-shrink: 0; }
.studio-run-row svg { width: 17px; height: 17px; }
.studio-run-row > span:nth-child(2) { flex: 1; }
.studio-run-row strong, .studio-run-row small { display: block; }
.studio-run-row strong { font-size: 13px; margin-bottom: 6px; }
.studio-run-row small, .studio-run-row time { font-size: 11px; color: #95a087; }
.studio-run-row > .workflow-status { margin: 0; max-width: 190px; }
.studio-run-summary { display: flex; align-items: center; gap: 20px; padding: 15px 24px; border-bottom: 1px solid var(--studio-line); color: #8b9780; font-size: 12px; }
.studio-run-summary .workflow-status { margin: 0; }
.studio-run-summary > button { margin-left: auto; }
.studio-execution-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 0; flex: 1; }
.studio-execution-steps { overflow: auto; border-right: 1px solid var(--studio-line); padding: 24px 14px; background: #fafcf7; }
.studio-execution-steps > .studio-eyebrow { margin-left: 10px; display: block; margin-bottom: 20px; }
.studio-execution-step { width: 100%; display: flex; gap: 12px; align-items: center; padding: 16px 10px; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 9px; color: #617156; position: relative; margin-bottom: 10px; }
.studio-execution-step.is-active { background: #fff; border-color: #d5e2cc; box-shadow: 0 2px 5px #364d2410; }
.studio-step-number { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf2e6; color: #819a6d; font-size: 12px; }
.studio-step-number.tone-teal { background: #e4f1e7; color: #4d8c60; }
.studio-step-number.tone-butter { background: #fcf0d6; color: #b2924e; }
.studio-step-number.tone-coral { background: #fae8df; color: #ba7d5c; }
.studio-execution-step strong { font-size: 12px; display: block; }
.studio-execution-step small { display: block; font-size: 11px; color: #95a087; margin-top: 6px; line-height: 1.5; }
.studio-execution-step > svg { width: 14px; height: 14px; margin-left: auto; flex-shrink: 0; }
.studio-evidence-note { font-size: 11px; color: #a0ac93; padding: 10px; line-height: 1.6; }
.studio-execution-content { overflow: auto; padding: 30px; min-width: 0; }
.studio-execution-content .workflow-inspector { margin: 0; padding: 0; border: 0; }
.studio-execution-content .workflow-inspector > header { padding-bottom: 24px; margin-bottom: 24px; }
.studio-execution-content .workflow-inspector h2 { font-size: 24px; }
.studio-execution-content .workflow-inspector > header > .tool-button { display: none; }
.studio-execution-content .meeting-section { border: 0; padding: 0; margin-bottom: 24px; }
.studio-execution-content .meeting-section h2 { font-size: 18px; margin-bottom: 20px; }
.agent-studio .run-pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; border: 1px solid #e0e8d8; background: #f8faf5; border-radius: 8px; padding: 20px; }
.agent-studio .run-kv { font-size: 13px; line-height: 1.6; }
.agent-studio .run-kv dt { font-size: 11px; color: #8c9b7f; }
.studio-test-tray { flex-shrink: 0; max-height: 240px; overflow: auto; padding: 15px 24px; border-top: 1px solid var(--studio-line); background: #fcfdf9; }
.studio-test-tray header { display: flex; gap: 15px; align-items: center; font-size: 12px; }
.studio-test-tray header button { margin-left: auto; }
.studio-test-tray pre { white-space: pre-wrap; font-size: 12px; }
.studio-assistant-overlay { position: absolute; right: 0; top: 170px; bottom: 0; width: 350px; z-index: 15; box-shadow: -8px 0 24px #34432b15; border-left: 1px solid var(--studio-line); background: #fff; }
.studio-assistant-overlay .rail-panel { height: 100%; width: 100%; border-radius: 0; border: 0; }
@media (max-width: 1100px) { .studio-library-main { padding: 24px; } .studio-library-body { grid-template-columns: minmax(0,1fr) 185px; } .studio-row-outcome { width: 140px; } .studio-workflow-row { gap: 12px; } .studio-more { display: none; } .studio-heading-note { display: none; } .studio-header { padding: 16px; gap: 10px; } .studio-header-actions { gap: 5px; } .studio-header-actions .studio-button { padding: 8px; } .studio-workbench { grid-template-columns: minmax(0,1fr) 230px; } .studio-workbench.has-inspector { grid-template-columns: minmax(0,1fr) 320px; } .studio-save-state > span:not(.agent-editor-state) { display: none; } .studio-run-row time { display: none; } }
@media (max-width: 760px) { .studio-library-body { grid-template-columns: 1fr; } .studio-library-nav { display: none; } .studio-workflow-row { flex-wrap: wrap; } .studio-row-outcome { width: auto; margin-left: 52px; } .studio-intro { display: block; } .studio-intro > .studio-environment { text-align: left; display: block; margin-top: 10px; max-width: none; } .studio-header { flex-wrap: wrap; } .studio-tabs { gap: 12px; padding: 0 14px; } .studio-tabs .studio-environment { display: none; } .studio-workbench { grid-template-columns: 1fr; } .studio-build-context { display: none; } .studio-workbench.has-inspector { grid-template-columns: 1fr; } .studio-workbench.has-inspector .studio-canvas-area { display: none; } .studio-execution-layout { grid-template-columns: 190px minmax(0,1fr); } .studio-execution-content { padding: 20px; } }

.studio-workbench.has-inspector.editor-expanded { grid-template-columns: 1fr; }

.agent-studio .agent-field input:focus, .agent-studio .agent-field select:focus, .agent-studio .agent-field textarea:focus { outline: 1px solid #83a995; outline-offset: 1px; box-shadow: none; }
.studio-test-tray article > button { float: right; }

body:has(.studio-assistant-overlay) .assistant-button:not(.is-open) { bottom: 24px; right: 382px; }

/* ===== Client shell: connected spreadsheets under Views ===== */
.sheet-detail { display: flex; flex-direction: column; min-height: 0; }
.sheet-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 18px 26px 26px; border: 1px solid var(--line-strong); border-radius: 12px; background: white; overflow: hidden; }
.sheet-formula { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fbfbfa; font-size: 12.500px; }
.sheet-formula b { min-width: 44px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; font-weight: 750; text-align: center; }
.sheet-formula span { color: var(--muted); font-weight: 700; font-style: italic; }
.sheet-formula code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.500px; }
.sheet-scroll { flex: 1; min-height: 0; overflow: auto; }
.sheet-grid { width: 100%; border-collapse: collapse; font-size: 12.500px; }
.sheet-grid thead th { position: sticky; top: 0; z-index: 1; min-width: 64px; padding: 5px 10px; border: 1px solid var(--line); background: #f4f4f2; color: var(--muted); font-size: 11.250px; font-weight: 750; }
.sheet-grid tbody th { width: 34px; padding: 5px 8px; border: 1px solid var(--line); background: #f4f4f2; color: var(--muted); font-size: 11.250px; font-weight: 700; text-align: center; }
.sheet-grid td { padding: 6px 10px; border: 1px solid var(--line); white-space: nowrap; }
.sheet-grid td.is-head { background: var(--teal-soft); color: #245e53; font-weight: 780; }
.sheet-grid td.is-selected { box-shadow: inset 0 0 0 2px var(--teal); background: #f2faf7; }
.sheet-grid td.is-total { background: #fbfbfa; font-weight: 780; }
.sheet-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.875px; }
.sheet-note svg { width: 13px; height: 13px; }

/* ===== Client shell: Work docket ===== */
.work-panel { display: flex; flex-direction: column; }
.work-bar { justify-content: space-between; padding: 20px 24px; }
.work-bar h1 { margin: 0; font-size: 20px; font-weight: 550; }
.work-bar > span { color: var(--muted); font-size: 12px; }

/* Shared side navigation: Work sets the layout for Views and spreadsheets too. */
.work-workspace, .dashboards-workspace { display: grid; grid-template-columns: var(--shell-width) minmax(0, 1fr); gap: 0; width: 100%; height: calc(100vh - var(--topbar-height)); margin: 0; padding: 12px 12px 12px 0; background: var(--shell-surface); }
:is(.work-sidebar, .dashboards-sidebar) { display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 22px 14px 14px; border: 0; border-radius: 0; background: var(--shell-surface); box-shadow: none; }
:is(.work-sidebar, .dashboards-sidebar) > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 10px 24px; }
:is(.work-sidebar, .dashboards-sidebar) h1 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.35px; }
:is(.work-sidebar, .dashboards-sidebar) > header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
:is(.work-sidebar, .dashboards-sidebar) nav { flex: 0 0 auto; }
#workspace-sidebar > header > .sidebar-toggle { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--nav-muted); }
#workspace-sidebar > header > .sidebar-toggle:hover { background: var(--nav-hover); color: var(--nav-ink); }
:is(.work-workspace, .dashboards-workspace):has(> #workspace-sidebar[data-sidebar-collapsed="true"]) { grid-template-columns: 48px minmax(0, 1fr); }
#workspace-sidebar[data-sidebar-collapsed="true"] { position: relative; z-index: 30; width: 48px; overflow: hidden; }
#workspace-sidebar[data-sidebar-collapsed="true"][data-sidebar-peek="false"] { padding-inline: 8px; }
#workspace-sidebar[data-sidebar-collapsed="true"] .sidebar-toggle svg { transform: rotate(180deg); }
#workspace-sidebar[data-sidebar-collapsed="true"][data-sidebar-peek="false"] > :not(header) { visibility: hidden; }
#workspace-sidebar[data-sidebar-collapsed="true"][data-sidebar-peek="false"] > header { justify-content: center; margin-inline: 0; }
#workspace-sidebar[data-sidebar-collapsed="true"][data-sidebar-peek="false"] > header > div { display: none; }
#workspace-sidebar[data-sidebar-collapsed="true"][data-sidebar-peek="true"] { width: var(--shell-width); overflow: auto; border-radius: 0 12px 12px 0; box-shadow: 8px 0 24px rgba(28, 35, 31, .12); }
.work-nav-group + .work-nav-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.work-nav-label { display: block; margin: 0 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 5px; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button:hover { background: #f0f1ee; }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button:is([aria-current="page"], [aria-selected="true"]) { background: var(--nav-selected); border-color: transparent; color: var(--nav-ink); }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--nav-muted); }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button:is([aria-current="page"], [aria-selected="true"]) > svg { color: var(--nav-ink); }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button > span { min-width: 0; display: grid; gap: 3px; }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) strong { font-size: 12.500px; font-weight: 600; }
:is(.work-sidebar, .dashboards-sidebar) nav small { color: var(--muted); font-size: 10px; }
.work-folder-count { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--coral); color: white; font-size: 10px; font-weight: 800; }
:is(.work-sidebar, .dashboards-sidebar) :is(nav, .views-toggle) button[aria-current="page"] .work-folder-count { background: #537e62; }
.work-composer { display: flex; gap: 8px; margin: 16px 28px; }
.work-composer label { flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; transition: border-color .15s, box-shadow .15s; }
.work-composer label:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.work-composer label svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--teal); }
.work-composer input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 13.750px; }
.work-composer input:focus { outline: none; }
.work-composer > button { padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-size: 13.125px; font-weight: 750; }
.work-composer > button:hover { background: #101413; }
.work-scroll { display: grid; gap: 22px; align-content: start; padding: 4px 28px 28px; }
.work-group { position: relative; padding-left: 16px; }
.work-group::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 3px; border-radius: 3px; background: var(--line-strong); }
.work-group.is-decide::before { background: var(--coral); }
.work-group.is-motion::before { background: var(--butter); }
.work-group.is-delivered::before { background: var(--teal); }
.work-group.is-scoping::before { background: var(--lavender); }
.work-group.is-history::before { background: var(--line-strong); }
.work-group.is-run::before { background: var(--lavender); }
.work-group.is-watch::before { background: var(--teal); }
.work-group.is-on::before { background: var(--butter); }

/* Start: a job with a control on it, rather than a message to read. The card
   states what the job does and puts the one thing it needs at the end of the
   row, so starting something is a single pass down the page. */
.work-starter { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.work-starter > div:first-child { display: grid; gap: 3px; }
.work-starter strong { font-size: 13.750px; font-weight: 780; }
.work-starter p { margin: 0; color: #5d565e; font-size: 12.500px; line-height: 1.5; }
.work-starter small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.250px; }
.work-starter small svg { width: 12px; height: 12px; flex: 0 0 auto; }
.work-starter.is-done { border-color: var(--line-strong); background: #fcfcfb; }
.work-starter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-starter-foot > span { color: var(--muted); font-size: 12.500px; }
.work-starter-foot > span b { color: var(--ink); font-weight: 750; }
.work-starter-note { margin: -4px 0 0; color: var(--muted); font-size: 11.250px; }
.work-starter-go, .work-starter-foot button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font: inherit; font-size: 12.500px; font-weight: 750; cursor: pointer; transition: .15s; }
.work-starter-go:hover, .work-starter-foot button:hover { background: #101413; }
.work-starter-go.is-armed { border-color: var(--coral); background: var(--coral); }
.work-starter-foot button + button, .work-starter-foot span + button { border-color: var(--line-strong); background: white; color: var(--ink); }
.work-starter-foot button + button:hover, .work-starter-foot span + button:hover { border-color: var(--ink); background: white; }
.work-starter-go svg, .work-starter-foot button svg { width: 12px; height: 12px; }
.work-starter-state { padding: 2px 9px; border-radius: 999px; background: var(--butter-soft); color: #8a6a15; font-size: 10.625px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.work-starter-state.is-paused { background: var(--line); color: var(--muted); }

/* History: one line per thing that happened — when, what came in, what it set
   off, and what you decided. It reads down the page as a diary, so the
   decisions sit in the same column rather than scattering across it. */
.work-events { display: grid; margin: 0; padding: 0; list-style: none; }
.work-events li { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.work-events li:first-child { border-top: 0; }
.work-events time { color: var(--muted); font-size: 11.250px; font-weight: 700; }
.work-events strong { display: block; font-size: 12.500px; font-weight: 750; }
.work-events p { margin: 2px 0 0; color: var(--muted); font-size: 11.875px; }
.work-event-decided { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--canvas); color: var(--ink); font-size: 10.625px; font-weight: 750; white-space: nowrap; }
.work-subgroup { display: grid; gap: 10px; }
.work-subgroup h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 13.125px; font-weight: 780; }
.work-subgroup h3 b { min-width: 18px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 11.250px; text-align: center; }
.work-subgroup h3 small, .work-quiet { color: var(--muted); font-size: 12.500px; font-weight: 500; }
.work-quiet { display: flex; align-items: center; gap: 7px; margin: 0; }
.work-quiet svg { width: 13px; height: 13px; color: var(--teal); }
.work-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.work-choices button, .work-own-answer button { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 12.500px; font-weight: 750; }
.work-choices button:hover { border-color: var(--teal); color: var(--teal); }
.work-choices button:disabled, .work-decide button:disabled { color: var(--muted); cursor: default; }
.work-own-answer { display: flex; gap: 8px; flex: 1 0 100%; }
.work-own-answer input, .work-draft-fields input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.500px; }
.work-own-answer input:focus, .work-draft-fields input:focus { outline: none; border-color: var(--teal); }
.work-draft-fields { display: grid; gap: 8px; }
.work-draft-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 11.250px; font-weight: 750; }
.workflow-steps { display: grid; gap: 0; margin: 4px 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; padding: 6px 0 6px 2px; font-size: 12.500px; }
.workflow-steps li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 1px; background: var(--line-strong); }
.workflow-steps li:first-child::before { top: 50%; }
.workflow-steps li:last-child::before { bottom: 50%; }
.workflow-steps i { position: relative; z-index: 1; width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: white; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.workflow-steps li.is-gate i { flex: 0 0 auto; width: auto; padding: 0 9px; border-radius: 999px; border-color: var(--coral); background: var(--coral); color: white; white-space: nowrap; }
.workflow-steps li.done { color: var(--muted); }
.workflow-steps li.done i { border-color: var(--teal); background: var(--teal); color: transparent; }
.workflow-steps li.done i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.workflow-steps li.held i { box-shadow: 0 0 0 3px var(--coral-soft, #fde7e2); }
.workflow-steps li.ahead { color: var(--muted); }
/* A step you can open onto its evidence. The connector is dropped while a step
   is open, so the line never runs down past an expanded panel. */
.workflow-steps li.is-open::before { display: none; }
.workflow-step { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.workflow-step:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.workflow-step > span { min-width: 0; }
.workflow-step b { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.workflow-step:hover b, .workflow-step[aria-expanded="true"] b { color: var(--teal); }
.workflow-step-detail { flex: 1 0 100%; min-width: 0; display: grid; gap: 11px; margin: 6px 0 10px 32px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfbfa; }
.workflow-step-note { margin: 0; color: var(--muted); font-size: 12.500px; line-height: 1.5; }
.work-produced { margin: 0; padding: 10px 14px; border-left: 3px solid var(--coral); border-radius: 0 10px 10px 0; background: #fdf8f6; font-size: 12.500px; line-height: 1.5; }
/* A message page is a stack of labelled sections, so the reader always knows
   which of three things — the work, what to do with it, how it was made — they
   are reading. Each is one card with a common head: a name and a qualifier. */
.work-section { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.work-section-head { display: flex; align-items: baseline; gap: 9px; margin: 0; }
.work-section-head h2 { margin: 0; font-size: 13.750px; font-weight: 800; letter-spacing: -0.01em; }
.work-section-head span { color: var(--muted); font-size: 12.500px; }

/* The work itself, which is the reason the page exists. It gets the weight of a
   document rather than a card of metadata: the body is its actual words, set in
   prose the way you would read an email. */
.work-read .work-section-head span { margin-left: auto; }
.work-delivered-body { display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 14px; }
.work-delivered-body p { margin: 0; color: #2c3234; font-size: 13.500px; line-height: 1.62; }
.work-delivered-sign { margin: 0; padding-top: 2px; color: var(--muted); font-size: 12.500px; }

/* Where it goes next, written out in order. Sits directly under the work with
   nothing between them, because it is the point of the artifact being there. */
.work-handoff-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.work-handoff-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 11px; }
.work-handoff-steps li > i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line-strong); color: var(--muted); font-size: 11.250px; font-weight: 800; font-style: normal; }
.work-handoff-steps li > i svg { width: 12px; height: 12px; color: var(--teal); }
.work-handoff-steps li > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.work-handoff-steps li > div strong { font-size: 12.500px; font-weight: 750; }
.work-handoff-steps li > div small { color: var(--muted); font-size: 11.250px; }
.work-handoff-steps li.is-done { border-color: var(--line); background: var(--canvas); }
.work-handoff-steps li.is-done > i { background: var(--teal-soft); border-color: transparent; }
.work-handoff-steps li.is-done > div strong { color: var(--muted); font-weight: 650; text-decoration: line-through; }
.work-handoff-taken { flex: 0 0 auto; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.work-handoff-go { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font: inherit; font-size: 11.875px; font-weight: 750; cursor: pointer; transition: .15s; }
.work-handoff-go:hover:not(:disabled) { background: #101413; }
.work-handoff-go.is-armed { border-color: var(--coral); background: var(--coral); }
.work-handoff-go:disabled { border-color: var(--line); background: transparent; color: var(--muted); cursor: default; }
/* Each way out is a channel: pick one and read the message it would carry. */
.work-handoff-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.work-handoff-channel { flex: 1 1 150px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.work-handoff-channel:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.work-handoff-channel > svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--muted); }
.work-handoff-channel > span { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.work-handoff-channel > span strong { font-size: 12.500px; font-weight: 750; }
.work-handoff-channel > span small { color: var(--muted); font-size: 11.250px; }
.work-handoff-num { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--canvas); color: var(--muted); font: inherit; font-size: 11.250px; font-weight: 800; }
.work-handoff-num svg { width: 12px; height: 12px; }
.work-handoff-channel.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--canvas); }
.work-handoff-channel.is-active > svg { color: var(--ink); }
.work-handoff-channel.is-done { border-color: var(--line); background: var(--canvas); }
.work-handoff-channel.is-done > span strong { color: var(--muted); font-weight: 650; }
.work-handoff-num.is-done { border-color: transparent; background: var(--teal-soft); color: var(--teal); }
/* The composed message itself — the email or the Slack post, set to be read. */
.work-compose { display: grid; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfbfa; }
.work-compose > header { display: flex; align-items: center; gap: 9px; }
.work-compose-to { display: flex; align-items: center; gap: 8px; min-width: 0; }
.work-compose-to > span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: white; border: 1px solid var(--line); color: var(--muted); }
.work-compose-to > span svg { width: 14px; height: 14px; }
.work-compose-to em { color: var(--muted); font-style: normal; font-size: 12.500px; }
.work-compose-to strong { font-size: 12.500px; font-weight: 750; }
.work-compose-message { display: grid; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.compose-subject { display: grid; gap: 3px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.compose-subject span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.compose-subject strong { font-size: 13.500px; font-weight: 750; line-height: 1.4; }
.compose-body { display: grid; gap: 10px; }
.compose-body p { margin: 0; color: #2c3234; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.compose-sign { margin: 0; color: var(--muted); font-size: 12px; }
.compose-slack { gap: 8px; padding: 13px 15px; }
.compose-slack-head { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.compose-slack-avatar { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; font-weight: 800; }
.compose-slack-head span { display: grid; gap: 1px; min-width: 0; }
.compose-slack-head strong { font-size: 12.500px; font-weight: 750; }
.compose-slack-head em { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.250px; font-style: normal; }
.compose-slack-head em svg { width: 11px; height: 11px; }
.compose-slack-lead { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.5; }
.compose-slack .compose-body { margin-top: 2px; }
.work-compose-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 30px; }
.work-compose-note { margin: 0; color: var(--muted); font-size: 12.500px; }
.work-compose.is-sent .work-compose-message { opacity: .72; }
/* The question, drawn as a conversation: the agent asks, you reply, it follows
   up — here about the workflow it is learning to augment. */
.work-chat { gap: 12px; }
.work-chat-log { display: grid; gap: 10px; }
.work-chat-msg { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 8px; align-items: start; }
.work-chat-msg > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 850; }
.work-chat-msg > p { justify-self: start; max-width: 470px; margin: 0; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--canvas); color: #4d5752; font-size: 12.500px; line-height: 1.55; }
.work-chat-msg.is-agent > p { border: 1px solid var(--line); }
.work-chat-msg.is-user { grid-template-columns: minmax(0, 1fr) 27px; }
.work-chat-msg.is-user > span { grid-column: 2; background: var(--ink); color: white; }
.work-chat-msg.is-user > p { grid-row: 1; justify-self: end; border-radius: 12px 4px 12px 12px; background: var(--ink); color: white; }
.work-chat-msg.is-thinking > p { display: flex; gap: 4px; padding-block: 13px; }
.work-chat-msg.is-thinking i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: think 1s infinite alternate; }
.work-chat-msg.is-thinking i:nth-child(2) { animation-delay: .2s; }
.work-chat-msg.is-thinking i:nth-child(3) { animation-delay: .4s; }
.work-chat-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.work-choice { min-height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: .15s; }
.work-choice:hover { border-color: var(--teal); color: var(--teal); }
.work-chat-form { display: flex; gap: 8px; }
.work-chat-form input { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 12.500px; }
.work-chat-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(39, 119, 108, .09); }
.work-chat-form button { flex: 0 0 auto; width: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--ink); color: white; cursor: pointer; }
.work-chat-form button svg { width: 15px; height: 15px; }
.work-chat-note { margin: 0; color: var(--muted); font-size: 11.500px; }
/* The send-back note is the whispered alternative to the sends above it. */
.work-handoff .work-reply { gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.work-reply { display: flex; }
.work-reply textarea { flex: 1 1 auto; min-width: 0; min-height: 38px; max-height: 96px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: 12.500px; resize: vertical; }
.work-reply textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px #fde7e2; }
.work-reply button { flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; font: inherit; font-size: 12.500px; font-weight: 750; cursor: pointer; }
.work-reply button:hover { border-color: var(--coral); color: var(--coral); }

/* How it was made. Recessive on purpose and collapsed by default — it is what
   you read if you doubt the thing above, not what you read first. */
.work-trace { padding: 0; }
.work-trace > summary { display: flex; align-items: center; gap: 9px; padding: 14px 18px; list-style: none; cursor: pointer; }
.work-trace > summary::-webkit-details-marker { display: none; }
.work-trace > summary h2 { color: var(--muted); font-size: 11.250px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.work-trace > summary span { margin-left: auto; color: var(--muted); font-size: 12.500px; }
.work-trace > summary svg { width: 13px; height: 13px; color: var(--muted); transition: transform .15s; }
.work-trace[open] > summary svg { transform: rotate(180deg); }
.work-trace-body { display: grid; gap: 16px; padding: 2px 20px 18px; border-top: 1px solid var(--line); }

/* The evidence, one line per record, compact enough to sit under the call. */
.work-reads { display: grid; gap: 7px; }
.work-reads h4 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 11.250px; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
.work-reads h4 b { padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: 10px; }
.work-reads ul { display: grid; margin: 0; padding: 0; list-style: none; }
.work-reads li { display: grid; grid-template-columns: 74px minmax(110px, 180px) minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
.work-reads li:first-child { border-top: 0; }
.work-reads span { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.work-reads strong { font-size: 11.875px; font-weight: 750; }
.work-reads em { color: var(--muted); font-size: 12.500px; font-style: normal; line-height: 1.45; }

/* The way back to the record itself. An in-app record is a quiet link; one
   that leaves for another system says so, so a click is never a surprise. */
.work-record-open { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 11.250px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: .15s; }
.work-record-open:hover { border-color: var(--ink); }
.work-record-open svg { width: 11px; height: 11px; flex: 0 0 auto; }
.work-record-open.is-outside { border-style: dashed; color: var(--muted); }
.work-record-open.is-outside:hover { color: var(--ink); }

/* A decision row: the workflow, the step it is on, what it read, what it holds. */
.work-card.is-triage { gap: 10px; padding: 14px 16px; }
.triage-now { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.500px; }
.triage-now i { font-style: normal; color: var(--muted); font-size: 11.250px; font-weight: 750; }
.triage-now b { padding: 1px 7px; border-radius: 999px; background: var(--coral); color: white; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.triage-io { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.triage-col { min-width: 0; display: grid; gap: 4px; align-content: start; }
.triage-col > b { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.triage-col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.triage-col li { display: grid; gap: 1px; }
.triage-col em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11.250px; font-weight: 750; }
.triage-col span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12.500px; line-height: 1.4; }
.triage-io .triage-col:last-child em { color: #8a3d2f; }
.triage-deny { display: flex; gap: 8px; }
.triage-deny input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--coral); border-radius: 999px; font-size: 12.500px; }
.triage-deny input:focus { outline: none; box-shadow: 0 0 0 3px #fde7e2; }
.triage-deny button { padding: 0 16px; border: 1px solid var(--coral); border-radius: 999px; background: var(--coral); color: white; font-size: 12.500px; font-weight: 750; }

/* The work inbox: a row is a message, and opening it shows the execution. */
.work-inbox-rows { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.work-mail { position: relative; border-bottom: 1px solid var(--line); }
.work-mail:last-child { border-bottom: 0; }
.work-mail-open { display: grid; gap: 4px; width: 100%; padding: 15px 16px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.work-mail-open:hover { background: #fbfbfa; }
.work-mail-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12.500px; }
.work-mail-dot { flex: 0 0 auto; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.work-mail:not(.is-unread) .work-mail-dot { visibility: hidden; }
.work-mail-who strong { font-weight: 650; }
.work-mail.is-unread .work-mail-who strong { font-weight: 780; }
.work-mail-kind { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.work-mail-kind.is-question { background: var(--butter-soft); color: #8a6a15; }
.work-mail-kind.is-done { background: var(--teal-soft); color: var(--teal); }
.work-mail-blocked { flex: 0 0 auto; padding: 1px 7px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; }
.work-mail-who time { margin-left: auto; color: var(--muted); font-size: 11.875px; white-space: nowrap; }
.work-mail-ask { font-size: 14.375px; font-weight: 650; }
.work-mail.is-unread .work-mail-ask { font-weight: 780; }
.work-mail-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.500px; }
/* A message opened as its own page. The bar carries the back button and the
   ask; the body is the whole call, held to a reading measure rather than the
   list's full width. */
.work-back { flex: 0 0 auto; }
.work-detail { width: 100%; max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.work-detail-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.work-detail-foot .work-row-actions { position: static; justify-content: flex-end; opacity: 1; pointer-events: auto; padding: 0; background: transparent; }
.work-row-actions { position: absolute; right: 14px; bottom: 13px; display: flex; gap: 6px; opacity: 0; pointer-events: none; background: #fbfbfa; padding-left: 10px; }
.work-mail:hover .work-row-actions, .work-mail:focus-within .work-row-actions { opacity: 1; pointer-events: auto; }
.work-row-actions button { border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 8px; background: white; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.work-row-actions button:hover { border-color: var(--teal); color: var(--teal); }
.work-row-actions button.is-armed { border-color: var(--coral); background: var(--coral); color: white; }
.work-row-actions button.is-armed:hover { border-color: var(--coral); color: white; }
@media (hover: none) { .work-row-actions { position: static; justify-content: flex-end; opacity: 1; pointer-events: auto; padding: 0 16px 12px; background: transparent; } }


/* Work that only exists once you name it: the form is the whole call, so it
   takes the full width the reply box and the grant would have shared. */
.work-name-form { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--lavender); border-radius: 10px; background: #fbfafd; }
.work-name-form input { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font: inherit; font-size: 12.500px; }
.work-name-form input:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px #efe9fb; }
.work-name-form button { flex: 0 0 auto; height: 34px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font: inherit; font-size: 12.500px; font-weight: 750; cursor: pointer; transition: .15s; }
.work-name-form button:hover { background: #101413; }

/* An empty folder is a settled state, not a gap in the page. */
.work-blank { display: grid; justify-items: center; gap: 5px; padding: 58px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.work-blank > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.work-blank svg { width: 18px; height: 18px; }
.work-blank strong { font-size: 14.375px; font-weight: 780; }
.work-blank p { max-width: 350px; margin: 0; color: var(--muted); font-size: 12.500px; line-height: 1.55; }
.assistant-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid white; border-radius: 999px; background: var(--coral); color: white; font-size: 10px; font-style: normal; font-weight: 800; line-height: 14px; }
.work-group > header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.work-group > header strong { font-size: 15.000px; font-weight: 800; }
.work-group > header b { min-width: 18px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 11.250px; text-align: center; }
.work-group > header small { color: var(--muted); font-size: 12.500px; }
.work-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 12.500px; }
/* The one thing that is not a starter: a quiet way to ask for work that does
   not exist yet, below the two lists rather than a third of their kind. */
.work-start-else { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 12.500px; }
.work-start-else button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font: inherit; font-size: 12.500px; font-weight: 750; cursor: pointer; }
.work-start-else button:hover { border-color: var(--ink); }
.work-start-else button svg { width: 12px; height: 12px; }
.work-card { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: white; }
.work-card + .work-card { margin-top: 10px; }
.work-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-card > header strong { font-size: 14.375px; font-weight: 780; }
.work-card > header em { color: var(--muted); font-size: 11.875px; font-style: normal; }
.work-terms { flex: 0 0 auto; color: #245e53; font-size: 12.500px; font-weight: 750; }
.work-scope { max-width: 62ch; margin: 0; font-size: 13.125px; line-height: 1.5; }
.work-origin, .work-next { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 12.500px; }
.work-origin svg, .work-next svg { width: 13px; height: 13px; flex: 0 0 auto; }
.work-next { color: #245e53; font-weight: 650; }
.work-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11.875px; }
.work-meta em { font-style: normal; }
.work-decide { display: flex; gap: 8px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.work-decide button { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 12.500px; font-weight: 750; transition: .15s; }
.work-decide button:hover { border-color: var(--ink); }
.work-decide .work-approve { border-color: var(--ink); background: var(--ink); color: white; }
.work-decide .work-approve:hover { background: #101413; }
.work-decide .work-approve.is-armed { border-color: var(--coral); background: var(--coral); }
.work-open { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 12.500px; font-weight: 750; }
.work-open svg { width: 13px; height: 13px; }
.work-card.is-parked { padding: 10px 16px; background: #fbfbfa; }
.work-card.is-parked > header { align-items: center; }
.work-card.is-parked strong { color: var(--muted); font-weight: 700; }
.work-card.is-parked button { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 11.875px; font-weight: 750; }
.work-open:hover, .work-card.is-parked button:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Client shell: Allies (who can see your data) ===== */
.allies-page { width: calc(100% - 32px); height: calc(100vh - 100px); margin: 16px auto; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 17px; background: white; box-shadow: 0 2px 7px rgba(30, 38, 34, .035); }
.allies-inner { max-width: 780px; margin: 0 auto; padding: 46px 32px 60px; display: grid; gap: 26px; }
.allies-hero h1 { margin: 0 0 10px; font-size: 27px; font-weight: 550; letter-spacing: -.8px; }
.allies-lede { max-width: 62ch; margin: 0; color: var(--muted); font-size: 14.375px; line-height: 1.6; }
.ally-card { border: 1px solid var(--line-strong); border-radius: 16px; background: white; overflow: hidden; }
.ally-card.is-paused { background: #fbfbfa; }
.ally-id { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ally-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: white; font-size: 18.125px; font-style: normal; font-weight: 850; }
.ally-card.is-paused .ally-mark { background: var(--muted); }
.ally-name { min-width: 0; display: grid; gap: 1px; }
.ally-name strong { font-size: 16.250px; font-weight: 800; }
.ally-name small { color: var(--muted); font-size: 12.500px; }
.ally-people { display: flex; margin-left: auto; }
.ally-people i { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -6px; border: 2px solid white; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 11.250px; font-style: normal; font-weight: 800; }
.ally-actions { display: flex; gap: 7px; margin-left: 14px; }
.ally-actions button { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; font-size: 12.500px; font-weight: 750; transition: .15s; }
.ally-actions button:hover { border-color: var(--ink); }
.ally-actions .ally-pause.is-armed { border-color: var(--coral); background: var(--coral); color: white; }
.ally-actions .ally-resume { border-color: var(--teal); background: var(--teal); color: white; }
.ally-scopes { display: grid; }
.scope-row { display: grid; grid-template-columns: 150px 128px 1fr; gap: 14px; align-items: baseline; padding: 12px 20px; }
.scope-row + .scope-row { border-top: 1px solid var(--line); }
.scope-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13.125px; font-weight: 750; }
.scope-name svg { width: 14px; height: 14px; color: var(--muted); }
.scope-level { justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: 11.250px; font-weight: 780; }
.scope-row.is-full .scope-level { background: var(--teal-soft); color: #245e53; }
.scope-row.is-partial .scope-level { background: var(--butter-soft); color: #7a611a; }
.scope-row.is-none .scope-level { background: var(--canvas); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.scope-row p { margin: 0; font-size: 12.500px; line-height: 1.5; }
.scope-row.is-none p, .scope-row.is-none .scope-name { color: var(--muted); }
.scope-row.is-none .scope-name { font-weight: 650; }
.ally-last { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-top: 1px solid var(--line); background: #fbfbfa; color: var(--muted); font-size: 11.875px; }
.ally-last svg { width: 13px; height: 13px; }
.ally-paused-note { display: flex; align-items: center; gap: 9px; margin: 0; padding: 16px 20px; color: var(--muted); font-size: 13.125px; }
.ally-paused-note svg { width: 14px; height: 14px; flex: 0 0 auto; }
.ally-ledger h2, .ally-never h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16.250px; font-weight: 800; }
.ally-ledger > p { margin: 0 0 12px; color: var(--muted); font-size: 12.500px; }
.ledger-rows { border: 1px solid var(--line-strong); border-radius: 13px; background: white; overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 150px 200px 1fr; gap: 12px; padding: 10px 16px; font-size: 12.500px; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row em { color: var(--muted); font-style: normal; }
.ledger-row strong { font-weight: 750; }
.ledger-row span { color: var(--muted); }
.ally-never { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fbfbfa; }
.ally-never svg { width: 15px; height: 15px; color: var(--teal); }
.ally-never ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.500px; }
.views-toggle button:focus-visible, .work-decide button:focus-visible, .work-composer button:focus-visible, .ally-actions button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Views library: creation first, folders with indented saved items below. */
.dashboards-sidebar .views-new { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; }
.dashboards-sidebar .views-new:hover { background: #eeefed; }
.views-new svg { width: 20px; height: 20px; }
.views-library { margin-top: 22px; }
.views-group + .views-group { margin-top: 20px; }
.views-group-heading { display: flex; align-items: center; gap: 4px; }
.views-group-heading button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #555d58; font: inherit; font-size: 14px; text-align: left; }
.views-group-heading button:first-child { flex: 1; }
.views-group-heading button:hover { background: #eeefed; }
.views-group-heading button > span { flex: 1; }
.views-group-heading small { color: var(--muted); font-size: 11px; }
.views-group-heading svg { width: 18px; height: 18px; flex-shrink: 0; }
.views-disclosure[aria-expanded="false"] svg { transform: rotate(-90deg); }
.dashboards-sidebar .views-group nav { min-height: 0; overflow: visible; }
.dashboards-sidebar .views-group nav .views-item { padding: 11px 12px 11px 38px; margin: 2px 0; border: 0; border-radius: 9px; font-size: 14px; font-weight: 400; }
.dashboards-sidebar .views-group nav .views-item > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboards-sidebar .views-group nav .views-item[aria-current="page"] { background: #ecefed; color: var(--ink); }
.dashboards-sidebar .views-group nav .views-show-more { padding-left: 38px; color: var(--muted); font-size: 13px; }
.views-group .dashboard-sidebar-empty { margin: 0; padding: 8px 12px 8px 38px; font-size: 12px; }
.dashboards-sidebar button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.views-add-folder { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.views-add-folder:hover { background: #eeefed; color: var(--ink); }
.views-item-row { display: flex; align-items: center; position: relative; min-width: 0; }
.dashboards-sidebar .views-group nav .views-item { min-width: 0; flex: 1; padding-right: 32px; }
.dashboards-sidebar .views-group nav .views-move { position: absolute; right: 4px; width: 26px; height: 26px; padding: 5px; margin: 0; opacity: 0; color: var(--muted); }
.views-item-row:hover .views-move, .views-item-row:focus-within .views-move { opacity: 1 !important; }
.views-group-heading button:not(:first-child) { padding: 6px; }
.views-group-heading button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.views-group-heading button:not(:first-child) svg { width: 14px; height: 14px; }
.views-folder-form { display: grid; gap: 8px; padding: 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.views-folder-form label { font-size: 12px; color: var(--muted); }
.views-folder-form input, .views-folder-form select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.views-folder-form > div { display: flex; gap: 6px; }
.dashboards-sidebar .views-folder-form button { width: auto; margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f0f1ee; color: var(--ink); font: inherit; font-size: 12px; }
.views-local-note { margin: 12px 8px 0; padding-top: 24px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* New dashboard starts with a prompt, before any editing controls appear. */
.dashboard-landing { border: 1px solid var(--line-strong); border-radius: 17px; background: var(--paper); box-shadow: 0 2px 7px rgba(30, 38, 34, .035); min-width: 0; min-height: 0; display: flex; overflow-y: auto; padding: 48px 40px; }
.dashboard-start { width: 100%; max-width: 720px; margin: auto; padding-bottom: 8vh; }
.dashboard-start > header, .data-chat-welcome { text-align: center; margin-bottom: 32px; }
.dashboard-start > header img, .data-chat-welcome img { width: 75.6px; height: 89.6px; object-fit: contain; margin-bottom: 20px; }
.dashboard-start h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 500; }
.dashboard-start > header p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dashboard-start-composer { overflow: hidden; padding: 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: white; box-shadow: 0 4px 16px rgba(30, 38, 34, .04); }
.dashboard-start-composer:focus-within { border-color: #8faa98; box-shadow: 0 0 0 3px rgba(83, 126, 98, .08); }
.dashboard-start-composer textarea { display: block; width: 100%; min-height: 94px; max-height: 220px; resize: vertical; padding: 2px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; }
.dashboard-start-composer textarea::placeholder { color: #959b97; }
.dashboard-start-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.dashboard-start-composer > div > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.dashboard-start-composer button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #304b3c; color: white; }
.dashboard-start-composer button svg { transform: rotate(-90deg); width: 18px; height: 18px; }
.dashboard-start button:disabled { opacity: .5; cursor: wait; }
.dashboard-start button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.dashboard-start-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.dashboard-start-suggestions button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #616b64; font: inherit; font-size: 12px; }
.dashboard-start-suggestions button:hover { background: #edf2ee; border-color: #dce5dd; color: #395d48; }
.dashboard-start-suggestions svg { width: 15px; height: 15px; }
.dashboard-start-hint { margin: 18px 0 0; text-align: center; color: #959b97; font-size: 10px; }
.dashboard-start-folder { display: flex; align-items: center; gap: 7px; margin: 0 6px 12px; color: var(--muted); font-size: 12px; }
.dashboard-start-folder svg { width: 15px; height: 15px; }
.dashboard-start-status { color: var(--muted); text-align: center; font-size: 13px; }
.dashboard-start-conversation { max-height: 220px; overflow-y: auto; margin-bottom: 20px; font-size: 13px; line-height: 1.6; }
.dashboard-start-conversation p { padding: 12px 16px; border-radius: 10px; background: white; }
.dashboard-start-conversation > p > strong { display: block; margin-bottom: 4px; font-size: 11px; color: var(--muted); }
@media (max-width: 1180px) { .dashboard-landing { padding-inline: 28px; } }

.preview-dashboard { padding: 24px 32px 36px; }
.preview-toolbar, .preview-toolbar > div, .preview-filters { display: flex; align-items: center; gap: 8px; }
.preview-toolbar { justify-content: space-between; margin-bottom: 22px; }
.preview-label { color: var(--muted); font-size: 11px; }
.preview-toolbar button, .preview-filters button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); font-size: 12px; }
.preview-toolbar button[aria-pressed="true"], .preview-filters button[aria-pressed="true"] { background: #edf2ee; border-color: #cddbd0; color: #395d48; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.preview-metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preview-metrics article > span { color: var(--muted); font-size: 12px; }
.preview-metrics strong { display: block; margin: 16px 0 8px; font-size: 36px; font-weight: 550; letter-spacing: -1px; }
.preview-metrics strong small { margin-left: 5px; font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.preview-metrics p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.preview-portfolio { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preview-portfolio > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px; }
.preview-dashboard h2 { margin: 0 0 6px; font-size: 17px; font-weight: 550; }
.preview-portfolio header p { margin: 0; font-size: 12px; color: var(--muted); }
.preview-portfolio table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.preview-portfolio th, .preview-portfolio td { padding: 15px 16px; border-top: 1px solid var(--line); }
.preview-portfolio th { font-size: 11px; color: var(--muted); font-weight: 500; }
.preview-portfolio th button, .preview-portfolio td button { padding: 0; border: 0; background: transparent; font: inherit; text-align: left; }
.preview-portfolio td button { color: #395d48; font-weight: 600; }
.preview-portfolio td button:hover { text-decoration: underline; }
.preview-portfolio tr.is-selected { background: #f2f6f2; }
.preview-health { display: inline-block; white-space: nowrap; padding: 4px 7px; border-radius: 5px; font-size: 10px; }
.preview-health.is-healthy { background: #edf2ee; color: #395d48; }
.preview-health.is-attention { background: #fff4de; color: #8c641c; }
.preview-client-detail { padding: 22px; margin-top: 20px; border: 1px solid #cddbd0; border-radius: 12px; background: #f7faf7; }
.preview-client-detail header { display: flex; align-items: center; justify-content: space-between; }
.preview-client-detail header button { display: grid; place-items: center; border: 0; background: transparent; }
.preview-client-detail p { font-size: 13px; line-height: 1.6; }
.preview-client-detail > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.preview-tip { color: var(--muted); font-size: 12px; text-align: center; margin: 24px 0 0; }

.dashboard-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dashboard-tools > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 34px; height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #66716a; font-size: 12px; }
.dashboard-tools > button:hover { background: #edf2ee; color: #395d48; }
.dashboard-tools > .dashboard-share-button { background: #edf2ee; border-color: #dce5dd; color: #395d48; padding-inline: 12px; }
.dashboard-tools svg { width: 17px; height: 17px; }
.dashboard-save-state { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; padding: 5px 9px; border: 1px solid #e3e7e2; border-radius: 999px; background: #f5f7f4; color: #66716a; font-size: 11px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.dashboard-save-state.is-unsaved { border-color: #ebdfc7; background: #faf6ed; color: #85642d; }
.dashboard-save-state.is-unsaved::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #b18a46; }
.dashboard-save-state[hidden] { display: none; }
.dashboard-panel-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(25, 32, 28, .2); }
.dashboard-control-panel { width: 560px; max-width: 100%; max-height: calc(100vh - 64px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 24px 80px rgba(25, 32, 28, .18); }
.dashboard-control-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.dashboard-control-panel h2 { margin: 0; font-size: 20px; font-weight: 550; letter-spacing: -.4px; }
.dashboard-control-panel button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f7f8f6; font: inherit; font-size: 12px; }
.dashboard-control-panel header > button { border: 0; background: transparent; padding: 5px; }
.dashboard-panel-body { padding: 20px 24px; min-height: 0; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.dashboard-panel-body > p:first-child { margin-top: 0; }
.dashboard-panel-body h3 { margin: 24px 0 10px; font-size: 13px; font-weight: 600; }
.dashboard-panel-note { color: var(--muted); font-size: 12px; }
.dashboard-control-panel input, .dashboard-control-panel select { min-width: 0; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--ink); font: inherit; font-size: 12px; }
.dashboard-share-invite > label, .dashboard-share-general > label { display: block; margin: 20px 0 7px; font-weight: 550; }
.dashboard-share-invite > div { display: flex; gap: 7px; }
.dashboard-share-invite input { flex: 1; width: 0; }
.dashboard-person { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.dashboard-person > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dashboard-person small { display: block; color: var(--muted); }
.dashboard-person b { font-weight: 400; color: var(--muted); }
.dashboard-person button { padding: 6px; }
.dashboard-person button svg { width: 14px; height: 14px; }
.dashboard-share-general > select { width: 100%; }
.dashboard-share-general > div { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.dashboard-share-general > div label { flex: 1; color: var(--muted); font-size: 12px; }
.dashboard-permission-help { font-size: 11px; color: var(--muted); margin-top: 20px; }
.dashboard-control-panel > footer, .dashboard-panel-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); }
.dashboard-panel-actions { padding: 18px 0 0; }
.dashboard-source-card { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.dashboard-source-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.dashboard-source-card h3 svg { width: 17px; height: 17px; color: #537e62; }
.dashboard-source-card p { margin: 8px 0 0; color: #616b64; font-size: 12px; }
.dashboard-source-card ul { margin: 8px 0; padding-left: 18px; font-size: 12px; color: #616b64; }
@media (max-width: 1180px) { .dashboard-header { flex-wrap: wrap; gap: 14px; } .dashboard-tools { margin-left: auto; } }

/* Match permission controls to the app instead of the platform select chrome. */
.dashboard-control-panel select { appearance: none; -webkit-appearance: none; min-height: 36px; padding: 8px 34px 8px 12px; border-color: #dfe5df; border-radius: 8px; background-color: #f6f8f5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667569' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; color: #395044; font-size: 13px; line-height: 18px; cursor: pointer; }
.dashboard-control-panel select:hover { background-color: #edf2ec; border-color: #c9d6cb; }
.dashboard-control-panel select:focus-visible, .dashboard-control-panel input:focus-visible { outline: 2px solid #759680; outline-offset: 2px; }
.dashboard-control-panel option { background: white; color: var(--ink); }
.dashboard-share-invite input { min-height: 36px; font-size: 13px; }
.dashboard-share-general { padding: 0 16px 16px; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; }

/* The dashboard remains mounted beside its adjustment conversation. */
.dashboard-header { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.dashboard-title-button { padding: 3px 0; border: 0; background: transparent; border-radius: 5px; font: inherit; color: inherit; text-align: left; cursor: text; }
.dashboard-title-button:hover { background: #f1f3ef; }
.dashboard-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.dashboard-body > .dashboard-canvas { flex: 1; min-width: 0; }
.dashboard-adjust { display: flex; flex-direction: column; position: fixed; right: 22px; bottom: 88px; width: min(420px, calc(100vw - 44px)); height: min(580px, calc(100dvh - 172px)); min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #fafbf9; box-shadow: 0 12px 48px rgba(24, 35, 29, .16); }
.dashboard-adjust > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.dashboard-adjust h2 { margin: 0 0 7px; font-size: 16px; font-weight: 550; }
.dashboard-adjust header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-adjust header button { display: grid; place-items: center; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.dashboard-adjust-history { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; font-size: 12px; line-height: 1.6; }
.dashboard-adjust-history article { margin-bottom: 15px; padding: 12px; border-radius: 10px; background: white; }
.dashboard-adjust-history .is-user { background: #edf2ee; }
.dashboard-adjust-history strong { color: var(--muted); font-size: 10px; font-weight: 550; }
.dashboard-adjust-history p { margin: 4px 0 0; }
.dashboard-adjust-ideas { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.dashboard-adjust-ideas button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #56685b; font-size: 11px; text-align: left; }
.dashboard-adjust .assistant-composer { background: transparent; }
.dashboard-adjust > header, .dashboard-adjust-ideas, .dashboard-adjust > .assistant-composer { flex-shrink: 0; }

/* In-app permission menus replace the native macOS select popup. */
.permission-picker { position: relative; flex-shrink: 0; font-size: 13px; }
.permission-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 11px; border: 1px solid #dfe5df; border-radius: 8px; background: #f6f8f5; color: #395044; cursor: pointer; list-style: none; }
.permission-picker > summary::-webkit-details-marker { display: none; }
.permission-picker > summary svg { width: 15px; height: 15px; }
.permission-picker[open] > summary, .permission-picker > summary:hover { background: #edf2ec; border-color: #b7cbbb; }
.permission-picker > summary:focus-visible { outline: 2px solid #759680; outline-offset: 2px; }
.permission-menu { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: 245px; padding: 5px; border: 1px solid #dce3dc; border-radius: 12px; background: white; box-shadow: 0 8px 28px rgba(30, 45, 34, .13); }
.permission-picker.opens-up .permission-menu { top: auto; bottom: calc(100% + 6px); }
.dashboard-control-panel .permission-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; color: var(--ink); }
.dashboard-control-panel .permission-menu button:hover, .dashboard-control-panel .permission-menu button:focus-visible { background: #edf2ee; outline: none; }
.dashboard-control-panel .permission-menu button[aria-checked="true"] { color: #395d48; background: #f4f7f3; }
.permission-choice-check { width: 17px; flex: 0 0 17px; }
.permission-choice-check svg { width: 15px; height: 15px; }
.permission-menu strong { display: block; font-size: 13px; font-weight: 550; }
.permission-menu small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.dashboard-share-general > .permission-picker { width: 100%; }

.dashboard-body > .dashboard-canvas:has(.preview-dashboard) { padding: 0; }
.dashboard-adjust header small { display: block; margin-bottom: 7px; color: var(--teal); font-size: 11px; font-weight: 600; }
.dashboard-adjust h2 { overflow-wrap: anywhere; }

.source-status { padding: 14px 16px; border-radius: 10px; background: #f3f1e8; color: #665a32; }
.source-status strong { font-size: 13px; }
.source-status p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.source-proof { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.source-proof summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 13px; }
.source-proof summary::before { content: "+"; color: var(--teal); }
.source-proof[open] summary::before { content: "−"; }
.source-proof summary > span { flex: 1; }
.source-proof summary small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.source-proof summary svg { width: 15px; height: 15px; }
.source-proof summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.source-proof .source-calculation { padding: 10px; background: #edf2ee; border-radius: 6px; color: var(--ink); }
.source-record dl { display: grid; gap: 8px; font-size: 12px; margin: 14px 0; }
.source-record dl > div { display: flex; justify-content: space-between; gap: 16px; }
.source-record dt { color: var(--muted); }
.source-record dd { margin: 0; text-align: right; }
.source-record blockquote { margin: 8px 0; padding: 8px 12px; border-left: 2px solid #9eb5a5; color: #45554b; font-size: 12px; line-height: 1.6; }
.source-record .source-record-origin { font-size: 11px; color: var(--muted); }

.dashboard-control-panel.is-evidence { width: min(860px, calc(100vw - 48px)); }
.evidence-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.evidence-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.evidence-table-wrap th { padding: 11px 14px; color: var(--muted); background: #f5f7f4; font-weight: 500; }
.evidence-table-wrap td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.evidence-table-wrap small { display: block; color: var(--muted); }
.evidence-link, .preview-metrics article > button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: var(--teal); font-size: 12px; text-align: left; }
.evidence-link svg, .preview-metrics article > button svg { width: 14px; height: 14px; flex-shrink: 0; }
.evidence-excerpt { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
.evidence-excerpt header { display: flex; justify-content: space-between; gap: 12px; }
.evidence-excerpt header span, .evidence-excerpt > p { font-size: 11px; color: var(--muted); }
.evidence-excerpt blockquote, .evidence-document blockquote { margin: 14px 0; padding-left: 14px; border-left: 3px solid #b4c7b9; }
.evidence-document > header { padding: 20px 0; border-bottom: 1px solid var(--line); }
.evidence-document > header small { font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.evidence-document > header h3 { margin: 8px 0; font-size: 20px; }
.evidence-document mark, .is-evidence-selected { background: #edf3d9; color: inherit; }
.evidence-method { margin-top: 22px; }
.evidence-method > summary { cursor: pointer; color: var(--teal); }

.workflow-content, .workflow-library { padding: 24px; overflow: auto; }
.workflow-preview { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.workflow-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.workflow-toolbar button, .workflow-results header button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; background: white; font-size: 12px; }
.workflow-toolbar svg, .workflow-library svg { width: 16px; height: 16px; }
.workflow-toolbar .primary, .workflow-library > .primary { background: var(--teal); color: white; }
.workflow-plan, .workflow-results { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.workflow-content h2 { margin: 0 0 12px; font-size: 20px; font-weight: 550; }
.workflow-content h3 { font-size: 14px; font-weight: 550; margin-top: 24px; }
.workflow-content p { font-size: 13px; line-height: 1.6; }
.workflow-plan ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px; }
.workflow-plan li { display: flex; gap: 14px; align-items: flex-start; border-radius: 8px; padding: 8px; }
.workflow-plan li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf2ee; color: var(--teal); }
.workflow-plan li strong { font-size: 13px; font-weight: 550; }
.workflow-plan li small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.workflow-plan .is-running { background: #edf2ee; }
.workflow-results > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.workflow-library-item { display: flex; width: 100%; gap: 16px; align-items: center; text-align: left; padding: 18px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.workflow-library-item span { flex: 1; color: var(--muted); font-size: 12px; }
[data-workflow-adjust] { display: grid; gap: 16px; }
[data-workflow-adjust] label { display: grid; gap: 6px; }
[data-workflow-adjust] textarea { border: 1px solid var(--line); border-radius: 7px; padding: 10px; font: inherit; resize: vertical; }
.workflow-quote { border-left: 3px solid var(--teal); margin: 24px 0; padding: 16px; background: #edf2ee; }

.work-sidebar > nav.work-library-nav { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 12px 12px; }
.work-library-nav button { border: 0; background: transparent; color: var(--ink); border-radius: 8px; }
.work-library-nav button:hover, .work-library-nav button[aria-current="page"] { background: #ecefed; }
.work-library-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.work-library-main { display: flex; align-items: center; gap: 10px; padding: 12px 10px; text-align: left; font-size: 14px; }
.work-library-main > span { flex: 1; }
.work-folder-label { display: flex; justify-content: space-between; align-items: center; margin: 28px 10px 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.work-folder-label button { padding: 4px; }
.work-folder-scroll { overflow-y: auto; flex: 1; }
.work-library-folder { margin: 10px 0 16px; }
.work-library-folder > div { display: flex; align-items: center; }
.work-library-folder > div button { padding: 7px 5px; display: flex; align-items: center; gap: 8px; }
.work-library-folder > div button:first-child { flex: 1; text-align: left; }
.work-library-folder > div button:not(:first-child) svg { width: 13px; height: 13px; }
.work-library-folder > p { color: var(--muted); margin: 8px 30px; font-size: 11px; }
.work-library-row { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; padding: 10px 10px 10px 25px; font-size: 12px; }
.work-library-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-library-utilities { display: flex; gap: 8px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
.work-library-utilities button { padding: 9px; display: grid; place-items: center; }
.work-suggestions-label { color: var(--muted); font-size: 12px; margin-top: 24px; }
.work-scratchpad { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.work-scratchpad header { display: flex; justify-content: space-between; gap: 16px; }
.work-scratchpad header > span { font-size: 11px; color: var(--muted); }
.work-scratchpad textarea { width: 100%; border: 0; resize: vertical; min-height: 150px; font: inherit; font-size: 14px; line-height: 1.7; padding: 12px 0; background: transparent; }
.work-scratchpad form > div { display: flex; gap: 12px; align-items: center; }
.work-scratchpad form span { font-size: 11px; color: var(--muted); }
.work-scratchpad form button, .work-move-options button { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; background: white; }
.work-step-check { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); background: #edf2ee; border-radius: 50%; color: var(--teal); }
.work-step-check svg, .work-move-options svg { width: 15px; height: 15px; }
.work-move-options { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.work-move-options button[aria-pressed="true"] { background: #edf2ee; border-color: var(--teal); }
/* First-run orientation owns the window: fixed over the shell, content centred. */
.getting-started { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; padding: 26px max(40px, calc((100% - 960px) / 2)) 40px; background: #fcfdf9; }
.getting-started > * { flex: 0 0 auto; }
.getting-started-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.getting-started-top > span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.getting-started-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; }
.getting-started-close:hover { background: var(--nav-hover); }
.getting-started button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.getting-started-header { padding: 32px 0; }
.getting-started-eyebrow { color: var(--teal); font-size: 12px; font-weight: 550; }
.getting-started-header h1 { margin: 12px 0; font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -1.8px; font-weight: 550; line-height: 1.15; }
.getting-started-header p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; }
.getting-started-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.getting-started-card { padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.getting-started-card-top { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.getting-started-card-top i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.getting-started-card:nth-child(2) i { color: var(--lavender); background: var(--lavender-soft); }
.getting-started-card:nth-child(3) i { color: var(--coral); background: var(--coral-soft); }
.getting-started-card:nth-child(4) i { color: #8a6b25; background: var(--butter-soft); }
.getting-started-card h2 { margin: 18px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 550; letter-spacing: -.3px; }
.getting-started-card p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.getting-started-footer { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.getting-started-footer strong { font-size: 14px; font-weight: 550; }
.getting-started-footer p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.getting-started-footer button { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border: 0; border-radius: 9px; background: var(--ink); color: white; white-space: nowrap; }
.getting-started-footer button:hover { background: var(--teal); }
@media (max-height: 800px) {
  .getting-started { padding-top: 18px; padding-bottom: 24px; }
  .getting-started-header { padding: 22px 0; }
  .getting-started-header h1 { font-size: 36px; }
  .getting-started-card { padding: 18px 24px; }
  .getting-started-card-top i { width: 30px; height: 30px; }
  .getting-started-card h2 { margin-top: 14px; font-size: 18px; }
}
.company-home { overflow-y: auto; padding: 44px clamp(24px, 5vw, 80px); background: #f8faf8; flex: 1; }
.company-home-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.company-home-header > div > span { color: var(--teal); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.company-home svg { width: 17px; height: 17px; }
.company-home h1 { font-size: 32px; font-weight: 550; letter-spacing: -1px; margin: 16px 0 12px; }
.company-home-header p { color: var(--muted); font-size: 14px; }
.company-home-header small { font-size: 11px; color: var(--muted); padding-top: 5px; }
.company-home-header button { display: flex; gap: 7px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.company-home-meta { margin: 34px 0 16px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.company-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.company-home-stats article { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 12px; }
.company-home-stats span, .company-home-stats small { font-size: 12px; color: var(--muted); }
.company-home-stats strong { font-size: 32px; font-weight: 550; }
.company-leaderboard { background: white; border: 1px solid var(--line); border-radius: 14px; margin-top: 24px; overflow: hidden; }
.company-leaderboard > header { padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.company-leaderboard h2 { margin: 0; font-size: 20px; font-weight: 550; }
.company-leaderboard header p, .company-leaderboard header > span { font-size: 12px; color: var(--muted); }
.company-leaderboard header > span { display: flex; gap: 8px; align-items: center; }
.company-leaderboard table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.company-leaderboard th { background: #fafbf9; color: var(--muted); font-size: 11px; font-weight: 500; padding: 12px 24px; }
.company-leaderboard td { padding: 20px 24px; border-top: 1px solid var(--line); }
.leaderboard-person { display: flex; gap: 12px; align-items: center; }
.leaderboard-person i { font-size: 11px; font-style: normal; border-radius: 50%; background: #edf2ee; color: var(--teal); width: 34px; height: 34px; display: grid; place-items: center; }
.leaderboard-person strong { font-weight: 500; }
.leaderboard-rank { color: var(--muted); }
.leaderboard-progress { width: 150px; height: 5px; background: #edf2ee; border-radius: 5px; overflow: hidden; margin-bottom: 7px; }
.leaderboard-progress span { display: block; height: 100%; background: #609079; }
.company-leaderboard td small { font-size: 10px; color: var(--muted); }
.company-home-footer { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; margin-top: 20px; }
[data-home-config-form] label { display: grid; gap: 7px; margin: 18px 0; }
[data-home-config-form] textarea { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.work-sidebar > nav.work-library-nav { padding: 0 0 4px; }
.work-sidebar .work-library-nav .work-folder-label { white-space: nowrap; }
.work-sidebar .work-library-nav .work-folder-label button, .work-sidebar .work-library-nav .work-library-folder > div button:not(:first-child), .work-sidebar .work-library-nav .work-library-utilities button { width: 30px; padding: 6px; flex: 0 0 30px; justify-content: center; margin-bottom: 0; }
.work-sidebar .work-library-nav .work-library-folder > div button:first-child { width: auto; min-width: 0; padding: 9px 5px; gap: 8px; }
.work-sidebar .work-library-nav .work-library-folder > div button > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-sidebar .work-library-nav .work-library-row { font-size: 13px; padding: 9px 10px 9px 24px; }
/* One folder component and spacing system for both libraries. */
:is(.work-workspace, .dashboards-workspace) > section { border-color: var(--line-strong); border-radius: 14px; box-shadow: none; }
:is(.work-sidebar, .dashboards-sidebar) .work-folder-label { display: flex; justify-content: space-between; align-items: center; margin: 24px 10px 12px; white-space: nowrap; }
:is(.work-sidebar, .dashboards-sidebar) .work-folder-label button { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; margin: 0; background: transparent; border: 0; border-radius: 6px; }
:is(.work-sidebar, .dashboards-sidebar) .work-folder-label svg { width: 16px; height: 16px; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder { margin: 0 0 14px; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading { display: flex; align-items: center; gap: 2px; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button { display: flex; align-items: center; justify-content: center; flex: 0 0 25px; width: 25px; padding: 7px 4px; border: 0; background: transparent; margin: 0; gap: 7px; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button:first-child { flex: 1; width: auto; min-width: 0; justify-content: flex-start; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button:not(:first-child) { opacity: 0; pointer-events: none; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading:is(:hover, :focus-within) > button:not(:first-child) { opacity: 1; pointer-events: auto; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button > span { display: block; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--nav-muted); }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-chevron { display: flex; flex: 0 0 12px; align-items: center; justify-content: center; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-chevron svg { width: 12px; height: 12px; }
:is(.work-sidebar, .dashboards-sidebar) [aria-expanded="false"] .library-folder-chevron { transform: rotate(-90deg); }
.views-folder-form .views-folder-delete { color: #9a3636; border-color: #e5caca; }
.views-folder-form p { margin: 8px 0; font-size: 12px; line-height: 1.5; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading small { font-size: 10px; color: var(--muted); }
:is(.work-sidebar, .dashboards-sidebar) .library-folder nav { padding: 4px 0; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder nav[hidden] { display: none; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder :is(.views-item, .work-library-row) { padding: 10px 10px 10px 28px; margin: 2px 0; font-size: 14px; border: 0; border-radius: 8px; min-height: 36px; }
.work-library-row > svg { display: none; }
:is(.work-sidebar, .dashboards-sidebar) :is(.views-new, .work-library-main) { min-height: 44px; margin-bottom: 4px; padding: 11px 10px; border: 0; border-radius: 7px; color: var(--nav-ink); font-size: 15px; font-weight: 500; }
.work-coach { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 14px; margin-bottom: 20px; }
.work-coach > header { display: flex; align-items: center; gap: 12px; }
.work-coach header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.work-coach header div { flex: 1; }
.work-coach header h2 { font-size: 18px; margin-bottom: 4px; }
.work-coach header p, .work-coach small { color: var(--muted); font-size: 11px; margin: 0; }
.work-coach-history { margin: 18px 0; max-height: 260px; overflow-y: auto; }
.work-coach-history article { padding: 12px 16px; border-radius: 9px; margin-top: 10px; background: #f7f8f6; }
.work-coach-history article.is-user { background: #edf2ee; }
.work-coach-history strong { font-size: 11px; color: var(--muted); }
.work-pattern { background: #f2f6f1; border: 1px solid #dce6da; border-radius: 10px; padding: 18px; }
.work-pattern > span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--teal); }
.work-pattern svg { width: 16px; height: 16px; }
.work-pattern h3 { margin: 10px 0; font-size: 17px; }
.work-pattern button, .work-coach form button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; padding: 10px 14px; background: var(--teal); color: white; }
.work-pattern small { display: block; margin-top: 10px; }
.work-coach form { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; }
.work-coach textarea { flex: 1; min-width: 0; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.work-coach form svg { width: 16px; height: 16px; }
.reusable-view { max-width: 1200px; margin: 0 auto; }
.reusable-view > header { margin-bottom: 24px; }
.reusable-view h2 { font-size: 26px; font-weight: 550; letter-spacing: -.6px; }
.reusable-view p { font-size: 13px; line-height: 1.65; color: #616b64; }
.reusable-view .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 11px 15px; border-radius: 8px; background: var(--teal); color: white; }
.reusable-view svg { width: 16px; height: 16px; }
.reusable-view > header > button { margin-right: 14px; }
.tool-kept { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); margin-right: 18px; font-size: 12px; }
.reusable-tool-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.reusable-inputs, .reusable-output { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.reusable-tool-grid h3 { font-size: 16px; font-weight: 550; margin: 0 0 20px; }
.reusable-inputs { display: grid; gap: 14px; }
.reusable-inputs label { display: grid; gap: 7px; font-size: 12px; }
.reusable-inputs input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px; font: inherit; }
.reusable-inputs p, .reusable-output small { font-size: 11px; color: var(--muted); }
.reusable-output header > span { font-size: 12px; color: var(--muted); }
.reusable-output td button { display: flex; }
.tool-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tool-empty > svg { width: 32px; height: 32px; color: #99ad9e; }
.tool-process { margin: 24px 0; font-size: 12px; color: var(--muted); }
.tool-process summary { cursor: pointer; color: var(--teal); }
.evidence-excerpt.is-highlighted { border-color: var(--teal); background: #f2f6f1; }
@media (max-width: 1050px) { .reusable-tool-grid { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button { text-align: left; border-radius: 7px; color: var(--ink); }
:is(.work-sidebar, .dashboards-sidebar) .library-folder nav { min-height: 0; overflow: visible; }
:is(.work-sidebar, .dashboards-sidebar) .library-folder .dashboard-sidebar-empty { margin: 0; padding: 8px 10px 8px 24px; font-size: 11px; }
.views-library { margin-top: 0; }
.dashboards-sidebar .library-folder .views-item { min-width: 0; flex: 1; padding-right: 30px; }
.dashboards-sidebar .library-folder .views-item > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboards-sidebar .library-folder .views-move { position: absolute; right: 4px; width: 26px; height: 26px; padding: 5px; margin: 0; opacity: 0; color: var(--muted); }
:is(.work-sidebar, .dashboards-sidebar) .library-folder-heading > button:hover { background: #eeefed; }

/* Living work: clear outcomes and visible provenance. */
.living-eyebrow { display: block; color: #657e6c; font-size: 12px; font-weight: 550; letter-spacing: .02em; }
.living-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0 16px; }
.living-section-heading h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.living-section-heading p { margin: 6px 0 0; font-size: 13px; color: #677263; }
.living-section-heading > span { font-size: 12px; color: #7b867b; }
.living-section-heading > button { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; color: #476650; font-size: 13px; }
.living-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.living-card { display: flex; flex-direction: column; min-width: 0; text-align: left; padding: 21px 23px 0; background: #fbfcf9; border: 1px solid #e0e6db; border-radius: 13px; transition: background .15s, border-color .15s, transform .15s; }
.living-card:hover { border-color: #9eb29c; background: #f6f9f1; transform: translateY(-2px); }
.living-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.living-card-top > i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e1e7da; border-radius: 9px; background: #f2f5ed; color: #536e48; }
.living-card-top > span { display: flex; align-items: center; gap: 7px; color: #758270; font-size: 12px; }
.living-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #78916d; }
.living-dot.is-paused, .is-paused .living-dot { background: #9b9e97; }
.living-card > strong { font-size: 19px; font-weight: 550; letter-spacing: -.4px; }
.living-card > p { min-height: 36px; margin: 9px 0 16px; color: #778071; font-size: 13px; line-height: 1.5; }
.living-card-metric { display: flex; gap: 12px; align-items: baseline; padding-bottom: 23px; }
.living-card-metric b { font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.living-card-metric span { color: #7a8175; font-size: 12px; }
.living-card footer { margin-top: auto; display: flex; justify-content: space-between; gap: 9px; padding: 13px 0; border-top: 1px solid #e5e9de; font-size: 12px; color: #7f8779; }
.living-card footer svg { width: 15px; height: 15px; }
.maintained-view { max-width: 1250px; margin: 0 auto; }
.living-status-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; font-size: 12px; color: #66705e; }
.living-status { display: flex; align-items: center; gap: 7px; color: #547148; }
.living-status-bar > button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: transparent; font-size: 12px; color: #75826a; }
.living-status-bar svg { width: 14px; }
.living-status.is-warning { color: #9a7536; }
.is-warning .living-dot { background: #b5954e; }
.living-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 26px 28px; border: 1px solid #e0e8d9; border-radius: 12px; background: #f5f8ef; margin-bottom: 25px; }
.living-summary h2 { font-size: 24px; font-weight: 500; margin: 10px 0; letter-spacing: -.6px; }
.living-summary p { max-width: 650px; font-size: 13px; line-height: 1.75; color: #78816e; margin: 0; }
.living-text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #5d7350; font-size: 12px; white-space: nowrap; padding: 7px 0; }
.living-text-button svg { width: 15px; }
.living-comparison { overflow: hidden; border: 1px solid #e4e8df; border-radius: 12px; margin: 0 0 24px; }
.living-comparison > header { display: flex; align-items: center; justify-content: space-between; padding: 21px 23px; gap: 16px; }
.living-comparison h2 { font-size: 17px; font-weight: 550; margin: 0 0 7px; }
.living-comparison header p { font-size: 12px; margin: 0; color: #85907d; }
.living-data-label { padding: 5px 8px; border-radius: 5px; background: #f3f5ee; color: #7f8876; font-size: 12px; white-space: nowrap; }
.living-comparison table { border-collapse: collapse; width: 100%; font-size: 13px; }
.living-comparison th { padding: 12px 17px; text-align: left; background: #f8faf5; border-block: 1px solid #e8ece3; color: #6e7862; font-size: 12px; font-weight: 500; }
.living-comparison td { padding: 22px 17px; border-bottom: 1px solid #edf0e7; }
.living-comparison tr:last-child td { border-bottom: 0; }
.living-comparison td strong, .living-comparison td b { font-weight: 550; }
.living-comparison td small { display: block; font-size: 12px; color: #6a745e; margin-top: 5px; }
.supplier-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; background: #f0f3e9; border-radius: 7px; color: #7d906c; margin-right: 9px; font-size: 12px; }
.living-comparison del { color: #a1a797; font-size: 12px; }
.living-table-note { display: inline-block; font-size: 12px; color: #738366; line-height: 1.5; max-width: 155px; }
.living-table-note.is-warning { color: #a18546; }
.living-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 25px 0; }
.living-care { display: flex; gap: 13px; }
.living-care > i { padding-top: 2px; color: #829272; }
.living-care h3 { margin: 0 0 7px; font-size: 14px; font-weight: 550; }
.living-care p { margin: 0 0 9px; font-size: 12px; line-height: 1.7; color: #858e7c; }
.living-care button, .living-timeline button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #5d7b4d; padding: 0; font-size: 12px; }
.living-care button svg { width: 13px; }
.living-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px dashed #d9dfcf; border-radius: 9px; background: #fcfdf9; padding: 13px 16px; margin-top: 28px; }
.living-demo-bar > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #66725b; }
.living-demo-bar b { color: #6d7c5e; font-weight: 500; }
.living-demo-bar button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #dfe5d4; border-radius: 6px; background: #fff; color: #60794d; font-size: 12px; }
.living-origin { margin-top: 20px; }
.living-tracking { border-top: 1px solid #ecf0e4; padding-top: 16px; }
.living-tracking > summary { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #7b886b; cursor: pointer; }
.living-tracking > form { margin-top: 16px; }
.living-input-grid { display: grid; grid-template-columns: repeat(3, 1fr) 75px; gap: 10px; }
.living-panel-body label { display: grid; gap: 7px; margin: 18px 0 9px; font-size: 13px; }
.living-panel-body input:not([type=checkbox]) { width: 100%; }
.living-panel-body .living-check { display: flex; align-items: center; gap: 9px; margin: 23px 0; }
.living-check input { accent-color: #4d7150; width: 17px; height: 17px; }
.living-panel-lede { font-size: 16px; line-height: 1.6; color: #6d7b61; }
.living-permission-note { display: flex; gap: 9px; padding: 14px; background: #f6f8f0; border-radius: 9px; }
.living-permission-note svg { flex-shrink: 0; color: #8c9c78; }
.living-permission-note p { margin: 0; font-size: 12px; line-height: 1.7; color: #7d886f; }
.living-panel-body .primary { margin-right: 18px; }
.living-timeline { list-style: none; margin: 20px 0; padding: 0; }
.living-timeline li { padding: 0 0 26px 22px; border-left: 2px solid #e1e8d8; position: relative; }
.living-timeline li:before { content: ""; width: 8px; height: 8px; background: #8caa70; position: absolute; left: -5px; top: 3px; border-radius: 50%; }
.living-timeline small { font-size: 12px; color: #8b967f; }
.living-timeline h3 { font-size: 15px; margin: 8px 0; font-weight: 550; }
.living-timeline p { font-size: 13px; line-height: 1.65; color: #7c8770; }
.living-inbox-row { display: flex; align-items: center; gap: 17px; width: 100%; padding: 22px; margin-bottom: 14px; background: #f8faf3; border: 1px solid #dde6d2; border-radius: 11px; text-align: left; }
.living-inbox-row > i { color: #91a674; }
.living-inbox-row > span { display: grid; gap: 7px; flex: 1; }
.living-inbox-row small { color: #8a947d; font-size: 12px; }
.living-inbox-row strong { font-size: 15px; font-weight: 550; }
.living-inbox-row p { margin: 0; font-size: 12px; color: #7e8c6e; }
.share-experience { margin-top: 24px; padding: 18px; border: 1px solid #dde6d1; border-radius: 10px; background: #f8faf3; }
.share-experience strong { font-size: 14px; font-weight: 550; }
.share-experience p { font-size: 12px; line-height: 1.7; color: #778967; }
.share-experience button { display: flex; align-items: center; gap: 8px; }
.recipient-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; background: #f0f4e8; color: #6b7e56; font-size: 12px; }
.recipient-banner > span { flex: 1; }
.recipient-banner b { font-size: 12px; }
.recipient-heading { margin: 25px 0; }
.recipient-heading > span { color: #6b7c57; font-size: 12px; }
.recipient-heading h2 { margin: 9px 0; font-size: 29px; font-weight: 500; letter-spacing: -.7px; }
.recipient-heading p { color: #82906f; font-size: 13px; }
.recipient-boundary { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #687357; }
.recipient-comments { border-top: 1px solid #e5ebdb; margin-top: 23px; padding-top: 20px; }
.recipient-comments h3 { font-size: 14px; font-weight: 550; }
.recipient-comments > p { font-size: 12px; color: #8d987e; }
.recipient-comments > article { display: flex; gap: 12px; background: #f7faf1; padding: 15px; margin-bottom: 18px; border-radius: 10px; }
.recipient-comments article i { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #e8efdc; font-style: normal; font-size: 12px; color: #749253; }
.recipient-comments strong { font-size: 12px; }
.recipient-comments article p { font-size: 13px; line-height: 1.65; color: #6a7f54; }
.recipient-comments small { font-size: 12px; color: #6c7e58; }
.allies-hero > p { color: #758266; line-height: 1.6; font-size: 15px; }
.allies-hero .allies-lede { font-size: 12px; max-width: 700px; margin-bottom: 20px; }
.allies-hero .primary, .allies-shared-empty button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #d3dfc4; background: #f4f8ed; border-radius: 8px; padding: 11px 14px; color: #638345; font-size: 13px; }
.allies-shared-empty { padding: 30px; border: 1px dashed #dbe5cf; border-radius: 12px; background: #fcfdf9; text-align: center; }
.allies-shared-empty > i { color: #90a578; }
.allies-shared-empty h3 { font-size: 19px; font-weight: 500; }
.allies-shared-empty p { color: #6d7f5b; font-size: 13px; line-height: 1.7; }
.ally-access-heading { margin: 36px 0 16px; font-size: 16px; font-weight: 550; }
.shared-living-row { display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px; border: 1px solid #dce6ce; border-radius: 10px; background: #f9fbf4; text-align: left; margin-bottom: 12px; }
.shared-living-row > span:first-of-type { flex: 1; display: grid; gap: 6px; }
.shared-living-row strong { font-size: 15px; font-weight: 550; }
.shared-living-row small, .shared-living-row > span:last-of-type { font-size: 12px; color: #879b6f; }
.home-living-views { margin-top: 36px; }
.company-home { background: #fcfdf9; }
@media (max-width: 1150px) {
  :root { --shell-width: 232px; }
  .topnav { gap: 4px; }
  .topnav button { padding-inline: 13px; font-size: 16px; }
  .living-card { padding: 18px 17px 0; }.living-card-metric { flex-direction: column; gap: 4px; }
  .living-summary { flex-direction: column; gap: 10px; }.living-demo-bar { align-items: flex-start; flex-direction: column; }
  .living-status-bar { flex-wrap: wrap; }.living-status-bar > button { margin-left: 0; }
}

.maintained-view > .living-demo-bar { margin: 0 0 19px; }
.living-comparison .evidence-table-wrap { margin: 0; border: 0; border-radius: 0; }
.living-comparison td { padding-block: 18px; }
.living-summary p, .living-table-note { color: #65735b; }
.living-summary { padding: 22px 25px; }

.views-new[aria-current="page"] { background: var(--nav-selected); color: var(--nav-ink); border-color: transparent; }
.recipient-evidence { margin: 18px 0; }
.recipient-evidence summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #677a55; font-size: 13px; cursor: pointer; }
.recipient-comment-form { display: grid; gap: 9px; margin: 20px 0 10px; }
.recipient-comment-form label { margin: 0; font-size: 12px; }
.recipient-comment-form textarea { width: 100%; border: 1px solid #dce4d1; border-radius: 8px; padding: 12px; font: inherit; font-size: 13px; resize: vertical; }
.recipient-comment-form button { justify-self: start; }
.workflow-content > .workflow-results { margin-top: 0; margin-bottom: 20px; }

.living-card > p { font-size: 14px; color: #6f7967; }
.living-comparison table { font-size: 14px; }
.living-table-note, .living-care p { font-size: 13px; }
.living-summary p { font-size: 14px; }

.allies-hero h1 { font-size: 32px; font-weight: 500; letter-spacing: -1px; margin-top: 14px; }

/* Inbox has its own folders; conversations retain the results that came before. */
.inbox-sidebar { display: flex; flex-direction: column; }
.inbox-folders { display: grid; gap: 5px; }
.work-sidebar .inbox-folders button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--nav-muted); font-size: 15px; font-weight: 500; text-align: left; }
.work-sidebar .inbox-folders button:hover { background: var(--nav-hover); color: var(--nav-ink); }
.work-sidebar .inbox-folders button[aria-current="page"] { background: var(--nav-selected); color: var(--nav-ink); }
.inbox-folders button > span { flex: 1; }
.inbox-folders b { font-size: 12px; font-weight: 550; color: var(--nav-muted); }
.inbox-demo { margin: 24px 10px 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.inbox-demo > span { color: #92998e; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.inbox-demo > button { display: flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; background: transparent; color: #48664c; font-size: 12px; }
.inbox-demo > button svg { width: 14px; height: 14px; }
.inbox-demo p { color: #858d81; font-size: 11px; line-height: 1.6; margin: 2px 0; }
.inbox-panel > .work-bar { min-height: 92px; gap: 18px; padding: 23px 28px; align-items: center; }
.inbox-panel .work-bar > div:first-of-type { min-width: 0; }
.inbox-panel .work-bar h1 { font-size: 21px; font-weight: 550; letter-spacing: -.5px; }
.inbox-panel .work-bar p { margin: 7px 0 0; color: #818a80; font-size: 12px; }
.inbox-search { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 10px; border: 1px solid #e2e7df; border-radius: 8px; background: #fafbf8; }
.inbox-search > svg { width: 15px; color: #8c9788; }
.inbox-search input { width: 145px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.inbox-search:focus-within { border-color: #91a88e; }
.inbox-search button { display: flex; border: 0; background: transparent; color: #5f7559; font-size: 11px; padding: 0; }
.inbox-scroll { padding: 0 28px 28px; }
.inbox-filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; }
.inbox-filter-bar > div { display: flex; gap: 5px; }
.inbox-filter-bar button { padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #77816f; font-size: 12px; }
.inbox-filter-bar button[aria-pressed="true"] { background: #eef3e9; color: #47623d; }
.inbox-filter-bar > span { color: #8a9283; font-size: 11px; }
.inbox-panel .work-inbox-rows { border: 0; border-top: 1px solid #edf0e8; border-radius: 0; }
.inbox-panel .work-mail-open { padding: 22px 12px; gap: 8px; }
.inbox-panel .work-mail { border-color: #edf0e8; }
.inbox-panel .work-mail-open:hover { background: #fafbf7; }
.inbox-panel .work-mail-who { font-size: 12px; gap: 10px; }
.inbox-panel .work-mail-who strong { font-weight: 500; }
.inbox-panel .work-mail-dot { background: #618461; }
.inbox-panel .work-mail-ask { font-size: 15px; font-weight: 450; padding-left: 16px; }
.inbox-panel .work-mail.is-unread .work-mail-ask { font-weight: 600; }
.inbox-panel .work-mail-preview { padding-left: 16px; font-size: 13px; color: #7b8574; }
.inbox-panel .work-mail-kind { text-transform: none; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.inbox-panel .work-mail-ask small { display: inline-block; margin-left: 9px; font-size: 10px; font-weight: 400; color: #89947f; }
.inbox-panel .work-row-actions { right: 8px; top: auto; bottom: 15px; background: #fafbf7; padding: 2px 5px; }
.inbox-panel .work-row-actions button { font-weight: 450; }
.inbox-detail-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.inbox-detail-actions button { display: flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid #e2e7dc; border-radius: 7px; background: white; color: #697b5e; font-size: 12px; }
.inbox-conversation { max-width: 900px; margin: 0 auto; }
.inbox-local-note { font-size: 11px; color: #8d9586; margin: 22px 0; }
.inbox-result { padding: 24px; border: 1px solid #e2e9db; border-radius: 12px; background: #fbfcf8; }
.inbox-result > header { display: flex; align-items: center; justify-content: space-between; color: #849277; font-size: 11px; }
.inbox-result > header b { font-weight: 400; background: #eef3e6; padding: 4px 7px; border-radius: 5px; }
.inbox-result > span { color: #849277; font-size: 12px; }
.inbox-result h2 { margin: 20px 0 12px; font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.inbox-result p, .inbox-result > blockquote { color: #718063; font-size: 14px; line-height: 1.75; }
.inbox-result > .evidence-link { margin-top: 18px; }
.inbox-result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; padding-block: 20px; border-block: 1px solid #e7ecdf; }
.inbox-result-metrics span { display: block; color: #7e8b71; font-size: 11px; margin-bottom: 13px; }
.inbox-result-metrics strong { font-size: 25px; font-weight: 500; letter-spacing: -.5px; }
.inbox-result-metrics small { font-size: 11px; font-weight: 400; letter-spacing: 0; color: #7f8b72; }
.inbox-evidence summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: #557645; }
.inbox-evidence article { padding: 15px; margin-top: 12px; border: 1px solid #e1e8d6; border-radius: 8px; background: white; }
.inbox-evidence strong { font-size: 13px; font-weight: 550; }
.inbox-evidence blockquote { margin: 12px 0; font-size: 13px; line-height: 1.7; color: #738264; }
.inbox-evidence small { color: #819370; font-size: 11px; }
.inbox-run-history { margin-top: 30px; }
.inbox-run-history header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.inbox-run-history h2, .inbox-replies h2 { margin: 0; font-size: 15px; font-weight: 550; }
.inbox-run-history header span { font-size: 11px; color: #8a9680; }
.inbox-run-history > div { border: 1px solid #e5eadd; border-radius: 10px; overflow: hidden; }
.inbox-run-history button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 17px; text-align: left; border: 0; border-bottom: 1px solid #edf0e7; background: white; color: #758565; }
.inbox-run-history button:last-child { border-bottom: 0; }
.inbox-run-history button[aria-pressed="true"] { background: #f3f7ed; }
.inbox-run-history button > span { flex: 1; display: grid; gap: 5px; }
.inbox-run-history strong { color: #58684b; font-size: 12px; font-weight: 500; }
.inbox-run-history small { color: #87977a; font-size: 11px; }
.inbox-replies { margin-top: 30px; }
.inbox-replies > p { font-size: 12px; color: #829274; }
.inbox-replies > article { display: flex; gap: 12px; margin: 18px 0; }
.inbox-replies article i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #ecf2e4; color: #74915e; font-style: normal; font-size: 10px; flex-shrink: 0; }
.inbox-replies article strong { font-size: 12px; font-weight: 500; }
.inbox-replies article small { font-size: 10px; font-weight: 400; color: #919e86; margin-left: 8px; }
.inbox-replies article p { font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-replies form { border: 1px solid #dce5d4; border-radius: 10px; padding: 14px; margin-top: 18px; }
.inbox-replies textarea { width: 100%; min-height: 65px; resize: vertical; border: 0; outline: 0; font: inherit; font-size: 13px; background: transparent; }
.inbox-replies form > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.inbox-replies form span { font-size: 10px; color: #8b9980; }
.inbox-replies form button { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 0; border-radius: 7px; background: #466a44; color: white; font-size: 12px; }
.inbox-archive-note { display: flex; gap: 8px; align-items: center; margin-top: 22px; font-size: 11px; color: #8b977e; }
.inbox-decisions { margin-top: 26px; }
.inbox-decisions > summary { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: #738967; }
.inbox-decisions article { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.inbox-decisions article strong { font-weight: 500; }
.inbox-decisions article p, .inbox-decisions article > span { color: #7c8a72; }
.inbox-panel button:focus-visible, .inbox-sidebar button:focus-visible, .inbox-replies form:focus-within { outline: 2px solid #8ba580; outline-offset: 2px; }
@media (max-width: 1150px) {
  .inbox-panel > .work-bar { flex-wrap: wrap; padding: 20px; }
  .inbox-search { margin-left: 0; }
  .inbox-scroll { padding-inline: 20px; }
  .inbox-detail-actions { margin-left: auto; }
}

/* Access Partners: an original spreadsheet, an explainable review, a return file. */
.ap-launch-card { display: flex; align-items: center; gap: 15px; width: 100%; margin-top: 22px; padding: 16px 18px; border: 1px solid #d8ded5; border-radius: 12px; background: #f1f4ed; text-align: left; }
.ap-launch-card:hover { background: #eaf0e4; border-color: #aebda6; }
.ap-launch-card > i, .ap-file-icon { display: grid; place-items: center; width: 45px; height: 49px; flex: 0 0 45px; border: 1px solid #cedbc9; border-radius: 10px; background: #f8faf5; color: #486344; }
.ap-launch-card > span { flex: 1; display: grid; gap: 5px; }
.ap-launch-card small, .ap-kicker { color: #737c6d; font-size: 11px; font-weight: 500; }
.ap-launch-card strong { font-size: 15px; font-weight: 550; }
.ap-launch-card em { color: #778070; font-size: 12px; font-style: normal; }
.ap-launch-card > svg { color: #687e59; }
.ap-workspace { width: 100%; max-width: 1280px; margin: 0 auto; padding: 18px 0 0; }
.ap-workspace button, .ap-inspector button { font-family: inherit; }
.ap-workspace button:disabled { opacity: .45; cursor: default; }
.ap-preview-note { display: flex; justify-content: space-between; gap: 14px; color: #858c7e; font-size: 11px; }
.ap-preview-note > span:first-child { color: #7b805f; background: #f7f7ee; border-radius: 5px; padding: 4px 7px; }
.ap-preview-note > span:last-child { padding: 4px 0; }
.ap-stepper { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0; margin: 28px 0 32px; list-style: none; }
.ap-stepper li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #969b93; }
.ap-stepper li + li::before { content: ""; width: clamp(24px, 4vw, 64px); height: 1px; margin: 0 16px; background: #e2e6dd; }
.ap-stepper b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #f1f3ef; font-size: 11px; font-weight: 500; }
.ap-stepper .is-current { color: #303b2b; font-weight: 550; }
.ap-stepper .is-current b { background: #344b31; color: white; }
.ap-stepper .is-done b { background: #e8eee2; color: #617851; }
.ap-intro { margin: 38px 0 30px; text-align: center; }
.ap-intro h2 { margin: 13px 0; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -1.2px; }
.ap-intro > p { margin: 15px auto; color: #75806b; font-size: 14px; line-height: 1.65; }
.ap-input-card { display: flex; align-items: center; gap: 18px; padding: 23px; border: 1px solid #dbe3d4; border-radius: 13px; background: #fbfcf8; }
.ap-input-card > div:nth-child(2) { flex: 1; min-width: 0; }
.ap-input-card h3 { margin: 0 0 7px; font-size: 16px; font-weight: 550; }
.ap-input-card p { margin: 0; font-size: 12px; color: #75816b; }
.ap-primary, .ap-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 9px 13px; border: 1px solid #344b31; border-radius: 7px; background: #344b31; color: white; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ap-secondary { border-color: #dce2d6; background: white; color: #59694d; }
.ap-primary:hover { background: #263e25; }
.ap-secondary:hover { background: #f4f7ef; }
.ap-primary svg, .ap-secondary svg { width: 15px; height: 15px; }
.ap-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 31px 0; }
.ap-plan h3 { font-size: 14px; font-weight: 550; margin: 0 0 14px; }
.ap-plan p { display: flex; align-items: flex-start; gap: 9px; color: #6e7965; font-size: 13px; line-height: 1.7; margin: 9px 0; }
.ap-plan svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: #7c9369; }
.ap-inline-note { color: #8c927e; font-size: 11px; }
.ap-original-preview { margin: 19px 0; border-top: 1px solid #e8ebe3; padding-top: 17px; }
.ap-original-preview summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13px; color: #59684e; }
.ap-original-preview[open] summary { margin-bottom: 18px; }
.ap-rules { display: grid; gap: 15px; margin: 20px 0; }
.ap-rules article { display: flex; align-items: flex-start; gap: 12px; }
.ap-rules strong { font-size: 13px; font-weight: 550; }
.ap-rules p { color: #758168; font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.ap-grade { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; }
.ap-grade.is-a { background: #eaf1e5; color: #507045; }.ap-grade.is-b { background: #f4f0df; color: #8a7845; }.ap-grade.is-c { background: #faede5; color: #ad6b4b; }
.ap-start-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e8ebe3; padding: 22px 0 8px; margin-top: 25px; }
.ap-start-footer > span { color: #8b927f; font-size: 11px; line-height: 1.6; }
.ap-muted { color: #77816d; font-size: 12px; line-height: 1.8; }
.ap-run-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e7ebe1; margin-bottom: 25px; }
.ap-run-heading > span { color: #8a9381; font-size: 11px; }
.ap-run-heading > div { display: flex; gap: 14px; }
.ap-run-heading button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 13px 0; font-size: 12px; color: #859078; white-space: nowrap; }
.ap-run-heading button[aria-current=page] { border-bottom-color: #617d50; color: #415638; }
.ap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 29px; }
.ap-stats article { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid #e2e7dc; border-radius: 10px; background: #fcfdf9; }
.ap-stats span { color: #737f65; font-size: 12px; }.ap-stats strong { font-size: 31px; font-weight: 500; letter-spacing: -.8px; }.ap-stats small { color: #88937c; font-size: 11px; }
.ap-results { border: 1px solid #e3e7dd; border-radius: 12px; overflow: hidden; }
.ap-results > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px; }
.ap-results h2 { margin: 0 0 7px; font-size: 17px; font-weight: 550; }
.ap-results header p { margin: 0; color: #8a9282; font-size: 12px; line-height: 1.6; }
.ap-added { display: inline-flex; align-items: center; gap: 6px; color: #768b60; font-size: 11px; white-space: nowrap; }
.ap-added svg { width: 14px; height: 14px; }
.ap-table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 17px; }
.ap-table-tools > div { display: flex; gap: 6px; }
.ap-table-tools button { border: 0; border-radius: 5px; padding: 7px 9px; background: transparent; color: #8b9580; font-size: 12px; }
.ap-table-tools button[aria-pressed=true] { background: #eef3e8; color: #5b7149; }
.ap-table-tools form { display: flex; align-items: center; padding: 0 5px 0 10px; border: 1px solid #e4e8dd; border-radius: 6px; }
.ap-table-tools input { width: 155px; padding: 7px 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.ap-table-tools form:focus-within { outline: 2px solid #9eb090; }
.ap-table-tools form svg { width: 14px; height: 14px; }
.ap-table-scroll { overflow: auto; width: 100%; }
.ap-table-scroll table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.ap-table-scroll th { font-weight: 500; font-size: 11px; color: #7f8b72; padding: 12px 14px; background: #f7f9f3; border-block: 1px solid #e6eade; white-space: nowrap; }
.ap-table-scroll td { padding: 15px 14px; border-bottom: 1px solid #e9ede3; vertical-align: top; }
.ap-results-table { min-width: 770px; }
.ap-results-table tr:last-child td { border-bottom: 0; }
.ap-results-table .is-added { background: #fafcf6; }
.ap-results-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-results-table td:nth-child(2) button { display: grid; gap: 5px; min-width: 145px; max-width: 230px; text-align: left; background: transparent; border: 0; padding: 0; }
.ap-results-table td:nth-child(2) strong { font-size: 13px; font-weight: 550; }
.ap-results-table td:nth-child(2) span, .ap-results-table td:nth-child(2) small { color: #87937b; font-size: 11px; line-height: 1.5; }
.ap-guidance { min-width: 180px; max-width: 285px; color: #718065; line-height: 1.7; }
.ap-row-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: transparent; color: #67814e; font-size: 11px; white-space: nowrap; }
.ap-row-link svg { width: 12px; height: 12px; }
.ap-results > footer { border-top: 1px solid #e9ede3; padding: 14px 20px; font-size: 11px; color: #8e9784; }
.ap-original { min-width: 1600px; }.ap-original caption { text-align: left; padding: 0 0 15px; color: #6d7b5e; font-size: 13px; }.ap-original th small { display: block; margin-bottom: 6px; color: #a2aa99; }.ap-original td { min-width: 105px; line-height: 1.6; max-width: 280px; }
.ap-blank { color: #b1b6aa; font-style: italic; }.ap-empty { text-align: center; padding: 35px !important; color: #849376; }
.ap-return { text-align: center; max-width: 750px; margin: 40px auto 20px; }.ap-return > .ap-file-icon { margin: 0 auto 20px; width: 52px; height: 57px; }.ap-return h2 { font-weight: 500; letter-spacing: -.8px; font-size: 28px; margin: 14px 0; }.ap-return > p { color: #829174; font-size: 13px; line-height: 1.8; }
.ap-return-file { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #dce5d0; border-radius: 11px; background: #f8fbf3; padding: 22px; margin: 25px 0 12px; text-align: left; }.ap-return-file > div { display: flex; align-items: center; gap: 12px; }.ap-return-file span { display: grid; gap: 7px; }.ap-return-file strong { font-size: 13px; font-weight: 550; }.ap-return-file small { color: #8a9b78; font-size: 11px; }
.ap-text-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border: 0; background: transparent; color: #829470; font-size: 11px; }.ap-text-button svg { width: 13px; height: 13px; }
.ap-return-actions { display: flex; justify-content: center; gap: 12px; margin: 23px 0 16px; }.ap-return .ap-return-note { margin-top: 22px; color: #957e51; font-size: 12px; }
.ap-history > h2 { font-size: 20px; font-weight: 500; }.ap-history > p { color: #89967d; font-size: 13px; }.ap-history > button { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; margin-top: 14px; padding: 21px; border: 1px solid #dfe8d4; background: #fafcf7; border-radius: 9px; }.ap-history > button span { flex: 1; display: grid; gap: 8px; }.ap-history strong { font-size: 14px; font-weight: 550; }.ap-history small, .ap-history em { color: #839970; font-size: 12px; font-style: normal; }
.ap-progress { padding: 100px 25px; text-align: center; }.ap-progress-icon { color: #92a77d; }.ap-progress-icon svg { width: 34px; height: 34px; }.ap-progress h2 { font-size: 24px; font-weight: 500; }.ap-progress p { color: #8b9a7c; font-size: 13px; }.ap-progress > div:not(.ap-progress-icon) { width: 250px; height: 5px; overflow: hidden; border-radius: 5px; margin: 30px auto; background: #edf2e6; }.ap-progress i { display: block; height: 100%; background: #8aa46f; transition: width .3s; }
.ap-inspector { width: min(680px, calc(100vw - 80px)); }.ap-inspector h3 { font-size: 19px; font-weight: 500; letter-spacing: -.4px; margin: 13px 0; }.ap-inspector h4 { font-size: 13px; font-weight: 550; margin: 22px 0 12px; }.ap-inspector .ap-source-caption { color: #88967a; font-size: 11px; line-height: 1.9; }
.ap-reason { display: flex; gap: 13px; padding: 18px; background: #f6f8f1; border: 1px solid #e1e8d7; border-radius: 10px; margin: 20px 0; }.ap-reason strong { font-size: 13px; font-weight: 550; }.ap-reason p { font-size: 12px; color: #7c8c6b; line-height: 1.7; margin: 8px 0 0; }
.ap-cell-evidence { width: 100%; border-collapse: collapse; font-size: 12px; }.ap-cell-evidence th { text-align: left; font-weight: 500; color: #8c9a7e; font-size: 11px; padding: 9px; border-bottom: 1px solid #e5ebde; }.ap-cell-evidence td { padding: 14px 9px; border-bottom: 1px solid #e5ebde; line-height: 1.7; }.ap-cell-evidence td:first-child { font-family: ui-monospace, monospace; color: #76935d; }.ap-cell-evidence td:last-child { width: 52%; }.ap-missing { color: #aa8054; background: #fbf5e9; padding: 4px 7px; border-radius: 4px; }
.ap-source-row > div { display: grid; grid-template-columns: 155px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ecf0e7; font-size: 12px; line-height: 1.6; }.ap-source-row dt { color: #8d9b7f; }.ap-source-row dd { margin: 0; }.ap-inspector form { border-top: 1px solid #e5ebde; padding-top: 16px; margin-top: 24px; }.ap-inspector form label { display: grid; gap: 8px; font-size: 12px; margin: 18px 0; }.ap-inspector label small { color: #8e9d7d; font-size: 11px; }.ap-inspector input:not([type=radio]):not([type=checkbox]), .ap-inspector textarea { border: 1px solid #dfe7d6; border-radius: 7px; padding: 11px; font: inherit; font-size: 13px; background: white; width: 100%; }.ap-inspector textarea { resize: vertical; line-height: 1.6; }.ap-inspector form .ap-checkbox { display: flex; align-items: center; gap: 10px; }.ap-checkbox input { accent-color: #5e7c45; }
.ap-grade-picker { display: flex; gap: 10px; border: 0; margin: 18px 0; padding: 0; }.ap-grade-picker legend { font-size: 12px; margin-bottom: 10px; }.ap-grade-picker label { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 8px 13px; border: 1px solid #e1e8d6; border-radius: 7px; }.ap-grade-picker label:has(:checked) { background: #eef4e7; border-color: #a0b58a; }.ap-grade-picker input { accent-color: #5e7c45; }
.ap-panel-actions { display: flex; gap: 12px; margin-top: 22px; }.ap-source-file { display: flex; gap: 12px; border: 1px solid #e2ead8; padding: 17px; margin: 22px 0; border-radius: 9px; }.ap-source-file > svg { flex: 0 0 20px; color: #8aab6a; }.ap-source-file strong { font-size: 13px; font-weight: 550; }.ap-source-file p { color: #8b9c7b; font-size: 12px; line-height: 1.8; }
@media (max-width: 1150px) {
  .ap-input-card { flex-wrap: wrap; }.ap-input-card > button { margin-left: 63px; }
  .ap-plan { gap: 22px; }.ap-run-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ap-return-file { flex-direction: column; align-items: flex-start; }.ap-table-tools { align-items: flex-start; flex-direction: column; }
  .ap-stats { gap: 10px; }.ap-stats article { padding: 14px; }.ap-stats small { line-height: 1.5; }
  .ap-results > header { align-items: flex-start; flex-direction: column; gap: 9px; }
}
.work-bar:has(.ap-toolbar) { min-height: 82px; gap: 16px; padding-block: 16px; }
.work-bar:has(.ap-toolbar) h1 { font-size: 19px; margin-top: 5px; }
.workflow-toolbar.ap-toolbar { padding: 0; border: 0; flex-wrap: nowrap; justify-content: flex-end; }
.ap-toolbar .ap-primary { background: #344b31; border-color: #344b31; color: white; }
@media (max-width: 1150px) { .work-bar:has(.ap-toolbar) { flex-wrap: wrap; }.workflow-toolbar.ap-toolbar { justify-content: flex-start; } }
.ap-workspace:has(.ap-run-heading) .ap-stepper { display: none; }
.ap-run-heading { margin-top: 13px; margin-bottom: 20px; }
.ap-stats { gap: 12px; margin-bottom: 22px; }
.ap-stats article { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; column-gap: 15px; row-gap: 6px; padding: 17px; }
.ap-stats strong { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 29px; }
.ap-stats span, .ap-stats small { grid-column: 2; line-height: 1.5; }
.ap-results > header { padding: 18px 20px; }
.ap-table-tools { padding-bottom: 14px; }

/* Page guides stay at the foot of the navigation and expand in place. */
.sidebar-tutorial { margin-top: auto; padding-top: 24px; flex-shrink: 0; }
.sidebar-tutorial summary { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 7px; color: var(--nav-muted); font-size: 13px; cursor: pointer; list-style: none; }
.sidebar-tutorial summary::-webkit-details-marker { display: none; }
.sidebar-tutorial summary:hover, .sidebar-tutorial[open] summary { background: var(--nav-hover); color: var(--nav-ink); }
.sidebar-tutorial summary:focus-visible { outline: 2px solid var(--nav-ink); outline-offset: 2px; }
.sidebar-tutorial summary span { flex: 1; }
.sidebar-tutorial summary > svg { width: 16px; height: 16px; }
.sidebar-tutorial[open] summary > svg:last-child { transform: rotate(180deg); }
.sidebar-tutorial > div { padding: 14px 12px 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.sidebar-tutorial strong { color: var(--ink); font-weight: 500; }
.sidebar-tutorial ol { margin: 10px 0 0; padding-left: 17px; }
.sidebar-tutorial li + li { margin-top: 8px; }
@media (max-width: 1180px) {
  .topbar > .brand strong { font-size: 20px; }
  .topbar > .brand { gap: 7px; }
  .topnav { gap: 2px; }
  .topnav button { padding-inline: 10px; }
}

/* Work and Views use the same toolbar; execution stays with the work. */
.work-bar > .dashboard-tools { flex-wrap: wrap; }
.work-run-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 18px; }
.work-run-actions button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; }
.work-run-actions svg { width: 17px; height: 17px; }

.work-flow-goal { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.work-flow-inputs, .work-flow-output { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f3f6f2; }
.work-flow h3 { margin: 0 0 7px; font-size: 14px; }
.work-flow p, .work-flow li { font-size: 13px; line-height: 1.6; }
.work-flow p { margin: 0; }
.work-flow-inputs ul { margin: 0; padding-left: 18px; }
.work-flow-steps { list-style: none; margin: 0 0 0 15px; padding: 22px 0 22px 22px; border-left: 1px solid var(--line-strong); }
.work-flow-steps > li { position: relative; display: flex; gap: 14px; padding: 0 0 24px; }
.work-flow-steps > li:last-child { padding-bottom: 0; }
.work-flow-number { flex: 0 0 28px; height: 28px; display: grid; place-items: center; background: #edf2ee; border: 1px solid #dce5dd; border-radius: 50%; color: #395d48; }
.work-flow-steps small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.work-flow-steps small strong { margin-right: 5px; font-weight: 500; }

.work-flow-purpose, .work-flow-start { margin-bottom: 20px; }
.work-flow-source { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.work-flow-source > span, .work-flow-step-heading > span { color: #395d48; font-size: 11px; }
.work-flow-source h4 { margin: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
.work-flow-source p + p { margin-top: 8px; }
.work-flow-setting { padding-top: 14px; }
.work-flow-walkthrough { margin-top: 24px !important; }
.work-flow-step-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-flow-steps > li > div { flex: 1; min-width: 0; }
.work-flow dl { margin: 6px 0 0; }
.work-flow dt { margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.work-flow dd { margin: 3px 0 0; font-size: 13px; line-height: 1.65; }
.work-flow .work-flow-exception { margin-top: 12px; padding: 10px 12px; border-left: 2px solid #d6b86e; background: #faf8f1; font-size: 12px; }

.dashboard-control-panel:has(.work-flow-canvas) { width: min(1500px, calc(100vw - 64px)); max-width: none; }
.work-flow-overview { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.work-flow-overview p { color: var(--muted); max-width: 760px; }
.work-flow-zoom { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.work-flow-zoom button { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 6px 10px; }
.work-flow-zoom span { font-size: 11px; min-width: 32px; text-align: center; }
.work-flow .work-flow-hint { margin: 14px 0; color: var(--muted); font-size: 12px; }
.work-flow-canvas { overflow: auto; max-height: 48vh; border: 1px solid var(--line); border-radius: 12px; background-color: #f7f9f6; background-image: radial-gradient(#d8dfd6 1px, transparent 1px); background-size: 18px 18px; }
.work-flow-stage { position: relative; transform-origin: top left; }
.work-flow-edges { position: absolute; inset: 0; overflow: visible; }
.work-flow-edges > path { fill: none; stroke: #98aa99; stroke-width: 2; }
.work-flow-edges marker path { fill: #98aa99; }
.work-flow-edges text { fill: #758275; font: 10px sans-serif; }
.work-flow-node { position: absolute; width: 194px; height: 94px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border: 1px solid #d2dcd0; border-radius: 12px; background: white; box-shadow: 0 3px 9px #21312108; color: var(--ink); }
.work-flow-node.is-selected { border: 2px solid #52775c; box-shadow: 0 0 0 3px #52775c14; }
.work-flow-node i { display: grid; place-items: center; width: 30px; flex-shrink: 0; color: #52775c; }
.work-flow-node svg { width: 22px; height: 22px; }
.work-flow-node small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.work-flow-node strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.4; font-weight: 550; overflow-wrap: anywhere; }
.work-flow-port { position: absolute; width: 8px; height: 8px; top: 42px; border: 1px solid #7e977f; background: white; border-radius: 50%; }
.work-flow-port.is-input { left: -5px; }.work-flow-port.is-output { right: -5px; }
.work-flow-inspector { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.work-flow-inspector header { display: flex; justify-content: space-between; gap: 16px; }
.work-flow-inspector header span { font-size: 11px; color: var(--muted); }
.work-flow-inspector h3 { margin-top: 5px; }
.work-flow-inspector-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 12px; }
.work-flow-inspector h4 { font-size: 11px; margin: 0 0 8px; color: var(--muted); }
@media (max-width: 800px) { .work-flow-inspector-grid { grid-template-columns: 1fr; gap: 14px; }.work-flow-overview { flex-direction: column; }.dashboard-control-panel:has(.work-flow-canvas) { width: calc(100vw - 32px); } }

.allies-inner { max-width: 1180px; }
.allies-exchange-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.allies-exchange-header h1 { margin: 8px 0 10px; font-size: 32px; font-weight: 500; letter-spacing: -1px; }
.allies-exchange-header p, .ally-exchange-list header p { color: var(--muted); font-size: 13px; margin: 0; }
.allies-exchange-header button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: #edf2ee; border: 1px solid #dce5dd; color: #395d48; border-radius: 8px; white-space: nowrap; }
.allies-exchange-header svg, .ally-direction-tabs svg, .ally-exchange-table svg, .ally-share-choices svg, .ally-data-direction svg { width: 17px; height: 17px; }
.ally-direction-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 24px; }
.ally-direction-tabs button { display: flex; align-items: center; gap: 9px; padding: 14px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.ally-direction-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ally-direction-tabs b { font-size: 11px; font-weight: 500; background: #edf2ee; padding: 3px 7px; border-radius: 6px; }
.ally-exchange-list > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ally-exchange-list h2 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.ally-exchange-list form { display: flex; gap: 6px; }
.ally-exchange-list input { border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; font: inherit; font-size: 12px; }
.ally-exchange-list button, .ally-exchange-table button { border: 1px solid var(--line); border-radius: 6px; background: white; padding: 7px 10px; font-size: 12px; }
.ally-exchange-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ally-exchange-table table { width: 100%; border-collapse: collapse; text-align: left; }
.ally-exchange-table th { padding: 12px 16px; color: var(--muted); font-size: 11px; font-weight: 500; background: #f8faf7; }
.ally-exchange-table td { padding: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.ally-exchange-table td strong { display: block; font-size: 13px; font-weight: 500; }
.ally-exchange-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.ally-exchange-table td button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ally-exchange-status { color: #52775c; }.ally-exchange-status.is-paused { color: #986d2c; }
.ally-relationships > summary, .ally-activity > summary, .ally-never > summary { font-size: 14px; cursor: pointer; font-weight: 500; }
.ally-relationships > div { display: grid; gap: 16px; margin-top: 18px; }.ally-activity section { margin-top: 18px; }
.ally-share-choices { display: grid; gap: 8px; margin-top: 20px; }
.ally-share-choices button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: white; padding: 14px; border-radius: 9px; text-align: left; }
.ally-share-choices span { flex: 1; }.ally-share-choices strong, .ally-share-choices small { display: block; }.ally-share-choices small { margin-top: 5px; color: var(--muted); }
.ally-data-direction { display: flex; align-items: center; gap: 8px; color: #52775c; font-size: 12px; }
.ally-data-facts { display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: 13px; margin: 24px 0; }.ally-data-facts dt { color: var(--muted); }.ally-data-facts dd { margin: 0; }
.ally-data-fields { display: flex; flex-wrap: wrap; gap: 8px; }.ally-data-fields span { padding: 7px 10px; background: #f1f4ef; border-radius: 7px; font-size: 12px; }
.ally-owner-note { color: var(--muted); font-size: 12px; margin-top: 24px; }
@media(max-width: 800px) { .allies-exchange-header, .ally-exchange-list > header { align-items: flex-start; flex-direction: column; }.allies-inner { padding: 28px 20px; }.ally-direction-tabs { gap: 16px; } }

/* Data source entry screen */
.data-source-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.data-source-options > button { display: grid; grid-template-columns: 1fr auto; gap: 12px; text-align: left; padding: 24px; border: 1px solid var(--line, #e1e5e0); border-radius: 12px; background: white; }
.data-source-options > button:hover, .data-source-options > button[aria-pressed="true"] { border-color: #28796f; background: #f4f8f5; }
.data-source-options i { grid-column: 1 / -1; color: #28796f; }
.data-source-options svg, .data-source-library svg { width: 24px; height: 24px; }
.data-source-options strong { font-size: 16px; font-weight: 500; }
.data-source-options span { grid-column: 1; color: var(--muted); line-height: 1.6; font-size: 13px; }
.data-source-options > button > svg { grid-column: 2; grid-row: 2; width: 18px; height: 18px; }
.data-source-setup { max-width: 620px; padding: 24px; border: 1px solid #e1e5e0; border-radius: 12px; }
.data-source-setup header { display: flex; align-items: center; justify-content: space-between; }
.data-source-setup h2, .data-source-library h2 { font-size: 19px; font-weight: 500; }
.data-source-setup header button { background: none; border: 0; }
.data-source-setup header svg, .data-sources-back svg { width: 18px; height: 18px; }
.data-source-setup form { display: grid; gap: 12px; }
.data-source-setup input { border: 1px solid #dce1db; padding: 12px; border-radius: 7px; }
.data-source-setup form > button { justify-self: start; padding: 11px 20px; margin-top: 8px; }
.data-source-library { margin-top: 32px; }
.data-source-library > div { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid #e1e5e0; }
.data-source-library > div > span:first-of-type { flex: 1; }
.data-source-library strong, .data-source-library small { display: block; }
.data-source-library small { color: var(--muted); margin-top: 5px; }
.data-sources-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; background: none; border: 0; color: var(--muted); padding: 0; }
@media(max-width: 800px) { .data-source-options { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 500px) { .data-source-options { grid-template-columns: 1fr; } }

.data-panel { min-width: 0; min-height: 0; overflow-y: auto; background: white; }
.data-panel .allies-inner { width: 100%; padding: 36px; }
.data-panel .ally-exchange-list { margin-top: 32px; }
@media(max-width: 800px) { .data-panel .allies-inner { padding: 24px 20px; } }

.data-chat { max-width: 820px; margin: 0 auto; }
.data-chat h1 { font-size: 28px; font-weight: 500; letter-spacing: -.7px; margin: 8px 0 32px; }
.data-chat-messages { display: grid; gap: 20px; }
.data-chat-message { padding: 0 4px; line-height: 1.65; font-size: 15px; }
.data-chat-message strong { font-size: 12px; color: var(--muted); font-weight: 500; }
.data-chat-message p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.data-chat-message.user { padding: 14px 18px; background: #f2f4f0; border-radius: 12px; margin-left: 64px; }
.data-chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.data-chat-suggestions button, .data-chat-review button { border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; background: white; }
.data-chat-composer { border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px; margin-top: 28px; background: white; }
.data-chat-composer:focus-within { border-color: var(--teal); }
.data-chat-composer textarea { width: 100%; border: 0; resize: vertical; font: inherit; font-size: 15px; outline: none; background: transparent; }
.data-chat-composer > div { display: flex; align-items: center; gap: 12px; }
.data-chat-composer button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 8px; background: #f2f4f0; }
.data-chat-composer button[type="submit"] { margin-left: auto; background: var(--teal); color: white; }
.data-chat-composer svg { width: 17px; height: 17px; }
.data-chat-composer span { display: inline-flex; align-items: center; font-size: 12px; gap: 6px; }
.data-chat-review { border: 1px solid var(--line); padding: 22px; border-radius: 12px; margin-top: 24px; }
.data-chat-review h2 { font-size: 17px; font-weight: 500; margin-top: 0; }
.data-chat-review dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; }
.data-chat-review dt { color: var(--muted); }.data-chat-review dd { margin: 0; overflow-wrap: anywhere; }
.data-chat-review .primary, .data-secret-form .primary { background: var(--teal); color: white; margin-right: 8px; }
.data-secret-form { display: grid; gap: 14px; }
.data-secret-form input { border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; font: inherit; }
.data-secret-form p { color: var(--muted); font-size: 13px; }
.data-secret-form button { justify-self: start; padding: 10px 16px; border: 0; border-radius: 8px; }

/* Conversation layout: one reading column and a persistent composer. */
.data-panel:has(.data-chat) .allies-inner { max-width: none; height: 100%; padding: 0 28px; grid-template-columns: minmax(0, 1fr); }
.data-chat { width: 100%; max-width: 780px; min-width: 0; min-height: 100%; display: flex; flex-direction: column; }
.data-chat-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; color: var(--muted); font-size: 14px; }
.data-chat-topbar button { border: 0; background: transparent; padding: 8px; color: var(--muted); border-radius: 8px; }
.data-chat-topbar svg { width: 19px; height: 19px; }
.data-chat-thread { flex: 1; padding: 24px 0; }
.data-chat.is-empty .data-chat-thread { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.data-chat-welcome { text-align: center; }
.data-chat-welcome h1 { font-size: 32px; font-weight: 500; margin: 0 0 14px; letter-spacing: -.8px; }
.data-chat-welcome p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.data-chat-messages { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 12px; }
.data-chat-message { font-size: 16px; line-height: 1.8; }
.data-chat-message p { margin: 0; }
.data-chat-message.user { justify-self: end; max-width: 82%; margin-left: 0; border-radius: 22px; padding: 12px 20px; background: #f1f2ef; }
.data-chat-message.assistant { padding: 0 4px; }
.data-chat-bottom { position: sticky; bottom: 0; background: white; padding: 12px 0 24px; }
.data-chat.is-empty .data-chat-bottom { position: static; margin-bottom: max(48px, 18vh); }
.data-chat-composer { margin: 0; border-radius: 26px; border: 1px solid #e5e6e2; background: #f7f7f5; padding: 18px 18px 12px; box-shadow: 0 2px 7px #00000004; }
.data-chat-composer textarea { min-height: 55px; max-height: 180px; resize: none; line-height: 1.6; }
.data-chat-composer button { background: transparent; border-radius: 20px; color: var(--muted); font-size: 13px; }
.data-chat-composer button:hover { background: #e9ebe5; }
.data-chat-composer button[type="submit"] { padding: 0; width: 36px; height: 36px; justify-content: center; background: #282d29; color: white; }
.data-chat-composer button[type="submit"] svg { transform: rotate(-90deg); width: 20px; height: 20px; }
.data-chat-suggestions { justify-content: center; margin: 18px 0 0; }
.data-chat-suggestions button { border-radius: 20px; font-size: 13px; color: var(--muted); padding: 9px 16px; }
.data-chat-review { margin-bottom: 20px; }
@media(max-width: 600px) { .data-panel:has(.data-chat) .allies-inner { padding: 0 18px; }.data-chat-welcome h1 { font-size: 26px; }.data-chat-message.user { max-width: 90%; } }

.source-library-item { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; text-align: left; margin-bottom: 12px; }
.source-library-item:hover { background: #f7f8f5; border-color: #bdcbbd; }
.source-library-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.source-library-item > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.source-details-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.source-details-card h2, .source-details-actions h2 { font-size: 18px; font-weight: 500; margin: 0 0 20px; }
.source-details-card dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; font-size: 14px; }
.source-details-card dt { color: var(--muted); }.source-details-card dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.source-details-actions > button { display: inline-flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; margin: 0 12px 12px 0; text-align: left; }
.source-details-actions svg { width: 20px; height: 20px; }.source-details-actions strong, .source-details-actions small { display: block; }.source-details-actions small { color: var(--muted); margin-top: 6px; }
.source-details-edit { display: grid; gap: 12px; width: 100%; }
.source-details-edit textarea { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.source-details-edit button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 7px; margin-right: 8px; }

.stop-sharing-action { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.stop-sharing-action button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dfc7c1; border-radius: 8px; padding: 10px 15px; color: #944d3d; background: #fffaf8; }
.stop-sharing-action svg { width: 17px; height: 17px; }
.sharing-undo { display: flex; align-items: center; gap: 16px; background: #f2f5ef; border-radius: 8px; padding: 14px 18px; font-size: 14px; }
.sharing-undo button { border: 0; background: none; text-decoration: underline; color: var(--teal); }

.share-bulk-actions { display: flex; align-items: center; gap: 14px; margin: 18px 0; font-size: 13px; }
.share-bulk-actions > button { display: inline-flex; align-items: center; gap: 8px; }
.share-bulk-actions svg { width: 16px; height: 16px; }
.share-bulk-actions > span { color: var(--muted); }
.share-bulk-actions .share-remove { margin-left: auto; }
.ally-exchange-table .share-check-column { width: 42px; padding-right: 0; }
.ally-exchange-table .share-checkbox { width: 21px; height: 21px; padding: 2px; border: 1px solid #b9c0b9; border-radius: 4px; display: grid; place-items: center; }
.share-checkbox[aria-checked="true"] { background: var(--teal); color: white; }
.ally-exchange-table .share-remove { margin-left: 8px; color: #944d3d; }
.share-remove:disabled { opacity: .4; cursor: default; }

.home-admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; margin-bottom: 30px; border: 1px solid #dce5dd; border-radius: 12px; background: #edf3ee; }
.home-admin-banner > div { display: flex; align-items: center; gap: 14px; }
.home-admin-banner strong, .home-admin-banner small { display: block; }
.home-admin-banner strong { font-size: 14px; font-weight: 550; }
.home-admin-banner small { color: var(--muted); font-size: 12px; margin-top: 5px; }
.home-admin-banner button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid #c9d6ca; border-radius: 8px; background: white; color: #395d48; white-space: nowrap; }
@media(max-width: 600px) { .home-admin-banner { align-items: flex-start; flex-direction: column; } }


/* Data uses the same landing composition as Work and Views. */
.data-panel:has(.data-chat.is-empty) .allies-inner { display: flex; padding: 48px 40px; }
.data-chat { max-width: 720px; }
.data-chat.is-empty { min-height: 0; width: 100%; margin: auto; padding-bottom: 8vh; }
.data-chat.is-empty .data-chat-thread { display: block; flex: none; padding: 0; }
.data-chat.is-empty .data-chat-bottom { margin: 0; padding: 0; }
.data-chat.is-empty .data-chat-welcome h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -1.2px; }
.data-start-composer button[data-source-secret] { display: inline-flex; width: auto; padding: 0 8px; gap: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.data-start-composer button[data-source-secret] svg { transform: none; }
.data-start-composer > div > span { display: inline-flex; align-items: center; gap: 6px; }
.data-start-composer > div > span svg { width: 16px; height: 16px; }
.data-start-composer button[type="submit"] { margin-left: auto; }
@media(max-width: 1180px) { .data-panel:has(.data-chat.is-empty) .allies-inner { padding-inline: 28px; } }


/* Reserve the bulk-action footprint so selecting rows never resizes the header. */
.share-header-actions { width: 210px; height: 32px; display: flex; align-items: center; }
.ally-exchange-table .share-header-actions .share-remove { height: 32px; margin: 0; white-space: nowrap; }

.sheet-editor { display: flex; flex-direction: column; min-height: 0; }
.sheet-header-actions, .sheet-toolbar { display: flex; align-items: center; gap: 10px; }
.sheet-header-actions > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sheet-header-actions button, .sheet-toolbar button, .sheet-edit-formula button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 12px; white-space: nowrap; }
.sheet-header-actions svg, .sheet-toolbar svg, .sheet-editor-footer svg { width: 16px; height: 16px; }
.sheet-editor button:disabled { opacity: .4; cursor: default; }
.sheet-toolbar { padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-toolbar form { margin-left: auto; display: flex; gap: 6px; }
.sheet-toolbar input { border: 1px solid var(--line); padding: 8px 12px; border-radius: 7px; }
.sheet-toolbar button[aria-pressed="true"] { background: #edf3ee; }
.sheet-toolbar-divider { width: 1px; height: 22px; background: var(--line); }
.sheet-edit-formula { display: flex; gap: 14px; padding: 10px 20px; flex: 0 0 auto; }
.sheet-edit-formula b { min-width: 52px; }
.sheet-edit-formula input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; font-family: monospace; }
.sheet-editor .sheet-scroll { flex: 1; min-height: 180px; }
.sheet-editor .sheet-grid { min-width: 100%; }
.sheet-editor .sheet-grid td { padding: 0; min-width: 160px; }
.sheet-grid td input { width: 100%; min-width: 160px; padding: 12px; background: transparent; border: 0; outline: none; font: inherit; color: inherit; }
.sheet-grid td:focus-within { outline: 2px solid var(--teal); outline-offset: -2px; }
.sheet-grid th button { border: 0; background: transparent; color: inherit; width: 100%; padding: 7px; }
.sheet-grid th button[aria-pressed="true"] { color: var(--teal); font-weight: 700; }
.sheet-editor-footer { display: flex; align-items: center; gap: 24px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sheet-tab { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); border-bottom: 2px solid var(--teal); padding: 6px 4px; }
@media(max-width: 900px) { .sheet-editor .dashboard-header { flex-wrap: wrap; }.sheet-header-actions { flex-wrap: wrap; }.sheet-editor-footer { flex-wrap: wrap; gap: 12px; } }

.sheet-grid td.is-range-selected { background: #e3efe9; box-shadow: inset 0 0 0 1px #abc9b9; }
.sheet-grid td.is-range-selected.is-selected { box-shadow: inset 0 0 0 2px var(--teal); }
.sheet-selection-summary { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--teal); }

/* Full workbook stays mounted while Views controls open panels. */
.sheet-full-editor { overflow: hidden; }
.sheet-full-editor .dashboard-header { flex-shrink: 0; }
.workbook-actions { flex-shrink: 0; flex-wrap: wrap; padding: 9px 16px; gap: 8px; }
.alliance-workbook { position: relative; isolation: isolate; flex: 1; width: 100%; min-width: 0; min-height: 420px; height: calc(100vh - 290px); font-size: 14px; }
.alliance-workbook button:disabled { opacity: revert; }
.workbook-dialog { width: min(740px, calc(100vw - 48px)); max-height: 85vh; overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--ink); background: white; box-shadow: 0 20px 90px #14251f30; }
.workbook-dialog::backdrop { background: #1d282340; }
.workbook-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.workbook-dialog h2 { font-size: 22px; margin: 0; }
.workbook-dialog h3 { font-size: 15px; margin-top: 20px; }
.workbook-dialog p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.workbook-dialog label { display: grid; gap: 8px; margin: 16px 0; font-size: 14px; }
.workbook-dialog input, .workbook-dialog select { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.workbook-dialog button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 6px 8px 6px 0; }
.workbook-dialog button.primary { background: var(--teal); color: white; }
.workbook-chart { width: 100%; height: 380px; }

/* Lighter workbook chrome; emphasis comes from spacing and color. */
.sheet-editor .dashboard-header h1 { font-weight: 450; }
.sheet-editor .eyebrow { font-weight: 500; }
.dashboards-workspace:has(.sheet-editor) .dashboards-sidebar h1 { font-weight: 500; }
.sheet-editor .sheet-grid td.is-head { font-weight: 400; }
.sheet-editor .sheet-grid th, .sheet-editor .sheet-grid th button[aria-pressed="true"] { font-weight: 500; }
.alliance-workbook [role="tab"], .alliance-workbook [role="tab"] * { font-weight: 400; }
.alliance-workbook [role="tab"][aria-selected="true"], .alliance-workbook [role="tab"][aria-selected="true"] * { font-weight: 500; }
.workbook-dialog h2, .workbook-dialog h3 { font-weight: 500; }

/* Source library: collection scope and connection state. */
.source-library-heading p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.source-library-heading .primary { background: var(--teal); color: white; }
.computer-source { border: 1px solid #d9e1d7; border-radius: 16px; background: #f6f8f3; overflow: hidden; }
.computer-source > header { display: flex; align-items: center; gap: 16px; padding: 24px; }
.source-symbol { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #e8eee3; color: #425640; border-radius: 12px; flex-shrink: 0; }
.source-symbol svg { width: 21px; height: 21px; }
.computer-source h2, .source-group h2 { font-size: 18px; font-weight: 500; margin: 0; }
.computer-source p, .source-group header p { color: var(--muted); font-size: 13px; margin: 7px 0 0; line-height: 1.5; }
.source-status { display: inline-block; white-space: nowrap; font-style: normal; font-size: 11px; border: 1px solid #dce0d8; padding: 5px 9px; border-radius: 20px; color: #656d60; background: #fff; }
.computer-source header > .source-status { margin-left: auto; }
.computer-signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 24px 24px; }
.computer-signals > div { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; padding: 16px; background: #ffffffa6; border: 1px solid #e3e7df; border-radius: 10px; font-size: 13px; }
.computer-signals svg { width: 17px; height: 17px; color: #6d7769; }
.computer-signals small { grid-column: 2; color: var(--muted); font-size: 11px; }
.computer-source footer { padding: 14px 24px; border-top: 1px solid #e1e6db; font-size: 12px; color: #687160; }
.source-group { margin-top: 30px; }
.source-group > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.source-group h2 > span { display: inline-block; font-size: 12px; color: var(--muted); background: #f1f2ee; padding: 3px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.source-group header button, .source-sharing-note button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; padding: 8px 0; border: 0; background: none; color: var(--teal); cursor: pointer; }
.source-group button svg, .source-sharing-note svg { width: 16px; height: 16px; flex-shrink: 0; }
.source-empty { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px dashed #dcded7; border-radius: 12px; }
.source-empty > svg { width: 25px; height: 25px; color: #929b8b; flex-shrink: 0; }
.source-empty strong { font-size: 14px; font-weight: 500; }
.source-empty p { color: var(--muted); font-size: 13px; margin: 7px 0 0; line-height: 1.5; }
.source-sharing-note { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; color: var(--muted); }
.source-sharing-note strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.source-sharing-note p { font-size: 12px; margin: 5px 0 0; }
.source-sharing-note button { margin-left: auto; }
.source-detail-note { color: var(--muted); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; }
@media(max-width: 1150px) { .computer-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .source-library-item { flex-wrap: wrap; } }

.dashboards-sidebar .library-folder .views-item { display: flex; align-items: center; gap: 9px; padding-left: 24px; }
.dashboards-sidebar .views-file-icon { display: flex; flex: 0 0 15px; color: var(--nav-muted); }
.dashboards-sidebar .views-file-icon svg { width: 15px; height: 15px; }
.dashboards-sidebar .views-import { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; background: transparent; font-size: 13px; }
.dashboards-sidebar .views-import svg { width: 16px; height: 16px; }
.views-import-state { margin: 5px 10px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.views-import-error { margin: 8px 10px; color: #9a3636; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

/* Work authoring keeps the Views shell with bounded presentation presets. */
.work-canvas.work-standard { max-width: 1080px; margin-inline: auto; }
.work-canvas.work-wide { max-width: none; }
.work-canvas.work-serif { font-family: Georgia, serif; }
.work-canvas.work-center .composer-heading,
.work-canvas.work-center .composer-text { text-align: center; }
.work-canvas.work-compact { gap: 12px; }
.work-canvas.work-compact .composer-card { padding: 16px; }
.work-canvas.work-compact .composer-field { gap: 5px; }
.work-input select, .work-input textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); font: inherit; color: inherit; }
.work-input textarea { resize: vertical; min-height: 100px; }
.work-input small { color: var(--muted); font-size: 12px; }
.work-input.work-checkbox { display: grid; grid-template-columns: 24px 1fr; align-items: center; }
.work-checkbox input { grid-column: 1; grid-row: 1; width: 18px; height: 18px; }
.work-checkbox span, .work-checkbox small { grid-column: 2; }
.work-design-form { display: grid; gap: 20px; }
.work-design-form fieldset { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.work-design-form legend { padding-inline: 6px; font-weight: 600; }
.work-design-form label { display: grid; gap: 6px; }
.work-design-form label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.work-design-form input, .work-design-form select, .work-design-form textarea { min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.work-design-form input[type="checkbox"] { width: 18px; }
.work-number-bounds { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
@media (max-width: 700px) { .work-number-bounds { grid-template-columns: 1fr; } }

.work-theme-executive { --work-accent: #315d4c; }
.work-theme-editorial { --work-accent: #775344; }
.work-theme-operational { --work-accent: #355c80; }
.work-theme-calm { --work-accent: #72628d; }
.work-canvas .composer-card { border-top: 2px solid var(--work-accent); }
.work-canvas .composer-field > span { color: var(--work-accent); }
.work-canvas.work-sans .composer-heading h2 { font-family: inherit; }
.work-canvas.work-serif .composer-heading h2 { font-family: Georgia, serif; }

.work-input { align-content: start; }
.work-design-appearance { grid-template-columns: repeat(2,minmax(0,1fr)); }
.work-field-design { border: 1px solid var(--line); border-radius: 12px; }
.work-field-design > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.work-field-design > summary small { float: right; color: var(--muted); font-weight: 400; }
.work-field-design fieldset { border: none; border-top: 1px solid var(--line); border-radius: 0; }
.work-design-form [hidden] { display: none; }
@media (max-width: 700px) { .work-design-appearance { grid-template-columns: 1fr; } }

.work-design-form { gap: 14px; }
.work-design-form h3, .work-design-form p { margin: 0; }

/* Organization management extends the existing profile/share panel patterns. */
.organization-tabs { display:flex;gap:18px;margin-bottom:18px;border-bottom:1px solid var(--line); }
.organization-tabs button { border:0;border-radius:0;background:transparent;padding:8px 0;color:var(--muted); }
.organization-tabs button[aria-pressed="true"] { border-bottom:2px solid var(--ink);color:var(--ink); }
.organization-team-list { margin-bottom:18px; }
.organization-team-list > button { width:100%;display:flex;justify-content:space-between;text-align:left;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent; }
.organization-team-list strong { display:block;font-weight:550; }
.organization-team-list small { display:block;color:var(--muted);margin-top:3px; }
.organization-backdrop fieldset { border:0;margin:0;padding:0;min-width:0; }
.organization-backdrop fieldset > label { display:grid;gap:7px;margin:12px 0; }
.organization-backdrop fieldset input:not([type="checkbox"]), .organization-backdrop fieldset select { width:100%; }
.organization-member-picker > label { display:flex;align-items:center;gap:10px;padding:9px 0; }
.organization-member-picker input { width:16px;height:16px; }
.organization-member-picker small { display:block;color:var(--muted);font-size:11px; }
.organization-team-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:18px; }
.organization-error { color:#9c3f36;font-size:12px; }
.organization-delete { padding-top:12px;margin-top:14px;border-top:1px solid var(--line); }
.hosted-access-check { margin-top:18px; }
.hosted-access-check summary { color:var(--muted);font-size:12px;cursor:pointer; }
.hosted-access-check label { display:block;font-size:12px;margin:12px 0 5px; }
.hosted-access-check select { width:100%; }
.hosted-access-check p { display:flex;gap:12px;justify-content:space-between;font-size:12px; }
.hosted-access-check p span { color:var(--muted); }
.dashboard-control-panel .hosted-manage-people { margin-top:12px;background:transparent;border:0;padding:0;color:var(--muted); }

/* Keep See data focused on the file browser, using the full content width. */
.data-panel:has(alliance-see-data) .allies-inner { max-width:none; display:block; padding:6px 16px; }

/* Submitting a first message immediately turns the landing page into a conversation. */
.dashboard-start.has-conversation > header h1 { font-size:24px; }
.dashboard-start-conversation .is-user { margin-left:auto; max-width:90%; background:var(--teal-soft, #edf3ee); text-align:left; overflow-wrap:anywhere; }
.dashboard-start-composer[aria-busy="true"] { background:var(--surface, #f7f8f6); border-color:#b8c9bd; }
.dashboard-start-composer[aria-busy="true"] textarea { min-height:54px; }
p.dashboard-start-status, .dashboard-start-status > p[role="status"] { display:flex; align-items:center; justify-content:center; gap:9px; }
.compose-spinner { display:inline-block; width:16px; height:16px; flex-shrink:0; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:compose-spin .8s linear infinite; }
.dashboard-start-suggestions[hidden] { display:none; }
@keyframes compose-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .compose-spinner { animation:none; } }

.realtime-status{position:fixed;right:14px;bottom:8px;font-size:11px;color:#6b7280;pointer-events:none;z-index:10}.realtime-status[data-status="live"]{color:#39775b}.realtime-status:empty{display:none}

.realtime-status{position:fixed;right:14px;bottom:8px;font-size:11px;color:#6b7280;pointer-events:none;z-index:10}.realtime-status[data-status="live"]{color:#39775b}.realtime-status:empty{display:none}

.profile-page { max-width: 760px; }
.profile-email { margin: 0 0 24px; color: var(--muted); overflow-wrap: anywhere; }
.profile-notifications { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.profile-notifications h2 { margin: 0 0 8px; font-size: 18px; }
.profile-notifications p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.profile-notifications button { display: inline-flex; align-items: center; gap: 8px; }
.profile-notifications button svg { width: 16px; height: 16px; }
.profile-notifications small { display: block; margin-top: 12px; color: var(--muted); }
.profile-notifications button:disabled { opacity: .5; cursor: default; }

.dashboard-landing:has(.dashboard-start.has-conversation) { align-items:stretch; }
.dashboard-start.has-conversation { display:flex; flex-direction:column; min-height:0; height:100%; max-width:860px; margin:0 auto; padding:24px 0; }
.dashboard-start.has-conversation .dashboard-start-conversation { flex:1; min-height:0; max-height:none; overflow-y:auto; padding:16px 8px 32px; margin:0; }
.dashboard-start.has-conversation .dashboard-start-composer { flex-shrink:0; margin-top:auto; }
.dashboard-start.has-conversation .dashboard-start-suggestions { display:none; }
.assistant-typing { display:flex; align-items:center; min-height:44px; padding:12px 16px; color:var(--muted); }
.assistant-typing > span[aria-hidden] { display:flex; gap:5px; }
.assistant-typing i { width:7px; height:7px; border-radius:50%; background:currentColor; animation:assistant-dot 1.2s ease-in-out infinite; }
.assistant-typing i:nth-child(2) { animation-delay:.15s; }
.assistant-typing i:nth-child(3) { animation-delay:.3s; }
@keyframes assistant-dot { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce) { .assistant-typing i { animation:none; opacity:.7; } }

.realtime-status{position:fixed;right:14px;bottom:8px;font-size:11px;color:#6b7280;pointer-events:none;z-index:10}.realtime-status[data-status="live"]{color:#39775b}.realtime-status:empty{display:none}

.conversation-landing .dashboard-start { width: min(820px, 100%); margin: auto; padding-block: 40px; }
.conversation-landing .dashboard-start header { margin-bottom: 24px; }
.conversation-landing header p { color: var(--muted, #64716d); }
.conversation-landing .dashboard-start-conversation { max-height: none; overflow: visible; }
.conversation-turn { padding: 18px 0; border-bottom: 1px solid var(--line, #e3e7e3); }
.conversation-turn.is-user { padding: 16px 20px; background: var(--panel, #f3f5f2); border-radius: 16px; margin-block: 12px; }
.conversation-turn p { white-space: normal; line-height: 1.65; overflow-wrap: anywhere; margin-top: 8px; }
.conversation-turn small { color: var(--muted, #64716d); }
.conversation-controls { display: flex; gap: 16px; align-items: flex-start; margin-block: 12px; }
.conversation-controls nav { display: grid; gap: 6px; padding-block: 10px; }
.conversation-controls button, .conversation-action { border: 1px solid var(--line, #d6dfd7); border-radius: 9px; background: transparent; padding: 9px 12px; text-align: left; cursor: pointer; }
.conversation-action { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.conversation-action svg { width: 16px; height: 16px; }
.conversation-landing .dashboard-start-composer { position: sticky; bottom: 20px; background: var(--surface, #fff); margin-top: 24px; }
@media (max-width: 700px) { .conversation-landing .dashboard-start { padding: 24px 16px; } }

.conversation-landing .dashboard-start.has-messages { padding-block: 0; }
.conversation-landing .has-messages header { margin: 0 0 12px; text-align: left; }
.conversation-landing .has-messages header img, .conversation-landing .has-messages header p { display: none; }
.conversation-landing .has-messages header h1 { margin: 0; font-size: 21px; text-align: left; }
.conversation-landing .dashboard-start.has-conversation .dashboard-start-conversation { padding: 12px 8px; }
.conversation-landing .conversation-turn p { padding: 0; background: transparent; font-size: 14px; }
.conversation-landing .dashboard-start-composer textarea { min-height: 64px; height: 80px; max-height: 160px; }

.assistant-data-evidence { display: block; margin-top: 10px; }
.assistant-data-evidence small { display: block; line-height: 1.5; }
.assistant-data-evidence button:disabled { cursor: wait; opacity: .55; }

/* Thumbs under assistant answers. */
.assistant-feedback { display: flex; gap: 2px; margin-top: 4px; }
.assistant-feedback button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.assistant-feedback button:hover { background: var(--nav-hover); color: var(--ink); }
.assistant-feedback button[aria-pressed="true"] { color: var(--brand-blue, #315f9c); background: var(--nav-selected, #dce8fc); }
.assistant-feedback svg { width: 14px; height: 14px; }
/* The assistant panel names the screen it reads. */
.assistant-screen-chip { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--shell-surface, #f6f7f9); }
.assistant-screen-chip svg { width: 14px; height: 14px; flex: 0 0 14px; }
.assistant-screen-chip strong { color: var(--ink); font-weight: 550; }
/* Account pages inside the Profile frame. */
.profile-workspace .profile-panel { display: flex; flex-direction: column; min-width: 0; overflow: auto; }
.profile-workspace .company-home { flex: 1; }
.profile-nav-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
/* Bold inside a chat answer is inline emphasis; the block rule above is only for the legacy compose landing's speaker labels. */
.dashboard-start-conversation .chat-markdown strong { display: inline; font-size: inherit; }
/* Profile workspace pages. */
.profile-identity { display: flex; align-items: center; gap: 16px; margin: 20px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.profile-identity > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--nav-selected, #dce8fc); color: var(--nav-ink, #185abc); font-style: normal; font-weight: 650; font-size: 16px; }
.profile-identity > div { flex: 1; min-width: 0; }
.profile-identity strong { display: block; font-size: 17px; font-weight: 600; }
.profile-identity small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.profile-identity .profile-email { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-page .account-session { display: grid; gap: 8px; }
.settings-page .account-session > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.settings-page .account-build { margin-top: 0; }
/* Profile workspace: grouped nav, metric tiles, tables. */
.profile-sidebar .profile-nav-label { margin: 18px 12px 6px; }
.profile-sidebar .profile-nav-label:first-of-type { margin-top: 6px; }
.profile-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.profile-metric { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.profile-metric span { font-size: 12px; color: var(--muted); }
.profile-metric strong { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.profile-metric small { font-size: 11px; color: var(--muted); }
.profile-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.profile-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.profile-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile-table tr.is-current td { background: var(--shell-surface); }
.profile-table td b { font-weight: 600; }
.profile-table td.is-failed, .profile-table td.is-denied { color: #b3261e; font-weight: 600; }
.profile-table td.is-ok { color: #176236; }
.profile-empty { color: var(--muted); font-size: 13px; }
.profile-page select[data-pref], .audit-page select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }
.settings-actions .is-danger { color: #b3261e; border-color: #e8b6bf; }
.profile-page .company-home-header select { align-self: center; }
/* The panel scrolls, not the 760px column inside it. */
.profile-workspace .profile-page { max-width: none; overflow: visible; }
.profile-workspace .profile-page > * { max-width: 760px; }
/* Profile nav matches the Work nav: 31px rows, 16px icons, muted group labels. */
#workspace-sidebar.profile-sidebar .inbox-folders { display: flex; flex-direction: column; gap: 1px; }
#workspace-sidebar.profile-sidebar .inbox-folders button { min-height: 31px; height: 31px; padding: 6px 10px; gap: 8px; border-radius: 6px; font-size: var(--sidebar-text-size, 13px); font-weight: 400; }
#workspace-sidebar.profile-sidebar .inbox-folders button > svg { width: 16px; height: 16px; flex-shrink: 0; }
#workspace-sidebar.profile-sidebar .profile-nav-label { margin: 22px 10px 8px; }
#workspace-sidebar.profile-sidebar .profile-nav-label:first-of-type { margin-top: 4px; }
#workspace-sidebar.profile-sidebar .profile-nav-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
/* The avatar reads as the selected tab while an account page is open. */
.account-chip[aria-current="page"], .account-chip[aria-current="page"]:hover { background: var(--nav-selected, #dce8fc); border-color: transparent; }
.account-chip[aria-current="page"] i { background: var(--nav-ink, #185abc); color: white; }
/* Panels that used to be dialogs, hosted inside Profile pages. */
.profile-inline-panel { margin-top: 20px; padding: 0; }
.profile-inline-panel .profile-inline-heading h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.profile-inline-panel .dashboard-panel-body { padding: 0; max-height: none; overflow: visible; }
.profile-inline-panel .company-admin-summary { margin-bottom: 12px; }
/* Floating assistant: the Alliance mark, a clean composer with send and the reply tool beside it. */
.assistant-mark img { width: 22px; height: 22px; display: block; }
.assistant-composer label { position: relative; display: block; }
.assistant-composer label > textarea { padding-right: 84px; }
.assistant-composer label > button.assistant-reply-tool { right: 45px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.assistant-composer label > button.assistant-reply-tool:hover { color: var(--ink); background: var(--nav-hover); }
.assistant-composer label > button[data-workspace-chat-send] { background: var(--brand-blue, #315f9c); color: #fff; }
/* Profile pages: calmer weights. */
.profile-page h1 { font-weight:550; }
.profile-page h2, .profile-identity strong, .profile-metric strong, .profile-table th, .profile-table td b, .profile-page .account-session em { font-weight:550; }
.profile-page .company-home-header h1 { letter-spacing:-.4px; }
/* Pin 50: the sidebar header keeps the same order whether collapsed or not. */
#workspace-sidebar[data-sidebar-collapsed="true"] > header > .sidebar-toggle { order: 0; }
