@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--color-canvas); scroll-behavior: smooth; }
body { min-width: 0; min-height: 100svh; margin: 0; overflow-x: hidden; color: var(--color-ink); background-color: var(--color-canvas); background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 38px 38px; font-family: var(--font-sans); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.96), rgba(255,255,255,.5) 36%, transparent 66%), radial-gradient(circle at 92% 88%, rgba(198,121,63,.10), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.56), transparent 32%, rgba(239,229,214,.24)); }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(198,137,87,.35); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 300; left: 18px; top: 12px; padding: 11px 14px; border-radius: 10px; background: var(--color-ink); color: #fff; text-decoration: none; transform: translateY(-150%); transition: transform var(--motion-standard); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 100; top: 0; padding: 14px 20px 0; }
.nav-shell { width: min(1280px, 100%); min-height: 64px; margin: 0 auto; padding: 8px 14px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(38,33,28,.1); border-radius: 18px; background: rgba(253,250,245,.92); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 9px 6px 7px; border-radius: 13px; text-decoration: none; transition: background var(--motion-standard); }
.brand:hover { background: rgba(198,137,87,.08); }
.brand-claw { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; }
.brand-wordmark { display: block; width: auto; height: 16px; object-fit: contain; }
.account-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.account-nav a, .text-button { min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; border: 0; border-radius: 10px; background: transparent; color: #60584e; text-decoration: none; font-size: 12px; cursor: pointer; }
.account-nav a:hover, .text-button:hover { color: var(--color-ink); background: rgba(38,33,28,.045); }
.account-nav form { margin: 0; }
.account-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-muted); font-size: 12px; }
.page-shell { position: relative; z-index: 1; width: min(var(--content-width), calc(100% - 48px)); min-height: calc(100svh - 160px); margin: 0 auto; padding: 72px 0 96px; }
.site-footer { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--color-line); color: var(--color-faint); font: 700 8px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; line-height: 1.04; }
h1 { margin-bottom: 20px; font-size: clamp(42px, 7vw, 88px); font-weight: 450; text-wrap: balance; }
h2 { margin-bottom: 13px; font-size: clamp(25px, 3vw, 38px); font-weight: 520; }
h3 { margin-bottom: 8px; font-size: 19px; font-weight: 590; }
p { margin-top: 0; }
.eyebrow, .mono-label { margin: 0 0 10px; color: #a7754e; font: 760 9px/1.4 var(--font-mono); letter-spacing: .15em; text-transform: uppercase; }
.mono-label { color: var(--color-faint); font-size: 8px; letter-spacing: .1em; }
.lede { color: var(--color-muted); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; }
.muted { color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.primary-button, .secondary-button, .danger-button { min-height: 46px; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); text-decoration: none; font-weight: 720; font-size: 13px; cursor: pointer; transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast); }
.primary-button { background: var(--color-ink); color: #fff; }
.primary-button:hover { background: #b7662d; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(38,33,28,.15); }
.secondary-button { border-color: var(--color-line-strong); background: rgba(255,255,255,.65); color: var(--color-ink); }
.secondary-button:hover { background: #fff; transform: translateY(-1px); }
.danger-button { border-color: rgba(168,79,60,.25); background: rgba(168,79,60,.06); color: var(--color-danger); }
.quiet-link, .back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-muted); font-size: 13px; text-underline-offset: 5px; }
.auth-layout { min-height: 68svh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .75fr); align-items: center; gap: clamp(48px, 9vw, 130px); }
.auth-intro { max-width: 690px; }
.auth-intro h1 { font-size: clamp(56px, 7.5vw, 104px); line-height: .9; letter-spacing: -.07em; }
.auth-intro .lede { max-width: 570px; }
.trust-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 13px; border: 1px solid var(--color-line); border-radius: 999px; background: rgba(255,255,255,.6); color: var(--color-muted); font: 700 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--color-copper); box-shadow: 0 0 0 6px rgba(198,121,63,.1); }
.auth-card, .message-panel, .review-panel { min-width: 0; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--color-line); border-radius: var(--radius-large); background: rgba(255,253,249,.9); box-shadow: var(--shadow-panel); backdrop-filter: blur(16px); }
.auth-card { display: grid; gap: 15px; }
.auth-card h2 { margin-bottom: 0; }
.auth-card p { color: var(--color-muted); }
.auth-switch { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; color: var(--color-copper-deep); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-switch:hover { text-decoration: underline; }
label { display: grid; gap: 7px; color: var(--color-muted); font-size: 12px; font-weight: 670; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-control); background: rgba(255,255,255,.84); color: var(--color-ink); }
textarea { min-height: 100px; resize: vertical; }
.notice { padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-small); font-size: 13px; }
.notice.success { border-color: rgba(70,116,93,.24); background: rgba(70,116,93,.07); color: #345b47; }
.notice.error { border-color: rgba(168,79,60,.24); background: rgba(168,79,60,.06); color: var(--color-danger); }
.page-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 50px; align-items: end; margin-bottom: 62px; }
.page-heading > p { max-width: 500px; margin: 0; color: var(--color-muted); font-size: 16px; }
.admin-heading-action { max-width: 500px; display: grid; justify-items: start; gap: 18px; }
.admin-heading-action p { margin: 0; color: var(--color-muted); font-size: 16px; }
.client-heading h1 { font-size: clamp(44px, 6vw, 76px); }
.workspace-summary { margin: -18px 0 58px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,253,249,.78); box-shadow: var(--shadow-soft); }
.workspace-summary div { min-height: 128px; padding: 20px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-left: 1px solid var(--color-line); }
.workspace-summary div:first-child { border-left: 0; }
.workspace-summary span { color: var(--color-muted); font-size: 13px; }
.workspace-summary strong { color: var(--color-ink); font-size: clamp(32px, 4vw, 52px); font-weight: 460; line-height: 1; }
.workspace-section { margin-top: 10px; }
.section-title-row, .module-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.section-title-row { margin-bottom: 20px; }
.section-title-row h2, .module-heading-row h3 { margin-bottom: 0; }
.section-title-row > p { margin: 0; color: var(--color-muted); font-size: 12px; }
.module-heading-row { align-items: center; margin-bottom: 14px; }
.module-heading-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-copper-deep); font-size: 12px; text-underline-offset: 4px; }
.agent-list, .admin-agent-list { display: grid; gap: 12px; }
.agent-row { min-width: 0; padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,253,249,.86); box-shadow: 0 12px 32px rgba(79,63,49,.05); }
.agent-row.is-disabled { opacity: .72; }
.agent-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(198,121,63,.3); border-radius: 16px; background: var(--color-surface-copper); color: var(--color-copper-deep); font-family: var(--font-editorial); font-size: 25px; }
.agent-mark.large { width: 66px; height: 66px; border-radius: 20px; font-size: 34px; }
.agent-copy p { margin: 0; color: var(--color-muted); }
.agent-action { display: flex; align-items: center; gap: 12px; }
.status-pill { display: inline-flex; max-width: 100%; padding: 6px 9px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface-soft); color: var(--color-muted); font: 740 8px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status-pill .status-dot { width: 5px; height: 5px; margin-right: 7px; box-shadow: none; }
.status-pill.active, .status-pill.approved, .status-pill.final, .status-pill.accepted, .status-pill.completed { border-color: rgba(70,116,93,.26); background: rgba(70,116,93,.07); color: var(--color-success); }
.status-pill.disabled, .status-pill.rejected { border-color: rgba(168,79,60,.25); background: rgba(168,79,60,.06); color: var(--color-danger); }
.status-pill.ready_for_review, .status-pill.pending, .status-pill.returned { border-color: rgba(198,121,63,.3); background: rgba(198,121,63,.08); color: var(--color-copper-deep); }
.split-section { margin-top: 78px; padding: 52px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; border-top: 1px solid var(--color-line); }
.activity-list { min-width: 0; display: grid; }
.activity-item { min-width: 0; padding: 14px 4px; display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--color-line); }
.activity-item .status-dot { margin-top: 8px; }
.activity-item p { margin: 4px 0 0; color: var(--color-muted); font-size: 12px; }
.empty-state { padding: 48px 24px; border: 1px dashed var(--color-line-strong); border-radius: var(--radius-panel); background: rgba(255,255,255,.45); text-align: center; color: var(--color-muted); }
.empty-state.prominent { min-height: 390px; display: grid; place-content: center; justify-items: center; }
.empty-state img { width: 72px; margin-bottom: 18px; }
.empty-state h2 { color: var(--color-ink); }
.loading-state { min-height: 260px; padding: 36px; display: grid; align-content: center; gap: 14px; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,253,249,.72); }
.loading-state p { margin: 6px 0 0; color: var(--color-muted); font: 700 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.loading-line { width: 62%; height: 18px; border-radius: 999px; background: linear-gradient(90deg, rgba(198,121,63,.08), rgba(198,121,63,.18), rgba(198,121,63,.08)); background-size: 200% 100%; animation: loading-wash 1.6s ease-in-out infinite; }
.loading-line.wide { width: 88%; height: 28px; }
.loading-line.short { width: 42%; }
@keyframes loading-wash { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.message-panel { max-width: 760px; margin: 9vh auto; text-align: center; }
.message-panel .secondary-button { margin-top: 18px; }
.list-surface { min-width: 0; display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-line); }
.list-row { min-width: 0; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,253,249,.94); }
.list-row p { margin: 0; color: var(--color-muted); }
.row-action { display: flex; align-items: center; gap: 10px; }
.section-nav, .agent-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.section-nav { position: sticky; z-index: 20; top: 92px; margin-bottom: 70px; padding: 8px; border: 1px solid var(--color-line); border-radius: 15px; background: rgba(253,250,245,.94); box-shadow: var(--shadow-soft); }
.section-nav a { min-height: 42px; padding: 10px 13px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--color-muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.section-nav a:hover { background: rgba(198,121,63,.08); color: var(--color-ink); }
.admin-section { padding: 68px 0; border-top: 1px solid var(--color-line); scroll-margin-top: 170px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-heading > p { justify-self: end; max-width: 460px; color: var(--color-muted); }
.inline-form, .admin-form { margin-bottom: 28px; padding: 20px; display: grid; gap: 14px; align-items: end; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,253,249,.72); }
.inline-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form .wide { grid-column: 1 / -1; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { color: var(--color-faint); font: 740 8px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
td { color: var(--color-muted); font-size: 12px; }
.compact-edit { min-width: 190px; display: flex; align-items: center; gap: 6px; }
.compact-edit input, .compact-edit select { min-height: 40px; padding: 8px 9px; }
.compact-edit .text-button { flex: 0 0 auto; }
.account-surface { padding: 34px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 46px; border: 1px solid var(--color-line); border-radius: var(--radius-large); background: rgba(255,253,249,.88); box-shadow: var(--shadow-panel); }
.admin-agent { min-width: 0; padding: 25px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.25fr); gap: 28px; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,253,249,.9); }
.admin-agent > form:last-child { grid-column: 1 / -1; }
.admin-agent-copy p { color: var(--color-muted); }
.assignment-form { min-width: 0; display: grid; gap: 14px; }
.label-editor { border: 1px solid var(--color-line); border-radius: var(--radius-control); background: rgba(255,255,255,.48); }
.label-editor summary { min-height: 44px; padding: 12px 14px; display: flex; align-items: center; cursor: pointer; color: var(--color-ink); font-size: 12px; font-weight: 700; }
.label-editor > p { margin: 0; padding: 0 14px 12px; color: var(--color-muted); font-size: 11px; }
.label-grid { padding: 0 14px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.label-grid input { min-height: 46px; }
fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--color-line); border-radius: var(--radius-control); }
legend { padding: 0 6px; color: var(--color-muted); font-size: 11px; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.check-list label { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.check-list input { width: 18px; min-height: 18px; }
.agent-hero { margin-bottom: 30px; }
.preview-banner { margin-bottom: 26px; padding: 14px 16px; display: flex; align-items: baseline; gap: 12px; border: 1px solid rgba(198,121,63,.3); border-radius: var(--radius-control); background: rgba(198,121,63,.08); color: var(--color-muted); font-size: 13px; }
.preview-banner strong { color: var(--color-ink); white-space: nowrap; }
.preview-interaction-note { padding: 12px 14px; border: 1px dashed var(--color-line-strong); border-radius: var(--radius-control); color: var(--color-muted); font-size: 13px; }
.module-surface :disabled { cursor: not-allowed; opacity: .55; }
.agent-identity { margin-top: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.agent-identity h1 { margin-bottom: 8px; font-size: clamp(42px, 6vw, 76px); }
.agent-identity p { max-width: 700px; margin: 0; color: var(--color-muted); }
.fixture-banner { margin-top: 26px; padding: 13px 16px; display: flex; gap: 12px; align-items: baseline; border: 1px solid rgba(198,121,63,.24); border-radius: var(--radius-control); background: rgba(198,121,63,.07); color: var(--color-muted); font-size: 12px; }
.fixture-banner strong { color: var(--color-copper-deep); }
.agent-layout { min-width: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.agent-nav { position: sticky; top: 100px; padding: 9px; flex-direction: column; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(253,250,245,.92); }
.agent-nav a { min-height: 44px; padding: 11px 12px; border-radius: 10px; color: var(--color-muted); text-decoration: none; font-size: 12px; }
.agent-nav a:hover, .agent-nav a.active { background: var(--color-surface-copper); color: var(--color-copper-deep); }
.module-surface { min-width: 0; min-height: 600px; padding: clamp(26px, 4vw, 50px); border: 1px solid var(--color-line); border-radius: var(--radius-large); background: rgba(255,253,249,.9); box-shadow: var(--shadow-panel); }
.module-intro { max-width: 680px; margin-bottom: 34px; color: var(--color-muted); font-size: 16px; }
.fact-row { margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--color-line); border-radius: var(--radius-panel); overflow: hidden; }
.fact-row div { min-width: 0; min-height: 140px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--color-line); }
.fact-row div:first-child { border-left: 0; }
.fact-row span { color: var(--color-faint); font: 740 8px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.fact-row strong { font-size: 21px; font-weight: 540; }
.overview-facts strong { font-size: 34px; font-weight: 460; }
.overview-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.overview-grid > section { min-width: 0; min-height: 210px; padding: 22px; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: rgba(255,255,255,.56); }
.mini-work-row, .mini-result-row { min-height: 52px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--color-line); text-decoration: none; font-size: 13px; }
.mini-work-row strong { color: var(--color-copper-deep); font-size: 11px; white-space: nowrap; }
.mini-result-row > span:first-child, .mini-work-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ask-agent-card { min-height: 82px; margin-top: 12px; padding: 14px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid rgba(198,121,63,.24); border-radius: var(--radius-panel); background: linear-gradient(120deg, rgba(255,255,255,.86), rgba(249,243,238,.9)); color: var(--color-ink); text-decoration: none; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.ask-agent-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.ask-agent-card strong, .ask-agent-card small { display: block; }
.ask-agent-card small { margin-top: 3px; color: var(--color-muted); }
.result-list { display: grid; gap: 12px; }
.result-card, .workspace-board { min-width: 0; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: linear-gradient(145deg, #fff, #fbf7f2); box-shadow: 0 14px 36px rgba(70,63,54,.07); }
.result-card p { margin-bottom: 0; color: var(--color-muted); }
.console-panel { overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: #f7f1e8; }
.console-log { min-height: 260px; padding: 22px; display: grid; align-content: end; gap: 12px; background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 30px 30px; }
.console-message { max-width: 78%; padding: 14px 16px; border: 1px solid var(--color-line); border-radius: 15px 15px 15px 4px; background: rgba(255,253,249,.95); color: var(--color-muted); }
.console-message p { margin: 3px 0 0; }
.console-message strong { color: var(--color-copper-deep); font: 740 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.console-form { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; border-top: 1px solid var(--color-line); background: rgba(255,253,249,.92); }
.console-form label { min-width: 0; }
.console-form textarea { min-height: 64px; }
.preferences-form { max-width: 760px; margin-top: 30px; display: grid; gap: 10px; }
.preference-row { min-height: 78px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--color-line); border-radius: var(--radius-control); background: rgba(255,255,255,.62); cursor: pointer; }
.preference-row strong, .preference-row small { display: block; }
.preference-row strong { color: var(--color-ink); font-size: 14px; }
.preference-row small { margin-top: 4px; color: var(--color-muted); font-weight: 450; }
.preference-row input { width: 44px; min-width: 44px; min-height: 44px; margin: 0; accent-color: var(--color-copper-deep); }
.preferences-form > .primary-button { margin-top: 8px; justify-self: start; }
.agent-layout.compact-view .module-surface { padding: clamp(22px, 3vw, 36px); }
.agent-layout.compact-view .list-row, .agent-layout.compact-view .result-card, .agent-layout.compact-view .overview-grid > section { padding-block: 14px; }
.settings-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-line); }
.settings-list div { min-width: 0; padding: 16px 18px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; background: var(--color-surface); }
.settings-list dt { color: var(--color-muted); }
.settings-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12px; }
.work-heading { max-width: 880px; margin-bottom: 46px; }
.work-heading h1 { margin-top: 26px; }
.work-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--color-muted); font-size: 12px; }
.review-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.review-output { min-height: 430px; }
.review-output p:last-child { margin-top: 40px; color: var(--color-ink-soft); font-family: var(--font-editorial); font-size: 22px; line-height: 1.65; }
.review-panel { display: grid; gap: 12px; }
.review-panel form { display: grid; gap: 14px; }
.decision-row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .auth-layout, .page-heading, .split-section, .review-layout { grid-template-columns: 1fr; }
  .account-surface { grid-template-columns: 1fr; }
  .auth-layout { align-items: start; gap: 44px; }
  .auth-card { max-width: 620px; }
  .page-heading { gap: 12px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { justify-self: start; }
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-agent { grid-template-columns: 1fr; }
  .agent-layout { grid-template-columns: 1fr; }
  .agent-nav { position: static; flex-direction: row; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .preview-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .site-header { padding: 8px 8px 0; }
  .nav-shell { min-height: 0; padding: 12px; align-items: center; flex-wrap: wrap; border-radius: 15px; }
  .account-nav { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; padding-top: 8px; border-top: 1px solid var(--color-line); }
  .account-name { max-width: none; min-width: 0; display: flex; overflow: visible; text-overflow: clip; white-space: normal; }
  .account-nav a, .account-nav button { min-height: 44px; display: flex; align-items: center; }
  .account-nav form { display: flex; }
  .page-shell, .site-footer { width: min(100% - 28px, var(--content-width)); }
  .page-shell { padding-top: 52px; padding-bottom: 70px; }
  h1 { font-size: clamp(38px, 13vw, 58px); letter-spacing: -.055em; }
  .auth-intro h1 { font-size: clamp(52px, 15vw, 78px); }
  .agent-row { grid-template-columns: auto minmax(0, 1fr); }
  .agent-action { grid-column: 1 / -1; justify-content: space-between; }
  .agent-identity { grid-template-columns: auto minmax(0, 1fr); }
  .agent-identity > .status-pill { grid-column: 1 / -1; justify-self: start; }
  .agent-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 4px; }
  .agent-nav a { min-height: 44px; display: flex; align-items: center; }
  .fixture-banner { align-items: flex-start; flex-direction: column; }
  .inline-form, .admin-form { grid-template-columns: 1fr; }
  .admin-form .wide { grid-column: auto; }
  .label-grid { grid-template-columns: 1fr; }
  .section-nav { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .section-nav a { justify-content: center; text-align: center; white-space: normal; }
  .section-nav a, .compact-edit input, .compact-edit select, .check-list label { min-height: 44px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table { min-width: 0; border-collapse: separate; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tr { padding: 12px; display: grid; gap: 8px; border: 1px solid var(--color-line); border-radius: var(--radius-control); background: var(--color-surface); }
  td { padding: 4px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; border: 0; }
  td::before { content: attr(data-label); color: var(--color-faint); font: 740 8px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
  td .compact-edit { min-width: 0; }
  .fact-row { grid-template-columns: 1fr; }
  .fact-row div { min-height: 96px; border-left: 0; border-top: 1px solid var(--color-line); }
  .fact-row div:first-child { border-top: 0; }
  .console-form { grid-template-columns: 1fr; }
  .settings-list div { grid-template-columns: 1fr; gap: 5px; }
  .workspace-summary { margin-top: -28px; }
  .workspace-summary div { min-height: 96px; padding: 15px; align-items: flex-start; flex-direction: column-reverse; }
  .workspace-summary strong { font-size: 34px; }
}
@media (max-width: 520px) {
  .brand-wordmark { height: 14px; max-width: 118px; }
  .account-nav { gap: 0; }
  .account-nav a, .text-button { padding-inline: 9px; font-size: 11px; }
  .page-shell, .site-footer { width: calc(100% - 20px); }
  .auth-card, .message-panel, .review-panel, .module-surface { padding: 24px 18px; border-radius: 20px; }
  .agent-row { padding: 18px; gap: 14px; }
  .agent-mark { width: 44px; height: 44px; }
  .agent-action, .row-action { align-items: stretch; flex-direction: column; }
  .list-row { padding: 17px; align-items: stretch; flex-direction: column; }
  .list-row .secondary-button { width: 100%; }
  .section-nav { top: 74px; margin-bottom: 48px; }
  .admin-section { padding: 50px 0; }
  .admin-agent { padding: 18px; }
  .check-list { grid-template-columns: 1fr; }
  .agent-nav { margin-inline: -2px; padding: 7px; }
  .agent-nav a { flex: 0 0 auto; }
  .module-surface { min-height: 500px; }
  .console-message { max-width: 94%; }
  .workspace-summary { grid-template-columns: 1fr; }
  .workspace-summary div { border-left: 0; border-top: 1px solid var(--color-line); flex-direction: row; align-items: center; }
  .workspace-summary div:first-child { border-top: 0; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .preference-row { align-items: flex-start; }
  .decision-row { display: grid; grid-template-columns: 1fr; }
  .decision-row button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Full-screen reusable client Agent UI */
.agent-shell-body { height: 100svh; overflow: hidden; background: #edeae4; background-image: none; }
.agent-shell-body::before { display: none; }
.agent-app-main { width: 100%; height: 100svh; min-width: 0; }
.agent-app-shell { --agent-sidebar-width: 288px; width: 100%; height: 100svh; min-width: 0; display: grid; grid-template-columns: var(--agent-sidebar-width) minmax(0, 1fr); overflow: hidden; background: #f4f1ec; }
.agent-sidebar { position: relative; z-index: 120; min-width: 0; height: 100svh; padding: 18px 14px 14px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; overflow: hidden; border-right: 1px solid rgba(255,255,255,.08); background: #1e2224; color: #eef0ef; box-shadow: 14px 0 38px rgba(26,28,29,.12); }
.sidebar-brand-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shell-brand { min-width: 0; min-height: 44px; padding: 7px 8px; display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; text-decoration: none; }
.shell-brand:hover { background: rgba(255,255,255,.06); }
.shell-brand img:first-child { width: 30px; height: 30px; object-fit: contain; }
.shell-brand-wordmark { width: 122px; max-width: 122px; height: 17px; display: block; flex: 0 0 auto; color: #f4f5f4; }
.sidebar-close, .sidebar-open, .sidebar-scrim { border: 0; cursor: pointer; }
.sidebar-close { width: 44px; min-height: 44px; display: none; place-items: center; border-radius: 9px; background: transparent; color: #b7bcbd; font-size: 24px; }
.sidebar-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sidebar-close:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-agent-context { min-width: 0; padding: 2px 8px 8px; display: grid; gap: 2px; }
.sidebar-agent-context small, .sidebar-agent-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-agent-context small { color: #777f81; font: 720 8px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sidebar-agent-context strong { color: #f2f3f2; font-size: 13px; font-weight: 650; }
.sidebar-agent-mark, .account-avatar, .message-avatar { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(214,130,69,.45); background: linear-gradient(145deg, #d08249, #a95328); color: #fff8f1; font-weight: 760; }
.sidebar-agent-mark { width: 42px; height: 42px; border-radius: 11px; font-size: 16px; }
.live-indicator i, .console-context small i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #55b783; box-shadow: 0 0 0 3px rgba(85,183,131,.12); }
.agent-nav { position: static; min-width: 0; padding: 0 3px 16px 0; display: block; overflow-x: hidden; overflow-y: auto; border: 0; border-radius: 0; background: transparent; scrollbar-width: thin; scrollbar-color: #444a4c transparent; }
.agent-nav-group { margin: 0 0 15px; }
.agent-nav-group h2 { margin: 0 8px 5px; color: #777f81; font: 720 9px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.agent-nav-link { min-width: 0; min-height: 44px; margin: 2px 0; padding: 9px 10px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 9px; color: #c4c9ca; text-decoration: none; font-size: 12px; transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); }
.agent-nav-link:hover { border-color: rgba(255,255,255,.05); background: rgba(255,255,255,.055); color: #f7f8f7; }
.agent-nav-link.active { border-color: rgba(215,131,70,.28); background: linear-gradient(90deg, rgba(201,112,52,.22), rgba(201,112,52,.08)); color: #fff; }
.agent-nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #8f9799; }
.agent-nav-link.active .agent-nav-icon { color: #e49a62; }
.agent-nav-icon svg, .stat-icon svg, .activity-event-icon svg, .sidebar-open svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.agent-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-nav-count { min-width: 21px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.075); color: #aeb4b5; font: 700 9px var(--font-mono); }
.agent-nav-link.active .agent-nav-count { background: rgba(224,145,86,.18); color: #efb384; }
.sidebar-footer { min-width: 0; display: grid; gap: 9px; }
.sidebar-preview-menu { position: relative; min-width: 0; }
.sidebar-preview-menu summary { position: relative; z-index: 36; min-width: 0; min-height: 48px; padding: 7px 8px; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 8px; cursor: pointer; list-style: none; }
.sidebar-preview-menu summary::-webkit-details-marker { display: none; }
.sidebar-preview-menu summary:hover, .sidebar-preview-menu[open] summary { background: rgba(255,255,255,.05); }
.sidebar-preview-menu summary > span { min-width: 0; display: grid; gap: 1px; }
.sidebar-preview-menu summary small, .sidebar-preview-menu summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-preview-menu summary small { color: #7f8789; font-size: 8px; }
.sidebar-preview-menu summary strong { color: #d7dad9; font-size: 10px; font-weight: 680; }
.sidebar-preview-menu summary b { color: #8f9698; font-size: 11px; font-weight: 700; text-align: center; }
.sidebar-preview-popover { position: absolute; right: 0; bottom: 52px; left: 0; z-index: 35; padding: 7px; display: grid; gap: 3px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #292e30; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.sidebar-preview-popover p { margin: 3px 4px 7px; color: #9ca2a3; font-size: 8px; line-height: 1.5; }
.sidebar-preview-popover a, .sidebar-preview-popover button { width: 100%; min-height: 44px; padding: 9px 10px; display: flex; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #d5d9d9; font-size: 10px; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-preview-popover a:hover, .sidebar-preview-popover button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-account-row { position: relative; min-width: 0; min-height: 50px; padding: 7px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.account-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.sidebar-account-row > span:nth-child(2) { min-width: 0; display: grid; }
.sidebar-account-row strong, .sidebar-account-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-row strong { color: #e7e9e8; font-size: 11px; }
.sidebar-account-row small { color: #7f8789; font-size: 9px; }
.account-menu { position: relative; }
.account-menu summary { position: relative; z-index: 36; width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 9px; color: #8f9698; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: rgba(255,255,255,.06); color: #fff; }
.account-menu > div { position: absolute; right: 0; bottom: 46px; z-index: 30; width: 165px; padding: 6px; display: grid; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #292e30; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.account-menu a, .account-menu button { min-height: 44px; padding: 9px 10px; display: flex; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #d5d9d9; text-decoration: none; font-size: 11px; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.account-menu form { margin: 0; }
.account-menu button { width: 100%; }
.sidebar-scrim { display: none; }

.agent-workspace { position: relative; min-width: 0; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; background: #f4f1ec; }
.sidebar-open { position: absolute; top: 12px; left: 12px; z-index: 35; width: 44px; min-height: 44px; padding: 0; display: none; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #252a2c; color: #f1f2f1; box-shadow: 0 10px 28px rgba(27,30,31,.18); }
.sidebar-open[hidden] { display: none; }
.sidebar-open:hover { border-color: rgba(214,130,69,.5); background: #303638; color: #fff; }
.agent-workspace-scroll { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.module-surface { width: min(100%, 1580px); min-height: 100%; margin: 0 auto; padding: clamp(28px, 3vw, 48px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.module-header { min-width: 0; margin-bottom: 26px; padding-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid #dedbd4; }
.module-header > div { min-width: 0; max-width: 820px; }
.module-header .eyebrow { margin-bottom: 7px; color: #b26835; }
.module-header h1 { margin: 0 0 7px; color: #242321; font-size: clamp(28px, 3vw, 38px); font-weight: 620; letter-spacing: -.045em; line-height: 1.02; }
.module-header p:not(.eyebrow) { max-width: 720px; margin: 0; color: #77716b; font-size: 13px; }
.module-primary-action { flex: 0 0 auto; }

.overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.overview-stats article { min-width: 0; min-height: 116px; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: start; border: 1px solid #ddd9d2; border-radius: 13px; background: #fffdfa; box-shadow: 0 5px 18px rgba(61,56,49,.035); }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon.warm { background: #f6ebe2; color: #b66731; }
.stat-icon.alert { background: #f8e7e3; color: #a95242; }
.stat-icon.success { background: #e7f1eb; color: #477660; }
.stat-icon.neutral { background: #ececed; color: #596164; }
.overview-stats article > div { min-width: 0; display: grid; }
.overview-stats small { color: #77716b; font-size: 10px; }
.overview-stats strong { margin-top: 2px; color: #242321; font-size: 27px; font-weight: 620; line-height: 1; }
.overview-stats .stat-word { font-size: 20px; }
.overview-stats p { margin: 8px 0 0; color: #a09a94; font-size: 9px; }
.overview-main-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 14px; }
.overview-secondary-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; }
.workspace-panel { min-width: 0; border: 1px solid #ddd9d2; border-radius: 14px; background: #fffdfa; box-shadow: 0 7px 24px rgba(61,56,49,.04); }
.priority-panel, .agent-pulse-panel, .result-panel { padding: 19px; }
.panel-heading { min-width: 0; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.panel-heading .mono-label { margin-bottom: 3px; }
.panel-heading > a { min-height: 44px; display: inline-flex; align-items: center; color: #a65d2d; font-size: 10px; font-weight: 700; text-decoration: none; }
.dashboard-work-row { min-width: 0; min-height: 68px; padding: 10px 4px; display: grid; grid-template-columns: 6px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; border-top: 1px solid #ebe8e2; color: #2c2b29; text-decoration: none; }
.dashboard-work-row:hover strong { color: #ad612f; }
.dashboard-work-row > span:nth-child(2) { min-width: 0; display: grid; }
.dashboard-work-row strong, .dashboard-work-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-work-row strong { font-size: 12px; }
.dashboard-work-row small { color: #88827c; font-size: 9px; }
.dashboard-work-row b { color: #aaa49d; }
.priority-indicator { width: 5px; height: 30px; border-radius: 999px; background: #a9ada9; }
.priority-indicator.high { background: #c46545; }
.priority-indicator.normal { background: #c98a55; }
.live-indicator { padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #edf5f0; color: #4e755f; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.pulse-row { min-width: 0; padding: 10px 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; border-top: 1px solid #ebe8e2; }
.pulse-row > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #f1ede7; color: #8f8881; font: 700 9px var(--font-mono); }
.pulse-row > div { min-width: 0; display: grid; }
.pulse-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pulse-row small { color: #8e8882; font-size: 9px; }
.progress-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #ece9e3; }
.progress-track i { height: 100%; display: block; border-radius: inherit; background: #c6793f; }
.progress-track .progress-level-1 { width: 72%; }
.progress-track .progress-level-2 { width: 54%; }
.progress-track .progress-level-3 { width: 36%; }
.panel-empty { min-height: 86px; display: grid; place-content: center; gap: 3px; color: #858079; text-align: center; }
.panel-empty strong { color: #44413d; font-size: 12px; }
.panel-empty span { font-size: 10px; }
.compact-result-row { min-width: 0; min-height: 58px; padding: 8px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border-top: 1px solid #ebe8e2; }
.compact-result-row > span:nth-child(2) { min-width: 0; display: grid; }
.compact-result-row strong, .compact-result-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-result-row strong { font-size: 11px; }
.compact-result-row small { color: #918b84; font-size: 9px; }
.file-type-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ddd7cf; border-radius: 9px; background: #f6f2ec; color: #a76135; font: 760 8px var(--font-mono); letter-spacing: .04em; }
.ask-agent-panel { min-height: 100%; padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: #fff; background: linear-gradient(135deg, #292e30, #1e2224); text-decoration: none; }
.ask-agent-panel span:nth-child(2) { min-width: 0; }
.ask-agent-panel small { color: #b7bdbe; font-size: 9px; }
.ask-agent-panel strong { display: block; margin-top: 2px; font-size: 14px; }
.ask-agent-panel p { margin: 5px 0 0; color: #949b9d; font-size: 9px; }
.ask-agent-panel b { color: #d78b54; font-size: 18px; }

.work-toolbar, .files-toolbar { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.work-toolbar > span { color: #89837d; font-size: 10px; }
.segmented-filter { padding: 4px; display: flex; gap: 3px; border: 1px solid #ddd9d2; border-radius: 10px; background: #ece9e3; }
.segmented-filter button { min-height: 44px; padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #7a756f; font-size: 10px; cursor: pointer; }
.segmented-filter button.active { background: #fff; color: #2d2b29; box-shadow: 0 2px 8px rgba(48,44,39,.08); }
.work-list { display: grid; gap: 8px; }
.work-list-row { min-width: 0; padding: 17px 18px; display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 15px; align-items: center; border: 1px solid #ddd9d2; border-radius: 13px; background: #fffdfa; }
.work-list-main { min-width: 0; }
.work-list-main .mono-label { margin-bottom: 4px; }
.work-list-main h2 { margin: 0 0 4px; font-size: 16px; }
.work-list-main > p:not(.mono-label) { max-width: 780px; margin: 0; color: #7b756f; font-size: 11px; }
.work-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags span { padding: 4px 7px; border-radius: 6px; background: #f2eee8; color: #817a73; font-size: 8px; text-transform: capitalize; }
.work-list-action { display: grid; justify-items: end; gap: 9px; }
.work-detail-dialog, .result-dialog { width: min(680px, calc(100% - 32px)); max-height: min(820px, calc(100svh - 32px)); padding: 26px; overflow: auto; border: 1px solid #d7d2ca; border-radius: 16px; background: #fffdfa; color: #292725; box-shadow: 0 35px 120px rgba(22,24,25,.3); }
.work-detail-dialog::backdrop, .result-dialog::backdrop { background: rgba(18,21,22,.62); backdrop-filter: blur(3px); }
.dialog-topline, .result-dialog > form { display: flex; align-items: center; justify-content: space-between; }
.dialog-topline form, .result-dialog > form { margin: 0; }
.dialog-topline form button, .result-dialog > form button { width: 44px; min-height: 44px; border: 0; border-radius: 9px; background: #f0ede8; color: #5f5a54; font-size: 20px; cursor: pointer; }
.work-detail-dialog h2, .result-dialog h2 { margin: 12px 0 8px; font-size: 27px; }
.dialog-summary { color: #77716b; }
.dialog-preview-content, .result-document-preview { margin: 22px 0; padding: 20px; border: 1px solid #e0dcd5; border-radius: 12px; background: #f8f5f0; }
.dialog-preview-content h3, .result-document-preview h3 { font-size: 14px; }
.dialog-preview-content p, .dialog-preview-content li, .result-document-preview p { color: #6f6963; font-size: 11px; }
.dialog-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result-library-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; border: 1px solid #ddd9d2; border-radius: 14px; background: #fffdfa; box-shadow: 0 7px 24px rgba(61,56,49,.035); }
.result-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.result-library-card .mono-label { margin: 16px 0 5px; }
.result-library-card h2 { margin: 0 0 7px; font-size: 17px; }
.result-library-card > p:not(.mono-label) { flex: 1; color: #77716b; font-size: 11px; }
.result-card-meta { margin-top: 14px; padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #ebe8e2; color: #96908a; font-size: 8px; }
.result-card-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.result-document-preview { min-height: 260px; }

.files-toolbar label { width: min(390px, 100%); }
.files-toolbar input { min-height: 46px; background: #fffdfa; }
.files-toolbar > div { display: flex; gap: 6px; }
.file-list { overflow: hidden; border: 1px solid #ddd9d2; border-radius: 13px; background: #fffdfa; }
.file-row { min-width: 0; min-height: 68px; padding: 12px 15px; display: grid; grid-template-columns: auto minmax(0, 1fr) 120px 90px 44px; gap: 13px; align-items: center; border-top: 1px solid #ebe8e2; }
.file-row:first-child { border-top: 0; }
.file-row > div { min-width: 0; }
.file-row h2 { margin: 0 0 2px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-row p { margin: 0; overflow: hidden; color: #8d8781; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-row > span:not(.file-type-icon) { display: grid; }
.file-row > span small { color: #9a948e; font-size: 8px; }
.file-row > span strong { color: #5f5a55; font-size: 9px; }
.file-row > button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #8e8882; cursor: pointer; }
.file-row > button:hover { background: #f1ede7; }

.activity-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 14px; align-items: start; }
.activity-timeline { padding: 8px 20px; border: 1px solid #ddd9d2; border-radius: 14px; background: #fffdfa; }
.activity-event { position: relative; min-width: 0; min-height: 72px; padding: 15px 0 15px 44px; display: flex; align-items: center; border-top: 1px solid #ebe8e2; }
.activity-event:first-child { border-top: 0; }
.activity-event-icon { position: absolute; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f2ece5; color: #ad6535; }
.activity-event-icon svg { width: 15px; height: 15px; }
.activity-event h2 { margin: 0 0 3px; font-size: 12px; }
.activity-event p { margin: 0; color: #8c8680; font-size: 9px; }
.activity-summary { padding: 20px; }
.activity-summary h2 { font-size: 17px; }
.activity-summary dl { margin: 16px 0 0; display: grid; }
.activity-summary dl div { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ebe8e2; }
.activity-summary dt { color: #7c7670; font-size: 10px; }
.activity-summary dd { margin: 0; color: #292725; font-size: 18px; font-weight: 660; }

.agent-console-shell { min-height: calc(100svh - 205px); display: grid; grid-template-rows: auto minmax(300px, 1fr) auto; overflow: hidden; border: 1px solid #d9d5ce; border-radius: 14px; background: #fffdfa; }
.console-context { min-height: 62px; padding: 10px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #e5e1da; }
.console-context > div { display: grid; }
.console-context strong { font-size: 12px; }
.console-context small { display: flex; align-items: center; gap: 6px; color: #89837d; font-size: 9px; }
.console-log { min-height: 0; padding: 24px; display: grid; align-content: end; gap: 14px; overflow-y: auto; background: #f5f2ed; background-image: none; }
.console-message { max-width: min(680px, 80%); padding: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; border: 0; border-radius: 0; background: transparent; color: #373431; }
.console-message.user-message { justify-self: end; grid-template-columns: minmax(0, 1fr); }
.console-message.user-message > div { padding: 12px 14px; border-radius: 13px 13px 4px 13px; background: #252a2c; color: #fff; }
.console-message.agent-message > div { padding: 12px 14px; border: 1px solid #ddd9d2; border-radius: 4px 13px 13px 13px; background: #fffdfa; }
.message-avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.console-message strong { color: inherit; font: 720 8px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.console-message p { margin: 4px 0 0; color: inherit; font-size: 11px; }
.console-form { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; border-top: 1px solid #e3dfd8; background: #fffdfa; }
.console-form textarea { min-height: 58px; max-height: 150px; background: #f8f5f0; }

.custom-workspace-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 14px; }
.workspace-board { padding: 26px; border-radius: 14px; box-shadow: none; }
.workspace-board h2 { font-size: 23px; }
.workspace-board > p:not(.mono-label):not(.workflow-run-state) { max-width: 720px; color: #77716b; font-size: 12px; }
.workflow-diagram { margin: 28px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) auto); align-items: center; gap: 8px; }
.workflow-diagram > span { min-width: 0; min-height: 104px; padding: 13px; display: grid; align-content: start; gap: 3px; border: 1px solid #ddd9d2; border-radius: 12px; background: #f8f5f0; }
.workflow-diagram > span i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #ece8e2; color: #8d8780; font: 700 9px var(--font-mono); }
.workflow-diagram > span strong { margin-top: 7px; font-size: 11px; }
.workflow-diagram > span small { color: #8c8680; font-size: 8px; }
.workflow-diagram > span.complete { border-color: rgba(70,116,93,.25); background: #f2f7f4; }
.workflow-diagram > span.complete i { background: #dfeee5; color: #46745d; }
.workflow-diagram > span.active { border-color: rgba(198,121,63,.34); background: #fcf5ef; box-shadow: 0 0 0 3px rgba(198,121,63,.08); }
.workflow-diagram > span.active i { background: #f3e1d3; color: #ad6535; }
.workflow-diagram > b { color: #aaa49d; font-weight: 500; }
.workflow-run-state { margin: 10px 0 0; color: #89837d; font-size: 9px; }
.workspace-customization { padding: 22px; }
.workspace-customization h2 { font-size: 18px; }
.workspace-customization ul { margin: 18px 0 0; padding: 0; list-style: none; }
.workspace-customization li { padding: 12px 0; display: grid; gap: 2px; border-top: 1px solid #ebe8e2; }
.workspace-customization li strong { font-size: 10px; }
.workspace-customization li span { color: #89837d; font-size: 9px; }

/* Tradewinds fictional Demo Workspace */
.agent-app-shell[data-demo-workspace="tradewinds"] .module-surface[data-module="workspace"] { width: min(100%, 1660px); }
.demo-walkthrough { min-width: 0; display: grid; gap: 14px; }
.demo-walkthrough-header { min-width: 0; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #ddd9d2; border-radius: 13px; background: #fffdfa; }
.demo-walkthrough-header h2 { margin: 0 0 5px; font-size: 19px; }
.demo-walkthrough-header p:not(.mono-label) { margin: 0; color: #7d7771; font-size: 10px; }
.demo-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.demo-header-actions > span { color: #817b75; font: 700 9px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.demo-header-actions > span strong { color: #a65d2d; }
.demo-header-actions .secondary-button { min-height: 44px; padding: 8px 11px; font-size: 10px; }
.demo-stage-rail { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.demo-stage-tab { position: relative; min-width: 0; min-height: 84px; padding: 13px 12px 11px 48px; display: grid; align-content: center; gap: 2px; overflow: hidden; border: 1px solid #ddd9d2; border-radius: 12px; background: #fffdfa; color: #393735; text-align: left; cursor: pointer; transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
.demo-stage-tab::before { position: absolute; inset: 0 0 auto; height: 4px; content: ""; background: #8b9294; }
.demo-stage-tab > span { position: absolute; left: 12px; top: 22px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #eceeed; color: #62696b; font: 760 9px var(--font-mono); }
.demo-stage-tab strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.demo-stage-tab small { overflow: hidden; color: #8c8680; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.demo-stage-tab.agent::before { background: #c87338; }
.demo-stage-tab.agent > span { background: #f3e4d8; color: #a65d2d; }
.demo-stage-tab.review::before { background: #d1a13e; }
.demo-stage-tab.review > span { background: #f7ecd0; color: #8f691c; }
.demo-stage-tab.ready::before { background: #4f8669; }
.demo-stage-tab.ready > span { background: #e1efe7; color: #376b52; }
.demo-stage-tab:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(55,50,44,.07); }
.demo-stage-tab.active { border-color: #8b9294; box-shadow: 0 0 0 3px rgba(98,105,107,.08); }
.demo-stage-tab.agent.active { border-color: #c87338; box-shadow: 0 0 0 3px rgba(200,115,56,.09); }
.demo-stage-tab.review.active { border-color: #d1a13e; box-shadow: 0 0 0 3px rgba(209,161,62,.1); }
.demo-stage-tab.ready.active { border-color: #4f8669; box-shadow: 0 0 0 3px rgba(79,134,105,.1); }
.demo-stage-tab:disabled { cursor: not-allowed; opacity: .52; }
.demo-stage-frame { scroll-margin-top: 12px; }
.demo-stage-panel { min-width: 0; min-height: 620px; padding: clamp(20px, 2.4vw, 34px); border: 1px solid #d8d4cd; border-radius: 16px; background: #fbfaf7; box-shadow: 0 12px 36px rgba(53,48,42,.045); }
.demo-stage-panel[hidden] { display: none !important; }
.demo-stage-panel.stage-source { border-top: 5px solid #7e8789; background: linear-gradient(180deg, #f3f4f3, #fbfaf7 160px); }
.demo-stage-panel.stage-agent { border-top: 5px solid #c87338; background: linear-gradient(180deg, #fdf3eb, #fbfaf7 180px); }
.demo-stage-panel.stage-review { border-top: 5px solid #d1a13e; background: linear-gradient(180deg, #fdf7e8, #fbfaf7 180px); }
.demo-stage-panel.stage-ready { border-top: 5px solid #4f8669; background: linear-gradient(180deg, #eef6f1, #fbfaf7 180px); }
.demo-stage-heading { min-width: 0; margin-bottom: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: start; }
.demo-stage-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #e5e8e7; color: #62696b; font: 760 11px var(--font-mono); }
.stage-agent .demo-stage-number { background: #f1dfd1; color: #a65d2d; }
.stage-review .demo-stage-number { background: #f4e6bd; color: #88651f; }
.stage-ready .demo-stage-number { background: #dcebe2; color: #376b52; }
.demo-stage-heading h2 { margin: 0 0 5px; font-size: clamp(24px, 2.5vw, 34px); }
.demo-stage-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: #77716b; font-size: 11px; }
.demo-stage-status { min-height: 32px; padding: 7px 10px; display: inline-flex; align-items: center; border: 1px solid #d8d4cd; border-radius: 999px; background: #f2f2f1; color: #646a6c; font: 750 8px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.demo-stage-status.copper { border-color: #e7c2a8; background: #fbebdf; color: #9f5728; }
.demo-stage-status.amber { border-color: #e6ce8e; background: #fcf2d8; color: #7d5b18; }
.demo-stage-status.green { border-color: #b9d6c5; background: #e8f3ec; color: #356a4f; }
.source-story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.source-summary-card, .source-lines-card, .source-photo-strip, .agent-build-summary, .review-question-card, .review-evidence-card, .ready-hero-card, .ready-next-card { min-width: 0; border: 1px solid #d9d6d0; border-radius: 13px; background: rgba(255,253,250,.95); }
.source-summary-card, .source-lines-card, .source-photo-strip { padding: 17px; }
.source-card-top, .story-card-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.source-card-top > div, .story-card-heading > div { min-width: 0; display: grid; }
.source-card-top span, .story-card-heading span { color: #8d8781; font: 720 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.source-card-top strong, .story-card-heading strong, .story-card-heading h4 { margin: 2px 0 0; font-size: 13px; }
.source-card-top img { width: 108px; max-height: 40px; object-fit: contain; }
.story-card-heading small { color: #99928c; font-size: 8px; }
.source-facts { margin: 17px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e3e0da; border-radius: 10px; }
.source-facts div { min-width: 0; padding: 10px; display: grid; gap: 2px; border-left: 1px solid #e3e0da; }
.source-facts div:first-child { border-left: 0; }
.source-facts dt { color: #99928c; font-size: 8px; }
.source-facts dd { margin: 0; color: #3d3a37; font-size: 10px; font-weight: 720; }
.quick-note { margin-top: 12px; padding: 13px; display: grid; gap: 7px; border-left: 4px solid #c87338; border-radius: 9px; background: #f8efe8; }
.quick-note span { color: #8b7566; font: 720 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.quick-note code { color: #8f4c25; font: 700 12px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.source-line { min-width: 0; min-height: 56px; padding: 9px 2px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 45px; gap: 10px; align-items: center; border-top: 1px solid #e7e3dd; }
.source-line:first-of-type { margin-top: 12px; }
.source-line > span { color: #8a8178; font: 720 8px var(--font-mono); }
.source-line > div { min-width: 0; display: grid; }
.source-line strong { font-size: 10px; }
.source-line small { color: #8e8881; font-size: 8px; }
.source-line b { justify-self: end; color: #67615b; font: 720 9px var(--font-mono); }
.source-photo-strip { margin-top: 12px; }
.source-photo-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.source-photo-grid article { min-width: 0; overflow: hidden; border: 1px solid #e2ded8; border-radius: 10px; background: #fff; }
.source-photo-grid article > span { min-width: 0; padding: 10px; display: grid; }
.source-photo-grid strong, .source-photo-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-photo-grid strong { font-size: 9px; }
.source-photo-grid small { color: #8c8680; font-size: 8px; }
.demo-photo { position: relative; min-height: 118px; margin: 0; overflow: hidden; background: #dfe3e0; }
.demo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.demo-photo figcaption { position: absolute; left: 9px; right: 9px; bottom: 9px; width: fit-content; max-width: calc(100% - 18px); padding: 5px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; background: rgba(24,28,29,.88); color: #fff; font: 700 6px/1.35 var(--font-mono); letter-spacing: .035em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.demo-evidence-drawer { margin-top: 12px; border: 1px solid #d9d6d0; border-radius: 11px; background: rgba(255,253,250,.78); }
.demo-evidence-drawer summary { min-height: 44px; padding: 11px 14px; display: flex; align-items: center; color: #596062; font-size: 10px; font-weight: 720; cursor: pointer; }
.demo-evidence-drawer > div { padding: 11px 14px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; border-top: 1px solid #e4e0da; }
.demo-evidence-drawer span { font-size: 9px; font-weight: 720; }
.demo-evidence-drawer p { margin: 0; color: #817a74; font-size: 9px; }
.source-record { min-width: 0; display: grid; gap: 14px; }
.source-record-header { min-width: 0; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d8d5cf; border-radius: 13px; background: rgba(255,253,250,.94); }
.source-record-header h3 { margin: 1px 0 3px; font-size: 19px; }
.source-record-header p:not(.mono-label) { margin: 0; color: #7b756f; font-size: 10px; }
.source-page-count { flex: 0 0 auto; min-height: 42px; padding: 9px 12px; display: flex; align-items: center; gap: 5px; border: 1px solid #d7d4ce; border-radius: 10px; background: #f4f4f2; color: #747a7b; font: 740 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.source-page-count strong { color: #333839; font-size: 12px; }
.source-truth-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.truth-chip { min-height: 32px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ddd9d2; border-radius: 999px; background: #fffdfa; color: #716b65; font-size: 8px; }
.truth-chip i { width: 8px; height: 8px; border-radius: 50%; background: #7e8789; }
.truth-chip.official i { background: #2b6f8d; }
.truth-chip.vendor i { background: #b08336; }
.source-record-nav { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.source-record-tab { min-width: 0; min-height: 72px; padding: 10px; display: grid; align-content: center; gap: 2px; border: 1px solid #ddd9d2; border-radius: 11px; background: #f9f8f5; color: #494744; text-align: left; cursor: pointer; }
.source-record-tab > span { color: #8a9192; font: 740 7px var(--font-mono); letter-spacing: .08em; }
.source-record-tab strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-record-tab small { overflow: hidden; color: #918b84; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.source-record-tab:hover { border-color: #9da3a4; background: #fff; }
.source-record-tab.active { border-color: #727b7d; background: #eef0ef; box-shadow: inset 0 0 0 1px #727b7d, 0 6px 16px rgba(58,62,63,.06); }
.source-page-stack, .source-page { min-width: 0; }
.source-page[hidden] { display: none !important; }
.source-page { padding: clamp(18px, 2.2vw, 28px); border: 1px solid #d7d4ce; border-radius: 14px; background: #fffdfa; box-shadow: 0 14px 34px rgba(52,49,45,.04); }
.source-page-heading { min-width: 0; margin-bottom: 18px; padding-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e3dfd9; }
.source-page-heading h3 { margin: 1px 0 4px; font-size: clamp(19px, 2vw, 26px); }
.source-page-heading p:not(.mono-label) { max-width: 760px; margin: 0; color: #77716a; font-size: 11px; }
.source-page-badge { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #d8d4ce; border-radius: 999px; background: #f2f2ef; color: #6d7475; font: 730 7.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.source-overview-layout, .source-notes-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 13px; align-items: start; }
.source-activity-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 13px; align-items: start; }
.source-summary-card, .source-notes-card, .source-products-card, .source-timeline-card, .source-record-map-card, .source-photo-boundary { min-width: 0; padding: 18px; border: 1px solid #d9d6d0; border-radius: 12px; background: #fff; }
.source-record-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.source-record-meta span { padding: 6px 8px; border-radius: 7px; background: #edf0ef; color: #656c6d; font: 720 7.5px var(--font-mono); }
.source-provenance-legend { margin-top: 12px; padding: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #e0ddd7; border-radius: 9px; background: #f7f6f3; }
.source-provenance-legend strong { margin-right: auto; color: #403c38; font-size: 9px; }
.source-provenance-legend span { padding: 5px 7px; border-radius: 999px; font: 720 7px var(--font-mono); letter-spacing: .03em; }
.source-provenance-legend .office { background: #e9f1f5; color: #3e6d80; }
.source-provenance-legend .visit { background: #f7eadf; color: #97552e; }
.source-provenance-legend .system { background: #e8f1eb; color: #47745a; }
.source-field-group { margin-top: 14px; padding-top: 12px; border-top: 3px solid #d6e4ea; }
.source-field-group.visit { border-top-color: #e9c6ac; }
.source-field-group.system { border-top-color: #bdd6c6; }
.source-field-group > header { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.source-field-group > header > span { flex: 0 0 auto; padding: 5px 6px; border-radius: 6px; background: #edf4f7; color: #4b7485; font: 720 6.8px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.source-field-group.visit > header > span { background: #f8ede4; color: #96582f; }
.source-field-group.system > header > span { background: #eaf3ed; color: #4c755d; }
.source-field-group > header div { min-width: 0; }
.source-field-group > header h4 { margin: 0; color: #332f2b; font-size: 12px; }
.source-field-group > header p { margin: 2px 0 0; color: #8a837c; font-size: 8.5px; line-height: 1.45; }
.source-field-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e1ddd7; border-radius: 10px; }
.source-field-group .source-field-grid { margin-top: 9px; }
.source-field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-field-grid.three > div { border-top: 0; border-left: 1px solid #e7e3dd; }
.source-field-grid.three > div:first-child { border-left: 0; }
.source-field-grid > div { min-width: 0; min-height: 70px; padding: 11px; display: grid; align-content: space-between; gap: 5px; border-top: 1px solid #e7e3dd; border-left: 1px solid #e7e3dd; }
.source-field-grid > div:nth-child(-n+2) { border-top: 0; }
.source-field-grid > div:nth-child(odd) { border-left: 0; }
.source-field-grid.three > div:nth-child(n) { border-top: 0; border-left: 1px solid #e7e3dd; }
.source-field-grid.three > div:first-child { border-left: 0; }
.source-field-grid dt, .source-schedule-grid dt, .source-photo-record dt { color: #98918a; font-size: 8.5px; }
.source-field-grid dd, .source-schedule-grid dd, .source-photo-record dd { margin: 0; color: #403c38; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.source-section-map { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 5px; }
.source-section-map span { padding: 6px 8px; border: 1px solid #d8e3e8; border-radius: 7px; background: #f0f7fa; color: #3e6e82; font-size: 7.5px; font-weight: 720; }
.official-reference-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #cfdce2; border-radius: 12px; background: #f7fbfd; }
.official-reference-card figcaption { padding: 13px 14px; display: grid; gap: 2px; border-bottom: 1px solid #d6e2e7; background: #edf6f9; }
.official-reference-card figcaption span { color: #2f6f89; font: 750 7.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.official-reference-card figcaption strong { font-size: 11px; }
.official-reference-card figcaption small { color: #9a7434; font-size: 7.5px; }
.official-reference-card a { display: block; background: #e7edf0; }
.official-reference-card img { width: 100%; max-height: 470px; display: block; object-fit: contain; object-position: center; }
.official-reference-card > p { margin: 0; padding: 12px 14px 14px; color: #6f7474; font-size: 9.5px; line-height: 1.55; }
.official-agent-access { margin: 12px 12px 0; padding: 12px 13px; display: grid; gap: 4px; border-left: 4px solid #2f7897; border-radius: 0 8px 8px 0; background: #eaf5f9; }
.official-agent-access > span { color: #2e6f8a; font: 760 7px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.official-agent-access > strong { color: #253e49; font-size: 10px; }
.official-agent-access > p { margin: 0; color: #52707c; font-size: 8.5px; line-height: 1.55; }
.portrait-reference img { max-height: 540px; }
.wide-reference { margin-top: 13px; }
.wide-reference img { max-height: 400px; }
.landscape-reference img { max-height: 480px; }
.source-fidelity-note { margin-top: 13px; padding: 13px 15px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 13px; border-left: 4px solid #b08336; border-radius: 9px; background: #fbf5e9; }
.source-fidelity-note strong { color: #775c26; font-size: 9px; }
.source-fidelity-note p { margin: 0; color: #756b5a; font-size: 8.5px; }
.source-schedule-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e1ddd7; border-radius: 10px; }
.source-schedule-grid > div { min-width: 0; min-height: 62px; padding: 10px; display: grid; align-content: space-between; gap: 5px; border-top: 1px solid #e7e3dd; border-left: 1px solid #e7e3dd; }
.source-schedule-grid > div:nth-child(-n+3) { border-top: 0; }
.source-schedule-grid > div:nth-child(3n+1) { border-left: 0; }
.source-note-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.source-note-grid article { min-width: 0; min-height: 112px; padding: 12px; display: grid; align-content: start; gap: 7px; border: 1px solid #e2ded8; border-radius: 9px; background: #faf9f6; }
.source-note-grid article.primary { border-color: #dfa77d; background: #fbefe6; }
.source-note-grid span { color: #8c857e; font: 730 7.5px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.source-note-grid p { margin: 0; color: #403c38; font-size: 10px; }
.source-note-grid code { color: #8f4c25; font: 720 12px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.source-note-grid small { margin-top: auto; color: #99928c; font-size: 8.5px; }
.source-note-translation { margin-top: 13px; padding: 13px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; border-radius: 9px; background: #f1f2f0; }
.source-note-translation span { color: #8b8f8f; font: 720 7.5px var(--font-mono); text-transform: uppercase; }
.source-note-translation strong { font-size: 9px; }
.source-mapping-warning { margin-top: 13px; padding: 13px; display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1.55fr); gap: 14px; border: 1px solid #e7cd8f; border-radius: 10px; background: #fff8e8; }
.source-mapping-warning > div span { color: #8d681f; font: 730 7px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.source-mapping-warning h4 { margin: 4px 0 0; color: #4a3b20; font-size: 12px; }
.source-mapping-warning p { margin: 0; color: #6f6047; font-size: 9px; line-height: 1.55; }
.source-products-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid #dcd8d2; border-radius: 10px; }
.source-products-table { width: 100%; min-width: 860px; border-collapse: collapse; background: #fff; table-layout: fixed; }
.source-products-table th { padding: 10px 8px; background: #e9eef0; color: #3e5964; font-size: 8.5px; text-align: left; }
.source-products-table td { padding: 11px 8px; border-top: 1px solid #e5e1db; color: #5c5751; font-size: 9px; vertical-align: top; overflow-wrap: anywhere; }
.source-products-table th:nth-child(1) { width: 7%; }.source-products-table th:nth-child(2) { width: 8%; }.source-products-table th:nth-child(3) { width: 15%; }.source-products-table th:nth-child(4) { width: 23%; }.source-products-table th:nth-child(5) { width: 5%; }.source-products-table th:nth-child(6) { width: 12%; }.source-products-table th:nth-child(7) { width: 7%; }.source-products-table th:nth-child(8) { width: 8%; }.source-products-table th:nth-child(9), .source-products-table th:nth-child(10) { width: 7.5%; }
.source-products-table td strong { color: #353230; font-size: 9.5px; }
.source-financial-boundary { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e2ded8; border-radius: 9px; background: #faf9f6; }
.source-financial-boundary span { min-height: 58px; padding: 10px; display: grid; align-content: space-between; color: #938c84; font-size: 7.5px; border-left: 1px solid #e2ded8; }
.source-financial-boundary span:first-child { border-left: 0; }
.source-financial-boundary span strong { color: #48433e; font-size: 9px; }
.source-financial-boundary p { grid-column: 1 / -1; margin: 0; padding: 10px; border-top: 1px solid #e2ded8; color: #766e66; font-size: 8px; }
.source-photo-evidence-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.source-photo-record { min-width: 0; overflow: hidden; border: 1px solid #dbd7d1; border-radius: 11px; background: #fff; }
.source-photo-record.needs-josh { border-color: #dfc782; box-shadow: 0 0 0 2px rgba(209,161,62,.08); }
.source-photo-record .demo-photo { min-height: 170px; }
.source-photo-record > div:last-child { padding: 12px; }
.source-photo-record h4 { margin: 6px 0 10px; font-size: 12px; }
.photo-record-state { padding: 5px 7px; display: inline-flex; border-radius: 999px; font: 730 7px var(--font-mono); text-transform: uppercase; }
.photo-record-state.supported { background: #e4f0e8; color: #3d7357; }
.photo-record-state.attention { background: #f8edcf; color: #815f1d; }
.photo-type-line { margin-left: 6px; color: #8c857d; font: 720 7px var(--font-mono); }
.photo-context-note { margin: -2px 0 10px; padding: 9px 10px; border-left: 3px solid #d1a13e; border-radius: 0 7px 7px 0; background: #fff7e4; color: #5d5040; font-size: 8px; line-height: 1.55; }
.source-photo-record dl { margin: 0; border-top: 1px solid #e6e2dc; }
.source-photo-record dl > div { min-height: 38px; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; align-items: center; border-top: 1px solid #ece8e2; }
.source-photo-record dl > div:first-child { border-top: 0; }
.source-photo-record dd { text-align: right; }
.source-photo-reference-layout, .source-finished-reference-layout { min-width: 0; margin-top: 13px; display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 13px; align-items: start; }
.source-photo-boundary h4 { margin: 2px 0 8px; font-size: 17px; }
.source-photo-boundary > p:not(.mono-label) { color: #706a64; font-size: 9px; }
.source-photo-boundary ul { margin: 13px 0 0; padding-left: 18px; color: #69635d; font-size: 8px; line-height: 1.6; }
.source-timeline { margin: 14px 0 0; padding: 0; list-style: none; }
.source-timeline-explainer { margin: 12px 0 0; padding: 10px; border-radius: 8px; background: #f3f2ef; color: #736d66; font-size: 9px; line-height: 1.55; }
.source-timeline li { min-width: 0; padding: 11px 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 54px; gap: 10px; align-items: start; border-top: 1px solid #e7e3dd; }
.source-timeline time { color: #747b7c; font: 730 7.5px var(--font-mono); }
.source-timeline li > div { min-width: 0; display: grid; gap: 2px; }
.source-timeline li strong { font-size: 9px; }
.source-timeline li p { margin: 0; color: #847d76; font-size: 8px; overflow-wrap: anywhere; }
.source-timeline li > span { justify-self: end; padding: 4px 6px; border-radius: 6px; background: #eef0ef; color: #7c8283; font-size: 7px; }
.source-record-inventory { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.source-record-inventory > div { min-width: 0; min-height: 86px; padding: 10px; display: grid; align-content: space-between; border: 1px solid #e1ddd7; border-radius: 8px; background: #faf9f6; }
.source-record-inventory span { color: #8e8780; font-size: 7.5px; }
.source-record-inventory strong { font-size: 10px; }
.source-record-inventory small { color: #9b948d; font-size: 7px; }
.source-api-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #d7e0e4; border-radius: 9px; }
.source-api-grid > div { min-width: 0; min-height: 60px; padding: 10px; display: grid; gap: 4px; border-top: 1px solid #dfe6e9; border-left: 1px solid #dfe6e9; background: #f5fafb; }
.source-api-grid > div:nth-child(-n+2) { border-top: 0; }.source-api-grid > div:nth-child(odd) { border-left: 0; }
.source-api-grid span { color: #518096; font: 730 7px var(--font-mono); }
.source-api-grid strong { font-size: 8.5px; }
.source-write-map { margin-top: 10px; padding: 10px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; border: 1px solid #ddd9d2; border-radius: 9px; background: #f4f3ef; }
.source-write-map > div { min-width: 0; display: grid; gap: 3px; }
.source-write-map span { color: #8b8580; font-size: 7px; }
.source-write-map strong { font-size: 8px; }
.source-write-map b { color: #a0a4a4; }
.source-finished-reference-layout { grid-template-columns: minmax(280px, .58fr) minmax(0, 1.42fr); }
.source-fidelity-note.detailed { margin: 0; padding: 18px; display: block; }
.source-fidelity-note.detailed ul { margin: 12px 0 0; padding-left: 18px; color: #706759; font-size: 9px; line-height: 1.65; }
.servicebridge-access-layout { min-width: 0; display: grid; grid-template-columns: minmax(370px, .88fr) minmax(0, 1.12fr); gap: 14px; align-items: start; }
.servicebridge-finished-reference img { max-height: 520px; }
.agent-access-map-card { min-width: 0; padding: 20px; border: 1px solid #d6d9d8; border-radius: 12px; background: #fff; }
.agent-access-intro { padding-bottom: 14px; border-bottom: 1px solid #e1ddd7; }
.agent-access-intro h4 { margin: 3px 0 5px; font-size: 20px; }
.agent-access-intro > p:not(.mono-label) { margin: 0; color: #77716a; font-size: 9.5px; }
.agent-access-steps { margin: 0; padding: 0; list-style: none; }
.agent-access-steps li { min-width: 0; padding: 16px 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; border-top: 1px solid #e6e2dc; }
.agent-access-steps li:first-child { border-top: 0; }
.agent-access-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #dfedf2; color: #2f708b; font: 780 10px var(--font-mono); }
.agent-access-steps li > div { min-width: 0; display: grid; gap: 5px; }
.agent-access-steps h4 { margin: 0; font-size: 14px; }
.agent-access-steps strong { color: #2f708b; font: 750 8px var(--font-mono); overflow-wrap: anywhere; }
.agent-access-steps code { font: inherit; }
.agent-access-steps p { margin: 0; color: #746e67; font-size: 9px; line-height: 1.55; }
.agent-access-boundaries { min-width: 0; margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d7e1e4; border-radius: 11px; background: #f3f8fa; }
.agent-access-boundaries article { min-width: 0; min-height: 110px; padding: 15px; display: grid; align-content: space-between; gap: 7px; border-left: 1px solid #d7e1e4; }
.agent-access-boundaries article:first-child { border-left: 0; }
.agent-access-boundaries span { color: #47798e; font: 740 7px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.agent-access-boundaries strong { color: #284c5c; font-size: 10px; }
.agent-access-boundaries p { margin: 0; color: #6d7b81; font-size: 8.5px; }
.agent-access-boundaries article.separate { background: #fff8e8; }
.agent-access-boundaries article.separate span { color: #8a6825; }
.agent-access-boundaries article.separate strong { color: #5c481e; }
.source-send-boundary { margin-top: 14px; padding: 15px 17px; display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: center; border: 1px solid #e3c879; border-radius: 10px; background: #fff7df; }
.source-send-boundary h4 { margin: 3px 0 0; color: #5d481a; font-size: 14px; }
.source-send-boundary > p { margin: 0; color: #746340; font-size: 9px; line-height: 1.55; }
.agent-result-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 14px; align-items: start; }
.customer-work-order { min-width: 0; padding: clamp(22px, 3vw, 42px); border: 1px solid #d5d0c8; border-radius: 5px; background: #fff; box-shadow: 0 22px 60px rgba(51,43,35,.1); }
.customer-work-order > header { padding-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 2px solid #2d3132; }
.customer-work-order > header img { width: 140px; max-height: 50px; object-fit: contain; }
.customer-work-order > header div { display: grid; justify-items: end; }
.customer-work-order > header span { color: #817a73; font: 720 8px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.customer-work-order > header strong { font-size: 19px; }
.customer-document-meta { padding: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dedad3; }
.customer-document-meta div { padding: 0 10px; display: grid; gap: 2px; border-left: 1px solid #e1ddd6; }
.customer-document-meta div:first-child { padding-left: 0; border-left: 0; }
.customer-document-meta span, .customer-work-order section > span { color: #918a83; font: 720 7px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.customer-document-meta strong { color: #403c38; font-size: 9px; }
.customer-work-order > section { padding: 15px 0 0; }
.customer-work-order > section p { margin: 5px 0 0; color: #3f3a36; font-family: var(--font-editorial); font-size: 16px; line-height: 1.55; }
.customer-photo-row { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.customer-photo-row article { overflow: hidden; border: 1px solid #ded9d2; border-radius: 9px; background: #faf8f4; }
.customer-photo-row .demo-photo { min-height: 145px; }
.customer-photo-row strong, .customer-photo-row small { display: block; margin-inline: 10px; }
.customer-photo-row strong { margin-top: 9px; font-size: 9px; }
.customer-photo-row small { margin-top: 2px; margin-bottom: 10px; color: #817b74; font-size: 8px; }
.customer-work-order > footer { margin-top: 22px; padding-top: 12px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #dad6cf; color: #8f8982; font-size: 8px; }
.customer-work-order > footer strong { color: #a65d2d; }
.agent-build-summary { padding: 21px; }
.agent-build-summary h3 { margin: 0; font-size: 18px; }
.agent-build-summary ul { margin: 18px 0 0; padding: 0; list-style: none; }
.agent-build-summary li { min-width: 0; padding: 13px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; border-top: 1px solid #e7e2dc; }
.agent-build-summary li > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #e3efe7; color: #3f7658; font-size: 10px; font-weight: 800; }
.agent-build-summary li.held > span { background: #f7ecd0; color: #8d681f; }
.agent-build-summary li div { min-width: 0; display: grid; }
.agent-build-summary li strong { font-size: 10px; }
.agent-build-summary li small { margin-top: 2px; color: #827c75; font-size: 8px; line-height: 1.45; }
.draft-evidence-trace { margin-top: 16px; padding-top: 15px; border-top: 1px solid #dcd7d0; }
.draft-evidence-trace h4 { margin: 3px 0 10px; font-size: 13px; }
.draft-evidence-trace > div { padding: 8px 9px; display: grid; gap: 2px; border-top: 1px solid #e8e3dc; background: #f8f7f4; }
.draft-evidence-trace > div:first-of-type { border-top: 0; border-radius: 8px 8px 0 0; }
.draft-evidence-trace > div:last-child { border-radius: 0 0 8px 8px; }
.draft-evidence-trace > div.held { background: #fff7e6; }
.draft-evidence-trace span { color: #403c38; font-size: 8.5px; font-weight: 760; }
.draft-evidence-trace small { color: #817a73; font-size: 7.5px; line-height: 1.4; }
.review-focus-layout { max-width: 1180px; margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; align-items: stretch; }
.review-question-card { padding: clamp(24px, 3vw, 38px); }
.question-icon { width: 48px; height: 48px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 13px; background: #f2dfaa; color: #805f20; font-size: 24px; font-weight: 800; }
.review-question-card h3 { max-width: 720px; margin: 0 0 12px; font-size: clamp(23px, 2.4vw, 32px); }
.review-question-card > p:not(.mono-label):not(.review-decision-result) { max-width: 780px; color: #6f6962; font-size: 12px; }
.review-decision-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.review-decision-actions .primary-button.selected, .review-decision-actions .secondary-button.selected { border-color: #765719; background: #765719; color: #fff; box-shadow: 0 0 0 3px rgba(209,161,62,.16); }
.review-decision-result { min-height: 42px; margin: 18px 0 0; padding: 12px 14px; border-radius: 9px; background: #f8f1df; color: #76591f; font-size: 10px; }
.review-evidence-card { overflow: hidden; }
.review-evidence-card .demo-photo { min-height: 250px; }
.review-evidence-card dl { margin: 0; padding: 8px 17px; }
.review-evidence-card dl div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e5e1da; }
.review-evidence-card dt { color: #918b84; font-size: 8px; }
.review-evidence-card dd { margin: 0; color: #4d4843; font-size: 9px; font-weight: 720; text-align: right; }
.review-evidence-card > p { margin: 0; padding: 13px 17px 17px; color: #7b756e; font-size: 9px; }
.ready-state-layout { max-width: 1180px; margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; }
.ready-hero-card, .ready-next-card { padding: clamp(24px, 3vw, 38px); }
.ready-check { width: 58px; height: 58px; margin-bottom: 19px; display: grid; place-items: center; border-radius: 16px; background: #dcece2; color: #356a4f; font-size: 27px; font-weight: 800; }
.ready-hero-card h3 { margin: 0 0 10px; font-size: clamp(25px, 2.5vw, 34px); }
.ready-hero-card > p:not(.mono-label) { color: #6f6962; font-size: 11px; }
.ready-summary-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #dce2de; border-radius: 11px; }
.ready-summary-grid div { min-height: 74px; padding: 13px; display: grid; align-content: space-between; border-top: 1px solid #dce2de; border-left: 1px solid #dce2de; background: #f7fbf8; }
.ready-summary-grid div:nth-child(-n+2) { border-top: 0; }
.ready-summary-grid div:nth-child(odd) { border-left: 0; }
.ready-summary-grid span { color: #77847d; font-size: 8px; }
.ready-summary-grid strong { color: #345f4a; font-size: 10px; }
.ready-next-card ol { margin: 19px 0 0; padding: 0; list-style: none; }
.ready-next-card li { padding: 14px 0; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 11px; border-top: 1px solid #e1e5e2; }
.ready-next-card li > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #e3eee7; color: #3f7257; font: 760 9px var(--font-mono); }
.ready-next-card li div { display: grid; }
.ready-next-card li strong { font-size: 10px; }
.ready-next-card li small { margin-top: 2px; color: #7b756e; font-size: 8px; line-height: 1.45; }
.demo-walkthrough-footer { min-height: 66px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #d9d5ce; border-radius: 12px; background: #fffdfa; }
.demo-walkthrough-footer > span { color: #817b75; font-size: 9px; text-align: center; }
.demo-walkthrough-footer button { min-width: 154px; }

.module-surface .preferences-form { max-width: 820px; margin-top: 0; }
.module-surface .preference-row { min-height: 74px; border-radius: 12px; background: #fffdfa; }
.settings-preview-note { max-width: 820px; margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(198,121,63,.2); border-radius: 11px; background: #fbf4ed; color: #746d66; }
.settings-preview-note strong { color: #a65d2d; font-size: 10px; }
.settings-preview-note p { margin: 4px 0 0; font-size: 9px; }
.agent-app-shell.compact-view .module-surface { padding-top: 24px; padding-bottom: 24px; }
.agent-app-shell.compact-view .overview-stats article { min-height: 96px; }
.agent-app-shell.compact-view .work-list-row, .agent-app-shell.compact-view .result-library-card { padding-block: 12px; }
.agent-toast { position: fixed; right: 24px; bottom: 24px; z-index: 250; max-width: min(360px, calc(100% - 32px)); padding: 12px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #252a2c; color: #fff; box-shadow: 0 18px 60px rgba(20,22,23,.24); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity var(--motion-standard), transform var(--motion-standard); }
.agent-toast.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .agent-app-shell { --agent-sidebar-width: 264px; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-main-grid, .overview-secondary-grid, .activity-layout, .custom-workspace-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-story-grid, .agent-result-layout, .review-focus-layout, .ready-state-layout { grid-template-columns: 1fr; }
  .demo-stage-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-record-nav { padding-bottom: 5px; display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .source-record-tab { flex: 0 0 176px; scroll-snap-align: start; }
  .source-overview-layout, .source-notes-layout, .source-activity-layout, .servicebridge-access-layout { grid-template-columns: 1fr; }
  .source-photo-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-photo-record:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); }
  .agent-build-summary { order: -1; }
  .agent-build-summary ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
}

@media (max-width: 820px) {
  .agent-app-shell { display: block; }
  .agent-sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform var(--motion-standard); box-shadow: 22px 0 80px rgba(18,20,21,.34); }
  .agent-app-shell.sidebar-opened .agent-sidebar { transform: none; }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 110; width: 100%; height: 100%; display: block; background: rgba(18,21,22,.52); opacity: 0; pointer-events: none; transition: opacity var(--motion-standard); }
  .agent-app-shell.sidebar-opened .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .agent-workspace { width: 100%; }
  .sidebar-open { display: grid; }
  .module-surface { padding: 72px 20px 38px; }
  .module-header { align-items: flex-start; }
  .file-row { grid-template-columns: auto minmax(0, 1fr) 84px 44px; }
  .file-row > span:nth-of-type(3) { display: none; }
  .workflow-diagram { grid-template-columns: 1fr; }
  .workflow-diagram > b { transform: rotate(90deg); justify-self: center; }
  .demo-stage-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-stage-panel { min-height: 0; }
}

@media (max-width: 560px) {
  .sidebar-open { top: 10px; left: 10px; }
  .module-surface { padding: 68px 12px 32px; }
  .module-header { margin-bottom: 18px; padding: 0 3px 16px; align-items: stretch; flex-direction: column; gap: 14px; }
  .module-header h1 { font-size: 28px; }
  .module-primary-action { width: 100%; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview-stats article { min-height: 108px; padding: 12px; grid-template-columns: 1fr; gap: 8px; }
  .stat-icon { width: 30px; height: 30px; }
  .overview-stats strong { font-size: 23px; }
  .overview-main-grid, .overview-secondary-grid { margin-top: 8px; gap: 8px; }
  .priority-panel, .agent-pulse-panel, .result-panel { padding: 14px; }
  .dashboard-work-row { grid-template-columns: 5px minmax(0, 1fr) 18px; }
  .dashboard-work-row .status-pill { display: none; }
  .ask-agent-panel { min-height: 100px; }
  .work-toolbar, .files-toolbar { align-items: stretch; flex-direction: column; }
  .segmented-filter { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segmented-filter button { padding-inline: 6px; }
  .work-list-row { padding: 14px; grid-template-columns: 5px minmax(0, 1fr); align-items: start; }
  .work-list-action { grid-column: 2; grid-template-columns: 1fr; justify-items: stretch; }
  .work-list-action .secondary-button { width: 100%; }
  .work-detail-dialog, .result-dialog { width: calc(100% - 16px); max-height: calc(100svh - 16px); padding: 18px; border-radius: 13px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .files-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .file-row { min-height: 76px; padding: 10px; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 9px; }
  .file-row > span:not(.file-type-icon) { display: none; }
  .activity-timeline { padding-inline: 14px; }
  .agent-console-shell { min-height: calc(100svh - 220px); }
  .console-log { padding: 16px 12px; }
  .console-message { max-width: 94%; }
  .console-form { grid-template-columns: 1fr; }
  .console-form .primary-button { width: 100%; }
  .workspace-board { padding: 18px; }
  .demo-walkthrough-header { padding: 14px; align-items: flex-start; flex-direction: column; }
  .demo-header-actions { width: 100%; justify-content: space-between; }
  .demo-stage-tab { min-height: 92px; padding: 38px 10px 10px; align-content: start; }
  .demo-stage-tab > span { left: 10px; top: 9px; width: 23px; height: 23px; }
  .demo-stage-tab strong, .demo-stage-tab small { white-space: normal; }
  .demo-stage-heading { grid-template-columns: auto minmax(0, 1fr); }
  .demo-stage-status { grid-column: 2; justify-self: start; }
  .source-record-header, .source-page-heading { align-items: stretch; flex-direction: column; }
  .source-page-count, .source-page-badge { align-self: flex-start; }
  .source-truth-legend { display: grid; grid-template-columns: 1fr; }
  .truth-chip { border-radius: 9px; }
  .agent-access-boundaries { grid-template-columns: 1fr; }
  .agent-access-boundaries article { min-height: 92px; border-top: 1px solid #d7e1e4; border-left: 0; }
  .agent-access-boundaries article:first-child { border-top: 0; }
  .source-send-boundary { grid-template-columns: 1fr; gap: 8px; }
  .source-record-nav { grid-template-columns: 1fr 1fr; }
  .source-record-tab { min-height: 78px; }
  .source-record-tab strong, .source-record-tab small { white-space: normal; }
  .source-page { padding: 14px 10px; }
  .source-summary-card, .source-notes-card, .source-products-card, .source-timeline-card, .source-record-map-card, .source-photo-boundary { padding: 13px; }
  .source-card-top { align-items: flex-start; }
  .source-field-grid { grid-template-columns: 1fr; }
  .source-field-grid.three { grid-template-columns: 1fr; }
  .source-field-grid > div { border-left: 0; }
  .source-field-grid.three > div:nth-child(n) { border-top: 1px solid #e7e3dd; border-left: 0; }
  .source-field-grid.three > div:first-child { border-top: 0; }
  .source-field-grid > div:nth-child(2) { border-top: 1px solid #e7e3dd; }
  .source-fidelity-note { grid-template-columns: 1fr; gap: 5px; }
  .source-schedule-grid { grid-template-columns: 1fr 1fr; }
  .source-schedule-grid > div { border-top: 1px solid #e7e3dd; }
  .source-schedule-grid > div:nth-child(-n+2) { border-top: 0; }
  .source-schedule-grid > div:nth-child(3n+1) { border-left: 1px solid #e7e3dd; }
  .source-schedule-grid > div:nth-child(odd) { border-left: 0; }
  .source-note-grid { grid-template-columns: 1fr; }
  .source-note-translation { grid-template-columns: 1fr; gap: 3px; }
  .source-note-translation strong + span { margin-top: 8px; }
  .source-mapping-warning { grid-template-columns: 1fr; gap: 8px; }
  .source-products-table-wrap { overflow: visible; border: 0; }
  .source-products-table, .source-products-table tbody, .source-products-table tr, .source-products-table td { width: 100%; min-width: 0; display: block; }
  .source-products-table thead { display: none; }
  .source-products-table tr { margin-top: 9px; padding: 5px 10px; overflow: hidden; border: 1px solid #ddd9d3; border-radius: 9px; background: #fff; }
  .source-products-table td { padding: 8px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; border-top: 1px solid #ece8e2; }
  .source-products-table td:first-child { border-top: 0; }
  .source-products-table td::before { color: #969089; content: attr(data-label); font: 720 7px var(--font-mono); text-transform: uppercase; }
  .source-financial-boundary { grid-template-columns: 1fr 1fr; }
  .source-financial-boundary span:nth-child(3) { border-left: 0; border-top: 1px solid #e2ded8; }
  .source-financial-boundary span:nth-child(4) { border-top: 1px solid #e2ded8; }
  .source-photo-evidence-grid { grid-template-columns: 1fr; }
  .source-photo-record:last-child { grid-column: auto; display: block; }
  .source-photo-reference-layout, .source-finished-reference-layout { grid-template-columns: 1fr; }
  .source-photo-record dl > div { grid-template-columns: 92px minmax(0, 1fr); }
  .official-reference-card img, .portrait-reference img, .wide-reference img, .landscape-reference img { max-height: 420px; }
  .source-activity-layout { grid-template-columns: 1fr; }
  .source-timeline li { grid-template-columns: 62px minmax(0, 1fr); }
  .source-timeline li > span { grid-column: 2; justify-self: start; }
  .source-record-inventory { grid-template-columns: 1fr 1fr; }
  .source-api-grid { grid-template-columns: 1fr; }
  .source-api-grid > div { border-left: 0; }
  .source-api-grid > div:nth-child(2) { border-top: 1px solid #dfe6e9; }
  .source-write-map { grid-template-columns: 1fr; text-align: center; }
  .source-write-map b { transform: rotate(90deg); }
  .source-facts { grid-template-columns: 1fr 1fr; }
  .source-facts div { border-top: 1px solid #e3e0da; }
  .source-facts div:nth-child(-n+2) { border-top: 0; }
  .source-facts div:nth-child(odd) { border-left: 0; }
  .source-photo-grid { grid-template-columns: 1fr; }
  .source-photo-grid article { display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; }
  .source-photo-grid .demo-photo { min-height: 100px; }
  .source-card-top img { width: 86px; }
  .customer-document-meta { grid-template-columns: 1fr 1fr; }
  .customer-document-meta div { padding: 8px; border-top: 1px solid #e1ddd6; }
  .customer-document-meta div:nth-child(-n+2) { border-top: 0; }
  .customer-document-meta div:nth-child(odd) { border-left: 0; }
  .customer-photo-row { grid-template-columns: 1fr; }
  .customer-work-order > footer { align-items: flex-start; flex-direction: column; }
  .agent-build-summary ul { grid-template-columns: 1fr; }
  .review-decision-actions { display: grid; grid-template-columns: 1fr; }
  .review-decision-actions button { width: 100%; }
  .ready-summary-grid { grid-template-columns: 1fr; }
  .ready-summary-grid div { border-left: 0; }
  .ready-summary-grid div:nth-child(2) { border-top: 1px solid #dce2de; }
  .demo-walkthrough-footer { grid-template-columns: 1fr 1fr; }
  .demo-walkthrough-footer > span { grid-column: 1 / -1; grid-row: 1; }
  .demo-walkthrough-footer button { min-width: 0; width: 100%; }
  .agent-toast { right: 12px; bottom: 12px; }
}

/* Tradewinds capture-only V1 */
.agent-app-shell[data-workspace-type="tradewinds_capture_v1"] .module-surface { width: min(100%, 1540px); }
.tw-capture-app { min-width: 0; display: grid; gap: 16px; }
.tw-sync-banner { min-width: 0; padding: 15px 17px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #d7ddd7; border-radius: 12px; background: linear-gradient(135deg, #f4f8f4, #fffdfa); }
.tw-sync-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: #dfece2; }
.tw-sync-mark i, .tw-read-only-chip i { width: 8px; height: 8px; border-radius: 50%; background: #5b8066; box-shadow: 0 0 0 4px rgba(91,128,102,.12); }
.tw-sync-banner strong { color: #303936; font-size: 12px; }
.tw-sync-banner p { margin: 3px 0 0; color: #78807b; font-size: 9px; }
.tw-sync-state, .tw-read-only-chip { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d5ddd6; border-radius: 999px; background: #f8fbf8; color: #57705f; font: 740 8px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.tw-overview-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr); gap: 14px; align-items: start; }
.tw-next-work, .tw-v1-boundary { min-width: 0; }
.tw-compact-work-order { min-width: 0; min-height: 72px; padding: 11px 0; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border-top: 1px solid #ebe7e0; color: inherit; text-decoration: none; }
.tw-compact-work-order:first-of-type { border-top: 0; }
.tw-compact-work-order:hover strong { color: #a45b2d; }
.tw-compact-work-order > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.tw-compact-work-order strong, .tw-compact-work-order small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-compact-work-order strong { color: #353a3a; font-size: 10px; }
.tw-compact-work-order small { color: #8a847e; font-size: 8px; }
.tw-compact-work-order b { color: #a45b2d; }
.tw-work-number { color: #a35c30; font: 760 9px var(--font-mono); letter-spacing: .03em; }
.tw-capture-status { min-height: 30px; padding: 6px 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font: 740 7.5px var(--font-mono); letter-spacing: .03em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.tw-capture-status.not_started { background: #eceeed; color: #6d7372; }
.tw-capture-status.collecting { background: #f7eadf; color: #9a592d; }
.tw-capture-status.captured { background: #e1eee4; color: #47745a; }
.tw-capture-status.source_changed { background: #f7e5df; color: #a0523e; }
.tw-v1-boundary ol { margin: 18px 0 0; padding: 0; display: grid; gap: 0; list-style: none; }
.tw-v1-boundary li { padding: 12px 0; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; border-top: 1px solid #e6e2dc; }
.tw-v1-boundary li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #313738; color: #fff; font: 750 9px var(--font-mono); }
.tw-v1-boundary li div { display: grid; gap: 3px; }
.tw-v1-boundary li strong { font-size: 10px; }
.tw-v1-boundary li small { color: #89837d; font-size: 8px; line-height: 1.45; }
.tw-boundary-note { margin: 13px 0 0; padding: 11px; border-radius: 9px; background: #f6f1eb; color: #7d746b; font-size: 8.5px; }
.tw-queue-toolbar { min-width: 0; padding: 13px; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 12px; align-items: end; border: 1px solid #ddd9d2; border-radius: 12px; background: #fffdfa; }
.tw-queue-toolbar label { min-width: 0; display: grid; gap: 5px; color: #6e6862; font-size: 8px; font-weight: 720; }
.tw-queue-toolbar input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d9d4cd; border-radius: 9px; background: #fff; color: #333738; font: 500 11px var(--font-sans); }
.tw-queue-toolbar input:focus { border-color: #b96b36; outline: 3px solid rgba(185,107,54,.12); }
.tw-queue-count { min-width: 86px; min-height: 46px; padding: 7px 11px; display: flex; align-items: baseline; justify-content: center; gap: 6px; border: 1px solid #ddd9d2; border-radius: 9px; background: #f7f5f1; }
.tw-queue-count strong { font-size: 19px; }
.tw-queue-count span { color: #8b857e; font-size: 8px; }
.tw-work-order-list { min-width: 0; display: grid; gap: 9px; }
.tw-work-order-card { min-width: 0; padding: 17px 18px; display: grid; grid-template-columns: minmax(290px, 1.2fr) minmax(270px, .8fr) 190px; gap: 20px; align-items: center; border: 1px solid #ddd9d2; border-radius: 13px; background: #fffdfa; box-shadow: 0 8px 24px rgba(57,52,47,.035); }
.tw-work-order-card[hidden] { display: none; }
.tw-work-order-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.tw-work-order-main h2 { margin: 10px 0 3px; font-size: 17px; }
.tw-work-order-main > p { margin: 0; color: #7f7973; font-size: 9px; }
.tw-work-summary { margin-top: 11px; display: block; color: #45494a; font-size: 10px; }
.tw-work-order-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e1ddd7; border-radius: 9px; }
.tw-work-order-meta div { min-width: 0; padding: 9px 10px; display: grid; gap: 3px; border-top: 1px solid #e7e3dd; border-left: 1px solid #e7e3dd; }
.tw-work-order-meta div:nth-child(-n+2) { border-top: 0; }
.tw-work-order-meta div:nth-child(odd) { border-left: 0; }
.tw-work-order-meta dt { color: #9a938b; font: 720 7px var(--font-mono); text-transform: uppercase; }
.tw-work-order-meta dd { margin: 0; overflow: hidden; color: #4f5353; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tw-work-order-action { min-width: 0; display: grid; justify-items: stretch; gap: 10px; }
.tw-work-order-action > span { color: #89827b; font-size: 8px; line-height: 1.45; text-align: center; }
.tw-capture-stage-rail { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #ddd9d2; border-radius: 12px; background: #fffdfa; }
.tw-capture-stage-rail > span { min-width: 0; min-height: 76px; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 10px; align-content: center; border-left: 1px solid #e3dfd9; }
.tw-capture-stage-rail > span:first-child { border-left: 0; }
.tw-capture-stage-rail i { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; align-self: center; border-radius: 9px; background: #eceeed; color: #7f8584; font: 760 9px var(--font-mono); font-style: normal; }
.tw-capture-stage-rail strong { align-self: end; font-size: 9.5px; }
.tw-capture-stage-rail small { overflow: hidden; color: #908a83; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.tw-capture-stage-rail .complete i { background: #dfece2; color: #477159; }
.tw-capture-stage-rail .active i { background: #f3e2d4; color: #a45b2d; }
.tw-source-changed { padding: 14px 16px; border: 1px solid #e7c5b9; border-radius: 11px; background: #fbefeb; color: #8c4938; }
.tw-source-changed strong { font-size: 11px; }
.tw-source-changed p { margin: 4px 0 0; font-size: 9px; }
.tw-confirm-card { min-width: 0; padding: 19px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; border: 1px solid #d9d5ce; border-radius: 14px; background: #fffdfa; }
.tw-confirm-card h2 { margin: 5px 0 5px; font-size: 22px; }
.tw-confirm-card > div > p:not(.mono-label) { max-width: 780px; margin: 0; color: #7a746d; font-size: 10px; }
.tw-confirm-card > dl { grid-column: 1 / -1; margin: 3px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e1ddd7; border-radius: 10px; }
.tw-confirm-card dl div { min-width: 0; padding: 10px 12px; display: grid; gap: 4px; border-top: 1px solid #e6e2dc; border-left: 1px solid #e6e2dc; background: #faf9f6; }
.tw-confirm-card dl div:nth-child(-n+3) { border-top: 0; }
.tw-confirm-card dl div:nth-child(3n+1) { border-left: 0; }
.tw-confirm-card dt, .tw-captured-card dt { color: #979088; font: 730 7px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.tw-confirm-card dd, .tw-captured-card dd { margin: 0; overflow-wrap: anywhere; color: #45494a; font-size: 9px; }
.tw-intake-layout, .tw-captured-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 14px; align-items: start; }
.tw-note-capture-card, .tw-source-package-card, .tw-captured-card, .tw-frozen-transcript { min-width: 0; padding: 19px; border: 1px solid #d9d5ce; border-radius: 14px; background: #fffdfa; }
.tw-note-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.tw-note-card-heading h2, .tw-source-package-card h2, .tw-captured-card h2, .tw-frozen-transcript h2 { margin: 5px 0; font-size: 19px; }
.tw-note-card-heading p:not(.mono-label), .tw-captured-card > p:not(.mono-label) { margin: 0; color: #7c766f; font-size: 9px; }
.tw-audio-count { flex: 0 0 auto; min-height: 34px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; background: #f1efeb; color: #7d7771; font-size: 8px; }
.tw-audio-count strong { color: #a45b2d; font-size: 11px; }
.tw-voice-control { margin-top: 16px; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #ddd5cd; border-radius: 11px; background: linear-gradient(135deg, #f7eee7, #faf9f6); }
.tw-record-button { min-height: 50px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 9px; background: #292f30; color: #fff; cursor: pointer; }
.tw-record-button > span { width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #bd6532; }
.tw-record-button strong { font-size: 9px; }
.tw-record-button.recording { background: #a64f3c; }
.tw-record-button.recording > span { border-radius: 2px; background: #fff; }
.tw-voice-control > div { min-width: 0; display: grid; gap: 3px; }
.tw-voice-control > div strong { font-size: 9px; }
.tw-voice-control > div small { color: #878079; font-size: 7.5px; }
.tw-voice-control time { color: #5c6161; font: 750 11px var(--font-mono); }
.tw-transcript-form { margin-top: 14px; display: grid; gap: 10px; }
.tw-transcript-form label { display: grid; gap: 7px; color: #5b5854; font-size: 9px; font-weight: 720; }
.tw-transcript-form textarea { width: 100%; min-height: 210px; padding: 13px; resize: vertical; border: 1px solid #d8d3cc; border-radius: 10px; background: #fff; color: #333738; font: 500 11px/1.65 var(--font-sans); }
.tw-transcript-form textarea:focus { border-color: #b96b36; outline: 3px solid rgba(185,107,54,.12); }
.tw-transcript-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-transcript-actions > span { color: #8a837c; font-size: 8px; }
.tw-transcript-actions > span.dirty { color: #a15b30; font-weight: 720; }
.tw-source-package-card ul { margin: 16px 0 0; padding: 0; display: grid; gap: 0; list-style: none; }
.tw-source-package-card li { padding: 11px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; border-top: 1px solid #e5e1db; }
.tw-source-package-card li > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: #ecefed; color: #65706d; font: 740 7px var(--font-mono); }
.tw-source-package-card li div { min-width: 0; display: grid; gap: 3px; }
.tw-source-package-card li strong { font-size: 9px; }
.tw-source-package-card li small { color: #8a847d; font-size: 7.5px; line-height: 1.45; }
.tw-source-boundary { margin-top: 14px; padding: 12px; border-radius: 9px; background: #edf3ee; color: #5b7161; }
.tw-source-boundary strong { font: 750 8px var(--font-mono); text-transform: uppercase; }
.tw-source-boundary p { margin: 4px 0 0; font-size: 8px; }
.tw-ready-card { min-width: 0; padding: 19px; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.2fr) auto; gap: 18px; align-items: center; border: 1px solid #d5dcd5; border-radius: 14px; background: linear-gradient(135deg, #f1f7f2, #fffdfa); }
.tw-ready-card h2 { margin: 5px 0; font-size: 19px; }
.tw-ready-card > div p:not(.mono-label) { margin: 0; color: #747d76; font-size: 9px; }
.tw-ready-confirm { min-width: 0; min-height: 58px; padding: 10px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid #d6ddd6; border-radius: 10px; background: rgba(255,255,255,.72); cursor: pointer; }
.tw-ready-confirm input { width: 22px; height: 22px; justify-self: center; accent-color: #4f735a; }
.tw-ready-confirm span { min-width: 0; display: grid; gap: 3px; }
.tw-ready-confirm strong { font-size: 9px; }
.tw-ready-confirm small { color: #828981; font-size: 7.5px; }
.tw-ready-card .primary-button { min-width: 174px; }
.tw-ready-disclosure { grid-column: 2 / -1; margin-top: -12px; color: #7d857e; font-size: 7.5px; }
.tw-captured-card { position: relative; padding-right: 70px; background: linear-gradient(145deg, #f2f8f3, #fffdfa); }
.tw-captured-check { position: absolute; right: 20px; top: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dcebe0; color: #477158; font-size: 20px; }
.tw-captured-card dl { margin: 19px 0 0; display: grid; gap: 0; overflow: hidden; border: 1px solid #dce2dc; border-radius: 9px; }
.tw-captured-card dl div { min-width: 0; padding: 9px 11px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; border-top: 1px solid #e1e6e2; }
.tw-captured-card dl div:first-child { border-top: 0; }
.tw-hash { overflow: hidden; font-family: var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.tw-frozen-transcript p:not(.mono-label) { color: #69645e; font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.tw-approval-mode { min-width: 0; padding: 19px; display: grid; gap: 14px; border: 1px solid #cfd9d0; border-radius: 14px; background: linear-gradient(145deg, #eef4ef, #fffdfa 62%); box-shadow: 0 14px 34px rgba(53,68,58,.05); }
.tw-approval-heading { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tw-approval-heading h2 { margin: 5px 0; font-size: 21px; }
.tw-approval-heading p:not(.mono-label) { max-width: 760px; margin: 0; color: #687269; font-size: 9px; line-height: 1.55; }
.tw-review-state { flex: 0 0 auto; min-height: 31px; padding: 7px 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #e4ebe5; color: #526657; font: 740 7.5px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.tw-review-state.approved { background: #dceadf; color: #477158; }
.tw-review-state.returned, .tw-review-state.source_changed { background: #f5e6df; color: #9b573b; }
.tw-approval-step, .tw-focused-question, .tw-private-draft, .tw-revision-form, .tw-decision-form, .tw-approved-result { min-width: 0; padding: 16px; border: 1px solid #d9ded9; border-radius: 11px; background: rgba(255,255,255,.76); }
.tw-approval-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tw-approval-step strong { font-size: 11px; }
.tw-approval-step p { margin: 4px 0 0; color: #777e78; font-size: 9px; }
.tw-focused-question { display: grid; gap: 11px; }
.tw-focused-question label, .tw-revision-form label, .tw-decision-form label { display: grid; gap: 7px; color: #4d554f; font-size: 9px; }
.tw-focused-question label strong { font-size: 13px; line-height: 1.4; }
.tw-focused-question textarea, .tw-revision-form textarea, .tw-decision-form textarea { width: 100%; min-height: 120px; padding: 12px; resize: vertical; border: 1px solid #cfd6d0; border-radius: 9px; background: #fff; color: #313735; font: 500 11px/1.6 var(--font-sans); }
.tw-focused-question textarea:focus, .tw-revision-form textarea:focus, .tw-decision-form textarea:focus { border-color: #64816c; outline: 3px solid rgba(100,129,108,.13); }
.tw-question-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tw-question-actions small, .tw-revision-form small, .tw-decision-form > small { color: #7a837c; font-size: 8px; line-height: 1.45; }
.tw-private-draft { display: grid; gap: 13px; }
.tw-draft-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #647168; font: 740 8px var(--font-mono); text-transform: uppercase; }
.tw-private-draft > p { margin: 0; color: #343a37; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.tw-private-draft dl { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); overflow: hidden; border: 1px solid #dce1dc; border-radius: 9px; }
.tw-private-draft dl div { min-width: 0; padding: 9px 11px; display: grid; gap: 3px; border-left: 1px solid #e1e5e1; }
.tw-private-draft dl div:first-child { border-left: 0; }
.tw-private-draft dt { color: #858e87; font: 730 7px var(--font-mono); text-transform: uppercase; }
.tw-private-draft dd { margin: 0; min-width: 0; color: #4b544e; font-size: 9px; }
.tw-approval-mode .tw-hash { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.tw-revision-form, .tw-decision-form { display: grid; gap: 11px; }
.tw-revision-form > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tw-decision-form > div { display: flex; justify-content: flex-end; gap: 9px; }
.tw-approved-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: center; }
.tw-approved-result > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dcebe0; color: #477158; font-size: 20px; }
.tw-approved-result h3 { margin: 3px 0; font-size: 17px; }
.tw-approved-result p:not(.mono-label) { margin: 0; color: #6d776f; font-size: 9px; line-height: 1.55; }
.tw-activity-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; align-items: start; }
.tw-activity-summary dl { margin: 15px 0 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e1ddd7; border-radius: 10px; }
.tw-activity-summary dl div { min-width: 0; padding: 12px; display: grid; gap: 5px; border-top: 1px solid #e7e3dd; border-left: 1px solid #e7e3dd; }
.tw-activity-summary dl div:nth-child(-n+2) { border-top: 0; }
.tw-activity-summary dl div:nth-child(odd) { border-left: 0; }
.tw-activity-summary dt { color: #918a83; font-size: 8px; }
.tw-activity-summary dd { margin: 0; font-size: 21px; font-weight: 760; }
.tw-activity-summary > p { color: #89827c; font-size: 8.5px; }

/* ServiceBridge-faithful Work Order ledger */
.tw-source-record { min-width: 0; overflow: hidden; border: 1px solid #d4cec5; border-radius: 14px; background: #f8f5f0; box-shadow: 0 18px 48px rgba(43,40,35,.055); scroll-margin-top: 20px; }
.tw-source-record-heading { min-width: 0; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; background: #292e2e; color: #f8f4ed; box-shadow: inset 5px 0 0 #ba6a3b; }
.tw-source-record-heading h2 { margin: 5px 0 4px; color: #fffaf3; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.tw-source-record-heading p:not(.mono-label) { margin: 0; color: #c4c8c4; font-size: 12px; line-height: 1.5; }
.tw-source-record-heading .mono-label { color: #db966d; }
.tw-source-version { flex: 0 0 auto; padding: 9px 11px; display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.055); color: #c6cbc7; font: 680 9px var(--font-mono); text-transform: uppercase; }
.tw-source-version strong { color: #fff9f0; font-size: 11px; }
.tw-record-jump { padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #d9d3cb; background: #f2eee8; scrollbar-width: thin; }
.tw-record-jump a { min-height: 43px; padding: 0 12px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: #625f59; font: 720 9px var(--font-mono); text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.tw-record-jump a:hover, .tw-record-jump a:focus-visible { border-bottom-color: #b76538; color: #8f4f31; outline: 0; }
.tw-record-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
.tw-record-primary { min-width: 0; background: #fffdfa; }
.tw-record-section { min-width: 0; padding: 24px; border-top: 1px solid #dfdad2; scroll-margin-top: 24px; }
.tw-record-section:first-child { border-top: 0; }
.tw-record-section-heading { margin-bottom: 17px; display: flex; align-items: center; gap: 12px; }
.tw-record-section-heading > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8c3b4; border-radius: 8px; background: #f7eade; color: #9c562f; font: 760 9px var(--font-mono); }
.tw-record-section-heading h3 { margin: 2px 0 0; color: #303433; font-size: 19px; letter-spacing: -.02em; }
.tw-record-section-heading .mono-label { color: #96877a; }
.tw-record-general-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ded8d0; border-left: 1px solid #ded8d0; }
.tw-record-general-grid > div { min-width: 0; min-height: 72px; padding: 12px 13px; display: grid; align-content: center; gap: 5px; border-right: 1px solid #ded8d0; border-bottom: 1px solid #ded8d0; background: #fbf9f5; }
.tw-record-general-grid > .wide { grid-column: span 2; }
.tw-record-general-grid dt { color: #8c857d; font: 720 8px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.tw-record-general-grid dd { margin: 0; overflow-wrap: anywhere; color: #373b3a; font-size: 12px; font-weight: 640; line-height: 1.45; }
.tw-custom-fields { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tw-custom-fields > span { min-width: 150px; padding: 9px 11px; display: grid; gap: 3px; border-left: 3px solid #7a8b6a; background: #eff2ec; }
.tw-custom-fields small { color: #737c6e; font: 700 8px var(--font-mono); text-transform: uppercase; }
.tw-custom-fields strong { color: #394037; font-size: 11px; }
.tw-source-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ded8d0; border-left: 1px solid #ded8d0; }
.tw-source-notes article { min-width: 0; padding: 14px; border-right: 1px solid #ded8d0; border-bottom: 1px solid #ded8d0; background: #fbf9f5; }
.tw-source-notes small { color: #9a5b36; font: 740 8px var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.tw-source-notes p { margin: 8px 0 0; color: #3f4240; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.tw-activity-notes { margin-top: 17px; border-top: 2px solid #303635; }
.tw-activity-notes h4 { margin: 0; padding: 11px 0 8px; color: #3a3e3c; font-size: 12px; }
.tw-activity-notes article { padding: 11px 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; border-top: 1px solid #e4dfd7; }
.tw-activity-notes article > span { color: #a75d34; font: 760 15px var(--font-mono); }
.tw-activity-notes p { margin: 0; color: #434744; font-size: 12px; line-height: 1.55; }
.tw-activity-notes small { display: block; margin-top: 4px; color: #89837b; font: 650 8px var(--font-mono); }
.tw-line-table { border-top: 2px solid #303635; }
.tw-line-table [role="row"] { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; border-bottom: 1px solid #dfdad2; }
.tw-line-table [role="cell"] { min-width: 0; min-height: 66px; padding: 12px; display: grid; align-content: center; gap: 4px; border-left: 1px solid #e3ded7; }
.tw-line-table [role="cell"]:first-child { border-left: 0; }
.tw-line-table strong { overflow-wrap: anywhere; color: #373b39; font-size: 12px; }
.tw-line-table small { color: #8a847d; font-size: 9px; line-height: 1.4; }
.tw-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tw-photo-grid article { min-width: 0; overflow: hidden; border: 1px solid #ddd6ce; background: #fbf9f5; }
.tw-photo-grid img, .tw-photo-placeholder { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; object-fit: cover; background: linear-gradient(145deg, #e5e0d8, #f2eee8); color: #8d6b56; font: 760 11px var(--font-mono); }
.tw-photo-grid article > div { padding: 11px; display: grid; gap: 4px; }
.tw-photo-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tw-photo-grid small { color: #89827b; font-size: 9px; line-height: 1.4; }
.tw-photo-grid a, .tw-document-list a { color: #9d552e; font: 720 9px var(--font-mono); }
.tw-document-list { margin-top: 12px; border-top: 1px solid #ddd7cf; }
.tw-document-list article { min-width: 0; padding: 11px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid #e2ddd6; }
.tw-document-list article > span { width: 36px; height: 36px; display: grid; place-items: center; background: #eee8e0; color: #8e5c3d; font: 740 7px var(--font-mono); }
.tw-document-list article > div { min-width: 0; display: grid; gap: 3px; }
.tw-document-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tw-document-list small { color: #88817a; font-size: 8px; }
.tw-record-aside { min-width: 0; position: sticky; top: 16px; border-left: 1px solid #d8d2ca; background: #f2eee8; }
.tw-record-aside > section { margin: 0; padding: 20px; border-radius: 0; }
.tw-record-aside h3 { margin: 4px 0 15px; font-size: 17px; }
.tw-record-aside ol { margin: 0; padding: 0; list-style: none; }
.tw-record-aside li { padding: 0 0 15px; display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 9px; }
.tw-record-aside li > span { width: 10px; height: 10px; margin-top: 3px; border: 3px solid #f2eee8; border-radius: 50%; background: #718062; box-shadow: 0 0 0 1px #718062; }
.tw-record-aside li div { min-width: 0; padding-bottom: 15px; display: grid; gap: 3px; border-bottom: 1px solid #d9d3cb; }
.tw-record-aside li:last-child div { padding-bottom: 0; border-bottom: 0; }
.tw-record-aside li strong { font-size: 11px; }
.tw-record-aside li p { margin: 0; color: #6f756d; font-size: 10px; }
.tw-record-aside li small { color: #89837c; font-size: 8px; line-height: 1.4; }
.tw-record-aside .tw-source-boundary { border-top: 1px solid #cfd7cc; background: #e5ebe2; }
.tw-record-empty { margin: 0; color: #89827a; font-size: 11px; line-height: 1.55; }
.tw-sync-banner.attention { border-color: #e4c4b7; background: #fbefeb; }
.tw-sync-banner.attention .tw-sync-mark { background: #f2ddd5; }
.tw-sync-banner.attention .tw-sync-mark i { background: #a1543e; }

@media (max-width: 1120px) {
  .tw-overview-layout, .tw-intake-layout, .tw-captured-layout, .tw-activity-layout { grid-template-columns: 1fr; }
  .tw-record-layout { grid-template-columns: 1fr; }
  .tw-record-aside { position: static; border-top: 1px solid #d8d2ca; border-left: 0; }
  .tw-work-order-card { grid-template-columns: minmax(0, 1fr) minmax(250px, .75fr); }
  .tw-work-order-action { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .tw-ready-card { grid-template-columns: 1fr 1.3fr; }
  .tw-ready-card .primary-button { grid-column: 2; justify-self: end; }
  .tw-ready-disclosure { grid-column: 2; }
}

@media (max-width: 700px) {
  .tw-sync-banner { grid-template-columns: auto minmax(0, 1fr); }
  .tw-sync-state { grid-column: 1 / -1; justify-self: start; }
  .tw-queue-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .tw-read-only-chip { grid-column: 1 / -1; justify-self: start; }
  .tw-work-order-card { padding: 15px; grid-template-columns: 1fr; gap: 14px; }
  .tw-work-order-action { grid-column: auto; grid-template-columns: 1fr; }
  .tw-work-order-action > span { text-align: left; }
  .tw-confirm-card { grid-template-columns: 1fr; }
  .tw-confirm-card > .tw-capture-status { justify-self: start; }
  .tw-confirm-card > dl { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .tw-confirm-card dl div:nth-child(-n+3) { border-top: 1px solid #e6e2dc; }
  .tw-confirm-card dl div:nth-child(-n+2) { border-top: 0; }
  .tw-confirm-card dl div:nth-child(3n+1) { border-left: 1px solid #e6e2dc; }
  .tw-confirm-card dl div:nth-child(odd) { border-left: 0; }
  .tw-ready-card { grid-template-columns: 1fr; }
  .tw-ready-card .primary-button, .tw-ready-disclosure { grid-column: auto; justify-self: stretch; }
  .tw-ready-disclosure { margin-top: -8px; }
  .tw-approval-heading { align-items: stretch; flex-direction: column; }
  .tw-review-state { align-self: flex-start; }
  .tw-approval-step { grid-template-columns: 1fr; }
  .tw-approval-step .primary-button { width: 100%; }
  .tw-source-record-heading { align-items: flex-start; flex-direction: column; }
  .tw-record-general-grid { grid-template-columns: 1fr 1fr; }
  .tw-source-notes { grid-template-columns: 1fr; }
  .tw-photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tw-capture-app { gap: 14px; }
  .tw-overview-stats { grid-template-columns: 1fr 1fr; }
  .tw-overview-stats article { min-height: 116px; }
  .tw-capture-stage-rail strong { font-size: 11px; }
  .tw-capture-stage-rail small { font-size: 9px; }
  .tw-confirm-card > div > p:not(.mono-label), .tw-note-card-heading p:not(.mono-label), .tw-captured-card > p:not(.mono-label), .tw-ready-card > div p:not(.mono-label) { font-size: 11px; line-height: 1.55; }
  .tw-confirm-card dt, .tw-captured-card dt { font-size: 8px; }
  .tw-confirm-card dd, .tw-captured-card dd { font-size: 11px; line-height: 1.45; }
  .tw-source-package-card li strong, .tw-ready-confirm strong { font-size: 10px; }
  .tw-source-package-card li small, .tw-ready-confirm small, .tw-ready-disclosure { font-size: 9px; line-height: 1.45; }
  .tw-source-boundary p, .tw-work-order-main > p, .tw-work-order-action > span { font-size: 10px; }
  .tw-compact-work-order { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .tw-compact-work-order .tw-capture-status { grid-column: 2; justify-self: start; }
  .tw-compact-work-order b { grid-column: 3; grid-row: 1 / 3; }
  .tw-queue-toolbar { grid-template-columns: 1fr; }
  .tw-queue-count { justify-self: stretch; }
  .tw-capture-stage-rail { grid-template-columns: 1fr; }
  .tw-capture-stage-rail > span { min-height: 66px; border-top: 1px solid #e3dfd9; border-left: 0; }
  .tw-capture-stage-rail > span:first-child { border-top: 0; }
  .tw-confirm-card { padding: 14px; }
  .tw-confirm-card > dl { grid-template-columns: 1fr; }
  .tw-confirm-card dl div { border-top: 1px solid #e6e2dc !important; border-left: 0 !important; }
  .tw-confirm-card dl div:first-child { border-top: 0 !important; }
  .tw-note-capture-card, .tw-source-package-card, .tw-captured-card, .tw-frozen-transcript, .tw-ready-card, .tw-approval-mode { padding: 14px; }
  .tw-note-card-heading { align-items: stretch; flex-direction: column; }
  .tw-audio-count { align-self: flex-start; }
  .tw-voice-control { grid-template-columns: 1fr auto; }
  .tw-record-button { grid-column: 1 / -1; justify-content: center; }
  .tw-transcript-form textarea { min-height: 180px; }
  .tw-transcript-actions { align-items: stretch; flex-direction: column; }
  .tw-transcript-actions .secondary-button { width: 100%; }
  .tw-captured-card { padding-right: 62px; }
  .tw-captured-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .tw-approval-heading p:not(.mono-label), .tw-approval-step p, .tw-approved-result p:not(.mono-label) { font-size: 10px; }
  .tw-question-actions, .tw-revision-form > div, .tw-decision-form > div { align-items: stretch; flex-direction: column; }
  .tw-question-actions .primary-button, .tw-revision-form button, .tw-decision-form button { width: 100%; }
  .tw-private-draft dl { grid-template-columns: 1fr; }
  .tw-private-draft dl div { border-top: 1px solid #e1e5e1; border-left: 0; }
  .tw-private-draft dl div:first-child { border-top: 0; }
  .tw-activity-summary dl { grid-template-columns: 1fr; }
  .tw-activity-summary dl div { border-top: 1px solid #e7e3dd !important; border-left: 0; }
  .tw-activity-summary dl div:first-child { border-top: 0 !important; }
  .tw-source-record-heading, .tw-record-section { padding: 17px 14px; }
  .tw-record-jump { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .tw-record-jump a { min-height: 46px; padding: 8px; justify-content: center; text-align: center; white-space: normal; line-height: 1.35; }
  .tw-record-general-grid { grid-template-columns: 1fr; }
  .tw-record-general-grid > .wide { grid-column: auto; }
  .tw-line-table [role="row"] { grid-template-columns: minmax(0, 1fr) 90px; }
  .tw-line-table [role="cell"]:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid #e3ded7; border-left: 0; }
  .tw-photo-grid { grid-template-columns: 1fr; }
}

/* Dedicated client login entrance */
.client-login-body { min-height: 100svh; overflow-x: hidden; background: #f2eee8; background-image: none; }
.client-login-body::before { display: none; }
.client-login-main { width: 100%; min-height: 100svh; }
.client-login-shell { width: 100%; min-height: 100svh; display: grid; grid-template-columns: minmax(650px, 1.16fr) minmax(480px, .84fr); background: #f2eee8; }
.client-login-brand { position: relative; min-width: 0; min-height: 100svh; padding: clamp(38px, 5vw, 72px); display: grid; place-items: center start; overflow: hidden; isolation: isolate; }
.client-login-brand::before { position: absolute; inset: 0; z-index: -1; content: ""; }
.client-login-brand::after { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom right, transparent 8%, #000 52%, transparent 96%); content: ""; }
.client-login-statement { width: 100%; max-width: 820px; transform: translateY(-4vh); }
.client-login-statement h1 { max-width: 760px; margin: 0; color: #f4f3ef; font-size: clamp(58px, 6.5vw, 96px); font-weight: 560; letter-spacing: -.065em; line-height: .9; }
.client-login-statement h1 strong { display: block; color: #dd8a4f; font: inherit; }
.client-login-panel { min-width: 0; min-height: 100svh; padding: clamp(30px, 5vw, 72px); display: grid; place-items: center; background: #f2eee8; }
.client-login-panel-content { width: min(100%, 455px); display: grid; justify-items: center; gap: 24px; }
.client-login-panel-brand { width: 76px; height: 76px; display: grid; place-items: center; }
.client-login-claw { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(58,45,35,.13)); }
.client-login-card { width: 100%; margin: 0; padding: clamp(34px, 4vw, 48px); gap: 14px; border: 1px solid #d8d3cb; border-radius: 20px; background: #fffdfa; box-shadow: 0 28px 80px rgba(47,42,37,.11); backdrop-filter: none; }
.client-login-card h2 { margin: 0 0 2px; color: #272522; font-size: clamp(32px, 3vw, 40px); font-weight: 620; letter-spacing: -.045em; }
.client-login-card > p:not(.mono-label):not(.auth-help) { margin: 0 0 8px; color: #7b756f; font-size: 12px; }
.client-login-card label { margin-top: 3px; color: #5f5a55; font-size: 11px; }
.client-login-card input { min-height: 50px; border-color: #d3cec6; border-radius: 9px; background: #fbf9f5; }
.client-login-card input:focus { border-color: #b96b36; box-shadow: 0 0 0 4px rgba(185,107,54,.1); }
.client-login-card .primary-button { width: 100%; min-height: 50px; margin-top: 5px; border-radius: 9px; background: #252a2c; box-shadow: none; }
.client-login-card .primary-button:hover { background: #b7652d; box-shadow: 0 10px 26px rgba(48,42,37,.13); }
.client-login-card .auth-help { margin: 6px 0 0; color: #8d8781; font-size: 10px; line-height: 1.55; }

/* Premium login continuity — submit acknowledgement, branded handoff, and staged arrival. */
.client-login-body::after { position: fixed; inset: 0; z-index: 100; background: #fbfaf8; opacity: 0; pointer-events: none; transition: opacity 170ms ease; content: ""; }
.is-departing.client-login-body::after { opacity: 1; }

.client-login-panel { position: relative; overflow: hidden; }
.client-login-panel-content { position: relative; z-index: 1; transition: opacity 300ms ease, transform 480ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease, visibility 0s linear 480ms; }
.client-login-statement { transition: opacity 420ms ease, transform 520ms cubic-bezier(.22, 1, .36, 1); }
.client-login-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden; }
.client-login-submit::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, #d4905f 42%, #f0c39d 58%, transparent); transform: translateX(-105%); content: ""; }
.client-login-submit-progress { width: 14px; height: 14px; display: none; flex: 0 0 auto; border: 1.5px solid rgba(255,255,255,.34); border-top-color: #fff; border-radius: 50%; }
.is-authenticating .client-login-submit:disabled { cursor: wait; opacity: 1; background: #252a2c; }
.is-authenticating .client-login-submit::after { animation: client-login-button-scan 950ms cubic-bezier(.4, 0, .2, 1) infinite; }
.is-authenticating .client-login-submit-progress { display: block; animation: client-login-progress 760ms linear infinite; }
.is-authenticating .client-login-card input[readonly] { cursor: wait; }
@keyframes client-login-button-scan { 55%, 100% { transform: translateX(105%); } }
@keyframes client-login-progress { to { transform: rotate(360deg); } }

.client-login-transition[hidden] { display: none; }
.client-login-transition { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 32px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.client-login-transition-content { display: grid; justify-items: center; gap: 8px; color: #26211c; text-align: center; transition: opacity 150ms ease, transform 190ms cubic-bezier(.4, 0, 1, 1); }
.client-login-transition-mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 12px; }
.client-login-transition-orbit { position: absolute; inset: 5px; border: 1px solid rgba(184,102,63,.23); border-top-color: rgba(184,102,63,.82); border-right-color: transparent; border-radius: 50%; opacity: 0; transform: scale(.82) rotate(-32deg); }
.client-login-transition-orbit::after { position: absolute; top: 7px; right: 13px; width: 5px; height: 5px; border-radius: 50%; background: #b8663f; box-shadow: 0 0 0 5px rgba(184,102,63,.09); content: ""; }
.client-login-transition-claw { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 16px 34px rgba(58,45,35,.16)); transform: translate(var(--login-claw-shift-x, 0), var(--login-claw-shift-y, 0)) scale(var(--login-claw-scale, .94)); transition: transform 560ms cubic-bezier(.22, 1, .36, 1), filter 420ms ease; }
.client-login-transition-content > strong { opacity: 0; color: #26211c; font-size: 19px; font-weight: 590; letter-spacing: -.025em; transform: translateY(8px); transition: opacity 260ms ease 120ms, transform 420ms cubic-bezier(.22, 1, .36, 1) 100ms; }
.client-login-transition-content > span { opacity: 0; color: #8b8179; font-size: 11px; letter-spacing: .01em; transform: translateY(7px); transition: opacity 260ms ease 190ms, transform 420ms cubic-bezier(.22, 1, .36, 1) 150ms; }
.is-authenticated .client-login-panel-content { opacity: 0; visibility: hidden; filter: blur(2px); transform: translateY(-10px) scale(.985); }
.is-authenticated .client-login-statement { opacity: .26; transform: translateY(calc(-4vh - 6px)); }
.is-authenticated .client-login-transition { opacity: 1; visibility: visible; transition-delay: 0s; }
.is-authenticated .client-login-transition-claw { filter: drop-shadow(0 20px 42px rgba(58,45,35,.19)); transform: translate(0, 0) scale(1); }
.is-authenticated .client-login-transition-orbit { opacity: 1; animation: client-login-orbit 1500ms cubic-bezier(.4, 0, .2, 1) infinite; }
.is-authenticated .client-login-transition-content > strong,
.is-authenticated .client-login-transition-content > span { opacity: 1; transform: translateY(0); }
.is-departing .client-login-transition-content { opacity: 0; transform: scale(.985); }
@keyframes client-login-orbit { to { transform: scale(1) rotate(328deg); } }

@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .is-login-arrival .service-ledger-agent-shell .service-ledger-sidebar { opacity: 0; transform: translateX(-10px); }
  .is-login-arrival .service-ledger-agent-shell .service-ledger-workspace { opacity: 0; transform: translateY(7px); }
  .is-login-arrival-ready .service-ledger-agent-shell .service-ledger-sidebar { opacity: 1; transform: translateX(0); transition: opacity 300ms ease 40ms, transform 460ms cubic-bezier(.22, 1, .36, 1) 40ms; }
  .is-login-arrival-ready .service-ledger-agent-shell .service-ledger-workspace { opacity: 1; transform: translateY(0); transition: opacity 360ms ease 120ms, transform 520ms cubic-bezier(.22, 1, .36, 1) 100ms; }
}
@media (max-width: 800px) {
  .is-login-arrival .service-ledger-agent-shell { opacity: 0; transform: translateY(5px); }
  .is-login-arrival-ready .service-ledger-agent-shell { opacity: 1; transform: translateY(0); transition: opacity 320ms ease, transform 440ms cubic-bezier(.22, 1, .36, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .client-login-transition,
  .client-login-transition-claw,
  .client-login-transition-orbit,
  .client-login-transition-content > strong,
  .client-login-transition-content > span,
  .client-login-panel-content,
  .client-login-statement,
  .client-login-submit::after,
  .client-login-submit-progress,
  .client-login-body::after { animation: none !important; transition: none !important; }
}


.client-login--dark .client-login-brand { background: #1e2224; color: #f8f5ef; }
.client-login--dark .client-login-brand::before { background: radial-gradient(circle at 82% 18%, rgba(201,112,52,.17) 0, rgba(201,112,52,.05) 34%, transparent 66%); }
.client-login--website { background-color: #fff; background-image: linear-gradient(rgba(38,33,28,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(38,33,28,.018) 1px, transparent 1px), radial-gradient(circle at 11% 17%, rgba(228,160,91,.34), transparent 30%), radial-gradient(ellipse at 45% 73%, rgba(198,137,87,.2), transparent 42%), radial-gradient(circle at 77% 10%, rgba(218,199,173,.16), transparent 28%), linear-gradient(105deg, #faf4ef 0%, #faf8f6 44%, #fff 80%, #fff 100%); background-size: 72px 72px, 72px 72px, auto, auto, auto, auto; }
.client-login--website .client-login-brand { background: transparent; }
.client-login--website .client-login-brand::before,
.client-login--website .client-login-brand::after { display: none; }
.client-login--website .client-login-statement h1 { color: #26211c; }
.client-login--website .client-login-statement h1 strong { color: #c68957; }
.client-login--website .client-login-panel { background: transparent; }
.client-login--website .client-login-card { border-color: rgba(38,33,28,.12); background: rgba(255,255,255,.88); box-shadow: 0 34px 110px rgba(69,60,50,.15); backdrop-filter: blur(18px); }

@media (max-width: 1040px) {
  .client-login-shell { grid-template-columns: minmax(540px, 1.05fr) minmax(440px, .95fr); }
  .client-login-brand { padding: 44px; }
  .client-login-panel { padding: 40px; }
  .client-login-statement h1 { font-size: clamp(56px, 7vw, 74px); }
}

@media (max-width: 800px) {
  .client-login-shell { display: block; }
  .client-login-brand { display: none; }
  .client-login-brand::after { background-size: 52px 52px; }
  .client-login-statement { transform: translateY(-7px); }
  .client-login-statement h1 { max-width: 420px; font-size: clamp(38px, 11.5vw, 52px); line-height: .88; }
  .client-login-panel { min-height: 100svh; padding: 22px 18px 28px; place-items: center; }
  .client-login-panel-content { gap: 14px; }
  .client-login-panel-brand { width: 54px; height: 54px; }
  .client-login-claw { width: 50px; height: 50px; }
  .client-login-card { padding: 30px 24px; border-radius: 16px; box-shadow: 0 22px 62px rgba(45,40,35,.14); }
}

@media (max-width: 420px) {
  .client-login-brand { min-height: 200px; padding: 22px 20px; }
  .client-login-statement h1 { font-size: 40px; }
  .client-login-panel { min-height: 100svh; padding: 18px 12px 24px; }
  .client-login-panel-brand { width: 50px; height: 50px; }
  .client-login-claw { width: 46px; height: 46px; }
  .client-login-card { padding: 27px 20px; }
}

/* Service Ledger — approved light-navigation application shell */
.service-ledger-shell,
.service-ledger-entry-body {
  --service-ledger-ink: #26211c;
  --service-ledger-ink-soft: #352f29;
  --service-ledger-copper: #b8663f;
  --service-ledger-copper-deep: #8f4f31;
  --service-ledger-copper-soft: #ead0bf;
  --service-ledger-wash: #faf2ec;
  --service-ledger-paper: #f7f5f3;
  --service-ledger-cream: #fffaf6;
  --service-ledger-copper-wash: #fff3e9;
  --service-ledger-copper-mist: #f8e4d6;
  --service-ledger-workspace: #fff;
  --service-ledger-muted: #6f675e;
  --service-ledger-faint: #766e65;
  --service-ledger-line: #e5e1dc;
  --service-ledger-line-strong: #d4cec7;
  color: var(--service-ledger-ink);
}

.service-ledger-shell-body,
.service-ledger-agent-body {
  height: 100svh;
  overflow: hidden;
  background: #fff;
  background-image: none;
}

.service-ledger-shell-body::before,
.service-ledger-agent-body::before,
.service-ledger-entry-body::before { display: none; }

.service-ledger-shell {
  --agent-sidebar-width: 250px;
  width: 100%;
  height: 100svh;
  display: grid;
  grid-template-columns: var(--agent-sidebar-width) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  font-family: var(--font-sans);
}

.service-ledger-sidebar {
  position: relative;
  z-index: 120;
  min-width: 0;
  height: 100svh;
  padding: 28px 18px 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  border-right: 1px solid var(--service-ledger-line-strong);
  background-color: #fff;
  background-image:
    radial-gradient(circle at 88% 82%, rgba(184,102,63,.09), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fff 54%, var(--service-ledger-cream) 79%, #fff 100%);
  color: var(--service-ledger-ink);
  box-shadow: 14px 0 34px rgba(38,33,28,.08), 20px 0 56px rgba(143,79,49,.045);
}

.service-ledger-sidebar .sidebar-brand-row { min-height: 44px; }
.service-ledger-sidebar .shell-brand { padding: 6px 9px 6px 7px; border-radius: 12px; }
.service-ledger-sidebar .shell-brand:hover { background: var(--service-ledger-paper); }
.service-ledger-sidebar .shell-brand img:first-child { width: 25px; height: 25px; }
.service-ledger-sidebar .shell-brand-wordmark {
  width: 133px;
  max-width: 133px;
  height: 18px;
  color: var(--service-ledger-ink);
}
.service-ledger-sidebar .sidebar-close { color: var(--service-ledger-muted); }
.service-ledger-sidebar .sidebar-close:hover { background: var(--service-ledger-paper); color: var(--service-ledger-ink); }
.service-ledger-sidebar .sidebar-agent-context { padding: 7px 13px 9px; gap: 3px; }
.service-ledger-sidebar .sidebar-agent-context small {
  color: var(--service-ledger-faint);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: .04em;
  text-transform: none;
}
.service-ledger-sidebar .sidebar-agent-context strong { color: var(--service-ledger-ink); font-size: 12px; font-weight: 580; }

.service-ledger-sidebar .agent-nav {
  padding: 18px 8px 16px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  background: transparent;
  scrollbar-color: var(--service-ledger-line-strong) transparent;
}
.service-ledger-sidebar .agent-nav-group { margin-bottom: 18px; }
.service-ledger-sidebar .agent-nav-group h2 {
  margin: 0 8px 12px;
  color: var(--service-ledger-faint);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}
.service-ledger-sidebar .agent-nav-link {
  position: relative;
  min-height: 46px;
  margin: 2px 0;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--service-ledger-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 480;
}
.service-ledger-sidebar .agent-nav-link:hover { border-color: transparent; background: linear-gradient(100deg, var(--service-ledger-copper-wash), rgba(255,255,255,.76)); color: var(--service-ledger-ink); }
.service-ledger-sidebar .agent-nav-icon {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--service-ledger-paper);
  color: var(--service-ledger-ink);
}
.service-ledger-sidebar .agent-nav-icon svg { width: 17px; height: 17px; }
.service-ledger-nav-link.active {
  border-color: transparent;
  background: linear-gradient(100deg, var(--service-ledger-copper-wash), rgba(255,255,255,.78));
  color: var(--service-ledger-ink);
  box-shadow: inset 0 0 0 1px rgba(184,102,63,.12), 0 9px 24px rgba(143,79,49,.06);
}
.service-ledger-sidebar .service-ledger-nav-link.active {
  border-color: transparent;
  background: linear-gradient(100deg, var(--service-ledger-copper-wash), rgba(255,255,255,.78));
  color: var(--service-ledger-ink);
  box-shadow: inset 0 0 0 1px rgba(184,102,63,.12), 0 9px 24px rgba(143,79,49,.06);
}
.service-ledger-sidebar .service-ledger-nav-link.active:not(.service-ledger-workflow-link) { color: var(--service-ledger-copper-deep); }
.service-ledger-nav-link.active .agent-nav-icon {
  background: linear-gradient(145deg, var(--service-ledger-copper-deep), var(--service-ledger-copper));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 7px 16px rgba(143,79,49,.2);
}
.service-ledger-nav-link.active .agent-nav-icon::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.service-ledger-sidebar .service-ledger-workflow-link.active {
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 11px;
  background: linear-gradient(105deg, #fff1e7 0%, #fff9f4 58%, #fff 100%);
  color: var(--service-ledger-ink);
  box-shadow: inset 0 0 0 1px rgba(184,102,63,.17), 0 6px 18px -14px rgba(143,79,49,.28);
}
.service-ledger-sidebar .service-ledger-workflow-link.active:hover { background: linear-gradient(105deg, #ffeadc, #fff8f2 64%, #fff); color: var(--service-ledger-ink); }
.service-ledger-sidebar .service-ledger-workflow-link.active .agent-nav-icon {
  background: linear-gradient(145deg, var(--service-ledger-copper-deep), var(--service-ledger-copper));
  color: #fff;
  box-shadow: 0 7px 16px rgba(143,79,49,.2);
}
.service-ledger-sidebar .service-ledger-workflow-link.active .agent-nav-icon::after { display: none; }
.service-ledger-sidebar .service-ledger-nav-link.is-disabled { cursor: not-allowed; opacity: .72; }
.service-ledger-sidebar .service-ledger-nav-link.is-disabled:hover { background: transparent; color: var(--service-ledger-muted); }
.service-ledger-sidebar .agent-nav-icon:not(:has(svg)) { font-family: var(--font-sans); font-size: 10px; font-weight: 620; }
.service-ledger-sidebar .agent-nav-count,
.service-ledger-sidebar .agent-nav-link.active .agent-nav-count {
  background: var(--service-ledger-paper);
  color: var(--service-ledger-muted);
  font-family: var(--font-sans);
}

.service-ledger-sidebar .sidebar-footer { gap: 0; }
.service-ledger-sidebar .sidebar-account-row small { color: var(--service-ledger-muted); }
.service-ledger-sidebar .sidebar-account-row strong { color: var(--service-ledger-ink); }
.service-ledger-sidebar .sidebar-account-row {
  height: 46px;
  min-height: 46px;
  padding: 6px 5px 6px 8px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 28px -25px rgba(38,33,28,.32);
}
.service-ledger-sidebar .account-avatar {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--service-ledger-copper-deep);
  color: #fff;
  font-size: 8px;
}
.service-ledger-sidebar .account-menu summary { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; color: var(--service-ledger-muted); }
.service-ledger-sidebar .account-menu summary svg { width: 15px; height: 15px; fill: currentColor; }
.service-ledger-sidebar .account-menu summary:hover { background: var(--service-ledger-copper-wash); color: var(--service-ledger-ink); }
.service-ledger-sidebar .account-menu > div,
.service-ledger-sidebar .sidebar-preview-popover {
  border: 1px solid var(--service-ledger-line);
  background: #fff;
  color: var(--service-ledger-ink);
  box-shadow: 0 18px 48px rgba(38,33,28,.18), 0 3px 10px rgba(38,33,28,.08);
}
.service-ledger-sidebar .account-menu a,
.service-ledger-sidebar .account-menu button,
.service-ledger-sidebar .sidebar-preview-popover a,
.service-ledger-sidebar .sidebar-preview-popover button { color: var(--service-ledger-ink); }
.service-ledger-sidebar .account-menu a:hover,
.service-ledger-sidebar .account-menu button:hover,
.service-ledger-sidebar .sidebar-preview-popover a:hover,
.service-ledger-sidebar .sidebar-preview-popover button:hover { background: var(--service-ledger-paper); color: var(--service-ledger-ink); }
.service-ledger-sidebar .sidebar-preview-popover p { color: var(--service-ledger-muted); }

.service-ledger-workspace {
  position: relative;
  min-width: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  box-shadow: inset 16px 0 26px -26px rgba(38,33,28,.42);
}
.service-ledger-agent-shell .service-ledger-workspace { grid-template-rows: minmax(0, 1fr); }
.service-ledger-context-header {
  width: 100%;
  min-width: 0;
  min-height: 102px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 19px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--service-ledger-line);
  background: #fff;
}
.service-ledger-context-identity { min-width: 0; }
.service-ledger-context-identity p,
.service-ledger-context-identity small,
.service-ledger-context-source span { display: block; color: var(--service-ledger-faint); font-family: var(--font-sans); font-size: 10px; font-weight: 520; line-height: 1.4; }
.service-ledger-context-identity p { margin: 0 0 3px; }
.service-ledger-context-identity > strong { display: block; overflow: hidden; color: var(--service-ledger-ink); font-family: var(--font-sans); font-size: 18px; font-weight: 590; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-context-identity small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-context-source { flex: 0 0 auto; text-align: right; }
.service-ledger-context-source span { margin-bottom: 3px; }
.service-ledger-context-source strong { display: block; color: var(--service-ledger-ink); font-family: var(--font-sans); font-size: 12px; font-weight: 590; }
.service-ledger-workspace .agent-workspace-scroll,
.service-ledger-workspace-scroll { min-height: 0; height: 100%; overflow: auto; background: #fbfaf8; }
.service-ledger-agent-shell .module-surface {
  min-height: 100%;
  padding: 24px 28px 32px;
  background-color: #fbfaf8;
  background-image:
    radial-gradient(circle at 7% 0%, rgba(184,102,63,.07), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(251,250,248,.96) 36%, #fbfaf8 100%);
}
.service-ledger-agent-shell .module-header { margin: 0 0 19px; padding: 0 0 17px; border: 0; }
.service-ledger-workspace .module-header .eyebrow,
.service-ledger-page-shell .eyebrow {
  color: var(--service-ledger-copper-deep);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: .01em;
  text-transform: none;
}
.service-ledger-agent-shell .module-header h1 { margin: 0 0 4px; color: var(--service-ledger-ink); font-size: 25px; font-weight: 570; letter-spacing: -.025em; line-height: 1.08; }
.service-ledger-workspace .module-header p { color: var(--service-ledger-muted); }

.service-ledger-shell :where(.eyebrow,.mono-label,.tw-hash,.tw-work-order-ref,.tw-source-version,.tw-sync-state,.tw-capture-status,.status-pill,.agent-nav-count) { font-family: var(--font-sans); }
.service-ledger-shell :where(.eyebrow,.mono-label) { font-weight: 560; letter-spacing: .01em; text-transform: none; }
.service-ledger-shell :where(.primary-button,.secondary-button,.danger-button) { min-height: 36px; padding: 8px 12px; border-radius: 9px; font-family: var(--font-sans); font-size: 11px; font-weight: 570; }
.service-ledger-agent-shell .module-surface :is(h2,h3) { font-family: var(--font-sans); letter-spacing: -.02em; }
.service-ledger-agent-shell .module-surface h2 { font-size: 17px; font-weight: 590; }
.service-ledger-agent-shell .module-surface h3 { font-size: 15px; font-weight: 590; }
.service-ledger-shell .tw-source-record-heading { border-bottom: 1px solid var(--service-ledger-line); background: #fff; color: var(--service-ledger-ink); box-shadow: none; }
.service-ledger-shell .tw-source-record-heading h2 { color: var(--service-ledger-ink); font-size: 17px; font-weight: 590; letter-spacing: -.02em; }
.service-ledger-shell .tw-source-record-heading p:not(.mono-label) { color: var(--service-ledger-muted); }
.service-ledger-shell .tw-source-record-heading .mono-label { color: var(--service-ledger-copper-deep); }
.service-ledger-shell .tw-source-version { border-color: var(--service-ledger-line); background: var(--service-ledger-paper); color: var(--service-ledger-muted); font-family: var(--font-sans); }
.service-ledger-shell .tw-source-version strong { color: var(--service-ledger-ink); }

.service-ledger-shell .primary-button { background: var(--service-ledger-ink); color: #fff; box-shadow: none; }
.service-ledger-shell .primary-button:hover { background: var(--service-ledger-copper-deep); }
.service-ledger-shell .secondary-button { border-color: var(--service-ledger-line-strong); background: #fff; color: var(--service-ledger-ink); }
.service-ledger-shell :is(.workspace-panel,.overview-stats article,.work-list-row,.result-library-card,.activity-summary,.agent-console-shell,.workspace-board,.workspace-customization,.preferences-form,.source-summary-card,.source-notes-card,.source-products-card,.source-timeline-card,.source-record-map-card,.source-photo-boundary,.tw-sync-banner,.tw-v1-boundary,.tw-next-work,.tw-record-section,.tw-source-record-heading,.tw-private-draft,.tw-activity-summary,.tw-work-order-card,.tw-note-capture-card,.tw-source-package-card,.tw-ready-card,.demo-stage-panel,.surface) { border-color: var(--service-ledger-line); border-radius: 15px; background: #fff; box-shadow: 0 18px 38px -30px rgba(143,79,49,.3), 0 10px 26px -22px rgba(38,33,28,.28); }

.service-ledger-page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 24px 28px 48px;
}
.service-ledger-page-shell h1 { margin-bottom: 8px; color: var(--service-ledger-ink); font-family: var(--font-sans); font-size: 25px; font-weight: 570; letter-spacing: -.025em; }
.service-ledger-page-shell h2 { font-family: var(--font-sans); font-size: 17px; font-weight: 590; }
.service-ledger-page-shell h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 590; }
.service-ledger-page-shell .page-heading { gap: 24px; margin-bottom: 24px; align-items: end; }
.service-ledger-page-shell .page-heading > p,
.service-ledger-page-shell .admin-heading-action p { color: var(--service-ledger-muted); font-size: 14px; }
.service-ledger-page-shell .workspace-summary {
  margin: 0 0 42px;
  border-color: var(--service-ledger-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(38,33,28,.07), 0 2px 7px rgba(38,33,28,.035);
}
.service-ledger-page-shell .workspace-summary div { min-height: 104px; border-color: var(--service-ledger-line); }
.service-ledger-page-shell .agent-row,
.service-ledger-page-shell .account-surface,
.service-ledger-page-shell .list-row,
.service-ledger-page-shell .admin-agent,
.service-ledger-page-shell .inline-form,
.service-ledger-page-shell .admin-form,
.service-ledger-page-shell .table-wrap,
.service-ledger-page-shell .activity-list,
.service-ledger-page-shell .message-panel,
.service-ledger-page-shell .review-panel {
  border-color: var(--service-ledger-line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(38,33,28,.06), 0 2px 7px rgba(38,33,28,.03);
}
.service-ledger-page-shell .agent-row { border-radius: 15px; }
.service-ledger-page-shell .agent-mark { border-color: var(--service-ledger-copper-soft); background: var(--service-ledger-wash); color: var(--service-ledger-copper-deep); }
.service-ledger-page-shell .dashboard-activity-list {
  min-height: 70px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--service-ledger-line);
  border-radius: 12px;
  background: #fff;
  color: var(--service-ledger-muted);
  box-shadow: 0 10px 28px rgba(38,33,28,.05);
}
.service-ledger-page-shell .dashboard-activity-list .empty-list { margin: 0; color: var(--service-ledger-muted); }
.service-ledger-page-shell .section-nav {
  top: 0;
  margin-bottom: 36px;
  border-color: var(--service-ledger-line);
  border-radius: 12px;
  background: var(--service-ledger-paper);
  box-shadow: 0 6px 20px rgba(38,33,28,.06);
}
.service-ledger-page-shell .section-nav a:hover { background: #fff; }
.service-ledger-page-shell .admin-section { padding: 46px 0; border-color: var(--service-ledger-line); scroll-margin-top: 74px; }
.service-ledger-page-shell input,
.service-ledger-page-shell select,
.service-ledger-page-shell textarea { border-color: var(--service-ledger-line-strong); background: #fff; }
.service-ledger-footer {
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
  border-color: var(--service-ledger-line);
  color: var(--service-ledger-faint);
}

.service-ledger-shell .sidebar-open {
  border: 1px solid var(--service-ledger-line-strong);
  background: #fff;
  color: var(--service-ledger-ink);
  box-shadow: 0 10px 28px rgba(38,33,28,.12);
}
.service-ledger-shell .sidebar-open:hover { border-color: var(--service-ledger-copper-soft); background: var(--service-ledger-copper-wash); color: var(--service-ledger-copper-deep); }

.service-ledger-entry-body { min-height: 100svh; overflow-x: hidden; background: #eee7e0; background-image: none; }
.service-ledger-entry-body .client-login-brand {
  border-right: 1px solid var(--service-ledger-line-strong);
  background: #fff;
  color: var(--service-ledger-ink);
  box-shadow: 12px 0 30px rgba(38,33,28,.09);
}
.service-ledger-entry-body .client-login-brand::before,
.service-ledger-entry-body .client-login-brand::after { display: none; }
.service-ledger-entry-body .client-login-statement h1 { color: var(--service-ledger-ink); }
.service-ledger-entry-body .client-login-statement h1 strong { color: #c68957; }
.service-ledger-entry-body .client-login-panel { background: #fff; }
.service-ledger-entry-body .client-login--website { background: #eee7e0; background-image: none; }
.service-ledger-entry-body .client-login--website .client-login-brand {
  border-right: 1px solid var(--service-ledger-line-strong);
  background: #fff;
  box-shadow: 12px 0 30px rgba(38,33,28,.09);
}
.service-ledger-entry-body .client-login--website .client-login-panel { background: #fff; }
.service-ledger-entry-body .client-login-card { border-color: var(--service-ledger-line); border-radius: 15px; background: #fff; box-shadow: 0 18px 52px rgba(38,33,28,.11); font-family: var(--font-sans); }
.service-ledger-entry-body .client-login-card .primary-button { background: var(--service-ledger-ink); }
.service-ledger-entry-body .client-login-card .primary-button:hover { background: var(--service-ledger-copper-deep); }

@media (max-width: 1120px) {
  .service-ledger-shell { --agent-sidebar-width: 236px; }
  .service-ledger-page-shell,
  .service-ledger-footer { width: min(100% - 48px, 1120px); }
}

@media (max-width: 820px) {
  .service-ledger-shell { display: block; }
  .service-ledger-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    padding: 22px 18px 16px;
    transform: translateX(-102%);
    transition: transform var(--motion-standard);
    box-shadow: 22px 0 80px rgba(38,33,28,.25);
  }
  .service-ledger-shell.sidebar-opened .service-ledger-sidebar { transform: none; }
  .service-ledger-shell .sidebar-scrim { background: rgba(38,33,28,.46); }
  .service-ledger-sidebar .account-menu summary { width: 44px; height: 44px; min-height: 44px; }
  .service-ledger-agent-shell.compact-view .module-surface { padding-top: 64px; }
  .service-ledger-context-header { padding: 19px 18px 19px 64px; }
  .service-ledger-agent-shell .module-surface { padding: 64px 16px 32px; }
  .service-ledger-page-shell { width: 100%; padding: 20px 16px 48px; }
  .service-ledger-footer { width: calc(100% - 32px); }
  .service-ledger-page-shell .page-heading { grid-template-columns: 1fr; gap: 10px; }
  .service-ledger-page-shell .page-heading h1 { font-size: 25px; }
  .service-ledger-shell :where(.primary-button,.secondary-button,.danger-button) { min-height: 44px; }
  .service-ledger-page-shell .section-nav { top: 0; }
  .service-ledger-entry-body .client-login--website .client-login-brand { border-right: 0; border-bottom: 1px solid var(--service-ledger-line-strong); box-shadow: 0 12px 30px rgba(38,33,28,.07); }
}

@media (max-width: 560px) {
  .service-ledger-agent-shell.compact-view .module-surface { padding-top: 64px; }
  .service-ledger-page-shell { width: 100%; padding-top: 20px; }
  .service-ledger-footer { width: calc(100% - 24px); }
  .service-ledger-page-shell .workspace-summary { grid-template-columns: 1fr; }
  .service-ledger-page-shell .workspace-summary div { min-height: 72px; border-left: 0; border-top: 1px solid var(--service-ledger-line); }
  .service-ledger-page-shell .workspace-summary div:first-child { border-top: 0; }
  .service-ledger-page-shell .agent-row { padding: 16px; }
  .service-ledger-page-shell .admin-section { padding: 36px 0; }
}

/* Approved TradeWinds Service Ledger screen contract — derived from v=2&full=1. */
/* Simplified top context with full-depth Service Ledger surfaces. */
.service-ledger-agent-shell .agentScreen {
  width: auto;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--service-ledger-ink);
  font-family: var(--font-sans);
}
.service-ledger-agent-shell .screenHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.service-ledger-agent-shell .screenContext {
  margin: 0 0 8px;
  color: var(--service-ledger-copper-deep);
  font-size: 10px;
  font-weight: 590;
  line-height: 1.4;
}
.service-ledger-agent-shell .screenContext span { margin: 0 4px; color: rgba(38,33,28,.28); }
.service-ledger-agent-shell .screenTitleRow { display: flex; align-items: center; gap: 10px; }
.service-ledger-agent-shell .screenTitleRow h1 {
  margin: 0;
  color: var(--service-ledger-ink);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 570;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.service-ledger-agent-shell .screenMeta { margin: 7px 0 0; color: var(--service-ledger-muted); font-size: 10px; line-height: 1.4; }
.service-ledger-agent-shell .screenMeta strong { color: var(--service-ledger-ink-soft); font-weight: 590; }
.service-ledger-agent-shell .statePill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--service-ledger-copper-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--service-ledger-copper-deep);
  font-size: 9px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}
.service-ledger-agent-shell .statePill i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #b8663f; }
.service-ledger-agent-shell .screenActions { display: flex; gap: 8px; }
.service-ledger-agent-shell :is(.primaryAction, .secondaryAction) {
  height: 42px;
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 580;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.service-ledger-agent-shell .primaryAction { border: 1px solid var(--service-ledger-ink); background: var(--service-ledger-ink); color: #fff; }
.service-ledger-agent-shell .secondaryAction { border: 1px solid var(--service-ledger-copper-soft); background: #fff; color: var(--service-ledger-ink); }
.service-ledger-agent-shell :is(.primaryAction, .secondaryAction):hover { transform: none; box-shadow: none; }
.service-ledger-agent-shell .primaryAction:hover { background: #3a332d; }
.service-ledger-agent-shell .secondaryAction:hover { background: var(--service-ledger-wash); }
.service-ledger-agent-shell :is(.primaryAction, .secondaryAction):disabled { opacity: .58; cursor: default; }
.service-ledger-agent-shell .blockAction { width: calc(100% - 32px); margin: 14px 16px 16px; }
.service-ledger-agent-shell .surface,
.service-ledger-agent-shell .agentScreen .surface {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(38,33,28,.065);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 56px -38px rgba(143,79,49,.3), 0 15px 38px -30px rgba(38,33,28,.28);
}
.service-ledger-agent-shell :is(.agentLayout, .captureLayout, .activityLayout) {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .72fr);
  gap: 18px;
  align-items: start;
}
.service-ledger-agent-shell .evidenceWorkspace {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}
.service-ledger-agent-shell .simpleReviewWorkspace { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .72fr); }
.service-ledger-agent-shell .noteReviewBody { min-height: 300px; padding: 18px; }
.service-ledger-agent-shell .noteReviewText {
  min-height: 264px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 11px;
  background: #fbfaf8;
  color: var(--service-ledger-ink);
  box-shadow: inset 0 0 0 1px rgba(38,33,28,.025);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.service-ledger-agent-shell .simpleSavePanel .tw-ready-confirm { margin: 14px 16px 0; }
.service-ledger-agent-shell .simpleSavePanel .tw-ready-confirm strong { font-size: 10px; }
.service-ledger-agent-shell .simpleSavePanel .tw-ready-confirm small { font-size: 9px; line-height: 1.45; }
.service-ledger-agent-shell .simpleSavePanel form { margin: 0; }
.service-ledger-agent-shell .simpleSavePanel .sealed { margin-top: 14px; }
.service-ledger-agent-shell .sideStack { display: grid; gap: 14px; }
.service-ledger-agent-shell .panelHead {
  min-height: 61px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 0;
}
.service-ledger-agent-shell .panelHead h2 { margin: 0; color: var(--service-ledger-ink); font-size: 13px; font-weight: 580; line-height: 1.2; letter-spacing: 0; }
.service-ledger-agent-shell .panelHead span { display: block; margin-top: 4px; color: var(--service-ledger-muted); font-size: 9px; font-weight: 400; }
.service-ledger-agent-shell .panelHead > strong { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 570; white-space: nowrap; }
.service-ledger-agent-shell .roundIcon,
.service-ledger-agent-shell .runIcon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--service-ledger-wash);
  color: var(--service-ledger-copper-deep);
  font-size: 9px;
  font-weight: 650;
}
.service-ledger-agent-shell .fieldGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; }
.service-ledger-agent-shell .fieldItem {
  min-height: 64px;
  padding: 12px 11px;
  border: 0;
  border-radius: 11px;
  background: #fbfaf8;
  box-shadow: inset 0 0 0 1px rgba(38,33,28,.025), 0 10px 24px -24px rgba(38,33,28,.3);
}
.service-ledger-agent-shell .fieldItem span { display: block; margin-bottom: 6px; color: var(--service-ledger-muted); font-size: 9px; font-weight: 560; }
.service-ledger-agent-shell .fieldItem strong { display: block; color: var(--service-ledger-ink); font-size: 11px; font-weight: 570; line-height: 1.45; }
.service-ledger-agent-shell .fieldState,
.service-ledger-agent-shell :is(.gateBody, .checkRow, .approvalRecipient) {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-top: 0;
}
.service-ledger-agent-shell .fieldState { margin: 0 16px 16px; border-radius: 11px; background: #fbfaf8; }
.service-ledger-agent-shell :is(.gateBody, .approvalRecipient) { margin: 0 14px 6px; border-radius: 11px; background: #fbfaf8; }
.service-ledger-agent-shell :is(.fieldState, .gateBody, .checkRow, .approvalRecipient) strong,
.service-ledger-agent-shell :is(.runStep, .linkedRow, .evidenceRow, .activityEvent, .evidenceReady) strong { display: block; color: var(--service-ledger-ink); font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell :is(.fieldState, .gateBody, .checkRow, .approvalRecipient) :is(small, p),
.service-ledger-agent-shell :is(.runStep, .linkedRow, .evidenceRow, .activityEvent, .evidenceReady) small { display: block; margin: 3px 0 0; color: var(--service-ledger-muted); font-size: 9px; line-height: 1.45; }
.service-ledger-agent-shell .runProgress { height: 4px; margin: 15px 16px 8px; overflow: hidden; border-radius: 9px; background: var(--service-ledger-paper); }
.service-ledger-agent-shell .runProgress i { display: block; height: 100%; border-radius: 9px; background: #b8663f; }
.service-ledger-agent-shell .runProgress.progress25 i { width: 25%; }
.service-ledger-agent-shell .runProgress.progress50 i { width: 50%; }
.service-ledger-agent-shell .runProgress.progress75 i { width: 75%; }
.service-ledger-agent-shell .runProgress.progress100 i { width: 100%; }
.service-ledger-agent-shell .runStep {
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--service-ledger-line);
}
.service-ledger-agent-shell .runStep b,
.service-ledger-agent-shell .linkedRow b,
.service-ledger-agent-shell .evidenceRow b,
.service-ledger-agent-shell .activityEvent b { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 560; white-space: nowrap; }
.service-ledger-agent-shell .gateBody { border-top: 0; align-items: flex-start; }
.service-ledger-agent-shell .gateBody p { margin-right: 2px; }
.service-ledger-agent-shell .recordConsole {
  min-height: 79px;
  margin: 0 16px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 0;
  border-radius: 11px;
  background: #fbfaf8;
}
.service-ledger-agent-shell .recordButton {
  width: auto;
  height: 43px;
  min-width: 104px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--service-ledger-copper-deep);
  border-radius: 999px;
  background: #b8663f;
  color: #fff;
  cursor: pointer;
}
.service-ledger-agent-shell .recordButton strong { color: inherit; font-size: 10px; font-weight: 620; white-space: nowrap; }
.service-ledger-agent-shell .recordDot { width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: transparent; }
@keyframes tw-record-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,102,63,.24); }
  50% { box-shadow: 0 0 0 9px rgba(184,102,63,0); }
}
@keyframes tw-record-wave {
  0%, 100% { opacity: .35; transform: scaleY(.38); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes tw-record-saving {
  0%, 100% { opacity: .25; }
  50% { opacity: .9; }
}
.service-ledger-agent-shell .recordConsole { transition: background-color var(--motion-fast), box-shadow var(--motion-fast); }
.service-ledger-agent-shell .recordConsole .wave i { transform-origin: center; }
.service-ledger-agent-shell .recordConsole.is-preparing,
.service-ledger-agent-shell .recordConsole.is-saving { background: #fff8f2; box-shadow: inset 3px 0 var(--service-ledger-copper-soft); }
.service-ledger-agent-shell .recordConsole.is-recording { background: #fff4ec; box-shadow: inset 3px 0 var(--service-ledger-copper); }
.service-ledger-agent-shell .recordConsole.is-recording .recordButton { background: var(--service-ledger-copper-deep); animation: tw-record-pulse 1.45s ease-in-out infinite; }
.service-ledger-agent-shell .recordConsole.is-recording .recordDot { width: 11px; height: 11px; border: 0; border-radius: 3px; background: #fff; }
.service-ledger-agent-shell .recordConsole.is-recording .wave i { animation: tw-record-wave .82s ease-in-out infinite; }
.service-ledger-agent-shell .recordConsole.is-recording .wave i:nth-child(2n) { animation-delay: -.18s; }
.service-ledger-agent-shell .recordConsole.is-recording .wave i:nth-child(3n) { animation-delay: -.36s; }
.service-ledger-agent-shell .recordConsole.is-saving .recordButton,
.service-ledger-agent-shell .recordConsole.is-preparing .recordButton { cursor: wait; opacity: .66; }
.service-ledger-agent-shell .recordConsole.is-saving .wave i { animation: tw-record-saving 1.05s ease-in-out infinite; }
.service-ledger-agent-shell .recordConsole.is-saved { background: #f3f7f3; box-shadow: inset 3px 0 #78927b; }
.service-ledger-agent-shell .recordConsole.is-saved .recordButton { border-color: #627a66; background: #6f8b72; }
.service-ledger-agent-shell .recordConsole.is-error { background: #fff5f1; box-shadow: inset 3px 0 #b56048; }
.service-ledger-agent-shell .recordState { min-width: 105px; }
.service-ledger-agent-shell .recordState strong { display: block; font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell .recordState span { display: block; margin-top: 4px; color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .wave,
.service-ledger-agent-shell .largeWave { display: flex; align-items: center; gap: 4px; color: #b8663f; }
.service-ledger-agent-shell .wave { margin-left: auto; }
.service-ledger-agent-shell :is(.wave, .largeWave) i { width: 3px; border-radius: 3px; background: currentColor; }
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(1),
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(9) { height: 9px; }
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(2),
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(8) { height: 17px; }
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(3),
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(7) { height: 26px; }
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(4),
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(6) { height: 14px; }
.service-ledger-agent-shell :is(.wave, .largeWave) i:nth-child(5) { height: 31px; }
.service-ledger-agent-shell .recordConsole time { width: 43px; color: var(--service-ledger-muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.service-ledger-agent-shell .noteLabel { display: block; margin: 16px 18px 7px; color: var(--service-ledger-muted); font-size: 9px; font-weight: 560; }
.service-ledger-agent-shell .noteField {
  width: calc(100% - 36px);
  min-height: 228px;
  margin: 0 18px;
  padding: 14px;
  display: block;
  resize: vertical;
  border: 1px solid var(--service-ledger-line);
  border-radius: 10px;
  background: #fff;
  color: var(--service-ledger-ink);
  font-size: 12px;
  line-height: 1.65;
}
.service-ledger-agent-shell .formFoot { min-height: 64px; padding: 12px 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-ledger-agent-shell .formFoot > span { color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell :is(.linkedRow, .evidenceRow) {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-top: 0;
}
.service-ledger-agent-shell .linkedRow { margin: 0 12px 6px; border-radius: 10px; background: #fbfaf8; }
.service-ledger-agent-shell .linkedRow:first-of-type { border-top: 0; }
.service-ledger-agent-shell .evidenceRows { padding: 6px 12px; }
.service-ledger-agent-shell .evidenceRow { min-height: 59px; margin: 4px 0; padding: 11px 9px; border: 0; border-radius: 10px; }
.service-ledger-agent-shell .evidenceRow.selected { background: var(--service-ledger-wash); box-shadow: inset 3px 0 #b8663f; }
.service-ledger-agent-shell .inventoryFoot { padding: 14px 16px; border-top: 0; }
.service-ledger-agent-shell .inventoryFoot span { display: block; color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .inventoryFoot strong { display: block; margin-top: 5px; font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell .previewCanvas {
  height: 158px;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--service-ledger-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--service-ledger-paper));
}
.service-ledger-agent-shell .largeRoundIcon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--service-ledger-copper-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--service-ledger-copper-deep);
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(38,33,28,.07);
}
.service-ledger-agent-shell .largeWave { width: 180px; }
.service-ledger-agent-shell .inspectGrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--service-ledger-line); border-bottom: 1px solid var(--service-ledger-line); }
.service-ledger-agent-shell .inspectGrid div { padding: 13px 15px; border-right: 1px solid var(--service-ledger-line); }
.service-ledger-agent-shell .inspectGrid div:nth-child(3n) { border-right: 0; }
.service-ledger-agent-shell .inspectGrid div:nth-child(n+4) { border-top: 1px solid var(--service-ledger-line); }
.service-ledger-agent-shell .inspectGrid span { display: block; color: var(--service-ledger-muted); font-size: 8px; }
.service-ledger-agent-shell .inspectGrid strong { display: block; margin-top: 5px; font-size: 10px; font-weight: 570; }
.service-ledger-agent-shell .evidenceReady { min-height: 74px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.service-ledger-agent-shell .evidenceReady > div { min-width: 0; margin-right: auto; }
.service-ledger-agent-shell .activityEvent {
  min-height: 61px;
  margin: 0 10px 3px;
  display: grid;
  grid-template-columns: 62px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-top: 0;
  border-radius: 11px;
}
.service-ledger-agent-shell .activityEvent.highlight { background: linear-gradient(90deg, var(--service-ledger-wash), #fff 42%); }
.service-ledger-agent-shell .activityEvent time { color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .approvalRecipient { border-top: 0; }
.service-ledger-agent-shell .receiptRow { margin: 0 16px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; border-top: 0; color: var(--service-ledger-ink); font-size: 10px; }
.service-ledger-agent-shell .receiptRow b { font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell .approvalCallout {
  margin: 14px 16px 0;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: var(--service-ledger-wash);
  box-shadow: inset 0 0 0 1px rgba(184,102,63,.08);
}
.service-ledger-agent-shell .approvalCallout > span { color: var(--service-ledger-copper-deep); font-size: 12px; font-weight: 700; }
.service-ledger-agent-shell .approvalCallout strong { display: block; font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell .approvalCallout small { display: block; margin-top: 3px; color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .approvalPanel form { margin: 0; }
.service-ledger-agent-shell .sealed { margin: 0 16px 16px; padding: 13px; border: 1px solid var(--service-ledger-copper-soft); border-radius: 10px; background: var(--service-ledger-wash); color: var(--service-ledger-copper-deep); font-size: 10px; line-height: 1.5; }
.service-ledger-agent-shell .sourceBadge {
  min-width: 142px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--service-ledger-line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(38,33,28,.07);
}
.service-ledger-agent-shell .sourceBadge > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #b8663f; }
.service-ledger-agent-shell .sourceBadge > span { margin: 0; }
.service-ledger-agent-shell .sourceBadge > span strong { display: block; color: var(--service-ledger-ink); font-size: 10px; font-weight: 580; }
.service-ledger-agent-shell .sourceBadge > span small { display: block; margin-top: 4px; color: var(--service-ledger-muted); font-size: 9px; font-weight: 400; }
.service-ledger-agent-shell .sourceBadge.is-stale { border-color: var(--service-ledger-copper-soft); background: var(--service-ledger-wash); }
.service-ledger-agent-shell .sourceBadge.is-stale > i { background: var(--service-ledger-copper-deep); }
.service-ledger-agent-shell .sourceBadge.is-stale > span strong { color: var(--service-ledger-copper-deep); }

/* Stage 2 voice-note inbox: full-width operational list plus selected-note drawer. */
.service-ledger-agent-shell .queueScreen { width: 100%; max-width: none; }
.service-ledger-agent-shell .tw-inbox-head {
  min-height: 52px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.service-ledger-agent-shell .tw-inbox-head h1 {
  margin: 0;
  color: var(--service-ledger-ink);
  font-size: clamp(27px, 2.2vw, 32px);
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.service-ledger-agent-shell .tw-capture-search { width: min(34vw, 380px); display: block; }
.service-ledger-agent-shell .tw-capture-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(38,33,28,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--service-ledger-ink);
  box-shadow: 0 8px 24px rgba(49,42,36,.04);
  font: 500 11px var(--font-sans);
}
.service-ledger-agent-shell .tw-capture-search input:focus { border-color: var(--service-ledger-copper); outline: 3px solid rgba(184,102,63,.12); }
.service-ledger-agent-shell .tw-voice-inbox { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.service-ledger-agent-shell .tw-voice-inbox.has-selection { grid-template-columns: minmax(560px, 1.65fr) minmax(360px, .9fr); }
.service-ledger-agent-shell .tw-work-order-pane,
.service-ledger-agent-shell .tw-note-drawer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(38,33,28,.055);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(49,42,36,.055);
}
.service-ledger-agent-shell .tw-work-order-list { min-width: 0; }
.service-ledger-agent-shell .tw-work-order-row {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 58px;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 8px 18px;
  box-shadow: inset 0 -1px rgba(38,33,28,.055);
  transition: background-color var(--motion-fast), box-shadow var(--motion-fast);
}
.service-ledger-agent-shell .tw-work-order-row:last-child { box-shadow: none; }
.service-ledger-agent-shell .tw-work-order-row[hidden] { display: none; }
.service-ledger-agent-shell .tw-work-order-row:hover { background: #fdfbf8; }
.service-ledger-agent-shell .tw-work-order-row.is-selected { background: linear-gradient(90deg, var(--service-ledger-wash), rgba(255,255,255,.94) 46%); box-shadow: inset 3px 0 var(--service-ledger-copper), inset 0 -1px rgba(38,33,28,.05); }
.service-ledger-agent-shell .tw-work-order-main {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 106px minmax(190px, 1.15fr) minmax(170px, .85fr);
  align-items: center;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}
.service-ledger-agent-shell .tw-work-order-main > span { min-width: 0; }
.service-ledger-agent-shell :is(.tw-work-order-id, .tw-work-order-job) { display: grid; gap: 5px; }
.service-ledger-agent-shell .tw-work-order-id strong { color: var(--service-ledger-copper-deep); font-size: 15px; font-weight: 540; letter-spacing: -.01em; }
.service-ledger-agent-shell .tw-work-order-id small { color: var(--service-ledger-muted); font-size: 10px; font-weight: 480; }
.service-ledger-agent-shell .tw-work-order-job strong { overflow: hidden; color: var(--service-ledger-ink); font-size: 12px; font-weight: 480; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-agent-shell .tw-work-order-job small,
.service-ledger-agent-shell .tw-work-order-place { overflow: hidden; color: var(--service-ledger-muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-agent-shell .tw-note-state { display: inline-flex; align-items: center; gap: 7px; color: var(--service-ledger-muted); font-size: 10px; font-weight: 480; white-space: nowrap; }
.service-ledger-agent-shell .tw-note-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a9aaa7; }
.service-ledger-agent-shell .tw-note-state.collecting { color: var(--service-ledger-copper-deep); }
.service-ledger-agent-shell .tw-note-state.collecting i { background: var(--service-ledger-copper); box-shadow: 0 0 0 4px rgba(184,102,63,.1); }
.service-ledger-agent-shell .tw-note-state.captured { color: #55725c; }
.service-ledger-agent-shell .tw-note-state.captured i { background: #6f8b72; }
.service-ledger-agent-shell .tw-note-state.source_changed { color: #9a553d; }
.service-ledger-agent-shell .tw-note-state.source_changed i { background: #b56048; }
.service-ledger-agent-shell .tw-capture-mic,
.service-ledger-agent-shell .tw-row-ready {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  background: var(--service-ledger-copper-wash);
  color: var(--service-ledger-copper-deep);
  font: 500 10px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: width var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.service-ledger-agent-shell .tw-capture-mic:hover { transform: scale(1.04); background: var(--service-ledger-copper); color: #fff; }
.service-ledger-agent-shell .tw-capture-mic:focus-visible,
.service-ledger-agent-shell .tw-row-ready:focus-visible,
.service-ledger-agent-shell .tw-work-order-main:focus-visible { outline: 2px solid var(--service-ledger-copper); outline-offset: 2px; }
.service-ledger-agent-shell .tw-capture-mic svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-ledger-agent-shell .tw-capture-mic strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.service-ledger-agent-shell .tw-row-ready { background: #edf3ee; color: #55725c; font-size: 14px; }
.service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) .tw-capture-mic { width: 94px; background: var(--service-ledger-ink); color: #fff; }
.service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) { grid-template-columns: minmax(0, 1fr) auto 100px; }
.service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) .tw-capture-mic strong { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
.service-ledger-agent-shell .tw-work-order-row.is-saving .tw-capture-mic { opacity: .72; }
.service-ledger-agent-shell .tw-inline-recorder {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) 120px 46px;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  margin: 0 -2px 3px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fbf7f2;
}
.service-ledger-agent-shell .tw-work-order-row:is(.is-preparing, .is-recording, .is-saving, .is-saved, .is-error) .tw-inline-recorder { display: grid; }
.service-ledger-agent-shell .tw-inline-recorder > div:first-child { min-width: 0; display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-inline-recorder strong { color: var(--service-ledger-ink); font-size: 10px; font-weight: 480; }
.service-ledger-agent-shell .tw-inline-recorder small { overflow: hidden; color: var(--service-ledger-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-agent-shell .tw-live-transcript { margin: 3px 0 0; max-height: 70px; overflow: auto; color: var(--service-ledger-ink); font-size: 10px; font-weight: 400; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.service-ledger-agent-shell .tw-live-transcript[hidden] { display: none; }
.service-ledger-agent-shell .tw-inline-recorder time,
.service-ledger-agent-shell .tw-drawer-recorder time { color: var(--service-ledger-muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.service-ledger-agent-shell :is(.tw-work-order-row, .tw-drawer-recorder).is-recording .wave i { animation: tw-record-wave .74s ease-in-out infinite alternate; }
.service-ledger-agent-shell .tw-work-order-row.is-recording .tw-inline-recorder .wave i { background: var(--service-ledger-copper); opacity: 1; }
.service-ledger-agent-shell :is(.tw-work-order-row, .tw-drawer-recorder).is-saving .wave i { animation: tw-record-wave 1.05s ease-in-out infinite alternate; opacity: .52; }

.service-ledger-agent-shell .tw-note-drawer { position: sticky; top: 0; }
.service-ledger-agent-shell .tw-note-drawer > header { min-height: 76px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: inset 0 -1px rgba(38,33,28,.055); }
.service-ledger-agent-shell .tw-note-drawer > header div { display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-note-drawer > header span { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.service-ledger-agent-shell .tw-note-drawer > header h2 { margin: 0; color: var(--service-ledger-ink); font-size: 22px; font-weight: 480; letter-spacing: -.025em; }
.service-ledger-agent-shell .tw-note-drawer > header a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--service-ledger-muted); font-size: 23px; text-decoration: none; }
.service-ledger-agent-shell .tw-note-drawer > header a:hover { background: var(--service-ledger-paper); color: var(--service-ledger-ink); }
.service-ledger-agent-shell .tw-note-list { max-height: 58vh; overflow-y: auto; padding: 10px; display: grid; gap: 8px; }
.service-ledger-agent-shell .tw-no-notes { min-height: 112px; display: grid; place-content: center; gap: 6px; padding: 18px; text-align: center; }
.service-ledger-agent-shell .tw-no-notes strong { color: var(--service-ledger-ink); font-size: 11px; font-weight: 480; }
.service-ledger-agent-shell .tw-no-notes span { color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .tw-voice-note { padding: 12px; display: grid; gap: 10px; border: 1px solid rgba(38,33,28,.055); border-radius: 12px; background: #fbfaf8; }
.service-ledger-agent-shell .tw-note-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-ledger-agent-shell .tw-note-heading > strong { color: var(--service-ledger-ink); font-size: 10px; font-weight: 480; }
.service-ledger-agent-shell .tw-note-heading > span { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.service-ledger-agent-shell .tw-note-heading time { color: var(--service-ledger-muted); font-size: 8px; }
.service-ledger-agent-shell .tw-note-heading [data-tw-delete-transcript] { min-height: 44px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: #8a4e3b; font: 500 8px var(--font-sans); cursor: pointer; }
.service-ledger-agent-shell .tw-note-heading [data-tw-delete-transcript]:hover { background: #fbf1ed; }
.service-ledger-agent-shell .tw-note-heading [data-tw-delete-transcript]:disabled { color: var(--service-ledger-muted); cursor: wait; }
.service-ledger-agent-shell .tw-note-audio { min-width: 0; min-height: 52px; padding: 4px 10px 4px 3px; display: grid; grid-template-columns: 44px 38px minmax(0, 1fr); align-items: center; gap: 6px; border-radius: 10px; background: #f1f0ee; }
.service-ledger-agent-shell .tw-note-audio button { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.service-ledger-agent-shell .tw-note-audio button::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--service-ledger-ink); }
.service-ledger-agent-shell .tw-note-audio button:hover::before { background: var(--service-ledger-copper-deep); }
.service-ledger-agent-shell .tw-note-audio button:focus-visible,
.service-ledger-agent-shell .tw-note-heading [data-tw-delete-transcript]:focus-visible,
.service-ledger-agent-shell .tw-transcript-preview:focus-visible,
.service-ledger-agent-shell .tw-transcription-failed button:focus-visible,
.service-ledger-agent-shell .tw-transcript-viewer button:focus-visible { outline: 2px solid var(--service-ledger-copper); outline-offset: 2px; }
.service-ledger-agent-shell .tw-note-audio button span { font-size: 11px; transform: translateX(1px); }
.service-ledger-agent-shell .tw-note-audio button[aria-label^="Pause"] span { transform: none; }
.service-ledger-agent-shell .tw-note-audio time { color: var(--service-ledger-muted); font-size: 9px; font-variant-numeric: tabular-nums; text-align: center; }
.service-ledger-agent-shell .tw-note-audio input { width: 100%; min-width: 0; accent-color: var(--service-ledger-copper-deep); cursor: pointer; }
.service-ledger-agent-shell .tw-note-audio audio { display: none; }
.service-ledger-agent-shell .tw-transcript-preview { width: 100%; padding: 12px 13px; display: grid; gap: 6px; border: 1px solid rgba(38,33,28,.065); border-radius: 10px; background: #fff; color: var(--service-ledger-ink); text-align: left; cursor: pointer; }
.service-ledger-agent-shell .tw-transcript-preview:hover { border-color: rgba(184,102,63,.26); background: #fffdfb; }
.service-ledger-agent-shell .tw-transcript-preview > span { color: var(--service-ledger-copper-deep); font-size: 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.service-ledger-agent-shell .tw-transcript-preview p { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: var(--service-ledger-ink); font-size: 10px; font-weight: 400; line-height: 1.6; }
.service-ledger-agent-shell .tw-transcript-preview > strong { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 500; }
.service-ledger-agent-shell .tw-transcription-pending,
.service-ledger-agent-shell .tw-transcription-failed { min-height: 58px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border-radius: 10px; background: #f6f3ef; }
.service-ledger-agent-shell .tw-transcription-pending i { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid rgba(184,102,63,.22); border-top-color: var(--service-ledger-copper); border-radius: 50%; animation: tw-transcription-spin .8s linear infinite; }
.service-ledger-agent-shell .tw-transcription-pending span { display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-transcription-pending strong,
.service-ledger-agent-shell .tw-transcription-failed strong { color: var(--service-ledger-ink); font-size: 9px; font-weight: 480; }
.service-ledger-agent-shell .tw-transcription-pending small { color: var(--service-ledger-muted); font-size: 8px; }
.service-ledger-agent-shell .tw-transcription-failed { justify-content: space-between; background: #fbf1ed; }
.service-ledger-agent-shell .tw-transcription-failed button { min-height: 36px; padding: 0 11px; border: 1px solid rgba(154,85,61,.18); border-radius: 9px; background: #fff; color: #8a4e3b; font: 500 9px var(--font-sans); cursor: pointer; }
.service-ledger-agent-shell .tw-transcript-viewer { width: min(720px, calc(100vw - 40px)); max-width: none; max-height: min(88dvh, 860px); padding: 0; overflow: hidden; border: 1px solid rgba(38,33,28,.09); border-radius: 16px; background: #fff; color: var(--service-ledger-ink); box-shadow: 0 24px 90px rgba(27,23,20,.18); }
.service-ledger-agent-shell .tw-transcript-viewer::backdrop { background: rgba(32,28,25,.42); backdrop-filter: blur(3px); }
.service-ledger-agent-shell .tw-transcript-viewer > header { min-height: 78px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; box-shadow: inset 0 -1px rgba(38,33,28,.07); }
.service-ledger-agent-shell .tw-transcript-viewer > header div { display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-transcript-viewer > header span { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.service-ledger-agent-shell .tw-transcript-viewer > header h2 { margin: 0; font-size: 20px; font-weight: 480; letter-spacing: -.02em; }
.service-ledger-agent-shell .tw-transcript-viewer > header button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #f5f3f0; color: var(--service-ledger-ink); font: 400 22px var(--font-sans); cursor: pointer; }
.service-ledger-agent-shell .tw-transcript-viewer-body { max-height: calc(min(88dvh, 860px) - 78px); padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.service-ledger-agent-shell .tw-transcript-viewer-body > time { display: block; margin-bottom: 12px; color: var(--service-ledger-muted); font-size: 9px; }
.service-ledger-agent-shell .tw-transcript-viewer-body > article { padding: 18px 2px 36px; }
.service-ledger-agent-shell .tw-transcript-viewer-body > article > strong { color: var(--service-ledger-copper-deep); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.service-ledger-agent-shell .tw-transcript-viewer-body > article p { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--service-ledger-ink); font-size: 14px; font-weight: 400; line-height: 1.78; }
@keyframes tw-transcription-spin { to { transform: rotate(360deg); } }
.service-ledger-agent-shell .tw-drawer-recorder { margin: 0 10px 10px; padding: 12px; display: grid; grid-template-columns: minmax(140px, auto) minmax(0, 1fr) 84px 42px; align-items: center; gap: 12px; border-radius: 12px; background: var(--service-ledger-wash); }
.service-ledger-agent-shell .tw-drawer-recorder > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-drawer-recorder > div:nth-child(2) strong { color: var(--service-ledger-ink); font-size: 9px; font-weight: 480; }
.service-ledger-agent-shell .tw-drawer-recorder > div:nth-child(2) small { overflow: hidden; color: var(--service-ledger-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-agent-shell .tw-drawer-record { min-height: 44px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; background: var(--service-ledger-copper-deep); color: #fff; font: 400 9px var(--font-sans); cursor: pointer; }
.service-ledger-agent-shell .tw-drawer-record > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.service-ledger-agent-shell .tw-drawer-recorder.is-recording .tw-drawer-record { background: var(--service-ledger-ink); }
.service-ledger-agent-shell .tw-drawer-ready { margin: 0; padding: 16px 18px 18px; display: grid; gap: 12px; box-shadow: inset 0 1px rgba(38,33,28,.055); }
.service-ledger-agent-shell .tw-drawer-ready p { margin: 0; color: var(--service-ledger-muted); font-size: 9px; line-height: 1.5; }
.service-ledger-agent-shell .tw-drawer-ready .primaryAction { width: 100%; min-height: 48px; font-weight: 480; }
.service-ledger-agent-shell .tw-ready-complete { margin: 10px; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: #edf3ee; color: #55725c; }
.service-ledger-agent-shell .tw-ready-complete > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-weight: 700; }
.service-ledger-agent-shell .tw-ready-complete div { display: grid; gap: 3px; }
.service-ledger-agent-shell .tw-ready-complete strong { font-size: 11px; font-weight: 500; }
.service-ledger-agent-shell .tw-ready-complete small { font-size: 9px; }

@media (max-width: 900px) {
  .service-ledger-agent-shell .agent-workspace-scroll,
  .service-ledger-agent-shell .module-surface[data-module="workspace"] { width: 100%; max-width: 100vw; }
  .service-ledger-agent-shell .agentScreen { min-width: 0; max-width: 100%; }
  .service-ledger-agent-shell :is(.agentLayout, .captureLayout, .activityLayout, .evidenceWorkspace) { grid-template-columns: 1fr; }
  .service-ledger-agent-shell .screenHead { display: grid; gap: 14px; }
  .service-ledger-agent-shell .screenTitleRow h1 { font-size: 22px; }
  .service-ledger-agent-shell .screenMeta { margin-top: 6px; }
  .service-ledger-agent-shell .screenActions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .service-ledger-agent-shell .screenActions :is(.primaryAction, .secondaryAction) { width: 100%; padding: 0 10px; }
  .service-ledger-agent-shell .panelHead { min-height: 57px; padding: 12px 14px; }
  .service-ledger-agent-shell .tw-voice-inbox,
  .service-ledger-agent-shell .tw-voice-inbox.has-selection { grid-template-columns: minmax(0, 1fr); }
  .service-ledger-agent-shell .tw-voice-inbox.has-selection .tw-work-order-pane { display: none; }
  .service-ledger-agent-shell .queueScreen.has-selected-work-order .tw-inbox-head { display: none; }
  .service-ledger-agent-shell .tw-note-drawer { position: static; }
  .service-ledger-agent-shell .tw-transcript-viewer { inset: 0; width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .service-ledger-agent-shell .tw-transcript-viewer-body { max-height: calc(100dvh - 78px); padding: 18px; }
  .service-ledger-agent-shell .tw-work-order-main { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .service-ledger-agent-shell .tw-work-order-place { display: none; }
  .service-ledger-agent-shell .tw-note-list { max-height: none; }
  .service-ledger-agent-shell .fieldGrid { grid-template-columns: 1fr; padding: 14px; }
  .service-ledger-agent-shell .noteField { width: calc(100% - 28px); min-height: 180px; margin: 0 14px; }
  .service-ledger-agent-shell .noteLabel { margin-inline: 14px; }
  .service-ledger-agent-shell .formFoot { padding-inline: 14px; }
  .service-ledger-agent-shell .recordConsole { padding-inline: 14px; }
  .service-ledger-agent-shell .inspectGrid { grid-template-columns: repeat(2, 1fr); }
  .service-ledger-agent-shell .inspectGrid div:nth-child(3n) { border-right: 1px solid var(--service-ledger-line); }
  .service-ledger-agent-shell .inspectGrid div:nth-child(2n) { border-right: 0; }
  .service-ledger-agent-shell .inspectGrid div:nth-child(n+3) { border-top: 1px solid var(--service-ledger-line); }
  .service-ledger-agent-shell .evidenceReady { align-items: flex-start; flex-wrap: wrap; }
  .service-ledger-agent-shell .evidenceReady .primaryAction { width: 100%; }
  .service-ledger-agent-shell .activityEvent { grid-template-columns: 52px 28px minmax(0, 1fr); }
  .service-ledger-agent-shell .activityEvent > b { grid-column: 3; }
}

@media (max-width: 560px) {
  .service-ledger-agent-shell .service-ledger-context-header { gap: 12px; }
  .service-ledger-agent-shell .service-ledger-context-identity { flex: 1 1 0; overflow: hidden; }
  .service-ledger-agent-shell .screenActions { grid-template-columns: 1fr 1fr; }
  .service-ledger-agent-shell .tw-inbox-head { margin-bottom: 13px; display: grid; gap: 12px; }
  .service-ledger-agent-shell .tw-inbox-head h1 { font-size: 26px; }
  .service-ledger-agent-shell .tw-capture-search { width: 100%; }
  .service-ledger-agent-shell .tw-work-order-row { grid-template-columns: minmax(0, 1fr) 50px; gap: 5px 10px; padding: 9px 10px 9px 14px; }
  .service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) { grid-template-columns: minmax(0, 1fr) 88px; }
  .service-ledger-agent-shell .tw-work-order-main { grid-column: 1; grid-row: 1; min-height: 54px; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .service-ledger-agent-shell .tw-note-state { grid-column: 1; grid-row: 2; padding-left: 86px; }
  .service-ledger-agent-shell :is(.tw-capture-mic, .tw-row-ready) { grid-column: 2; grid-row: 1 / 3; }
  .service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) .tw-capture-mic { width: 88px; }
  .service-ledger-agent-shell .tw-work-order-row:is(.is-recording, .is-saving) .tw-capture-mic strong { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
  .service-ledger-agent-shell .tw-inline-recorder { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 74px 38px; gap: 10px; padding-inline: 9px; }
  .service-ledger-agent-shell .tw-inline-recorder small { white-space: normal; }
  .service-ledger-agent-shell .tw-note-drawer { border-radius: 14px; }
  .service-ledger-agent-shell .tw-drawer-recorder { grid-template-columns: minmax(0, 1fr) 42px; }
  .service-ledger-agent-shell .tw-drawer-recorder .tw-drawer-record { grid-column: 1 / -1; }
  .service-ledger-agent-shell .tw-drawer-recorder > div:nth-child(2) { grid-column: 1; }
  .service-ledger-agent-shell .tw-drawer-recorder .wave { display: none; }
  .service-ledger-agent-shell .tw-capture-launch-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .service-ledger-agent-shell .tw-capture-launch-main { min-height: 72px; padding: 12px 14px; grid-template-columns: 1fr; gap: 5px; }
  .service-ledger-agent-shell .tw-capture-launch-main strong { font-size: 14px; }
  .service-ledger-agent-shell .tw-capture-state { justify-self: start; font-size: 9px; }
  .service-ledger-agent-shell .tw-capture-mic { width: 44px; height: 44px; }
  .service-ledger-agent-shell .noteReviewBody { min-height: 0; padding: 14px; }
  .service-ledger-agent-shell .noteReviewText { min-height: 130px; }
  .service-ledger-agent-shell .recordState span { max-width: 160px; }
  .service-ledger-agent-shell .evidenceRows { padding-inline: 8px; }
  .service-ledger-agent-shell .activityEvent { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-ledger-agent-shell .recordConsole.is-recording .recordButton,
  .service-ledger-agent-shell .recordConsole.is-recording .wave i,
  .service-ledger-agent-shell .recordConsole.is-saving .wave i { animation: none; }
}

/* TradeWinds uses a self-hosted sans without changing sibling workspaces. */
.service-ledger-agent-shell[data-workspace-type="tradewinds_capture_v1"] {
  --tw-font-sans: "Instrument Sans", "Inter", "SF Pro Display", "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--tw-font-sans);
  font-family: var(--tw-font-sans);
  font-synthesis: none;
}

/* TradeWinds Work Orders · 02 Luminous Depth.
   Layout rules stay scoped to the queue module; the TradeWinds-only font token
   above is the sole intentional shell-level visual override. */
.service-ledger-agent-shell[data-workspace-type="tradewinds_capture_v1"] .module-surface[data-module="queue"] {
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth] {
  --tw-luminous-white: #fff;
  --tw-luminous-ink: #252929;
  --tw-luminous-muted: #82817d;
  --tw-luminous-line: rgba(38,33,28,.055);
  --tw-luminous-copper: #b8663f;
  --tw-luminous-copper-deep: #9c572f;
  --tw-luminous-wash: #fbf4ee;
  min-height: 100%;
  background: var(--tw-luminous-white);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head {
  min-height: 62px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head > div {
  display: grid;
  gap: 4px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head h1 {
  margin: 0;
  color: var(--tw-luminous-ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head p {
  margin: 0;
  color: var(--tw-luminous-muted);
  font-size: 10px;
  font-weight: 430;
  line-height: 1.35;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-inbox {
  gap: 14px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-inbox.has-selection {
  grid-template-columns: minmax(520px, 1.65fr) minmax(350px, .9fr);
}
.service-ledger-agent-shell [data-tw-luminous-depth] :is(.tw-work-order-pane,.tw-note-drawer) {
  border: 0;
  border-radius: 14px;
  background: var(--tw-luminous-white);
  box-shadow: 0 14px 40px rgba(49,42,36,.055);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-row {
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto 52px;
  gap: 12px;
  padding: 5px 10px 5px 16px;
  background: #fff;
  box-shadow: inset 0 -1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-row:hover {
  background: #fffdfb;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-row.is-selected {
  background: linear-gradient(90deg, var(--tw-luminous-wash), rgba(255,255,255,.98) 52%);
  box-shadow: inset 2px 0 var(--tw-luminous-copper), inset 0 -1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-main {
  min-height: 58px;
  grid-template-columns: 96px minmax(190px, 1.15fr) minmax(150px, .85fr);
  gap: 18px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] :is(.tw-work-order-id,.tw-work-order-job) {
  gap: 3px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-id strong {
  color: var(--tw-luminous-copper-deep);
  font-size: 14px;
  font-weight: 540;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-id small,
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-job small,
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-place,
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-state {
  color: var(--tw-luminous-muted);
  font-size: 9px;
  font-weight: 430;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-job strong {
  color: var(--tw-luminous-ink);
  font-size: 11px;
  font-weight: 470;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-capture-mic,
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-row-ready {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f7eee7;
  color: var(--tw-luminous-copper-deep);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-capture-mic svg {
  width: 18px;
  height: 18px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-inline-recorder {
  min-height: 50px;
  margin-bottom: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(184,102,63,.10);
  border-radius: 10px;
  background: #fffaf6;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer {
  top: 0;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header {
  min-height: 66px;
  padding: 13px 16px;
  box-shadow: inset 0 -1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header div {
  gap: 2px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header span {
  color: var(--tw-luminous-copper-deep);
  font-size: 8px;
  font-weight: 520;
  letter-spacing: .07em;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header h2 {
  color: var(--tw-luminous-ink);
  font-size: 20px;
  font-weight: 480;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header a {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 21px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer > header a:hover {
  background: #fbf8f4;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-list {
  max-height: 60vh;
  padding: 14px 16px;
  gap: 12px;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-no-notes {
  min-height: 132px;
  padding: 20px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-note {
  padding: 12px 13px;
  gap: 9px;
  border: 1px solid var(--tw-luminous-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(49,42,36,.028);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-heading > strong {
  color: var(--tw-luminous-ink);
  font-size: 10px;
  font-weight: 500;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-heading time {
  color: var(--tw-luminous-muted);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-heading [data-tw-delete-transcript] {
  min-height: 44px;
  padding: 0 7px;
  color: #8a4e3b;
  font-weight: 450;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-audio {
  min-height: 48px;
  padding: 2px 8px 2px 1px;
  grid-template-columns: 42px 36px minmax(0, 1fr);
  border: 1px solid rgba(38,33,28,.045);
  border-radius: 10px;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-audio button {
  width: 44px;
  height: 44px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-audio button::before {
  inset: 7px;
  background: var(--tw-luminous-ink);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-preview {
  padding: 12px 2px 2px;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-preview:hover {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(251,244,238,.66), transparent 72%);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-preview > span,
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-preview > strong {
  color: var(--tw-luminous-copper-deep);
  font-weight: 520;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-preview p {
  color: var(--tw-luminous-ink);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
}
.service-ledger-agent-shell [data-tw-luminous-depth] :is(.tw-transcription-pending,.tw-transcription-failed) {
  border: 1px solid rgba(184,102,63,.10);
  background: #fffaf6;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-recorder {
  margin: 0 16px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(184,102,63,.09);
  border-radius: 11px;
  background: #fffaf6;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-record {
  min-height: 44px;
  border-radius: 10px;
  background: var(--tw-luminous-copper-deep);
  font-weight: 400;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-ready {
  padding: 14px 16px 16px;
  gap: 10px;
  box-shadow: inset 0 1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-ready .primaryAction {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 480;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer {
  width: min(760px, calc(100vw - 40px));
  border-color: rgba(38,33,28,.075);
  border-radius: 14px;
  box-shadow: 0 28px 96px rgba(27,23,20,.20);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer > header {
  min-height: 70px;
  padding: 13px 16px;
  box-shadow: inset 0 -1px var(--tw-luminous-line);
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer > header h2 {
  font-size: 19px;
  font-weight: 480;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer > header button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fbf8f4;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer-body {
  max-height: calc(min(88dvh, 860px) - 70px);
  padding: 20px 22px;
}
.service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer-body > article p {
  font-size: 15px;
  line-height: 1.78;
}

@media (max-width: 900px) {
  .service-ledger-agent-shell[data-workspace-type="tradewinds_capture_v1"] .module-surface[data-module="queue"] {
    background: #fff;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-inbox,
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-inbox.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-inbox.has-selection .tw-work-order-pane {
    display: none;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth].has-selected-work-order .tw-inbox-head {
    display: none;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer {
    position: static;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-list {
    max-height: none;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-transcript-viewer-body {
    max-height: calc(100dvh - 70px);
  }
}

@media (max-width: 560px) {
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head {
    min-height: 56px;
    margin-bottom: 10px;
    display: flex;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-inbox-head h1 {
    font-size: 23px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-row {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 4px 9px;
    padding: 7px 8px 7px 13px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-row:is(.is-recording,.is-saving) {
    grid-template-columns: minmax(0, 1fr) 86px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-work-order-main {
    min-height: 50px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-state {
    padding-left: 81px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] :is(.tw-capture-mic,.tw-row-ready) {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-drawer {
    border-radius: 12px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-note-list {
    padding: 12px;
    gap: 10px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-voice-note {
    padding: 11px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-recorder {
    margin: 0 12px 10px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth] .tw-drawer-ready {
    padding: 13px 12px 14px;
  }
}

/* TradeWinds Work Orders · literal port of prototype direction 02.
   Scope is intentionally limited to the queue surface. The shared sidebar,
   authentication, ServiceBridge boundaries, and every other module stay untouched. */
.service-ledger-agent-shell[data-workspace-type="tradewinds_capture_v1"] .module-surface[data-module="queue"] {
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] {
  --tw-prototype-ink: #26211c;
  --tw-prototype-copper: #b8663f;
  --tw-prototype-copper-deep: #914a2c;
  --tw-prototype-copper-bright: #d4834d;
  --tw-prototype-muted: #756b62;
  width: 100%;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  color: var(--tw-prototype-ink);
  font-family: var(--tw-font-sans);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inbox-head {
  width: 100%;
  height: 78px;
  min-height: 78px;
  margin: 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inbox-head > div { display: block; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inbox-head h1 {
  margin: 0;
  color: var(--tw-prototype-ink);
  font-size: 28px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -.04em;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox,
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox.has-selection {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px 14px 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox.has-selection {
  grid-template-columns: minmax(520px, 1fr) minmax(350px, 410px);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-pane {
  min-width: 0;
  height: 100%;
  padding: 0 18px 28px;
  overflow: auto;
  border: 0;
  border-radius: 0 16px 16px 0;
  background: #fff;
  box-shadow: 0 14px 38px rgba(38,33,28,.055);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-columns {
  width: 100%;
  height: 34px;
  display: grid;
  grid-template-columns: 86px minmax(180px, 1fr) minmax(120px, .55fr) 92px;
  gap: 14px;
  align-items: center;
  color: var(--tw-prototype-muted);
  font-size: 8px;
  font-weight: 620;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-list { min-width: 0; display: block; gap: 0; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--tw-prototype-ink);
  box-shadow: none;
  overflow: visible;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row + .tw-work-order-row { margin-top: 5px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:hover { background: #fffdfb; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row.is-selected {
  background: #fff8f2;
  box-shadow: 0 8px 22px rgba(112,69,42,.09);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row::before {
  position: absolute;
  left: -9px;
  top: 15px;
  width: 3px;
  height: 38px;
  border-radius: 4px;
  background: transparent;
  content: "";
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row.is-selected::before { background: var(--tw-prototype-copper); }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-main {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 86px minmax(180px, 1fr) minmax(120px, .55fr) 92px;
  gap: 14px;
  align-items: center;
  border-radius: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-main:focus-visible {
  outline: 2px solid var(--tw-prototype-copper);
  outline-offset: 2px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] :is(.tw-work-order-id,.tw-work-order-job) {
  min-width: 0;
  display: block;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-id strong {
  display: block;
  color: var(--tw-prototype-copper-deep);
  font-size: 12px;
  font-weight: 630;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-id small,
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-job small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--tw-prototype-muted);
  font-size: 9px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-job strong {
  display: block;
  overflow: hidden;
  color: var(--tw-prototype-ink);
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-place {
  min-width: 0;
  overflow: hidden;
  color: var(--tw-prototype-muted);
  font-size: 9px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state {
  min-width: 0;
  min-height: 0;
  padding: 0;
  grid-area: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tw-prototype-muted);
  font-size: 9px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bdb7b0;
  box-shadow: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.collecting { color: var(--tw-prototype-copper-deep); }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.collecting i { background: var(--tw-prototype-copper); box-shadow: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.captured { color: #55725c; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.captured i { background: #6f8b72; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.source_changed { color: #9a553d; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state.source_changed i { background: #b56048; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer {
  position: static;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--tw-prototype-ink);
  box-shadow: 0 18px 46px rgba(38,33,28,.13);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer[hidden] { display: none !important; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer.is-loading {
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tw-prototype-muted);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading i {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(164, 82, 45, .18);
  border-top-color: var(--tw-prototype-copper);
  border-radius: 50%;
  animation: tw-drawer-loading .72s linear infinite;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading span { display: grid; gap: 3px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading strong { color: var(--tw-prototype-ink); font-size: 12px; font-weight: 560; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading small { font-size: 9px; }
@keyframes tw-drawer-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-loading i { animation: none; }
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header {
  width: 100%;
  min-height: 104px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  box-shadow: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header div { min-width: 0; display: block; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header span {
  display: block;
  overflow: hidden;
  color: var(--tw-prototype-copper-deep);
  font-size: 9px;
  font-weight: 630;
  letter-spacing: .045em;
  line-height: normal;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header h2 {
  margin: 7px 0 0;
  color: var(--tw-prototype-ink);
  font-size: 23px;
  font-weight: 520;
  line-height: normal;
  letter-spacing: -.035em;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header p {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--tw-prototype-muted);
  font-size: 9px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header a {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(164, 82, 45, .18);
  border-radius: 10px;
  background: #fffdfb;
  color: var(--tw-prototype-copper-deep);
  font-size: 23px;
  line-height: 1;
  text-decoration: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header a:hover {
  border-color: rgba(164, 82, 45, .34);
  background: #fffaf6;
  color: var(--tw-prototype-ink);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header a:focus-visible {
  outline: 2px solid var(--tw-prototype-copper);
  outline-offset: 2px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-list {
  min-height: 0;
  max-height: none;
  padding: 18px 20px 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-no-notes { min-height: 100%; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-note {
  min-height: 94px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-auto-rows: auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38,33,28,.08);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-heading {
  min-width: 0;
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-heading > strong {
  color: var(--tw-prototype-ink);
  font-size: 11px;
  font-weight: 610;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-heading > span { min-width: 0; gap: 6px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-heading time { color: var(--tw-prototype-muted); font-size: 8px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-heading [data-tw-delete-transcript] { min-height: 44px; margin: -14px -8px -10px 0; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio { display: contents; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio button {
  position: relative;
  width: 44px;
  height: 44px;
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--tw-prototype-copper-bright);
  border-radius: 50%;
  background: #fff;
  color: #a34f2d;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio button::before { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio button span { color: inherit; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio time {
  grid-column: 3;
  grid-row: 2;
  color: var(--tw-prototype-muted);
  font-size: 8px;
  text-align: right;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-audio input {
  width: 100%;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  accent-color: var(--tw-prototype-copper-bright);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-note > [data-tw-transcription-panel] { grid-column: 1 / -1; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-transcript-preview {
  padding: 12px 2px 2px;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px rgba(38,33,28,.055);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-transcript-preview:hover { background: linear-gradient(90deg, rgba(251,244,238,.66), transparent 72%); }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-transcript-preview p { color: var(--tw-prototype-ink); font-size: 10px; line-height: 1.55; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-transcript-preview > :is(span,strong) { color: var(--tw-prototype-copper-deep); font-weight: 520; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder {
  position: relative;
  min-height: 56px;
  margin: 0 20px 10px;
  padding: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f1ded0;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-record {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  justify-content: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tw-prototype-ink);
  text-align: left;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-record > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tw-prototype-copper-bright);
  border-radius: 50%;
  background: #fff;
  color: var(--tw-prototype-copper-deep);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-record > span::after { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-record > strong { overflow: hidden; font-size: 10px; font-weight: 610; text-overflow: ellipsis; white-space: nowrap; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > div:nth-child(2) {
  position: absolute;
  left: 58px;
  right: 48px;
  bottom: 10px;
  pointer-events: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > div:nth-child(2) strong { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder.is-recording > div:nth-child(2) strong,
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder.is-saving > div:nth-child(2) strong { display: block; font-size: 8px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder.is-recording > div:nth-child(2) small,
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder.is-saving > div:nth-child(2) small { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > div:nth-child(2) small { color: var(--tw-prototype-muted); font-size: 8px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder .wave { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder time { color: var(--tw-prototype-muted); font-size: 9px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-ready {
  margin: 0 20px 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  box-shadow: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-ready .primaryAction {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: #2f2924;
  color: #fff;
  font-size: 10px;
  font-weight: 560;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-ready-complete { margin: 0 20px 16px; }

@media (max-width: 900px) {
  .service-ledger-agent-shell[data-workspace-type="tradewinds_capture_v1"] .module-surface[data-module="queue"] { height: 100svh; min-height: 100svh; padding: 0; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] {
    width: 100%;
    height: 100svh;
    grid-template-rows: 130px minmax(0, 1fr);
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inbox-head {
    height: 130px;
    min-height: 130px;
    padding: 43px 14px 14px;
    display: block;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inbox-head h1 { margin-left: 50px; font-size: 23px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox,
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox.has-selection {
    height: 100%;
    padding: 0;
    display: block;
    overflow: hidden;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-pane {
    width: 100%;
    height: 100%;
    padding: 0 14px 24px;
    border-radius: 0;
    box-shadow: none;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-columns,
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-main {
    grid-template-columns: 66px minmax(0, 1fr) 88px;
    gap: 14px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-columns > span:nth-child(3),
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-place { display: none; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row { min-height: 72px; border-radius: 0; box-shadow: none; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row.is-selected { box-shadow: none; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-main { min-height: 72px; padding: 10px 0; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-state { justify-self: end; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"].has-selected-work-order { grid-template-rows: minmax(0, 1fr); }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"].has-selected-work-order .tw-inbox-head { display: none; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox.has-selection { grid-row: 1; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-voice-inbox.has-selection .tw-work-order-pane { display: none; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer {
    width: 100%;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header {
    min-height: 108px;
    height: 108px;
    padding: 18px 16px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header h2 { font-size: 24px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer > header a {
    width: 44px;
    height: 44px;
    margin: 9px -6px 0 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-list { padding: 18px 20px 24px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder { margin: 0 14px 10px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-ready { margin: 0 14px 16px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-ready-complete { margin: 0 14px 16px; }
  .service-ledger-agent-shell:has([data-tw-luminous-depth="prototype-02"].has-selected-work-order) .sidebar-open { display: none; }
}

/* TradeWinds Luminous — one-tap row capture and focused live transcript */
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-capture-mic),
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-row-ready) {
  grid-template-columns: minmax(0, 1fr) 44px;
  height: 68px;
  padding: 0;
  column-gap: 8px;
  align-items: center;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-capture-mic,
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-row-ready {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(164, 82, 45, .48);
  border-radius: 50%;
  background: #fff;
  color: #9e4e2c;
  box-shadow: 0 5px 14px rgba(91, 49, 29, .08);
  cursor: pointer;
  text-decoration: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-capture-mic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-capture-mic strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:is(.is-preparing, .is-recording, .is-saving, .is-error) {
  grid-template-columns: minmax(0, 1fr) 86px;
  height: auto;
  padding-bottom: 10px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-capture-mic {
  width: 86px;
  border-radius: 10px;
  background: #a4522d;
  border-color: #a4522d;
  color: #fff;
  grid-template-columns: 18px auto;
  gap: 7px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-capture-mic strong {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  font-size: 12px;
  white-space: nowrap;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inline-recorder {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, .65fr) minmax(220px, 1.35fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 10px 12px 0;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-inline-recorder { display: grid; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inline-recorder .tw-live-transcript-surface { max-height: 82px; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inline-recorder .tw-live-transcript { max-height: 58px; flex: 0 1 auto; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row.is-saved .tw-inline-recorder { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-recorder-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-recorder-copy strong { font-size: 13px; line-height: 1.25; color: #2f2924; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-recorder-copy small { font-size: 11px; line-height: 1.4; color: #786f67; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-live-transcript-surface {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid rgba(164, 82, 45, .2);
  border-radius: 12px;
  background: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-live-transcript-surface > span {
  color: #9e4e2c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-live-transcript-surface em {
  color: #8a8179;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-live-transcript-surface [hidden] { display: none !important; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-live-transcript {
  min-width: 0;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  margin: 0;
  overflow-y: auto;
  color: #2f2924;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-recorder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-recorder-actions time {
  color: #786f67;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy actions";
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > .tw-recorder-copy { grid-area: copy; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > .tw-live-transcript-surface { display: none; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder > .tw-recorder-actions { grid-area: actions; }
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder .tw-drawer-record {
  width: auto;
  min-width: 142px;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 10px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer:has(.tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error)) {
  grid-template-rows: 104px minmax(0, 1fr) 60px;
  min-height: 0;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer:has(.tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error)) .tw-note-list {
  display: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-note-drawer:has(.tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error)) .tw-drawer-ready {
  grid-row: 3;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) {
  grid-row: 2;
  min-height: 0;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "copy" "transcript" "actions";
  gap: 14px;
  align-items: stretch;
  margin: 0;
  padding: 18px 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) > .tw-recorder-copy {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100%;
  justify-self: stretch;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) > .tw-live-transcript-surface {
  grid-area: transcript;
  position: static;
  inset: auto;
  pointer-events: auto;
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100%;
  height: auto;
  min-height: 72px;
  max-height: min(42dvh, 360px);
  max-width: none;
  justify-self: stretch;
  align-self: start;
  display: flex;
  padding: 18px 20px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38,33,28,.08);
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) > .tw-live-transcript-surface .tw-live-transcript {
  max-height: calc(min(42dvh, 360px) - 36px);
  flex: 0 1 auto;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) > .tw-recorder-actions {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: 100%;
  justify-self: stretch;
  align-self: end;
  justify-content: space-between;
  padding-bottom: 10px;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-drawer-record {
  min-width: 110px;
  grid-column: auto;
  background: #a4522d;
  border-color: #a4522d;
  color: #fff;
}
.service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-drawer-record span { background: #fff; }

@media (max-width: 720px) {
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-capture-mic),
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-row-ready) { height: 72px; column-gap: 8px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-capture-mic) .tw-work-order-main,
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-work-order-row:has(> .tw-row-ready) .tw-work-order-main { grid-template-columns: 62px minmax(0, 1fr) 72px; gap: 10px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-capture-mic,
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-row-ready { margin-right: 0; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-inline-recorder { grid-template-columns: minmax(0, 1fr); padding: 10px 6px 0; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder { margin: 0 14px 10px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) {
    margin: 0;
    padding: 16px 20px 0;
  }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-recorder-copy strong { font-size: 16px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-recorder-copy small { font-size: 13px; }
  .service-ledger-agent-shell [data-tw-luminous-depth="prototype-02"] .tw-drawer-recorder:is(.is-preparing, .is-recording, .is-saving, .is-error) .tw-live-transcript { font-size: 17px; line-height: 1.55; }
}
