/* assets/css/portfolio-home.css */
/* Catálogo após a escolha da carteira. */
#companiesView .workspace {padding-bottom:24px}
#companiesView .portfolio-toolbar {margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e0e8f0}
#companiesView .portfolio-back {min-height:40px;padding:9px 12px;border:1px solid #dce5ef;border-radius:10px;background:#fff;font-size:12px;text-decoration:none}
#companiesView .portfolio-back:hover {background:#f2f6fb;border-color:#adc1d5}
#companiesView .portfolio-owner {font-size:12px;color:#546e87}
#companiesView .search-card {padding:24px;margin-bottom:18px;border:1px solid #dce5ef;border-radius:16px;background:#fff;box-shadow:0 3px 14px #203c5704}
#companiesView .directory-heading {margin-bottom:20px}
#companiesView .directory-heading h2 {margin:0 0 6px;font-size:19px;font-weight:600;letter-spacing:-.4px;color:#29435d}
#companiesView .directory-heading p {margin:0;color:#718399;line-height:1.6}
#companiesView .directory-controls {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#companiesView .directory-controls input,#companiesView .directory-controls select {min-height:48px;border-radius:10px;background:#f8fafc;font-size:14px}
/* A borda pertence ao conjunto ícone + campo; o input fica dentro dela. */
#companiesView .directory-controls .search-wrap {
  box-sizing:border-box;height:48px;min-height:48px;
  border:1px solid #9eafc2;border-radius:10px;background:#fff;
  box-shadow:0 1px 2px #203c5704;
}
#companiesView .directory-controls .search-wrap:hover {border-color:#7e97b1}
#companiesView .directory-controls .search-wrap:focus-within {
  border-color:#547b9f;background:#fff;box-shadow:0 0 0 3px #547b9f18;
}
#companiesView .directory-controls .search-wrap input {
  box-sizing:border-box;height:100%;min-height:0;border:0;
  border-radius:0!important;background:transparent!important;
}
#companiesView .directory-controls .search-wrap > span {color:#738ba3}

#companiesView .company-filters {margin-top:16px;gap:8px}
#companiesView .company-filter {min-height:38px;padding:8px 13px;border-radius:8px;font-size:12px}
#companiesView .company-filter.active {background:#eaf1f9;border-color:#c9d9e9;color:#2c5275}
#companiesView .search-meta {margin-top:16px;padding:14px 0 0;border-top:1px solid #edf1f6;color:#7a8b9e}
#companiesView #companyCount {color:#445f78;font-weight:550}
#companiesView .grid {border-radius:16px;border-color:#dce5ef}
#companiesView .company-card.company-row {min-height:82px;padding:16px 22px;gap:16px}
#companiesView .company-row-name {font-size:14px}
#companiesView .company-row-code {width:50px;height:40px;border-radius:10px;background:#edf3f9;border-color:#dce6f1;color:#456784}
#companiesView .company-row-action b {width:30px;height:30px;border-radius:9px}
#companiesView .company-card.company-row:hover {background:#f7faff;box-shadow:inset 3px 0 #6b91b4}
@media(max-width:760px) {
  #companiesView .search-card {padding:18px}
  #companiesView .directory-heading {gap:14px;margin-bottom:16px}
  #companiesView .directory-heading #addCompany {width:auto;min-height:44px}
  #companiesView .directory-controls {padding:0}
  #companiesView .search-meta {align-items:flex-start;gap:8px;flex-wrap:wrap}
  #companiesView .company-card.company-row {grid-template-columns:46px minmax(0,1fr) auto;padding:15px 12px;gap:10px}
  #companiesView .company-row-code {width:44px;height:38px;font-size:11px}
  #companiesView .company-row-name {font-size:13px;white-space:normal;overflow-wrap:anywhere}
  #companiesView .company-row-action > span {display:none}
}
@media(prefers-reduced-motion:reduce) {
  #portfolioPicker,#portfolioPicker .portfolio-access {animation:none}
  #portfolioPicker .portfolio-entry,#portfolioPicker .portfolio-entry-arrow {transition:none}
  #portfolioPicker .portfolio-entry:hover,#portfolioPicker .portfolio-entry:active,#portfolioPicker .portfolio-entry:hover .portfolio-entry-arrow {transform:none}
}

/* Entrada da carteira: movimento curto, com sequência limitada mesmo em listas grandes. */
@keyframes portfolioWorkspaceEnter {
  from {opacity:0;transform:translateY(10px)}
  to {opacity:1;transform:none}
}
@keyframes portfolioCompanyEnter {
  from {opacity:0;transform:translateY(6px)}
  to {opacity:1;transform:none}
}
#companiesView .hero:not([hidden]) {
  animation:portfolioWorkspaceEnter 280ms cubic-bezier(.22,1,.36,1) both;
}
#companiesView .hero:not([hidden]) + .overview {
  animation:portfolioWorkspaceEnter 300ms 35ms cubic-bezier(.22,1,.36,1) both;
}
#companiesView .workspace:not([hidden]) .portfolio-toolbar {
  animation:portfolioWorkspaceEnter 300ms 55ms cubic-bezier(.22,1,.36,1) both;
}
#companiesView .workspace:not([hidden]) .search-card {
  animation:portfolioWorkspaceEnter 320ms 75ms cubic-bezier(.22,1,.36,1) both;
}
#companiesView .workspace:not([hidden]) .company-card.company-row {
  animation:portfolioCompanyEnter 300ms cubic-bezier(.22,1,.36,1) both;
  animation-delay:calc(90ms + min(var(--row-index,0) * 18ms,126ms));
}
#portfolioPicker .portfolio-entry:active {background:#eaf2fa;box-shadow:inset 0 1px 3px #2948650a}
@media(prefers-reduced-motion:reduce) {
  #companiesView .hero,#companiesView .overview,
  #companiesView .portfolio-toolbar,#companiesView .search-card,
  #companiesView .company-card.company-row {animation:none}
}

/* Home: one responsive frame, a single motion rhythm, no clipped content. */
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) {width:100%;max-width:1480px;margin-inline:auto;padding-inline:clamp(20px,4vw,60px)}
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > main {width:100%;max-width:none;margin-inline:0}
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > :is(.topbar,footer) {margin-inline:0}
#portfolioPicker {box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:100%;max-width:none;min-height:0;margin:18px auto 22px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#portfolioPicker[hidden] {display:none!important}
#portfolioPicker::before,#portfolioPicker::after {content:none}
#portfolioPicker .portfolio-home-topline {display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
#portfolioPicker .portfolio-brand {display:flex;align-items:center;gap:10px;color:#203a50}
#portfolioPicker .portfolio-brand img {width:32px;height:32px;object-fit:contain;border-radius:9px}
#portfolioPicker .portfolio-brand > span {font-size:21px;font-weight:650;letter-spacing:-.6px;line-height:1.1}
#portfolioPicker .portfolio-brand small {display:block;margin-top:4px;font-size:7px;letter-spacing:1.3px;font-weight:500;color:#61758a}
#portfolioPicker .portfolio-date {font-size:11px;color:#61758a;text-transform:capitalize;text-align:right}
#portfolioPicker .portfolio-heading {position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:center;gap:clamp(24px,4vw,60px);min-width:0;margin:0;padding:clamp(24px,3vw,40px);border:1px solid #2e4b68;border-radius:23px;background:linear-gradient(115deg,#14283e,#203e58);color:#fff;text-align:left}
#portfolioPicker .portfolio-heading::after {content:"";position:absolute;z-index:-1;inset:auto -180px -340px auto;width:650px;height:650px;border:1px solid #c3ddfa18;border-radius:50%;box-shadow:0 0 0 60px #c3ddfa05,0 0 0 120px #c3ddfa03;pointer-events:none}
#portfolioPicker .home-intro-copy {min-width:0}
#portfolioPicker .portfolio-eyebrow {display:flex;align-items:center;gap:9px;margin:0 0 20px;font-size:12px;font-weight:500;color:#c4d5e4}
#portfolioPicker .portfolio-eyebrow::before {content:"";width:6px;height:6px;border-radius:50%;background:#9dc5ff;box-shadow:0 0 12px #82b4ff44}
#portfolioPicker h1 {margin:0 0 20px;font-size:clamp(34px,3.6vw,48px);line-height:1.13;font-weight:600;letter-spacing:-.045em;color:#fff}
#portfolioPicker h1 em {font-style:normal;font-weight:450;color:#acd0ff}
#portfolioPicker .portfolio-heading p {max-width:48ch;margin:0;font-size:13px;line-height:1.8;color:#c5d5e3}
#portfolioPicker .home-visual {position:relative;isolation:isolate;min-width:0;padding:20px;border:1px solid #c9e0ff24;border-radius:16px;background:#ffffff05;box-shadow:0 12px 36px #0000000c}
#portfolioPicker .home-visual-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:8px;font-weight:550;letter-spacing:1.4px;color:#b7cce2}
#portfolioPicker .home-live-flow {display:grid;grid-template-columns:1fr;margin:12px 0 16px;color:#e0ebfa}
#portfolioPicker .home-flow-node {position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;min-height:38px;font-size:12px;font-weight:550}
#portfolioPicker .home-flow-node::before {content:"";position:absolute;z-index:-1;inset:-4px -8px;border-radius:10px;background:linear-gradient(90deg,#b6d7ff1c,transparent);opacity:0;pointer-events:none}
#portfolioPicker .home-flow-node::after {content:"";position:absolute;right:4px;width:4px;height:4px;border-radius:50%;background:#bddaff;opacity:.2;pointer-events:none}
#portfolioPicker .home-flow-symbol {display:inline-flex;flex:none}
#portfolioPicker .home-flow-node svg {box-sizing:content-box;width:18px;height:18px;padding:8px;border:1px solid #b4d0f12b;border-radius:10px;background:#b4d0f108;fill:none;stroke:#acd0ff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#portfolioPicker .home-flow-node small {display:block;margin-top:3px;font-size:10px;line-height:1.5;font-weight:400;color:#b2c7dd}
#portfolioPicker .home-flow-track {position:relative;width:1px;height:9px;margin:3px 0 3px 17px;background:#abc9ee35}
#portfolioPicker .home-flow-track::after {content:"";position:absolute;left:-1px;top:0;width:3px;height:3px;border-radius:50%;background:#c3dcff;opacity:0}
#portfolioPicker .portfolio-home-summary {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:13px 0 0;border:0;border-top:1px solid #c9e0ff20}
#portfolioPicker .portfolio-home-summary > span {display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 9px;padding:0;border:0;border-radius:0;background:transparent}
#portfolioPicker .portfolio-home-summary .home-stat-label {grid-column:1/-1;font-size:7px;letter-spacing:1.2px;color:#adc4dd}
#portfolioPicker .portfolio-home-summary strong {font-size:23px;line-height:1.2;font-weight:500;letter-spacing:-.7px;color:#fff;font-variant-numeric:tabular-nums}
#portfolioPicker .portfolio-home-summary > span > span:last-child {font-size:10px;line-height:1.4;color:#c0d0e2}
#portfolioPicker .portfolio-access {display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);align-items:center;gap:26px;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
#portfolioPicker .portfolio-access::before {content:none}
#portfolioPicker .portfolio-access-heading {margin:0;padding:0}
#portfolioPicker .portfolio-access-kicker {display:block;margin:0 0 7px;font-size:8px;letter-spacing:1.4px;font-weight:600;color:#5d7288}
#portfolioPicker .portfolio-section-title {margin:0;font-size:18px;line-height:1.35;font-weight:600;letter-spacing:-.4px;color:#243e55}
#portfolioPicker .portfolio-access-heading p {margin:7px 0 0;font-size:12px;line-height:1.6;color:#60758a}
#portfolioPicker .portfolio-list {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:0}
#portfolioPicker .portfolio-entry {position:relative;box-sizing:border-box;display:grid;grid-template-columns:44px minmax(0,1fr) 30px;grid-template-rows:auto auto;align-items:center;gap:7px 13px;width:100%;min-height:104px;margin:0;padding:17px 20px;border:1px solid #d9e4ee;border-radius:14px;background:#fff;box-shadow:0 3px 16px #24466505;text-align:left;cursor:pointer;transition:transform .22s,border-color .22s,box-shadow .22s}
#portfolioPicker .portfolio-entry::before {content:"";position:absolute;inset:18px auto 18px 0;width:2px;border-radius:2px;background:#6b98bd;opacity:0;transition:opacity .22s}
#portfolioPicker .portfolio-entry::after {content:none}
#portfolioPicker .portfolio-entry:hover {transform:translateY(-2px);border-color:#8aafca;box-shadow:0 8px 20px #2446650b}
#portfolioPicker .portfolio-entry:hover::before {opacity:1}
#portfolioPicker .portfolio-entry:focus-visible {outline:2px solid #547fa2;outline-offset:4px}
#portfolioPicker .portfolio-entry-label {grid-column:1/3;grid-row:1;font-size:8px;letter-spacing:1.15px;font-weight:550;color:#63778a}
#portfolioPicker .portfolio-avatar {grid-column:1;grid-row:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid #dfe9f1;border-radius:11px;background:#eff5fa;color:#466f90;font-size:20px;font-weight:500}
#portfolioPicker .portfolio-entry-info {grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:3px;min-width:0}
#portfolioPicker .portfolio-entry-info strong {font-size:18px;line-height:1.3;letter-spacing:-.3px;font-weight:600;color:#29475f;overflow-wrap:anywhere}
#portfolioPicker .portfolio-entry-quantity {font-size:11px;line-height:1.5;font-weight:400;color:#63778a}
#portfolioPicker .portfolio-entry-preview {display:none}
#portfolioPicker .portfolio-entry-action {grid-column:3;grid-row:1/3;display:flex;align-items:center;margin:0;padding:0;border:0;border-radius:0;background:transparent}
#portfolioPicker .portfolio-entry-action > span:first-child {display:none}
#portfolioPicker .portfolio-entry-arrow {display:grid;place-items:center;width:30px;height:32px;border:0;background:transparent;border-radius:8px;color:#426b8b;font-size:21px;line-height:1;transition:translate .22s}
#portfolioPicker .portfolio-entry:hover .portfolio-entry-arrow {translate:3px 0}
#portfolioPicker .portfolio-loading {margin:0;padding:25px 0;font-size:12px;color:#71899f}
#portfolioPicker .home-ambient {position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;border-radius:inherit}
#portfolioPicker .home-ambient i {position:absolute;right:0;top:-30%;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,#8bbdff18,transparent 70%)}
#portfolioPicker .home-ambient i+i {right:50%;top:65%;width:250px;height:250px;opacity:.6}
@keyframes homeEntrance {from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes homeStageFocus {0%,36%,100%{opacity:0}7%,26%{opacity:1}}
@keyframes homeNodeDot {0%,36%,100%{opacity:.2}7%,26%{opacity:1}}
@keyframes homeFlowConnect {0%,5%,100%{opacity:0;transform:translateY(0)}15%{opacity:1}30%{opacity:0;transform:translateY(9px)}}
@keyframes homeAmbientDrift {from{transform:translate3d(-10px,0,0)}to{transform:translate3d(14px,12px,0)}}
@media(prefers-reduced-motion:no-preference) {
 #portfolioPicker .portfolio-home-topline {animation:homeEntrance .4s ease-out backwards}
 #portfolioPicker .portfolio-heading {animation:homeEntrance .5s .06s ease-out backwards}
 #portfolioPicker .portfolio-access {animation:homeEntrance .5s .14s ease-out backwards}
 #portfolioPicker .home-ambient i {animation:homeAmbientDrift 18s ease-in-out infinite alternate}
 #portfolioPicker .home-flow-node::before {animation:homeStageFocus 9s ease-in-out infinite}
 #portfolioPicker .home-flow-node::after {animation:homeNodeDot 9s ease-in-out infinite}
 #portfolioPicker .home-flow-node:nth-of-type(2)::before,#portfolioPicker .home-flow-node:nth-of-type(2)::after {animation-delay:3s}
 #portfolioPicker .home-flow-node:nth-of-type(3)::before,#portfolioPicker .home-flow-node:nth-of-type(3)::after {animation-delay:6s}
 #portfolioPicker .home-flow-track::after {animation:homeFlowConnect 9s ease-in-out infinite;animation-delay:1.5s}
 #portfolioPicker .home-flow-track:nth-of-type(2)::after {animation-delay:4.5s}
}
#portfolioPicker[data-motion="paused"] .home-ambient i,
#portfolioPicker[data-motion="paused"] .home-live-flow *::before,
#portfolioPicker[data-motion="paused"] .home-live-flow *::after {animation-play-state:paused!important}
html[data-theme="dark"] #portfolioPicker .home-visual {background:#ffffff03;border-color:#ffffff20!important;box-shadow:none}
@media(min-width:1000px) {
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > .topbar {height:56px;min-height:56px}
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > footer {min-height:32px;padding:8px 0}
 #portfolioPicker {margin:12px auto;gap:16px;max-width:none}
 #portfolioPicker .portfolio-heading {min-height:clamp(260px,calc(100svh - 300px),460px);padding:26px 34px}
}
@media(min-width:1000px) and (max-height:640px) {
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > .topbar {height:48px;min-height:48px}
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) > footer {min-height:28px;padding:6px 0}
 #portfolioPicker {margin:10px auto;gap:12px}
 #portfolioPicker .portfolio-heading {min-height:240px;padding:18px 28px;gap:24px}
 #portfolioPicker h1 {font-size:36px;margin-bottom:16px}
 #portfolioPicker .portfolio-eyebrow {margin-bottom:15px}
 #portfolioPicker .home-visual {padding:10px 14px}
 #portfolioPicker .home-flow-node {min-height:28px;font-size:11px;line-height:1.35}
 #portfolioPicker .home-flow-node small {margin-top:1px;font-size:9px;line-height:1.3}
 #portfolioPicker .home-flow-node svg {width:14px;height:14px;padding:6px}
 #portfolioPicker .home-flow-track {height:5px;margin:1px 0 1px 13px}
 #portfolioPicker .home-live-flow {margin:6px 0}
 #portfolioPicker .portfolio-home-summary {padding-top:8px}
 #portfolioPicker .portfolio-home-summary strong {font-size:20px}
 #portfolioPicker .portfolio-entry {min-height:94px;padding:13px 17px}
}
@media(max-width:999px) {
 #portfolioPicker .portfolio-heading {grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:22px;padding:25px}
 #portfolioPicker h1 {font-size:36px}
 #portfolioPicker .home-visual {padding:15px}
}
@media(max-width:760px) {
 #portfolioPicker {gap:20px;margin:18px auto 24px}
 #portfolioPicker .portfolio-heading {grid-template-columns:minmax(0,1fr);gap:24px;padding:24px;border-radius:19px}
 #portfolioPicker h1 {font-size:clamp(32px,7.5vw,42px)}
 #portfolioPicker .portfolio-heading p {font-size:12px}
 #portfolioPicker .home-desktop-break {display:none}
 #portfolioPicker .portfolio-access {grid-template-columns:minmax(0,1fr);gap:14px}
 #portfolioPicker .portfolio-date {max-width:135px;font-size:10px;line-height:1.5}
 #portfolioPicker .portfolio-brand > span {font-size:20px}
 #portfolioPicker .portfolio-entry {min-height:100px;padding:16px 18px}
}
@media(prefers-reduced-motion:reduce) {
 #portfolioPicker .portfolio-entry:hover,#portfolioPicker .portfolio-entry:active {transform:none}
 #portfolioPicker .portfolio-entry:hover .portfolio-entry-arrow {translate:none}
}

/* assets/css/base-maintenance.css */
#companyPanel .base-cleanup {flex-basis:100%;width:100%;margin-top:12px;padding-top:11px;border-top:1px solid var(--border);min-width:0;}
#companyPanel .base-cleanup > summary {cursor:pointer;color:var(--muted);font-size:11px;line-height:1.6;}
#companyPanel .base-cleanup p {font-size:11px;line-height:1.65;margin:9px 0;color:var(--muted);}
#companyPanel .base-cleanup-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0;}
#companyPanel .base-cleanup-fields label {display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--text);min-width:0;}
#companyPanel .base-cleanup-fields select {width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;}
#companyPanel .base-cleanup button {width:auto;min-height:36px;padding:8px 11px;font-size:11px;border-radius:8px;cursor:pointer;}
#companyPanel .base-cleanup button:disabled {opacity:.5;cursor:default;}
#companyPanel .base-cleanup-confirmation {margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);}
#companyPanel #baseCleanupSummary {margin-top:0;color:var(--text);}
#companyPanel #confirmBaseCleanup {border:1px solid #9e5750!important;background:#9e5750!important;color:#fff!important;margin-right:7px;}
#companyPanel .base-cleanup :focus-visible {outline:2px solid #6485a6;outline-offset:3px;}
@media(max-width:560px) {#companyPanel .base-cleanup-fields {grid-template-columns:1fr;} #companyPanel .base-cleanup button {min-height:44px;}}

/* Aprendizado e classificação compartilham a linha em telas maiores. */
#companyPanel .tool-pane[data-pane="base"] {
  container-type:inline-size;
}
#companyPanel .tool-pane[data-pane="base"] .stack-forms {
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
}
@container (min-width:760px) {
 #companyPanel .tool-pane[data-pane="base"] .stack-forms {
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
#companyPanel .tool-pane[data-pane="base"] .stack-forms > .modern-form {
  grid-column:auto;
  min-width:0;
  min-height:0;
  padding:14px!important;
  gap:9px;
}
#companyPanel .tool-pane[data-pane="base"] .stack-forms > .base-management,
#companyPanel .tool-pane[data-pane="base"] .base-period-card {grid-column:1/-1;min-width:0;}
#companyPanel .tool-pane[data-pane="base"] .form-card-header {padding-bottom:12px;margin-bottom:2px;gap:10px;}
#companyPanel .tool-pane[data-pane="base"] .form-card-header strong {font-size:15px;}
#companyPanel .tool-pane[data-pane="base"] .form-card-header small {font-size:12px;line-height:1.5;}
#companyPanel .tool-pane[data-pane="base"] .file-drop-shell {min-width:0;padding:12px;gap:8px;}
#companyPanel .tool-pane[data-pane="base"] .file-drop-title {font-size:12px;}
#companyPanel .tool-pane[data-pane="base"] .file-drop-hint {font-size:11px;line-height:1.5;}
#companyPanel .tool-pane[data-pane="base"] input[type="file"] {width:100%;min-width:0;max-width:100%;font-size:12px;}
#companyPanel .tool-pane[data-pane="base"] .file-selection {max-height:160px;}
#companyPanel .tool-pane[data-pane="base"] .modern-form > .helper:empty {display:none;}
#companyPanel .tool-pane[data-pane="base"] button[type="submit"] {min-height:42px;padding:10px 12px;font-size:12px;}

/* Meses salvos: somente consulta, junto aos indicadores da base. */
#companyPanel .base-saved-periods {clear:both;margin-top:14px;padding-top:12px;border-top:1px solid #d7e2ed;min-width:0;}
#companyPanel .saved-periods-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
#companyPanel .saved-periods-heading>strong {font-size:12px;color:var(--text);font-weight:600;}
#companyPanel .saved-periods-heading button {width:auto;min-height:34px;padding:7px 11px!important;font-size:11px;}
#companyPanel .base-saved-periods #savedPeriodsMessage {font-size:11px;line-height:1.6;color:var(--muted);margin:8px 0 0!important;}
#companyPanel #savedPeriodsList {display:grid;gap:9px;margin-top:12px;}
#companyPanel #savedPeriodsList[hidden] {display:none;}
#companyPanel .saved-period-bank {display:grid;grid-template-columns:minmax(130px,190px) minmax(0,1fr);align-items:start;gap:10px;padding:9px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);min-width:0;}
#companyPanel .saved-period-bank>strong {font-size:11px;line-height:1.6;color:var(--text);font-weight:550;padding-top:3px;overflow-wrap:anywhere;}
#companyPanel .saved-period-months {display:flex;flex-wrap:wrap;gap:5px;min-width:0;}
#companyPanel .saved-period-months>span {display:block;padding:4px 7px;border:1px solid var(--border);border-radius:5px;background:var(--surface-2);color:var(--muted);font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums;}
@media(max-width:600px){#companyPanel .saved-period-bank {grid-template-columns:minmax(0,1fr);gap:7px;}#companyPanel .saved-periods-heading button {min-height:44px;}}

/* assets/css/admin-auth.css */
#adminAuthDialog {box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #dce5ef;border-radius:17px;background:#fff;color:#2e465e;box-shadow:0 20px 70px #142c4a26;}
#adminAuthDialog::backdrop {background:#14243b55;backdrop-filter:blur(3px);}
#adminAuthDialog #adminAuthForm {display:block;margin:0;}
#adminAuthDialog .admin-auth-heading {display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;}
#adminAuthDialog .admin-auth-badge {display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#edf3f9;color:#6483a0;}
#adminAuthDialog svg {width:19px;height:19px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;}
#adminAuthDialog #adminAuthClose {display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#8292a2;font-size:22px;cursor:pointer;}
#adminAuthDialog h2 {margin:0 0 7px;font-size:18px;letter-spacing:-.4px;font-weight:600;}
#adminAuthDialog p {margin:0 0 20px;font-size:12px;line-height:1.7;color:#7b8c9d;}
#adminAuthDialog label {display:block;margin-bottom:7px;font-size:11px;font-weight:500;color:#61778e;}
#adminAuthDialog input {box-sizing:border-box;width:100%;height:42px;padding:10px 12px;border:1px solid #bfcfdf;border-radius:8px;background:#fafcfe;color:#2d465e;font-size:14px;}
#adminAuthDialog #adminAuthError {margin:9px 0 0;color:#a4554c;font-size:11px;}
#adminAuthDialog .admin-auth-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:22px;}
#adminAuthDialog .admin-auth-actions button {min-height:38px;padding:8px 14px;border:1px solid #dce5ef;border-radius:8px;background:#fff;color:#65809a;font-size:12px;cursor:pointer;}
#adminAuthDialog #adminAuthConfirm {background:#315979;border-color:#315979;color:#fff;}
#adminAuthDialog :focus-visible {outline:2px solid #7095b5;outline-offset:3px;}
@media(max-width:560px){#adminAuthDialog .admin-auth-actions button {min-height:44px;}}

#adminAuthDialog .admin-password-field {position:relative;}
#adminAuthDialog .admin-password-field input {padding-right:48px;}
#adminAuthDialog #adminPasswordToggle {position:absolute;right:3px;top:3px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.7;}
#adminAuthDialog #adminPasswordToggle:hover {opacity:1;background:color-mix(in srgb,currentColor 8%,transparent);}
#adminPasswordToggle .password-eye-slash {display:none;}
#adminPasswordToggle[aria-pressed="true"] .password-eye-slash {display:block;}
#adminAccess::-ms-reveal {display:none;}

/* assets/css/tool-preparation.css */
/* Company preparation: consistent spacing and responsive upload components.
   Results, assistant windows and accounting behavior are outside this scope. */
#companyPanel .panel-head{padding:16px 20px!important;margin-bottom:12px;gap:12px}
#companyPanel .panel-head h2{font-size:20px;line-height:1.35;margin:3px 0;letter-spacing:-.3px}
#companyPanel .panel-head p{margin:0}
#companyPanel .panel-quick-info{margin-top:7px;gap:6px}
#companyPanel .back-button{margin-bottom:10px}
#companyPanel .tool-tabs{margin:10px 0 16px;padding:0;gap:8px}
#companyPanel .tool-tab{min-height:42px;padding:10px 14px}
#companyPanel .tool-card{row-gap:16px}
#companyPanel .tool-card>.tool-intro:first-child{padding:16px 20px!important;min-height:0}
#companyPanel .tool-intro .tool-visual-icon{width:34px!important;height:34px!important;margin:0 12px 4px 0!important;border-radius:10px!important}
#companyPanel .tool-intro h3{font-size:18px;margin:2px 0 5px;line-height:1.35}
#companyPanel .tool-intro>p{font-size:12px;line-height:1.65;margin:4px 0!important}
#companyPanel .tool-intro .tool-feature-list{gap:6px 16px;margin-top:8px;font-size:11px}
#companyPanel .tool-intro .tool-flow{margin-top:10px;padding-top:9px}
#companyPanel .tool-intro #baseStats{margin-top:8px}
#companyPanel form.preparation-form{container:razync-preparation / inline-size;padding:18px!important;gap:12px;min-width:0;border-radius:14px!important}
#companyPanel .preparation-form>.form-card-header{padding-bottom:12px;margin-bottom:0;gap:10px}
#companyPanel .preparation-form>.form-card-header strong{font-size:15px;line-height:1.4}
#companyPanel .preparation-form>.form-card-header small{font-size:12px;line-height:1.55;margin-top:3px}
#companyPanel .preparation-form .file-drop-shell{container:razync-upload / inline-size;display:grid;align-content:start;padding:12px;gap:8px;min-width:0;border-radius:10px;box-sizing:border-box}
/* Selected files are shown in the cards below, not repeated in the native control. */
#companyPanel .preparation-form input[type=file]{display:block;width:100%;max-width:100%;min-width:0;min-height:38px;font-size:0!important;color:transparent!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#companyPanel .preparation-form input[type=file]::file-selector-button{font-family:inherit;font-weight:600;font-size:12px;padding:9px 13px;margin:0 8px 0 0;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface);cursor:pointer;min-height:38px}
#companyPanel .preparation-form .file-drop-hint{font-size:11px;line-height:1.55;color:var(--muted)}
#companyPanel .preparation-form>.helper:empty{display:none}
#companyPanel .preparation-form .bank-selector{padding:12px;gap:10px}
#companyPanel .preparation-form .bank-selector-options{gap:8px}
#companyPanel .preparation-form .bank-choice{padding:9px 11px;min-height:42px}
#companyPanel .preparation-form .bank-select-all{min-height:38px;padding:8px 10px}
#companyPanel .preparation-form .standard-period-card{margin:4px 0;padding:12px;min-width:0}
#companyPanel .preparation-form .standard-period-card .period-fields{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#companyPanel .preparation-form .standard-period-card .period-fields>div{gap:5px}
#companyPanel .preparation-form .standard-period-card p{margin-top:8px;font-size:11px;line-height:1.55}
#companyPanel .preparation-form .period-fields input{min-height:42px;box-sizing:border-box;width:100%;min-width:0}
#companyPanel .preparation-form>button[type=submit]{min-height:42px;padding:10px 14px}
#companyPanel .preparation-form #advancedFields,#companyPanel .preparation-form #reconcileStatementFields{grid-template-columns:minmax(0,1fr);gap:14px}
#companyPanel .preparation-form .reconcile-bank-file{padding:12px;gap:8px}
#companyPanel .preparation-form .file-selection{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;max-height:260px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-width:0;box-sizing:border-box}
#companyPanel .preparation-form .file-selection-summary{grid-column:1/-1;align-items:center;color:var(--muted);padding:2px 0;font-size:11px}
#companyPanel .preparation-form .file-selection-item{display:grid;grid-template-columns:16px minmax(0,1fr) 30px;align-items:start;gap:8px;min-width:0;padding:10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);box-sizing:border-box}
#companyPanel .preparation-form .file-selection-item>i{grid-column:1;grid-row:1;width:16px;height:18px;margin-top:2px}
#companyPanel .preparation-form .file-selection-item>span{grid-column:2;grid-row:1;display:grid;gap:4px;min-width:0;overflow:hidden}
#companyPanel .preparation-form .file-selection-item strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;overflow:hidden;overflow-wrap:anywhere;white-space:normal;font-size:12px;line-height:1.45}
#companyPanel .preparation-form .file-selection-item small{display:block;overflow-wrap:anywhere;font-size:10px;line-height:1.5;color:var(--muted)}
#companyPanel .preparation-form .file-selection-remove{grid-column:3;grid-row:1;justify-self:end;align-self:start;min-height:30px;width:30px;padding:0!important;border-radius:7px}
#companyPanel .preparation-form :is(button,input,select):disabled{cursor:not-allowed;opacity:.56}
#companyPanel .preparation-form :is(button,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@container razync-upload (min-width:360px){#companyPanel .preparation-form .file-selection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container razync-preparation (min-width:620px){#companyPanel .preparation-form #advancedFields,#companyPanel .preparation-form #reconcileStatementFields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container razync-preparation (max-width:300px){#companyPanel .preparation-form .standard-period-card .period-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#companyPanel .panel-head{padding:14px 16px!important}#companyPanel .panel-head h2{font-size:18px;overflow-wrap:anywhere}#companyPanel .tool-tabs{gap:6px}#companyPanel .tool-tab{min-height:44px;padding:10px 12px}#companyPanel .tool-card>.tool-intro:first-child{padding:14px 16px!important}#companyPanel form.preparation-form{padding:15px!important}#companyPanel .preparation-form>button[type=submit],#companyPanel .preparation-form .bank-select-all{min-height:44px}}

/* Auditoria da leitura, separada da tabela de conferência diária. */
.statement-reading {margin-top:16px;padding:14px 16px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;min-width:0;}
.statement-reading>summary {font-size:12px;font-weight:600;color:#456780;cursor:pointer;line-height:1.6;}
.statement-reading>p {font-size:11px!important;color:#7a8da1;line-height:1.7;margin:12px 0;}
.statement-reading-controls {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;}
.statement-reading-controls input {flex:1;min-width:180px;min-height:40px;padding:9px 12px;border:1px solid #cfdde9;border-radius:8px;font-size:12px;background:#fafcfe;}
.statement-reading-count {font-size:11px;color:#75899d;}
.statement-reading-scroll {max-height:420px;overflow:auto;border:1px solid #e1e8f0;border-radius:8px;}
.statement-reading-table {width:100%;min-width:720px;border-collapse:collapse;font-size:12px;}
.statement-reading-table th,.statement-reading-table td {padding:10px 12px;border-bottom:1px solid #e8edf3;text-align:left;line-height:1.6;}
.statement-reading-table th {position:sticky;top:0;background:#f0f5fa;color:#4a637b;font-size:11px;z-index:1;}
.statement-reading-table td.numeric {text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
.statement-reading>summary:focus-visible,.statement-reading-controls input:focus-visible {outline:2px solid #5d83a5;outline-offset:3px;}
@media(max-width:600px){.statement-reading {padding:12px;}.statement-reading-controls input {min-height:44px;}}

/* assets/css/company-directory.css */
/* Portfolio directory: one compact toolbar and a consistent company identity. */
#companiesView {--directory-accent:#426baf;--directory-soft:#edf3fc;--directory-line:#dce5f0;--directory-muted:#667991}
#companiesView .hero.directory-hero {max-width:none;padding:10px 0 16px;margin:0;border:0;background:none}
#companiesView .portfolio-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px;padding:0;border:0}
#companiesView .portfolio-back {display:inline-flex;align-items:center;min-height:28px;padding:5px 0;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;cursor:pointer;transition:color .18s,translate .18s}
#companiesView .portfolio-back:hover {color:var(--directory-accent);translate:-3px 0}
#companiesView .portfolio-owner {display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--border);border-radius:20px;color:var(--muted);font-size:10px}
#companiesView .portfolio-owner::before {content:"";width:5px;height:5px;border-radius:50%;background:var(--directory-accent)}
#companiesView .directory-intro {display:flex;align-items:center;justify-content:space-between;gap:32px}
#companiesView .directory-title {min-width:0}
#companiesView .directory-title .eyebrow {margin:0 0 7px;color:var(--directory-accent);font-size:9px;letter-spacing:1.7px;font-weight:650}
#companiesView .directory-title h1 {margin:0 0 7px;font-size:clamp(24px,2.4vw,32px);font-weight:650;letter-spacing:-1px;line-height:1.2;color:var(--text)}
#companiesView .directory-title p {margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
#companiesView .overview {display:flex;flex:none;gap:0;margin:0;padding:0;border:0;background:none}
#companiesView .overview-card {display:block;flex:none;min-height:0;padding:0 24px!important;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none}
#companiesView .overview-card:first-child {padding-left:0!important;border:0}
#companiesView .overview-card:last-child {padding-right:0!important}
#companiesView .overview-card > div {display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#companiesView .overview-card strong {color:var(--text);font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
#companiesView .overview-card div>span {font-size:10px;line-height:1.5;color:var(--muted);white-space:nowrap}
#companiesView .workspace {padding:0 0 32px;border:0}
#companiesView .search-card {margin:0 0 14px;padding:12px 18px 0;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 3px 18px #203c5703}
#companiesView .directory-controls {display:grid;grid-template-columns:minmax(220px,1fr) 180px 190px auto;align-items:center;gap:10px;padding:0;border:0;background:transparent!important;box-shadow:none}
#companiesView .directory-controls :is(input,select) {min-width:0;width:100%;min-height:42px;font-size:12px;font-weight:450;line-height:1.4}
#companiesView .directory-controls select {padding:10px 30px 10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);cursor:pointer}
#companiesView .directory-controls .search-wrap {display:flex;align-items:center;gap:10px;min-width:0;height:44px;padding:0 8px 0 13px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--muted);transition:border-color .2s,box-shadow .2s}
#companiesView .directory-controls .search-wrap:focus-within {border-color:#779bd2;box-shadow:0 0 0 3px #426baf12}
#companiesView .directory-search-icon {display:grid;place-items:center;flex:none;width:18px;height:18px}
#companiesView .directory-search-icon svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
#companiesView .directory-controls .search-wrap input {flex:1;min-width:0;width:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important}
#companiesView #companySearchClear {display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:7px;background:transparent!important;color:var(--muted)!important;font-size:21px;line-height:1;cursor:pointer}
#companiesView #companySearchClear:hover {background:var(--accent-soft)!important}
#companiesView #addCompany {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:10px 13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:11px;white-space:nowrap;cursor:pointer;transition:border-color .2s,background .2s}
#companiesView #addCompany > span {font-size:17px;line-height:1;color:var(--directory-accent)}
#companiesView #addCompany:hover {border-color:#9bb4d6;background:var(--directory-soft)}
#companiesView .directory-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;border-top:1px solid var(--border);padding:10px 0}
#companiesView .company-filters {display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0}
#companiesView .company-filter {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;line-height:1.4;cursor:pointer;white-space:nowrap;transition:background .18s,color .18s,border-color .18s}
#companiesView .company-filter:hover {background:var(--bg);color:var(--text)}
#companiesView .company-filter.active {background:var(--directory-soft);color:#365f9e;border-color:#d3e0f4;font-weight:600}
#companiesView .filter-count {display:inline-grid;place-items:center;min-width:21px;height:19px;padding:0 4px;border-radius:5px;background:#647c9410;color:inherit;font-size:9px;font-weight:600;font-variant-numeric:tabular-nums}
#companiesView .directory-views {display:flex;align-items:center;flex:none;gap:2px;margin:0;padding:3px;border:1px solid var(--border);border-radius:9px;background:var(--bg)}
#companiesView .directory-views button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:5px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:10px;cursor:pointer;transition:background .18s,color .18s}
#companiesView .directory-views button[aria-pressed=true] {background:var(--surface);border-color:var(--border);color:var(--text);box-shadow:0 1px 4px #203c5707}
#companiesView .directory-views svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
#companiesView .directory-results-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 10px}
#companiesView .directory-results-heading h2 {margin:0;color:var(--text);font-size:13px;font-weight:600;letter-spacing:-.2px}
#companiesView .search-meta {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;padding:0;border:0}
#companiesView #companyCount {color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
#companiesView .directory-reset {min-height:30px;padding:5px 8px;border:0;border-radius:7px;background:var(--directory-soft);color:var(--directory-accent);font-size:10px;cursor:pointer}
#companiesView #companyGrid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:14px;min-width:0;padding:0;border:0;border-radius:0;background:transparent!important;overflow:visible}
#companiesView #companyGrid .company-card.company-row {position:relative;display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0;min-height:184px;height:auto;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 2px 8px #203c5703;text-align:left;cursor:pointer;animation:none;transition:translate .22s ease,border-color .22s,box-shadow .22s,background .22s;transform:none;isolation:isolate}
#companiesView .company-row::before {content:"";position:absolute;inset:-1px 16px auto;height:1px;background:linear-gradient(90deg,transparent,#7ea4dc,transparent);opacity:0;transition:opacity .22s;pointer-events:none}
#companiesView .company-row-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#companiesView .company-row-code {display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:39px;width:auto;height:28px;padding:0 9px;border:1px solid #d9e5f5;border-radius:7px;background:#eef4fc;color:#466da8;font-size:11px;font-weight:650;letter-spacing:.2px;font-variant-numeric:tabular-nums}
#companiesView .company-row-main {display:block;flex:1;min-width:0}
#companiesView .company-row-name {display:block;margin:0;color:var(--text);font-size:12px;font-weight:600;line-height:1.6;letter-spacing:.05px;white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere}
#companiesView .company-row-meta {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px;color:var(--muted)}
#companiesView .company-row-regime {font-size:9px;font-weight:500;line-height:1.5;letter-spacing:.45px;color:var(--muted)}
#companiesView .mini-status {display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;font-size:9px;font-weight:450;line-height:1.5;color:var(--muted)}
#companiesView .mini-status::before {content:"";flex:none;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.7}
#companiesView .company-row[data-has-tools=true] .mini-status {color:#5c799e}
#companiesView .company-row-footer {display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:11px;border-top:1px solid var(--border)}
#companiesView .company-row-details {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:var(--muted);font-size:10px;font-weight:450;line-height:1.6}
#companiesView .company-row-details > span+span {display:inline-flex;align-items:center;gap:8px}
#companiesView .company-row-details > span+span::before {content:"";width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.45}
#companiesView .company-row[data-has-tools=false] .company-tool-count {color:var(--muted)}
#companiesView .company-row-action {display:flex;align-items:center;flex:none;gap:7px;color:var(--directory-accent)}
#companiesView .company-row-action > span {display:none;font-size:10px;white-space:nowrap}
#companiesView .company-row-action b {display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:7px;background:var(--bg);color:var(--directory-accent);font-size:16px;font-weight:400;transition:translate .22s,background .22s}
#companiesView #companyGrid .company-row:hover {border-color:#a4bbdb;box-shadow:0 9px 23px #203c570b;translate:0 -3px;background:var(--surface)}
#companiesView .company-row:hover::before {opacity:1}
#companiesView .company-row:hover .company-row-action b {translate:2px -2px;background:var(--directory-soft)}
#companiesView #companyGrid .company-row:active {translate:0 0}
#companiesView #companyGrid .company-row:focus-visible {outline:2px solid #6e97cf;outline-offset:3px;z-index:1}
#companiesView #companyGrid[data-view=list] {grid-template-columns:minmax(0,1fr);gap:8px}
#companiesView #companyGrid[data-view=list] .company-row {display:grid;grid-template-columns:145px minmax(0,1fr) 230px;align-items:center;gap:20px;min-height:86px;padding:15px 18px}
#companiesView #companyGrid[data-view=list] .company-row-heading {align-items:flex-start;flex-direction:column;gap:5px}
#companiesView #companyGrid[data-view=list] .company-row-footer {height:100%;border:0;border-left:1px solid var(--border);padding:0 0 0 18px}
#companiesView #companyGrid[data-view=list] .company-row-details {flex-direction:column;align-items:flex-start;gap:2px}
#companiesView #companyGrid[data-view=list] .company-row-details > span+span::before {display:none}
#companiesView #companyGrid[data-view=list] .company-row-action > span {display:block}
#companiesView .directory-empty {grid-column:1/-1;display:grid;justify-items:center;gap:12px;padding:48px 20px;border:1px dashed var(--border);border-radius:14px;text-align:center;background:var(--surface)}
#companiesView .directory-empty strong {color:var(--text);font-size:16px;font-weight:600}
#companiesView .directory-empty p {max-width:450px;margin:0;color:var(--muted);font-size:13px;line-height:1.7}
#companiesView .directory-empty button {min-height:40px;padding:9px 14px;border:1px solid var(--border);border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:12px;cursor:pointer}
html[data-theme=dark] #companiesView {--directory-accent:#9ebff2;--directory-soft:#1b293e;--directory-line:#313642}
html[data-theme=dark] #companiesView .directory-hero .overview-card {background:transparent!important;box-shadow:none}
html[data-theme=dark] #companiesView .workspace .directory-controls {background:transparent!important}
html[data-theme=dark] #companiesView .workspace .portfolio-back {background:transparent!important}
html[data-theme=dark] #companiesView .workspace .company-filter {border-color:transparent!important;background:transparent!important}
html[data-theme=dark] #companiesView .workspace .company-filter.active {border-color:#415778!important;background:#1b293e!important;color:#c0d6f9!important}
html[data-theme=dark] #companiesView .workspace .filter-count {background:#ffffff09}
html[data-theme=dark] #companiesView #companyGrid .company-row {border-color:#303239!important;background:#151619!important;box-shadow:0 2px 8px #00000008!important}
html[data-theme=dark] #companiesView #companyGrid .company-row:hover {border-color:#596c87!important;background:#1a1e25!important;box-shadow:0 9px 23px #0000001c!important}
html[data-theme=dark] #companiesView #companyGrid .company-row-code {background:#1c2839!important;border-color:#2d405b!important;color:#acc9f0!important}
html[data-theme=dark] #companiesView #companyGrid .company-row-footer {border-color:#2a2e36!important}
html[data-theme=dark] #companiesView #companyGrid .mini-status {background:transparent!important;color:#9eafc5!important}
html[data-theme=dark] #companiesView #companyGrid .company-row-action b {background:#202631!important;color:#acc9f0!important}
@keyframes directoryArrival {from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:no-preference) {
 #companiesView.active .directory-hero:not([hidden]) {animation:directoryArrival .38s ease-out both}
 #companiesView.active .workspace:not([hidden]) .search-card {animation:directoryArrival .4s .05s ease-out both}
 #companiesView #companyGrid:not([data-searching=true]) .company-row[data-reveal=true] {animation:directoryArrival .36s calc(var(--row-index,0)*28ms) cubic-bezier(.2,.7,.2,1) backwards}
}
@media(min-width:1700px) {#companiesView #companyGrid[data-view=cards] {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px) {
 #companiesView .overview-card {padding:0 17px!important}
 #companiesView .directory-controls {grid-template-columns:minmax(180px,1fr) 155px 165px auto}
 #companiesView #companyGrid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:761px) and (max-width:860px) {
 #companiesView .directory-controls {grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
 #companiesView #addCompany {grid-column:3;grid-row:2}
 #companiesView #regimeFilter {grid-column:1;grid-row:2}
 #companiesView #companySort {grid-column:2;grid-row:2}
 #companiesView .directory-controls .search-wrap {grid-column:1/-1}
}
@media(max-width:760px) {
 #companiesView .hero.directory-hero {padding:12px 0 18px}
 #companiesView .portfolio-toolbar {margin-bottom:16px}
 #companiesView .directory-intro {align-items:flex-start;flex-direction:column;gap:18px}
 #companiesView .directory-title h1 {font-size:26px}
 #companiesView .overview {width:100%;justify-content:flex-start}
 #companiesView .overview-card {flex:1;padding:0 14px!important}
 #companiesView .overview-card strong {font-size:22px}
 #companiesView .overview-card div>span {font-size:10px}
 #companiesView .search-card {padding:13px 13px 0;border-radius:13px;margin-bottom:18px}
 #companiesView .directory-controls {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #companiesView .directory-controls .search-wrap {grid-column:1/-1}
 #companiesView #regimeFilter {grid-column:1;grid-row:2}
 #companiesView #companySort {grid-column:2;grid-row:2}
 #companiesView #addCompany {grid-column:1/-1;grid-row:3;min-height:36px;padding:7px 12px}
 #companiesView .directory-controls :is(input,select) {font-size:16px;min-height:42px}
 #companiesView .directory-toolbar {align-items:flex-start;flex-wrap:wrap;gap:10px;margin-top:12px;padding:10px 0}
 #companiesView .company-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:5px}
 #companiesView .company-filter {justify-content:space-between;font-size:11px;min-height:38px;padding:8px 9px}
 #companiesView .directory-views {margin-left:auto}
 #companiesView .directory-results-heading h2 {font-size:12px}
 #companiesView .search-meta {gap:4px}
 #companiesView #companyGrid {grid-template-columns:minmax(0,1fr);gap:11px}
 #companiesView #companyGrid .company-card.company-row {min-height:170px;padding:16px;gap:13px}
 #companiesView .company-row-name {font-size:13px}
 #companiesView .company-row-action > span {display:block}
 #companiesView #companyGrid[data-view=list] .company-row {grid-template-columns:62px minmax(0,1fr);min-height:120px;gap:10px 12px;padding:14px}
 #companiesView #companyGrid[data-view=list] .company-row-heading {grid-column:1;grid-row:1/3;align-self:start}
 #companiesView #companyGrid[data-view=list] .mini-status {font-size:8px}
 #companiesView #companyGrid[data-view=list] .company-row-footer {grid-column:2;height:auto;border:0;border-top:1px solid var(--border);padding:8px 0 0}
 #companiesView #companyGrid[data-view=list] .company-row-details {flex-direction:row;flex-wrap:wrap;gap:4px 8px;font-size:9px}
 #companiesView #companyGrid[data-view=list] .company-row-action > span {display:none}
}
@media(hover:none) {#companiesView #companyGrid .company-row:hover {translate:0 0;box-shadow:none}}
@media(prefers-reduced-motion:reduce) {
 #companiesView .directory-hero,#companiesView .search-card,#companiesView #companyGrid .company-row {animation:none!important;transition:none!important}
 #companiesView .company-row-action b,#companiesView .company-row::before,#companiesView .portfolio-back {transition:none}
 #companiesView #companyGrid .company-row:hover,#companiesView .company-row:hover .company-row-action b,#companiesView .portfolio-back:hover {translate:none}
}

/* assets/css/base-investigation.css */
/* Same contextual window pattern as the fiscal assistant; no modal blocks the workbook. */
#baseAiHost .base-ai-launcher{position:fixed;right:24px;bottom:84px;z-index:82;display:flex;align-items:center;gap:8px;min-height:46px;padding:12px 18px;border:1px solid var(--border);border-radius:24px;background:var(--accent-soft);color:var(--text);box-shadow:0 8px 32px #101b3220;font-size:12px;cursor:pointer}
#baseAiHost .base-ai-window{position:fixed;inset:auto 20px 24px auto;z-index:83;display:flex;flex-direction:column;width:min(760px,calc(100vw - 40px));height:min(700px,calc(100dvh - 116px));max-height:calc(100dvh - 116px);margin:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 20px 64px #101b3230,0 2px 8px #101b3210;overflow:hidden}
#baseAiHost .base-ai-window.is-expanded{width:min(1100px,calc(100vw - 40px));height:calc(100dvh - 116px)}
#baseAiHost .base-ai-window[hidden],#baseAiHost .base-ai-launcher[hidden]{display:none!important}
#baseAiHost .base-ai-window-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:14px 18px;border-bottom:1px solid var(--border)}
#baseAiHost .base-ai-window-header strong{font-size:14px}#baseAiHost .base-ai-window-header small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}
#baseAiHost .base-ai-window-actions{display:flex;gap:5px}#baseAiHost .base-ai-window-actions button{display:grid;place-items:center;min-height:32px;width:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:21px;cursor:pointer}
#baseAiHost .base-ai-window-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px}
#baseAiHost .base-ai-window-body h3{margin:0 0 9px;font-size:16px}#baseAiHost .base-ai-window-body p{font-size:12px;line-height:1.65;color:var(--muted);margin:8px 0}
#baseAiHost .base-ai-window-body .base-investigation-scroll{max-height:none;overflow:auto}#baseAiHost .base-ai-window-body table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px}
#baseAiHost .base-ai-window-body th{padding:10px;text-align:left;background:var(--surface-2)}#baseAiHost .base-ai-window-body td{padding:12px 10px;border-top:1px solid var(--border);vertical-align:top}
#baseAiHost .base-ai-window-body td:nth-child(2){width:28%}#baseAiHost .base-ai-window-body td:nth-child(3){width:36%}#baseAiHost .base-ai-window-body td:nth-child(4){min-width:170px}
#baseAiHost .base-ai-window-body input[type=text]{width:140px;min-height:38px;padding:8px;font-size:13px}#baseAiHost .base-ai-window-body small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:5px}
#baseAiHost .base-ai-window-body button{min-height:34px;font-size:11px;padding:7px 10px;cursor:pointer}#baseAiHost .base-ai-window-body td button{margin-top:8px}
#baseAiHost .base-ai-window-body details{margin-top:8px}#baseAiHost .base-ai-window-body summary{font-size:11px;color:var(--accent);cursor:pointer}
#baseAiHost .base-account-history{margin-top:10px;padding:10px;border-left:2px solid var(--accent);background:var(--surface-2);min-width:190px;max-width:320px;overflow-wrap:anywhere}
#baseAiHost .base-account-history[hidden]{display:none!important}#baseAiHost .base-account-history-entry{border-top:1px solid var(--border);padding:7px 0;margin-top:7px}
@media(max-width:760px){#baseAiHost .base-ai-window,#baseAiHost .base-ai-window.is-expanded{inset:76px 8px 8px;width:calc(100vw - 16px);height:auto;max-height:none;border-radius:13px}#baseAiHost .base-ai-window-body{padding:12px}#baseAiHost .base-ai-launcher{right:16px;bottom:80px}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-ai-window:not([hidden]){animation:razyncAppear .2s ease-out}#baseAiHost .base-ai-launcher{transition:translate .18s}#baseAiHost .base-ai-launcher:hover{translate:0 -2px}}
/* Compact floating review: one pending item compared directly with learned histories. */
#baseAiHost .base-ai-launcher{right:24px;bottom:84px;gap:10px;min-height:44px;padding:8px 12px 8px 9px;border-radius:13px;background:var(--surface);box-shadow:0 6px 22px #14243b16;font-weight:550}
#baseAiHost .base-ai-launcher-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:16px}
#baseAiHost .base-ai-launcher-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:10px}
#baseAiHost .base-ai-window{width:min(1040px,calc(100vw - 40px))}
#baseAiHost .base-ai-window.is-expanded{width:min(1200px,calc(100vw - 40px))}
#baseAiHost .base-review-intro{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px}
#baseAiHost .base-review-intro h3{font-size:16px;margin:0}
#baseAiHost .base-review-progress{margin:0!important;font-variant-numeric:tabular-nums;font-size:11px!important}
#baseAiHost .base-review-ai{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;padding:9px 0;border-bottom:1px solid var(--border)}
#baseAiHost .base-review-status{font-size:11px!important;margin:0!important;line-height:1.6}
#baseAiHost .base-review-ai button{flex:none;min-height:30px;font-size:10px}
#baseAiHost .base-review-filters{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}
#baseAiHost .base-review-filters button{min-height:30px;padding:5px 9px;border-radius:8px;font-size:10px}
#baseAiHost .base-review-filters button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
#baseAiHost .base-review-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:start;min-width:0}
#baseAiHost .base-review-queue{display:flex;flex-direction:column;gap:6px;max-height:430px;overflow:auto;padding:0 4px 4px 0;scrollbar-width:thin}
#baseAiHost .base-review-queue .base-review-item{display:grid;gap:5px;min-width:0;width:100%;padding:11px;text-align:left;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--text)}
#baseAiHost .base-review-item[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
#baseAiHost .base-review-item strong{font-size:10px;line-height:1.5}
#baseAiHost .base-review-item>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
#baseAiHost .base-review-item small{margin:0;font-size:10px}
#baseAiHost .base-review-detail{min-width:0}
#baseAiHost .base-history-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:9px}
#baseAiHost .base-history-comparison>section{min-width:0;border:1px solid var(--border);border-radius:12px;padding:14px;overflow-wrap:anywhere}
#baseAiHost .base-history-comparison h4{font-size:11px;font-weight:650;line-height:1.5;margin:0 0 12px;color:var(--muted)}
#baseAiHost .base-history-text{font-size:12px!important;line-height:1.85!important;color:var(--text)!important;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 10px!important}
#baseAiHost .base-history-text mark{padding:1px 2px;border-radius:3px;background:var(--accent-soft);color:var(--accent);font-weight:600}
#baseAiHost .base-history-received .base-investigation-grade{display:block;margin-top:16px;font-size:11px;color:var(--accent)}
#baseAiHost .base-history-received label{display:grid;gap:6px;margin-top:14px;font-size:11px}
#baseAiHost .base-history-received input[type=text]{width:100%;box-sizing:border-box}
#baseAiHost .base-history-received label.base-review-approval{display:flex;align-items:center;gap:7px;line-height:1.5}
#baseAiHost .base-review-approval input{width:16px;height:16px;accent-color:var(--accent);flex:none}
#baseAiHost .base-history-saved .base-account-history{padding:0;margin:0;border:0;background:transparent;min-width:0;max-width:none}
#baseAiHost .base-account-history-entry{padding:12px 0;margin-top:12px}
#baseAiHost .base-account-history-entry .base-history-text{margin-bottom:4px!important}
#baseAiHost .base-account-candidates{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}
#baseAiHost .base-account-candidates button{font-size:10px;min-height:30px;padding:5px 8px}
#baseAiHost .base-review-navigation{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
#baseAiHost .base-review-navigation button:last-child{margin-left:auto;background:var(--accent-soft);color:var(--accent);font-weight:600}
#baseAiHost .base-review-limitations{font-size:10px!important;line-height:1.6!important;margin:16px 0 10px!important}
#baseAiHost .base-review-footer{position:sticky;bottom:-18px;z-index:2;padding:12px 0 2px;background:var(--surface);border-top:1px solid var(--border);margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#baseAiHost .base-review-footer p{flex-basis:100%;margin:2px 0!important;font-size:11px!important}
#baseAiHost .base-ai-window-body .base-investigation-learn{font-size:11px;line-height:1.6;display:flex;align-items:center;gap:7px;margin-top:12px}
@media(max-width:760px){#baseAiHost .base-ai-window,#baseAiHost .base-ai-window.is-expanded{width:calc(100vw - 16px)}#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{display:grid;grid-auto-flow:column;grid-auto-columns:180px;max-height:120px;overflow:auto;padding-bottom:7px}#baseAiHost .base-history-comparison{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-ai{align-items:flex-start;flex-direction:column;gap:7px}#baseAiHost .base-review-footer{bottom:-12px}#baseAiHost .base-review-navigation button{flex:1;font-size:10px}#baseAiHost .base-review-navigation button:last-child{flex-basis:100%}#baseAiHost .base-ai-launcher{right:16px;bottom:80px}}

/* Explicit review surfaces and actions, with equivalent contrast in both themes. */
#baseAiHost{--review-paper:#fff;--review-soft:#f3f6fb;--review-ink:#233750;--review-muted:#586b82;--review-border:#dce4ef;--review-action:#315fc5;--review-selected:#eaf1fc}
html[data-theme=dark] #baseAiHost{--review-paper:#15181e;--review-soft:#1b212b;--review-ink:#e9eef7;--review-muted:#b4c0d1;--review-border:#384352;--review-action:#98beff;--review-selected:#22334f}
#baseAiHost .base-ai-window,#baseAiHost .base-review-footer{background:var(--review-paper)!important;color:var(--review-ink)!important}
#baseAiHost .base-history-comparison>section{background:var(--review-paper);border-color:var(--review-border)!important}
#baseAiHost .base-history-saved{background:var(--review-soft)!important}
#baseAiHost .base-ai-window :is(p,small,h4){color:var(--review-muted)}
#baseAiHost .base-ai-window .base-history-text{color:var(--review-ink)!important}
#baseAiHost .base-review-item[aria-pressed=true],#baseAiHost .base-review-filters button[aria-pressed=true]{background:var(--review-selected)!important;border-color:var(--review-action)!important;color:var(--review-ink)!important}
#baseAiHost .base-ai-window .base-review-confirm{background:#315fc5!important;color:#fff!important;border:1px solid #315fc5!important;border-radius:9px;min-height:40px;padding:10px 16px;font-weight:600}
#baseAiHost .base-ai-window .base-review-confirm:hover:not(:disabled){background:#244da9!important}
#baseAiHost .base-ai-window button:disabled{opacity:.5;cursor:default}
#baseAiHost .base-ai-window :is(button,input):focus-visible{outline:2px solid var(--review-action)!important;outline-offset:3px}
#baseAiHost .base-review-approval{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;font-size:11px}
#baseAiHost .base-review-approval strong{color:var(--review-action)}

#baseAiHost .base-review-detail>.base-review-navigation{margin:10px 0 14px}
/* Assistant studio: restrained surfaces and truthful indeterminate loading. */
#baseAiHost .base-ai-window{border-radius:19px;border-color:var(--review-border);box-shadow:0 24px 80px #101b3233,0 2px 12px #101b3210}
#baseAiHost .base-ai-window-header{padding:16px 20px;background:var(--review-soft);border-color:var(--review-border)}
#baseAiHost .base-ai-identity{position:relative;padding-left:43px}
#baseAiHost .base-ai-identity::before{content:'✦';position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--review-border);border-radius:10px;background:var(--review-paper);color:var(--review-action);font-size:19px}
#baseAiHost .base-ai-window-header strong{font-size:14px;letter-spacing:-.2px}
#baseAiHost .base-ai-window-header small{font-size:10px;line-height:1.5;margin-top:4px}
#baseAiHost .base-ai-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:320px;padding:28px 20px;text-align:center}
#baseAiHost .base-ai-loading-symbol{display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--review-border);border-radius:17px;background:var(--review-selected);color:var(--review-action);font-size:28px;margin-bottom:20px}
#baseAiHost .base-ai-loading h3{font-size:17px;letter-spacing:-.3px;margin:0 0 10px}
#baseAiHost .base-ai-loading p{max-width:360px;font-size:12px;line-height:1.7;margin:5px 0}
#baseAiHost .base-ai-loading-status{color:var(--review-action)!important;font-weight:550}
#baseAiHost .base-ai-skeleton{display:grid;gap:9px;width:min(340px,100%);margin:24px 0}
#baseAiHost .base-ai-skeleton i{height:9px;border-radius:5px;background:var(--review-soft);overflow:hidden;position:relative}
#baseAiHost .base-ai-skeleton i:nth-child(2){width:82%}#baseAiHost .base-ai-skeleton i:nth-child(4){width:65%}
#baseAiHost .base-review-intro{padding:0 0 8px}#baseAiHost .base-review-progress{padding:5px 9px;border:1px solid var(--review-border);border-radius:7px;background:var(--review-soft)}
#baseAiHost .base-review-ai{padding:10px 12px;background:var(--review-soft);border:1px solid var(--review-border);border-radius:10px}
#baseAiHost .base-review-item{transition:border-color .18s,background .18s}
#baseAiHost .base-history-comparison>section{border-radius:14px;padding:16px}
#baseAiHost .base-history-comparison h4{font-size:10px;text-transform:uppercase;letter-spacing:.7px;padding-bottom:11px;border-bottom:1px solid var(--review-border)}
#baseAiHost .base-history-received .base-investigation-grade{display:inline-flex;font-size:10px;line-height:1.4;padding:5px 8px;border-radius:6px;background:var(--review-selected);color:var(--review-action);margin:14px 0 4px}
#baseAiHost .base-account-history-entry{padding:12px;border:1px solid var(--review-border);border-radius:9px;background:var(--review-paper);margin-top:10px}
#baseAiHost .base-history-text{line-height:1.8!important}
#baseAiHost .base-review-navigation{padding:0 0 10px;border-bottom:1px solid var(--review-border)}
#baseAiHost .base-review-ai[aria-busy=true]{border-color:var(--review-action)}
@keyframes baseSkeletonMove{from{translate:-100% 0}to{translate:100% 0}}
@keyframes baseAssistantPulse{0%,100%{opacity:.6;scale:.97}50%{opacity:1;scale:1}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-ai-skeleton i::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--review-selected),transparent);animation:baseSkeletonMove 1.4s ease-in-out infinite}#baseAiHost .base-ai-loading-symbol{animation:baseAssistantPulse 1.8s ease-in-out infinite}#baseAiHost .base-review-ai[aria-busy=true]{animation:baseAssistantPulse 1.8s ease-in-out infinite}}
@media(max-width:760px){#baseAiHost .base-ai-window-header{padding:12px}#baseAiHost .base-ai-loading{min-height:260px;padding:20px 12px}#baseAiHost .base-history-comparison>section{padding:13px}}
/* Keep the primary review action distinct from generic dark-theme buttons. */
html[data-theme=dark] #baseAiHost .base-ai-window .base-review-confirm{background:#315fc5!important;color:#fff!important;border-color:#4679df!important}
html[data-theme=dark] #baseAiHost .base-ai-window .base-review-confirm:hover:not(:disabled){background:#3d70d7!important}
/* Persistent review bar: actions stay visible while reading evidence. */
#baseAiHost .base-ai-window-header{flex-wrap:wrap;gap:10px}
#baseAiHost .base-ai-workbar{flex-basis:100%;display:flex;align-items:center;justify-content:space-between;gap:8px 14px;padding-top:10px;border-top:1px solid var(--review-border)}
#baseAiHost .base-ai-workbar:empty{display:none}
#baseAiHost .base-ai-workbar .base-review-progress{padding:0;border:0;background:none;font-size:11px!important;color:var(--review-muted);margin:0!important}
#baseAiHost .base-workbar-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#baseAiHost .base-workbar-actions button{min-height:35px;padding:7px 10px;border-radius:8px;font-size:11px;line-height:1.4;cursor:pointer}
#baseAiHost .base-workbar-actions .base-review-confirm{min-height:35px}
#baseAiHost .base-evidence-summary{padding:10px 0;font-size:11px;line-height:1.6}
#baseAiHost .base-evidence-summary strong{font-size:12px}
#baseAiHost .base-evidence-summary details{margin-top:7px}
#baseAiHost .base-evidence-summary summary{cursor:pointer;color:var(--review-action);font-size:11px}
#baseAiHost .base-evidence-list{display:grid;gap:8px;margin:2px 0 12px}
#baseAiHost .base-evidence-list>h4{margin:0 0 2px;font-size:10px;text-transform:uppercase;letter-spacing:.6px}
#baseAiHost .base-evidence-list>.base-evidence-warning,#baseAiHost .base-evidence-list>.base-evidence-empty{padding:8px 10px;border:1px solid var(--review-border);border-radius:8px;background:var(--review-soft);font-size:11px!important;line-height:1.55}
#baseAiHost .base-evidence-list>.base-evidence-warning{border-left:3px solid #c47a19;color:var(--review-ink)!important}
#baseAiHost .base-evidence-card{display:grid;gap:4px;padding:9px 10px;border:1px solid var(--review-border);border-radius:9px;background:var(--review-paper);overflow-wrap:anywhere}
#baseAiHost .base-evidence-card>strong{font-size:11px;color:var(--review-ink)}
#baseAiHost .base-evidence-card>small{margin:0;font-size:10px}
#baseAiHost .base-evidence-card>.base-history-text{font-size:10px!important;line-height:1.55!important;margin:3px 0 0!important}
#baseAiHost .base-evidence-badges{display:flex;flex-wrap:wrap;gap:5px}
#baseAiHost .base-evidence-badges>span{padding:3px 6px;border-radius:5px;background:var(--review-soft);color:var(--review-muted);font-size:9px;line-height:1.4}
#baseAiHost .base-evidence-badges>.is-exact,#baseAiHost .base-evidence-badges>.is-same-bank{background:var(--review-selected);color:var(--review-action)}
#baseAiHost .base-evidence-list>small{font-size:10px;line-height:1.55}
#baseAiHost .base-group-review{padding:13px;margin:0 0 14px;border:1px solid var(--review-border);border-radius:11px;background:var(--review-soft);font-size:12px}
#baseAiHost .base-group-review[hidden]{display:none!important}
#baseAiHost .base-group-review>label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:4px 8px;padding:10px 0;border-top:1px solid var(--review-border);font-size:11px;line-height:1.6}
#baseAiHost .base-group-review>label input{width:16px;height:16px;accent-color:var(--review-action);margin-top:3px}
#baseAiHost .base-group-review>label small{grid-column:2;overflow-wrap:anywhere}
#baseAiHost .base-group-review>button{margin:8px 6px 0 0}
#baseAiHost .base-review-footer:has(p:empty){padding:0;border:0;margin:0}
@media(max-width:760px){#baseAiHost .base-ai-workbar{flex-direction:column;align-items:stretch}#baseAiHost .base-workbar-actions{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1.2fr) minmax(0,1.2fr)}#baseAiHost .base-workbar-actions button{font-size:10px;padding:6px;white-space:normal;min-height:38px}}
/* Compact Base workspace: classification first, secondary learning beside it. */
#companyPanel .tool-pane[data-pane=base] .tool-intro{padding:16px 20px!important;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:22px;align-items:center}
#companyPanel .tool-pane[data-pane=base] .tool-intro>.tool-visual-icon,#companyPanel .tool-pane[data-pane=base] .tool-feature-list{display:none}
#companyPanel .tool-pane[data-pane=base] .tool-intro>.company-code,#companyPanel .tool-pane[data-pane=base] .tool-intro>h3,#companyPanel .tool-pane[data-pane=base] .tool-intro>p{grid-column:1;margin:2px 0!important}
#companyPanel .tool-pane[data-pane=base] #baseStats{grid-column:2;grid-row:1/4;display:flex;gap:18px;margin:0!important}
#companyPanel .tool-pane[data-pane=base] #baseStats>span{display:flex;align-items:baseline;gap:5px;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
#companyPanel .tool-pane[data-pane=base] #baseStats>span strong{font-size:17px!important}
#companyPanel .tool-pane[data-pane=base] #baseSavedPeriods{grid-column:1/-1;margin-top:10px;padding-top:10px}
#companyPanel .tool-pane[data-pane=base] #baseSavedPeriods>p{margin:5px 0 0;font-size:11px}
#companyPanel .tool-pane[data-pane=base] .stack-forms{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
#companyPanel #classifyForm{border-top:1px solid var(--accent)!important}
/* One compact header; the current account stays available above the evidence. */
#baseAiHost .base-ai-window-header{padding:12px 16px;gap:8px}
#baseAiHost .base-ai-window-body{padding:12px 16px}
#baseAiHost .base-review-intro{display:none}
#baseAiHost .base-review-filters{margin-bottom:10px;gap:5px}
#baseAiHost .base-review-layout{grid-template-columns:175px minmax(0,1fr);gap:12px}
#baseAiHost .base-review-detail>small{margin:0 0 6px}
#baseAiHost .base-review-decision{position:sticky;top:-12px;z-index:3;display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--review-soft);border:1px solid var(--review-border);border-radius:10px;box-shadow:0 4px 12px #101b3209}
#baseAiHost .base-review-decision>label{display:grid;gap:4px;font-size:11px;font-weight:600;flex:1;margin:0}
#baseAiHost .base-review-decision input[type=text]{width:100%;max-width:260px;box-sizing:border-box;background:var(--review-paper);color:var(--review-ink);border:1px solid var(--review-border);border-radius:7px}
#baseAiHost .base-review-decision .base-review-approval{margin:0;max-width:190px;font-size:10px}
#baseAiHost .base-review-detail>.base-review-navigation{margin:8px 0;padding-bottom:8px}
#baseAiHost .base-history-comparison{gap:10px;margin-top:0}
#baseAiHost .base-history-comparison>section{padding:12px}
#baseAiHost .base-history-comparison h4{margin-bottom:9px;padding-bottom:8px}
#baseAiHost .base-history-text{line-height:1.65!important}
#baseAiHost .base-history-received .base-investigation-grade{margin:8px 0 2px}
#baseAiHost .base-review-options{border-top:1px solid var(--review-border);padding-top:10px;margin-top:12px}
#baseAiHost .base-review-options>summary{color:var(--review-muted);font-size:11px}
@media(max-width:900px){#companyPanel .tool-pane[data-pane=base] .tool-intro{grid-template-columns:minmax(0,1fr)}#companyPanel .tool-pane[data-pane=base] #baseStats{grid-column:1;grid-row:auto;margin-top:10px!important;flex-wrap:wrap}#companyPanel .tool-pane[data-pane=base] .stack-forms{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{max-height:98px;grid-auto-columns:160px}#baseAiHost .base-review-decision{top:-12px;flex-wrap:wrap;gap:6px}#baseAiHost .base-review-decision .base-review-approval{max-width:none}#baseAiHost .base-ai-workbar .base-review-progress{font-size:10px!important}#baseAiHost .base-history-comparison{grid-template-columns:minmax(0,1fr)}}
/* Guided workspace: make the three safe actions visible before the forms. */
#companyPanel .tool-pane[data-pane=base] .tool-card{display:grid;gap:16px}
#companyPanel .tool-pane[data-pane=base] .tool-intro{border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 10px 28px #14243b08}
#companyPanel .tool-pane[data-pane=base] .base-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid transparent;border-radius:11px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer;transition:background .16s,border-color .16s,translate .16s}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step:hover{border-color:var(--border);translate:0 -1px}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step.is-active{border-color:var(--accent);background:var(--accent-soft)}
#companyPanel .tool-pane[data-pane=base] .base-workflow-number{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:750}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step[data-state=complete] .base-workflow-number{background:var(--accent);color:#fff}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step[data-state=error] .base-workflow-number{background:#a34e4e;color:#fff}
#companyPanel .tool-pane[data-pane=base] .base-workflow-copy{display:grid;gap:3px;min-width:0}
#companyPanel .tool-pane[data-pane=base] .base-workflow-copy strong{font-size:12px}
#companyPanel .tool-pane[data-pane=base] .base-workflow-copy small{margin:0;color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
#companyPanel .tool-pane[data-pane=base] .base-workflow-arrow{margin-left:auto;color:var(--muted);font-size:14px}
#companyPanel .tool-pane[data-pane=base] .base-workflow-step[data-state=complete] .base-workflow-arrow{color:var(--accent)}
#companyPanel .tool-pane[data-pane=base] .stack-forms{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#companyPanel .tool-pane[data-pane=base] .stack-forms #learnForm{order:1}
#companyPanel .tool-pane[data-pane=base] .stack-forms #classifyForm{order:2}
#companyPanel .tool-pane[data-pane=base] .stack-forms .base-management{order:3}
#companyPanel .tool-pane[data-pane=base] .stack-forms .modern-form{align-content:start;gap:12px;padding:18px;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:0 8px 24px #14243b08}
#companyPanel .tool-pane[data-pane=base] .stack-forms .modern-form:focus-within{border-color:var(--accent)}
#companyPanel .tool-pane[data-pane=base] .form-card-header{align-items:center;gap:12px}
#companyPanel .tool-pane[data-pane=base] .form-card-header strong{font-size:14px}
#companyPanel .tool-pane[data-pane=base] .form-card-header small{font-size:11px;line-height:1.45}
#companyPanel .tool-pane[data-pane=base] .stack-forms .modern-form input[type=file]{min-height:44px;padding:10px;border:1px dashed var(--border);border-radius:10px;background:var(--surface-2)}
#companyPanel .tool-pane[data-pane=base] .base-management{order:3;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:12px}
#companyPanel .tool-pane[data-pane=base] .base-management::before{font-size:9px}
#companyPanel .tool-pane[data-pane=base] #classificationPreview{margin-top:0}
@media(max-width:760px){
  #companyPanel .tool-pane[data-pane=base] .tool-card{gap:12px}
  #companyPanel .tool-pane[data-pane=base] .base-workflow{grid-template-columns:1fr;gap:6px;padding:8px}
  #companyPanel .tool-pane[data-pane=base] .base-workflow-step{padding:9px}
  #companyPanel .tool-pane[data-pane=base] .base-workflow-arrow{transform:rotate(90deg)}
  #companyPanel .tool-pane[data-pane=base] .stack-forms{grid-template-columns:minmax(0,1fr)}
  #companyPanel .tool-pane[data-pane=base] .stack-forms .modern-form{padding:14px}
}
/* Routine review: readable queue, one closest example, details on demand. */
#baseAiHost .base-queue-tools{display:flex;gap:8px;align-items:center;margin-bottom:10px;min-width:0}
#baseAiHost .base-queue-tools input{flex:1;min-width:0;width:100%;min-height:36px;padding:8px 10px;border:1px solid var(--review-border);border-radius:8px;background:var(--review-paper);color:var(--review-ink);font-size:12px}
#baseAiHost .base-queue-tools button{flex:none;font-size:11px}
#baseAiHost .base-queue-tools button[aria-pressed=true]{border-color:var(--review-action);color:var(--review-action)}
#baseAiHost .base-review-layout{grid-template-columns:220px minmax(0,1fr)}
#baseAiHost .base-review-queue .base-review-item{flex:0 0 auto;min-height:112px;height:auto;display:grid;gap:5px;align-content:start;overflow:visible}
#baseAiHost .base-review-queue .base-review-item>span{display:-webkit-box!important;-webkit-line-clamp:2;line-height:1.5;font-size:11px;color:var(--review-ink)!important}
#baseAiHost .base-review-queue .base-review-item small{display:block!important;font-size:10px;line-height:1.4}
#baseAiHost .base-review-filters button{display:inline-flex;align-items:center;gap:6px}
#baseAiHost .base-filter-count{font-size:10px;font-variant-numeric:tabular-nums;opacity:.8}
#baseAiHost .base-more-histories{margin:12px 0}
#baseAiHost .base-history-difference,#baseAiHost .base-pending-reason{font-size:11px!important;line-height:1.6!important;padding:9px 10px;border-left:2px solid var(--review-action);background:var(--review-soft);border-radius:0 7px 7px 0}
#baseAiHost .base-account-history-entry>strong{display:block;font-size:10px;color:var(--review-muted);margin-bottom:7px}
#baseAiHost .base-draft-notice{padding:12px;border:1px solid var(--review-action);border-radius:9px;background:var(--review-soft);margin-bottom:10px}
#baseAiHost .base-draft-notice[hidden]{display:none}
#baseAiHost .base-draft-notice button{margin:5px 6px 0 0}
@media(max-width:760px){#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{max-height:145px;grid-auto-columns:200px}#baseAiHost .base-review-queue .base-review-item{min-height:124px}#baseAiHost .base-queue-tools{flex-wrap:wrap}#baseAiHost .base-queue-tools input{flex-basis:100%}}
/* Razync identity and focused review surfaces. Shared company forms are untouched. */
#baseAiHost .base-brand-mark{position:relative;display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#101720;border:1px solid #335267;isolation:isolate}
#baseAiHost .base-brand-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
#baseAiHost .base-brand-mark::after{content:'';position:absolute;inset:-4px;border:1px solid transparent;border-top-color:#18b6d4;border-right-color:#18b6d440;border-radius:16px;pointer-events:none}
#baseAiHost .base-ai-launcher{padding:8px 12px 8px 9px;gap:12px;border:1px solid var(--review-border);border-radius:18px;background:var(--review-paper);color:var(--review-ink);box-shadow:0 8px 28px #101b3222;min-height:58px}
#baseAiHost .base-ai-launcher>span:not(.base-brand-mark){font-size:12px;font-weight:600;letter-spacing:-.1px}
#baseAiHost .base-ai-launcher-count{background:var(--review-selected);color:var(--review-action);border-radius:8px;font-variant-numeric:tabular-nums}
#baseAiHost .base-ai-identity{display:flex;align-items:center;gap:12px;padding:0;min-width:0}
#baseAiHost .base-ai-identity::before{content:none}
#baseAiHost .base-ai-window{border-radius:20px;box-shadow:0 20px 65px #080f242e;border-color:var(--review-border)}
#baseAiHost .base-ai-window-header{padding:15px 18px;background:var(--review-soft);gap:12px}
#baseAiHost .base-ai-identity strong{display:block;font-size:15px;font-weight:650;letter-spacing:-.35px;color:var(--review-ink)}
#baseAiHost .base-ai-identity small{font-size:11px;color:var(--review-muted);margin-top:3px}
#baseAiHost .base-ai-window-actions button{border:1px solid var(--review-border);border-radius:9px;background:var(--review-paper);width:33px;height:33px;font-size:19px}
#baseAiHost .base-ai-workbar{padding-top:11px;gap:10px}
#baseAiHost .base-ai-window-body{padding:14px 18px}
#baseAiHost .base-queue-tools{padding:0 0 12px;margin-bottom:0}
#baseAiHost .base-queue-tools input{min-height:39px;border-radius:10px;font-size:12px}
#baseAiHost .base-review-filters{gap:6px;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--review-border)}
#baseAiHost .base-review-filters button{border:1px solid var(--review-border);border-radius:8px;min-height:30px;background:transparent;font-size:10px;color:var(--review-muted)}
#baseAiHost .base-filter-count{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:5px;background:var(--review-soft);color:var(--review-ink);font-weight:600;opacity:1}
#baseAiHost .base-review-layout{grid-template-columns:220px minmax(0,1fr);gap:15px}
#baseAiHost .base-review-queue{gap:8px;padding-right:6px;max-height:470px}
#baseAiHost .base-review-queue .base-review-item{border-radius:12px;padding:12px;background:var(--review-paper);border-color:var(--review-border);gap:6px;min-height:118px}
#baseAiHost .base-review-queue .base-review-item strong{font-size:10px;color:var(--review-muted);font-weight:600}
#baseAiHost .base-review-queue .base-review-item>span{font-size:12px;line-height:1.5;font-weight:500}
#baseAiHost .base-review-item[aria-pressed=true]{box-shadow:inset 3px 0 0 var(--review-action)}
#baseAiHost .base-review-decision{padding:12px 14px;border-radius:12px;box-shadow:none;top:-14px}
#baseAiHost .base-review-decision>label{font-size:11px;gap:6px;color:var(--review-muted);font-weight:550}
#baseAiHost .base-review-decision input[type=text]{min-height:40px;font-weight:650;font-size:15px;border-radius:8px;letter-spacing:.4px}
#baseAiHost .base-review-decision .base-review-approval{font-size:11px;line-height:1.5;max-width:180px}
#baseAiHost .base-review-navigation{border:0;margin:9px 0!important;padding:0}
#baseAiHost .base-review-navigation button{min-height:31px;border-radius:8px}
#baseAiHost .base-history-comparison>section{padding:15px;border:1px solid var(--review-border);border-radius:13px}
#baseAiHost .base-history-comparison h4{font-size:10px;font-weight:650;letter-spacing:.55px;margin-bottom:12px;padding-bottom:10px}
#baseAiHost .base-history-text{font-size:13px!important;line-height:1.7!important}
#baseAiHost .base-history-text mark{background:var(--review-selected);color:var(--review-action);border-radius:4px;padding:1px 3px}
#baseAiHost .base-account-history-entry{padding:12px;border-radius:10px;box-shadow:none}
#baseAiHost .base-evidence-summary strong{font-size:13px;letter-spacing:-.15px}
#baseAiHost .base-pending-reason,#baseAiHost .base-history-difference{font-size:11px!important;padding:10px 11px;border-left-width:2px;line-height:1.65!important}
#baseAiHost .base-group-review{border-radius:12px;padding:15px;background:var(--review-selected)}
#baseAiHost .base-group-review>button:first-of-type{background:var(--review-action);color:var(--review-paper);font-weight:600}
#baseAiHost .base-ai-loading .base-brand-mark{width:60px;height:60px;border-radius:18px;padding:0;margin-bottom:22px;font-size:initial}
@keyframes baseBrandOrbit{to{transform:rotate(360deg)}}
@keyframes baseBrandFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-2deg)}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-brand-mark::after{animation:baseBrandOrbit 9s linear infinite}#baseAiHost .base-ai-launcher .base-brand-mark img{animation:baseBrandFloat 4.8s ease-in-out infinite}#baseAiHost .base-ai-launcher{transition:transform .2s,box-shadow .2s}#baseAiHost .base-ai-launcher:hover{transform:translateY(-3px);box-shadow:0 12px 32px #101b3228}}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-brand-mark::after,#baseAiHost .base-brand-mark img{animation:none!important}}
@media(max-width:760px){#baseAiHost .base-ai-window-header{padding:12px}#baseAiHost .base-ai-identity{gap:10px}#baseAiHost .base-ai-identity strong{font-size:14px}#baseAiHost .base-brand-mark{width:34px;height:34px;border-radius:10px}#baseAiHost .base-ai-window-body{padding:12px}#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{max-height:145px}#baseAiHost .base-review-decision{top:-12px}#baseAiHost .base-history-comparison>section{padding:12px}#baseAiHost .base-ai-launcher{min-height:52px;border-radius:15px}}
/* Assistant studio v2: branded entry, clear dismissal and a focused workbench. */
#baseAiHost .base-ai-launcher{gap:13px;padding:11px 13px 11px 12px;border-radius:20px;background:var(--review-paper);box-shadow:0 12px 40px #101b3226;border:1px solid var(--review-border)}
#baseAiHost .base-ai-launcher .base-brand-mark{width:44px;height:44px;border-radius:14px}
#baseAiHost .base-launcher-copy{display:grid;gap:4px;text-align:left}
#baseAiHost .base-launcher-copy small{font-size:8px;font-weight:650;letter-spacing:1.15px;color:var(--review-muted)}
#baseAiHost .base-launcher-copy strong{font-size:13px;font-weight:650;letter-spacing:-.2px;color:var(--review-ink)}
#baseAiHost .base-ai-launcher-count{height:28px;min-width:28px;border-radius:9px;background:var(--review-selected);border:1px solid var(--review-border);font-size:11px}
#baseAiHost .base-ai-window{width:min(1120px,calc(100vw - 32px));height:calc(100dvh - 96px);max-height:780px;right:16px;bottom:16px;border-radius:22px;box-shadow:0 28px 100px #070e263d,0 0 0 1px #ffffff08}
#baseAiHost .base-ai-window.is-expanded{width:calc(100vw - 32px);height:calc(100dvh - 96px);max-height:none}
#baseAiHost .base-ai-window-header{position:relative;padding:13px 18px 11px;background:var(--review-soft);gap:10px}
#baseAiHost .base-ai-window-header::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#14b5d0,#4674df,transparent 90%);pointer-events:none}
#baseAiHost .base-ai-identity strong{font-size:16px;letter-spacing:-.4px}
#baseAiHost .base-ai-identity small{font-size:11px}
#baseAiHost .base-ai-window-actions button{width:36px;height:36px;min-height:36px;background:var(--review-paper);border-radius:11px;line-height:1;font-size:23px;color:var(--review-muted)}
#baseAiHost .base-ai-window-actions button:last-child:hover{background:#a8434318;color:#c65454;border-color:#c6545460}
#baseAiHost .base-ai-workbar{border-top-color:var(--review-border);padding-top:10px}
#baseAiHost .base-workbar-actions button{border-radius:9px;min-height:36px}
#baseAiHost .base-workbar-actions .base-review-confirm{box-shadow:0 3px 9px #315fc520;font-weight:650}
#baseAiHost .base-ai-window-body{padding:14px 18px 18px;background:var(--review-paper)}
#baseAiHost .base-review-filters{border:0;gap:5px;margin-bottom:8px;padding-bottom:6px}
#baseAiHost .base-review-filters button{border-color:transparent;background:var(--review-soft);border-radius:8px}
#baseAiHost .base-queue-tools input{background:var(--review-soft);border-color:var(--review-border);border-radius:11px;min-height:40px;padding:10px 13px}
#baseAiHost .base-review-layout{gap:16px;grid-template-columns:230px minmax(0,1fr)}
#baseAiHost .base-review-queue{max-height:540px}
#baseAiHost .base-review-queue .base-review-item{position:relative;border:1px solid var(--review-border);padding:13px;min-height:116px;border-radius:13px;background:var(--review-soft)}
#baseAiHost .base-review-queue .base-review-item:hover{border-color:var(--review-action)}
#baseAiHost .base-review-item[aria-pressed=true]{box-shadow:inset 3px 0 0 var(--review-action),0 3px 10px #14243b08}
#baseAiHost .base-review-decision{background:var(--review-selected);border-color:var(--review-border);padding:12px 14px;gap:16px}
#baseAiHost .base-review-decision input[type=text]{max-width:240px;font-size:16px;min-height:42px}
#baseAiHost .base-history-comparison{gap:12px}
#baseAiHost .base-history-comparison>section{border-radius:14px;padding:16px}
#baseAiHost .base-history-comparison h4{letter-spacing:.8px;font-size:10px}
#baseAiHost .base-history-saved .base-account-history>strong{font-size:17px;letter-spacing:-.5px;color:var(--review-ink)}
#baseAiHost .base-history-text{line-height:1.75!important;font-size:13px!important}
#baseAiHost .base-account-history-entry{margin-top:14px;padding:14px;background:var(--review-paper);border-radius:11px}
#baseAiHost .base-pending-reason{border:1px solid var(--review-border);border-left:3px solid var(--review-action);border-radius:9px;font-size:12px!important}
#baseAiHost .base-ai-loading{min-height:380px;padding:30px 20px;gap:0}
#baseAiHost .base-loading-orbit{position:relative;display:grid;place-items:center;flex:none;width:124px;height:124px;margin:0 0 22px;border:1px solid var(--review-border);border-radius:50%;background:radial-gradient(circle,var(--review-selected),transparent 68%)}
#baseAiHost .base-loading-orbit::before{content:'';position:absolute;inset:11px;border:1px dashed var(--review-border);border-radius:50%}
#baseAiHost .base-loading-orbit .base-brand-mark{width:62px;height:62px;margin:0;border-radius:19px;box-shadow:0 8px 24px #101b321c;animation:none}
#baseAiHost .base-loading-orbit>i{position:absolute;inset:0;border-radius:50%;pointer-events:none}
#baseAiHost .base-loading-orbit>i::before{content:'';position:absolute;top:-3px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#16b4d0;box-shadow:0 0 12px #16b4d060}
#baseAiHost .base-loading-orbit>i:nth-of-type(2){inset:12px;transform:rotate(120deg)}
#baseAiHost .base-loading-orbit>i:nth-of-type(3){transform:rotate(240deg)}
#baseAiHost .base-loading-orbit>i:nth-of-type(2)::before{background:#6a91ed}
#baseAiHost .base-ai-loading .base-loading-eyebrow{font-size:9px;letter-spacing:1.8px;color:var(--review-action);font-weight:650;margin-bottom:10px}
#baseAiHost .base-ai-loading h3{font-size:21px;font-weight:650;letter-spacing:-.6px;margin-bottom:9px}
#baseAiHost .base-ai-loading>p{max-width:400px;font-size:12px;line-height:1.7}
#baseAiHost .base-loading-note{max-width:380px;font-size:10px;line-height:1.7;color:var(--review-muted);margin-top:12px}
#baseAiHost .base-ai-skeleton{width:min(300px,100%);gap:7px;margin:18px 0}
#baseAiHost .base-ai-skeleton i{height:5px}
@keyframes baseStudioOrbit{to{rotate:360deg}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-loading-orbit>i{animation:baseStudioOrbit 4s linear infinite}#baseAiHost .base-loading-orbit>i:nth-of-type(2){animation-duration:6s;animation-direction:reverse}#baseAiHost .base-loading-orbit>i:nth-of-type(3){animation-duration:8s}#baseAiHost .base-ai-window-actions button{transition:background .18s,color .18s,border-color .18s}#baseAiHost .base-review-item{transition:background .18s,border-color .18s}}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-loading-orbit>i{animation:none!important}}
@media(max-width:760px){#baseAiHost .base-ai-window,#baseAiHost .base-ai-window.is-expanded{inset:68px 8px 8px;width:calc(100vw - 16px);height:auto;max-height:none;border-radius:16px}#baseAiHost .base-ai-window-header{padding:12px}#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{max-height:145px}#baseAiHost .base-ai-window-body{padding:12px}#baseAiHost .base-history-comparison>section{padding:13px}#baseAiHost .base-ai-loading{min-height:300px;padding:20px 8px}#baseAiHost .base-ai-loading h3{font-size:19px}#baseAiHost .base-ai-launcher{padding:9px 11px;gap:10px}#baseAiHost .base-ai-launcher .base-brand-mark{width:38px;height:38px}}
/* Focused review: reserve a desktop launch rail and give the histories priority. */
@media(min-width:761px){.app-shell>main:has(#companyPanel:not([hidden]) .tool-pane[data-pane=base].active){padding-right:100px!important}}
#baseAiHost .base-ai-launcher{right:18px;bottom:84px;width:56px;height:56px;min-height:56px;padding:6px;gap:0;border-radius:17px;box-sizing:border-box;justify-content:center}
#baseAiHost .base-ai-launcher .base-brand-mark{width:40px;height:40px;border-radius:12px}
#baseAiHost .base-ai-launcher .base-launcher-copy{display:none}
#baseAiHost .base-ai-launcher .base-ai-launcher-count{position:absolute;right:-6px;top:-8px;min-width:22px;height:22px;border-radius:8px;padding:0 4px;font-size:10px;background:#315fc5;color:#fff;border:2px solid var(--review-paper)}
#baseAiHost .base-ai-window{top:76px;bottom:12px;right:12px;height:auto;max-height:none;width:min(1160px,calc(100vw - 24px));border-radius:17px}
#baseAiHost .base-ai-window.is-expanded{inset:8px;width:calc(100vw - 16px);height:auto;max-height:none}
#baseAiHost .base-ai-window-header{padding:10px 14px;gap:10px;flex-wrap:wrap}
#baseAiHost .base-ai-identity{order:0;gap:9px}
#baseAiHost .base-ai-identity .base-brand-mark{width:32px;height:32px;border-radius:10px}
#baseAiHost .base-ai-identity strong{font-size:14px}
#baseAiHost .base-ai-identity small{font-size:11px;margin-top:2px}
#baseAiHost .base-ai-window-actions{order:2}
#baseAiHost .base-ai-workbar{order:1;flex:1;flex-basis:auto;margin-left:auto;justify-content:flex-end;padding:0;border:0;gap:12px}
#baseAiHost .base-ai-workbar .base-review-progress{font-size:11px!important;line-height:1.6;color:var(--review-ink)!important;max-width:260px}
#baseAiHost .base-workbar-actions{flex:none}
#baseAiHost .base-workbar-actions button{font-size:11px;min-height:36px}
#baseAiHost .base-ai-window-body{padding:12px 14px}
#baseAiHost .base-queue-tools{padding-bottom:8px;gap:8px}
#baseAiHost .base-queue-tools input{min-height:36px;padding:8px 11px;background:var(--review-paper)}
#baseAiHost .base-review-filters{margin:0 0 10px;padding:0;gap:5px}
#baseAiHost .base-review-filters button{font-size:11px;min-height:30px;color:var(--review-ink);background:transparent;border:1px solid var(--review-border)}
#baseAiHost .base-review-layout{grid-template-columns:220px minmax(0,1fr);gap:12px}
#baseAiHost .base-review-queue{max-height:calc(100dvh - 245px)}
#baseAiHost .base-review-detail>small{font-size:11px;margin:0 0 6px;color:var(--review-ink)}
#baseAiHost .base-review-decision{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:6px 12px;padding:10px 12px;top:-12px;background:var(--review-soft);border-radius:10px}
#baseAiHost .base-review-decision>label{grid-column:1;grid-row:1/3;gap:4px;font-size:11px;color:var(--review-ink)}
#baseAiHost .base-review-decision input[type=text]{min-height:36px;font-size:15px;max-width:170px;padding:6px 9px}
#baseAiHost .base-review-decision .base-review-approval{grid-column:2;grid-row:2;max-width:none;line-height:1.4;margin:0;font-size:11px}
#baseAiHost .base-review-decision .base-review-approval small{margin:0;color:var(--review-muted)}
#baseAiHost .base-review-decision .base-review-navigation{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:0;margin:0!important;border:0;flex-wrap:wrap}
#baseAiHost .base-review-navigation button{min-height:32px;padding:6px 9px;font-size:11px;margin:0!important;flex:none;background:var(--review-paper);color:var(--review-ink);border:1px solid var(--review-border);font-weight:500}
#baseAiHost .base-review-navigation .base-review-confirm{min-height:34px;padding:7px 11px;font-size:11px}
#baseAiHost .base-history-comparison{margin-top:10px;gap:10px}
#baseAiHost .base-history-comparison>section{padding:14px;border-radius:11px}
#baseAiHost .base-history-comparison h4{font-size:11px;letter-spacing:.3px;color:var(--review-ink);margin-bottom:10px}
#baseAiHost .base-ai-window-body small{font-size:12px;line-height:1.6;color:var(--review-muted)}
#baseAiHost .base-review-queue .base-review-item{background:var(--review-paper);border-radius:10px;min-height:110px;padding:11px}
#baseAiHost .base-account-history-entry{border-radius:9px;margin-top:10px;padding:12px}
@media(max-width:1000px){#baseAiHost .base-ai-workbar .base-review-progress{max-width:185px}#baseAiHost .base-ai-identity small{display:none}#baseAiHost .base-review-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){#baseAiHost .base-ai-window{inset:68px 6px 6px;width:calc(100vw - 12px)}#baseAiHost .base-ai-window.is-expanded{inset:6px;width:calc(100vw - 12px)}#baseAiHost .base-ai-workbar{order:3;flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between}#baseAiHost .base-workbar-actions{display:flex}#baseAiHost .base-ai-window-actions{margin-left:auto}#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-queue{max-height:130px}#baseAiHost .base-review-decision{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-decision>label{grid-column:1;grid-row:1;display:flex;align-items:center;gap:10px}#baseAiHost .base-review-decision .base-review-navigation{grid-column:1;grid-row:2;justify-content:flex-start}#baseAiHost .base-review-decision .base-review-approval{grid-column:1;grid-row:3}#baseAiHost .base-ai-launcher{bottom:80px;right:16px}#baseAiHost .base-review-navigation button{min-height:38px}#baseAiHost .base-ai-window-body{padding:12px}}
/* Review workbench: tools belong to the queue; evidence takes the main stage. */
#baseAiHost .base-review-layout{grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}
#baseAiHost .base-review-sidebar{position:sticky;top:0;min-width:0;display:flex;flex-direction:column;gap:10px;padding-right:14px;border-right:1px solid var(--review-border);max-height:calc(100dvh - 180px)}
#baseAiHost .base-review-sidebar>h3{font-size:12px;letter-spacing:-.1px;font-weight:650;margin:0;color:var(--review-ink)}
#baseAiHost .base-review-sidebar .base-queue-tools{display:grid;grid-template-columns:minmax(0,1fr);padding:0;margin:0;gap:7px}
#baseAiHost .base-review-sidebar .base-queue-tools input{width:100%;box-sizing:border-box;font-size:11px;min-height:36px}
#baseAiHost .base-review-sidebar .base-queue-tools button{justify-self:start;padding:5px 8px;min-height:28px;font-size:10px;border-radius:6px}
#baseAiHost .base-review-sidebar .base-review-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0;margin:0}
#baseAiHost .base-review-sidebar .base-review-filters button{justify-content:space-between;text-align:left;white-space:normal;line-height:1.4;font-size:10px;padding:6px 7px;min-height:32px;gap:4px;background:var(--review-soft);border:1px solid transparent}
#baseAiHost .base-review-sidebar .base-review-filters button[aria-pressed=true]{border-color:var(--review-action)}
#baseAiHost .base-review-sidebar .base-review-queue{flex:1;min-height:100px;max-height:none;overflow:auto;padding:0 5px 2px 0;gap:7px}
#baseAiHost .base-review-sidebar .base-review-item{min-height:106px;border:1px solid var(--review-border);border-radius:9px;padding:11px;box-shadow:none}
#baseAiHost .base-review-sidebar .base-review-item[aria-pressed=true]{box-shadow:inset 3px 0 var(--review-action)}
#baseAiHost .base-review-sidebar .base-review-item[data-review-state=approved]>strong{color:var(--review-action)}
#baseAiHost .base-review-detail>small{display:block;margin:0 0 8px!important;font-size:11px;font-variant-numeric:tabular-nums}
#baseAiHost .base-review-decision{margin:0 0 12px;border-radius:10px;background:var(--review-soft);box-shadow:0 4px 12px #101b3208}
#baseAiHost .base-history-comparison{margin-top:0;gap:12px}
#baseAiHost .base-history-comparison>section{padding:16px;border-radius:12px}
#baseAiHost .base-history-comparison h4{font-size:10px;letter-spacing:.65px;font-weight:650;padding-bottom:10px}
#baseAiHost .base-history-received>.base-history-text{font-size:15px!important;line-height:1.65!important;font-weight:500;margin:12px 0!important}
#baseAiHost .base-history-received>small:first-of-type{font-size:13px;color:var(--review-ink);font-weight:550}
#baseAiHost .base-history-saved{background:var(--review-soft)!important}
#baseAiHost .base-history-saved .base-account-history-entry .base-history-text{font-size:14px!important;line-height:1.7!important}
#baseAiHost .base-account-history-entry>strong{font-size:10px;color:var(--review-action);font-weight:600}
#baseAiHost .base-evidence-summary{padding-top:12px;margin-top:10px;border-top:1px solid var(--review-border)}
#baseAiHost .base-history-difference{background:var(--review-paper);border:1px solid var(--review-border);border-left:2px solid var(--review-action);border-radius:8px;line-height:1.6!important}
#baseAiHost .base-evidence-list{margin-top:12px;padding-top:10px;border-top:1px solid var(--review-border)}
@media(min-width:761px) and (max-height:650px){#baseAiHost .base-review-sidebar{max-height:calc(100dvh - 160px)}#baseAiHost .base-review-sidebar>h3{display:none}#baseAiHost .base-review-sidebar .base-review-filters button{padding:4px 6px;min-height:28px}}
@media(max-width:1000px){#baseAiHost .base-review-layout{grid-template-columns:215px minmax(0,1fr);gap:12px}#baseAiHost .base-review-sidebar{padding-right:10px}#baseAiHost .base-review-decision{grid-template-columns:minmax(0,1fr)}#baseAiHost .base-review-decision>label{grid-column:1;grid-row:1;display:flex;align-items:center;gap:10px}#baseAiHost .base-review-decision .base-review-navigation{grid-column:1;grid-row:2;justify-content:flex-start}#baseAiHost .base-review-decision .base-review-approval{grid-column:1;grid-row:3}}
@media(max-width:760px){#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr);gap:12px}#baseAiHost .base-review-sidebar{position:static;max-height:none;border:0;padding:0;gap:8px}#baseAiHost .base-review-sidebar>h3{display:none}#baseAiHost .base-review-sidebar .base-queue-tools{grid-template-columns:minmax(0,1fr) auto;align-items:center}#baseAiHost .base-review-sidebar .base-review-filters{display:flex;flex-wrap:nowrap;overflow:auto;padding-bottom:4px}#baseAiHost .base-review-sidebar .base-review-filters button{flex:none;white-space:nowrap;gap:7px}#baseAiHost .base-review-sidebar .base-review-queue{flex:none;max-height:125px;min-height:0;grid-auto-columns:190px}#baseAiHost .base-review-sidebar .base-review-item{min-height:110px}#baseAiHost .base-history-received>.base-history-text{font-size:14px!important}}
/* Original RZ mark: remove the added wordmark and animate the brand itself. */
#baseAiHost .base-ai-launcher{height:62px;min-height:62px;width:62px;padding:7px;gap:0;border-radius:18px}
#baseAiHost .base-ai-launcher .base-brand-mark{width:46px;height:46px;border-radius:13px}
#baseAiHost .base-brand-letter-motion img{transform-origin:50% 50%}
@keyframes baseRZMotion{0%,15%,65%,100%{transform:translateY(0) scale(1) rotate(0)}30%{transform:translateY(-2px) scale(1.07) rotate(-3deg)}46%{transform:translateY(1px) scale(1.03) rotate(2deg)}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-ai-launcher .base-brand-letter-motion img{animation:baseRZMotion 4.5s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-brand-letter-motion img{animation:none!important;transform:none!important}}


/* Minimal classification review: one decision, evidence on demand. */
#baseAiHost .base-ai-launcher{width:40px;height:40px;min-height:40px;padding:4px;border-radius:12px;right:18px;bottom:82px;box-shadow:0 3px 12px #101b321a}
#baseAiHost .base-ai-launcher .base-brand-mark{width:30px;height:30px;border-radius:8px}
#baseAiHost .base-ai-launcher .base-ai-launcher-count{height:18px;min-width:18px;font-size:9px;top:-5px;right:-5px;border-radius:6px}
#baseAiHost .base-ai-launcher .base-brand-letter-motion img{animation:none!important}
#baseAiHost .base-ai-window{width:min(1040px,calc(100vw - 32px));top:80px;bottom:20px}
#baseAiHost .base-review-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}
#baseAiHost .base-review-sidebar{gap:10px;max-height:calc(100dvh - 220px)}
#baseAiHost .base-review-sidebar .base-review-item{min-height:0;padding:10px;border:0;border-radius:7px;background:transparent}
#baseAiHost .base-review-item>span{font-size:12px;line-height:1.5}
#baseAiHost .base-review-item>small{font-size:11px}
#baseAiHost .base-review-item[aria-pressed=true]{background:var(--review-selected)!important}
#baseAiHost .base-queue-options>summary{font-size:12px;color:var(--review-muted);cursor:pointer;padding:3px 0}
#baseAiHost .base-queue-options[open]>button{margin:8px 0}
#baseAiHost .base-review-sidebar .base-review-filters{margin-top:8px}
#baseAiHost .base-history-comparison{grid-template-columns:minmax(0,1fr);gap:18px}
#baseAiHost .base-history-comparison>section{padding:0;border:0;box-shadow:none;background:transparent!important;border-radius:0}
#baseAiHost .base-history-comparison h4{padding:0;border:0;margin:0 0 8px;font-size:11px;letter-spacing:0;color:var(--review-muted)}
#baseAiHost .base-history-received>.base-history-text{margin:0 0 8px!important;font-size:15px!important;line-height:1.6!important}
#baseAiHost .base-investigation-grade{display:none}
#baseAiHost .base-evidence-summary{border:0;padding:0;margin:12px 0}
#baseAiHost .base-evidence-summary>strong{display:none}
#baseAiHost .base-original-explanation{display:none}
#baseAiHost .base-pending-reason{padding:0!important;background:transparent!important;border:0!important;margin:6px 0!important;color:var(--review-ink)!important;font-size:13px!important}
#baseAiHost .base-evidence-list{margin:10px 0;padding:0;border:0}
#baseAiHost .base-evidence-list>summary,#baseAiHost .base-comparison-differences>summary,#baseAiHost .base-more-histories>summary{font-size:12px;color:var(--review-action);cursor:pointer}
#baseAiHost .base-account-history-entry{padding:0;margin:10px 0;background:transparent;border:0;box-shadow:none}
#baseAiHost .base-account-history-entry>strong{display:none}
#baseAiHost .base-history-saved{padding-top:16px!important;border-top:1px solid var(--review-border)!important}
#baseAiHost .base-account-history>strong{font-size:14px!important}
#baseAiHost .base-history-saved .base-history-text{font-size:13px!important;line-height:1.6!important;margin:6px 0!important}
#baseAiHost .base-review-decision{position:static;background:transparent;border:0;padding:0 0 14px;margin-bottom:18px;border-bottom:1px solid var(--review-border);box-shadow:none;border-radius:0}
#baseAiHost .base-review-approval>small{display:none}
#baseAiHost .base-ai-window-body{padding:18px}
#baseAiHost .base-ai-workbar .base-review-progress{max-width:none;font-size:11px!important}
#baseAiHost .base-ai-window-body .base-review-options{border-top:1px solid var(--review-border);padding-top:10px;margin-top:18px}
#baseAiHost .base-history-text mark{background:transparent;color:inherit;font-weight:600;padding:0}
@media(max-width:760px){#baseAiHost .base-ai-window{inset:64px 8px 8px;width:calc(100vw - 16px)}#baseAiHost .base-review-layout{grid-template-columns:minmax(0,1fr);gap:16px}#baseAiHost .base-review-sidebar{max-height:none}#baseAiHost .base-review-sidebar .base-review-queue{max-height:110px}#baseAiHost .base-ai-window-body{padding:14px}#baseAiHost .base-review-sidebar .base-review-item{min-height:0}}

/* Decision reading order: source, analysis, supporting example, approval. */
#baseAiHost #baseInvestigationWindow .base-evidence-summary{padding:14px 16px;margin:16px 0;background:var(--review-soft);border:1px solid var(--review-border);border-radius:10px;display:flex;flex-direction:column;gap:4px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>strong{display:block;font-size:17px;line-height:1.5;color:var(--review-ink);order:-1}
#baseAiHost #baseInvestigationWindow .base-analysis-state{font-size:11px;color:var(--review-action);font-weight:600;order:-2}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>small{font-size:11px;margin-top:6px;line-height:1.5}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>small:first-of-type{display:none}
#baseAiHost #baseInvestigationWindow .base-pending-reason,#baseAiHost #baseInvestigationWindow .base-analysis-check{font-size:13px!important;line-height:1.65!important;margin:0 0 4px!important;padding:0!important;background:transparent!important;border:0!important;color:var(--review-ink)!important}
#baseAiHost #baseInvestigationWindow .base-history-comparison{display:flex;flex-direction:column;gap:16px}
#baseAiHost #baseInvestigationWindow .base-history-comparison>section{width:100%;box-sizing:border-box}
#baseAiHost #baseInvestigationWindow .base-review-decision{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);border-top:1px solid var(--review-border);border-bottom:0;padding:16px 0 0;margin:0;background:transparent;position:static}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-navigation{grid-column:2;grid-row:1/3;align-self:center}
#baseAiHost #baseInvestigationWindow .base-review-decision>label{grid-row:1/3}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval{grid-column:1/-1;grid-row:3}
#baseAiHost #baseInvestigationWindow .base-history-saved{padding-top:0!important;border-top:0!important}
#baseAiHost #baseInvestigationWindow .base-history-saved .base-account-history{border-left:2px solid var(--review-border);padding-left:14px}
#baseAiHost #baseInvestigationWindow .base-history-saved h4{font-size:11px;margin-bottom:8px}
#baseAiHost #baseInvestigationWindow .base-investigation-grade{display:none!important}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow .base-review-decision{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-decision>label{grid-row:1}#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-navigation{grid-column:1;grid-row:2;justify-content:flex-start}#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval{grid-row:3}}

/* Comparative workspace and borderless animated letter launcher. */
#baseAiHost #baseInvestigationWindow{width:min(1200px,calc(100vw - 32px))}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:230px minmax(0,1fr);gap:20px}
#baseAiHost #baseInvestigationWindow .base-history-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:18px!important;border:1px solid var(--review-border)!important;border-radius:12px;background:var(--review-paper)!important;min-width:0}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{grid-column:1/-1;width:100%;padding-top:14px}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:12px;font-weight:650;color:var(--review-ink);letter-spacing:0;margin-bottom:14px}
#baseAiHost #baseInvestigationWindow .base-history-received>.base-history-text,#baseAiHost #baseInvestigationWindow .base-history-saved .base-history-text{font-size:14px!important;line-height:1.7!important;overflow-wrap:anywhere}
#baseAiHost #baseInvestigationWindow .base-history-saved .base-account-history{border:0;padding:0}
#baseAiHost #baseInvestigationWindow .base-account-history-entry{padding:12px;background:var(--review-soft);border-radius:8px;margin:14px 0}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{padding:12px;margin:16px 0 12px;background:var(--review-soft);gap:4px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>strong{font-size:16px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>button{align-self:flex-start;font-size:11px;padding:6px 8px;min-height:28px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:5px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-filters button{font-size:11px;min-height:36px;line-height:1.4}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:calc(100dvh - 215px)}
#baseAiHost .base-ai-launcher,#baseAiHost .base-ai-launcher:hover,#baseAiHost .base-ai-launcher:active{width:48px;height:46px;min-height:46px;padding:0;border:0!important;border-radius:0;background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none;overflow:visible}
#baseAiHost .base-ai-launcher::before,#baseAiHost .base-ai-launcher::after{display:none!important}
#baseAiHost .base-ai-launcher:focus-visible{outline:2px solid #537ddd;outline-offset:5px;border-radius:5px}
#baseAiHost .base-rz-z{color:#159fb7}
#baseAiHost .base-ai-launcher-count{top:-3px!important;right:-4px!important;border:0!important;min-width:17px!important;height:17px!important;font-size:9px!important}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow{width:calc(100vw - 16px)}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-history-comparison{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:none}#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-filters button{white-space:normal}#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-queue{max-height:105px}}

/* Original mark, quietly floating without a button frame. */
#baseAiHost .base-ai-launcher{width:40px!important;height:40px!important;min-height:40px!important;right:21px;padding:0!important}
#baseAiHost .base-ai-launcher .base-launcher-original{display:block;width:36px!important;height:36px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:10px!important;overflow:hidden}
#baseAiHost .base-ai-launcher .base-launcher-original img{width:100%;height:100%;object-fit:contain;display:block;animation:none!important}
#baseAiHost .base-ai-launcher .base-ai-launcher-count{top:-3px!important;right:-4px!important;border-radius:5px!important;box-shadow:none!important;font-size:9px!important}
@keyframes baseMarkFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media(prefers-reduced-motion:no-preference){#baseAiHost .base-ai-launcher .base-launcher-original{animation:baseMarkFloat 4s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-ai-launcher .base-launcher-original{animation:none!important}}


/* Keep the comparison below its header and preserve readable controls. */
#baseAiHost #baseInvestigationWindow{display:flex;flex-direction:column;overflow:hidden}
#baseAiHost #baseInvestigationWindow[hidden]{display:none!important}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{position:relative;top:auto;flex:none;z-index:2}
#baseAiHost #baseInvestigationWindow .base-ai-window-body{flex:1;min-height:0;overflow:auto;scroll-padding-top:18px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{top:0}
#baseAiHost #baseInvestigationWindow .base-review-sidebar .base-review-filters button{font-size:12px;padding:8px;min-height:38px}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{font-size:12px;min-height:36px}
#baseAiHost #baseInvestigationWindow .base-history-comparison{scroll-margin-top:18px}

/* Review desk: stable navigation, aligned comparison and a distinct decision row. */
#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:18px 20px}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:252px minmax(0,1fr);gap:22px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{gap:12px;padding-right:18px;max-height:calc(100dvh - 215px)}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>h3{font-size:13px;margin:0}
#baseAiHost #baseInvestigationWindow .base-queue-tools input{font-size:12px;min-height:38px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>button{order:3;margin:0;min-height:28px;padding:4px 0;border:0;background:transparent;color:var(--review-muted)}
#baseAiHost #baseInvestigationWindow .base-review-filters{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 0 12px;border-bottom:1px solid var(--review-border)}
#baseAiHost #baseInvestigationWindow .base-review-filters button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:38px;padding:7px 9px;font-size:11px;line-height:1.35;border-radius:7px;background:transparent;border:1px solid var(--review-border);color:var(--review-muted)}
#baseAiHost #baseInvestigationWindow .base-review-filters button[aria-pressed=true]{background:var(--review-selected);border-color:var(--review-action);color:var(--review-ink)}
#baseAiHost #baseInvestigationWindow .base-review-filters button:first-child{grid-column:1/-1}
#baseAiHost #baseInvestigationWindow .base-filter-count{font-size:11px;background:transparent;padding:0}
#baseAiHost #baseInvestigationWindow .base-review-queue{order:4;gap:3px}
#baseAiHost #baseInvestigationWindow .base-review-queue .base-review-item{padding:11px 10px;border-radius:7px;border-bottom:1px solid var(--review-border);min-height:0}
#baseAiHost #baseInvestigationWindow .base-review-item>strong{font-size:11px;color:var(--review-muted)}
#baseAiHost #baseInvestigationWindow .base-review-item>span{font-size:12px;line-height:1.5;margin:4px 0}
#baseAiHost #baseInvestigationWindow .base-review-detail>small{font-size:11px;margin-bottom:12px!important}
#baseAiHost #baseInvestigationWindow .base-history-comparison{gap:16px;align-items:stretch}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:18px!important;border-radius:10px;background:transparent!important}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:11px;color:var(--review-muted);font-weight:600;padding-bottom:12px;margin:0 0 14px;border-bottom:1px solid var(--review-border)}
#baseAiHost #baseInvestigationWindow .base-history-text{font-size:14px!important;line-height:1.7!important}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{margin-top:18px;padding:14px;background:var(--review-soft);border:0;border-radius:8px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>small{font-size:11px;font-weight:600;margin-top:10px}
#baseAiHost #baseInvestigationWindow .base-pending-reason,#baseAiHost #baseInvestigationWindow .base-analysis-check{font-size:12px!important;line-height:1.65!important}
#baseAiHost #baseInvestigationWindow .base-account-history-entry{padding:14px;margin:16px 0;background:var(--review-soft);border-radius:8px}
#baseAiHost #baseInvestigationWindow .base-review-decision{grid-column:1/-1;padding:14px 16px;margin:0;border:1px solid var(--review-border);border-radius:10px;background:var(--review-soft);gap:8px 16px}
#baseAiHost #baseInvestigationWindow .base-review-decision>label{font-size:12px;font-weight:600}
#baseAiHost #baseInvestigationWindow .base-review-navigation{gap:7px}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{min-height:36px;font-size:12px;padding:8px 12px}
#baseAiHost #baseInvestigationWindow .base-review-options{margin-top:18px}
@media(max-width:1000px) and (min-width:761px){#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:205px minmax(0,1fr);gap:14px}#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:14px}#baseAiHost #baseInvestigationWindow .base-review-sidebar{padding-right:12px}}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:none;padding:0;border:0}#baseAiHost #baseInvestigationWindow .base-review-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#baseAiHost #baseInvestigationWindow .base-review-filters button:first-child{grid-column:auto}#baseAiHost #baseInvestigationWindow .base-review-queue{max-height:115px}#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:12px}#baseAiHost #baseInvestigationWindow .base-review-decision{padding:12px}}


/* Work flow: full-width filters above the queue, persistent decision controls. */
#baseAiHost #baseInvestigationWindow .base-review-toolbar{display:flex;flex-direction:column;gap:10px;padding:0 0 14px;margin:0 0 16px;border-bottom:1px solid var(--review-border)}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-queue-tools{margin:0;padding:0;display:block;max-width:360px;width:100%}
#baseAiHost #baseInvestigationWindow .base-review-toolbar input{width:100%;box-sizing:border-box;min-height:38px;font-size:13px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{display:flex;flex-wrap:wrap;gap:7px;border:0;padding:0;margin:0;order:0}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters button{flex:none;min-height:34px;gap:10px;padding:7px 12px;font-size:12px;white-space:nowrap}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:230px minmax(0,1fr);gap:20px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:calc(100dvh - 340px);gap:10px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>button{order:0}
#baseAiHost #baseInvestigationWindow .base-review-queue{order:0}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{position:sticky;bottom:-18px;z-index:3;background:var(--review-paper);box-shadow:0 -6px 16px #0000000a;border:1px solid var(--review-border);padding:12px 14px}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-confirm{min-width:140px}
#baseAiHost #baseInvestigationWindow .base-review-navigation{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:none}#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{bottom:-12px}#baseAiHost #baseInvestigationWindow .base-review-navigation{justify-content:flex-start}}


#baseAiHost #baseInvestigationWindow .base-comparison-alert{font-size:12px;line-height:1.6;color:var(--review-ink);padding:10px 12px;border-left:2px solid var(--review-action);background:var(--review-soft);margin:12px 0}
#baseAiHost #baseInvestigationWindow .base-export-review{padding:16px;border:1px solid var(--review-action);border-radius:10px;margin-top:16px;background:var(--review-paper)}
#baseAiHost #baseInvestigationWindow .base-export-review[hidden]{display:none}
#baseAiHost #baseInvestigationWindow .base-export-review>small{display:block;margin:5px 0}
#baseAiHost #baseInvestigationWindow .base-export-review>button{margin:12px 8px 0 0;padding:8px 12px}
#baseAiHost #baseInvestigationWindow .base-workbar-actions{display:flex;gap:7px;align-items:center}

/* Typography and proportions for sustained classification work. */
#baseAiHost #baseInvestigationWindow{top:64px;bottom:16px;right:16px;width:min(1240px,calc(100vw - 32px));border-radius:14px;font-size:13px}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{padding:12px 18px;gap:12px}
#baseAiHost #baseInvestigationWindow .base-ai-identity strong{font-size:15px;letter-spacing:-.25px}
#baseAiHost #baseInvestigationWindow .base-ai-identity small{font-size:12px}
#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:16px 18px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{display:grid;grid-template-columns:minmax(230px,310px) minmax(0,1fr);align-items:center;gap:10px 18px;padding-bottom:14px;margin-bottom:14px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{gap:5px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters button{font-size:12px;min-height:34px;padding:7px 9px;gap:7px;border-radius:7px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar input{font-size:13px;min-height:38px}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:225px minmax(0,1fr);gap:18px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{padding-right:14px;max-height:calc(100dvh - 280px)}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>h3{font-size:13px;font-weight:600}
#baseAiHost #baseInvestigationWindow .base-review-item>strong{font-size:12px;line-height:1.4}
#baseAiHost #baseInvestigationWindow .base-review-item>span{font-size:13px;line-height:1.55;margin:5px 0}
#baseAiHost #baseInvestigationWindow .base-review-item>small{font-size:12px;line-height:1.5}
#baseAiHost #baseInvestigationWindow .base-review-queue .base-review-item{padding:12px 10px}
#baseAiHost #baseInvestigationWindow .base-history-comparison{gap:14px}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:16px!important;border-radius:10px}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:12px;letter-spacing:.2px;margin-bottom:12px;padding-bottom:10px}
#baseAiHost #baseInvestigationWindow .base-history-received>.base-history-text,#baseAiHost #baseInvestigationWindow .base-history-saved .base-history-text{font-size:15px!important;line-height:1.65!important;font-weight:500}
#baseAiHost #baseInvestigationWindow .base-history-received>small:first-of-type{font-size:14px;font-variant-numeric:tabular-nums}
#baseAiHost #baseInvestigationWindow .base-history-received>small,#baseAiHost #baseInvestigationWindow .base-account-history>small{font-size:12px;line-height:1.6}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{padding:12px 14px;margin:14px 0 10px;gap:3px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>strong{font-size:17px;letter-spacing:-.2px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>small{font-size:12px;margin-top:8px}
#baseAiHost #baseInvestigationWindow .base-pending-reason,#baseAiHost #baseInvestigationWindow .base-analysis-check{font-size:13px!important;line-height:1.6!important}
#baseAiHost #baseInvestigationWindow .base-comparison-alert{font-size:13px;line-height:1.6;padding:10px 12px}
#baseAiHost #baseInvestigationWindow .base-account-history>strong{font-size:16px!important}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{padding:12px 14px;bottom:-16px}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{font-size:13px;min-height:38px;padding:8px 12px}
#baseAiHost #baseInvestigationWindow .base-review-decision input[type=text]{font-size:16px;min-height:38px;font-variant-numeric:tabular-nums}
#baseAiHost #baseInvestigationWindow .base-evidence-list>summary,#baseAiHost #baseInvestigationWindow .base-more-histories>summary,#baseAiHost #baseInvestigationWindow .base-comparison-differences>summary{font-size:12px;padding:4px 0}
@media(max-width:1100px){#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-queue-tools{max-width:none}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow{inset:60px 6px 6px;width:calc(100vw - 12px)}#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:12px}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:none;padding:0}#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{bottom:-12px}#baseAiHost #baseInvestigationWindow .base-ai-window-header{padding:10px 12px}}


/* AI shortcut: a clean symbol with a generous, borderless hit area. */
#baseAiHost button.base-ai-launcher {
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content!important;
  max-width:calc(100vw - 32px);
  height:48px!important;
  min-height:48px!important;
  padding:5px 8px 5px 5px!important;
  right:20px;
  bottom:84px;
  border:1px solid var(--review-border)!important;
  border-radius:999px!important;
  background:var(--review-paper)!important;
  box-shadow:0 5px 20px #101b3233!important;
}
#baseAiHost button.base-ai-launcher[hidden]{display:none!important}
#baseAiHost button.base-ai-launcher:hover,
#baseAiHost button.base-ai-launcher:focus-visible {
  border-color:var(--review-action)!important;
  outline-offset:3px;
}
#baseAiHost button.base-ai-launcher .base-launcher-ai {
  display:grid;
  place-items:center;
  flex:none;
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(145deg,#163265,#3b5ca5);
  color:#eef9ff;
}
#baseAiHost .base-launcher-ai svg {width:24px;height:24px}
#baseAiHost .base-ai-spark-main {fill:currentColor;transform-origin:15px 17px}
#baseAiHost .base-ai-spark-accent {fill:#a8e9ff;transform-origin:26px 7px}
#baseAiHost button.base-ai-launcher .base-launcher-copy {
  display:block;
  color:var(--review-ink);
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
#baseAiHost button.base-ai-launcher .base-ai-launcher-count {
  position:static;
  min-width:24px!important;
  height:24px!important;
  padding:0 6px;
  border:0!important;
  border-radius:999px!important;
  background:var(--review-selected)!important;
  color:var(--review-ink)!important;
  font-size:11px!important;
  font-variant-numeric:tabular-nums;
}
@keyframes baseAiGlint {
  0%,62%,100% {transform:scale(1);opacity:1}
  78% {transform:scale(.72) rotate(20deg);opacity:.65}
  88% {transform:scale(1.16) rotate(-8deg);opacity:1}
}
@media(prefers-reduced-motion:no-preference) {
  #baseAiHost .base-ai-spark-accent {animation:baseAiGlint 4.5s ease-in-out infinite}
  #baseAiHost button.base-ai-launcher:is(:hover,:focus-visible) .base-ai-spark-main {
    transform:rotate(-9deg) scale(1.08);
  }
  #baseAiHost .base-ai-spark-main {transition:transform .24s ease}
}
@media(max-width:760px){#baseAiHost button.base-ai-launcher{right:16px;bottom:82px}}


/* Compact comparison: retain decision evidence without oversized text or repeated labels. */
#baseAiHost #baseInvestigationWindow{width:min(1160px,calc(100vw - 32px));top:72px;bottom:20px}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{padding:10px 14px;gap:10px}
#baseAiHost #baseInvestigationWindow .base-ai-identity strong{font-size:14px}
#baseAiHost #baseInvestigationWindow .base-ai-identity small{font-size:11px}
#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:14px 16px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:10px;padding-bottom:11px;margin-bottom:12px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar input{min-height:34px;font-size:12px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters button{min-height:30px;padding:6px 8px;font-size:11px;gap:6px}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{padding-right:12px;gap:8px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar>h3{font-size:12px}
#baseAiHost #baseInvestigationWindow .base-review-queue .base-review-item{padding:9px 8px}
#baseAiHost #baseInvestigationWindow .base-review-item>span{font-size:12px;line-height:1.45;margin:4px 0}
#baseAiHost #baseInvestigationWindow .base-review-item>strong,#baseAiHost #baseInvestigationWindow .base-review-item>small{font-size:11px;line-height:1.45}
#baseAiHost #baseInvestigationWindow .base-history-comparison{gap:12px;align-items:start}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:13px!important}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:10.5px;margin-bottom:10px;padding-bottom:9px}
#baseAiHost #baseInvestigationWindow .base-history-received>.base-history-text,#baseAiHost #baseInvestigationWindow .base-history-saved .base-history-text{font-size:13px!important;line-height:1.6!important}
#baseAiHost #baseInvestigationWindow .base-history-received>small:first-of-type{font-size:12px}
#baseAiHost #baseInvestigationWindow .base-history-received>small,#baseAiHost #baseInvestigationWindow .base-account-history>small{font-size:11px;line-height:1.5}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{padding:10px 12px;margin:12px 0 8px;gap:2px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>strong{font-size:14px;line-height:1.5;letter-spacing:0}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>.base-analysis-state{display:none}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>small{font-size:11px;margin-top:7px}
#baseAiHost #baseInvestigationWindow .base-pending-reason,#baseAiHost #baseInvestigationWindow .base-analysis-check{font-size:12px!important;line-height:1.55!important;margin-bottom:2px!important}
#baseAiHost #baseInvestigationWindow .base-account-history>strong{font-size:14px!important}
#baseAiHost #baseInvestigationWindow .base-account-history-entry{padding:10px;margin:10px 0}
#baseAiHost #baseInvestigationWindow .base-comparison-alert{display:none}
#baseAiHost #baseInvestigationWindow .base-evidence-list>summary,#baseAiHost #baseInvestigationWindow .base-more-histories>summary,#baseAiHost #baseInvestigationWindow .base-comparison-differences>summary{font-size:11px;padding:3px 0}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{padding:10px 12px;bottom:-14px;gap:6px 12px}
#baseAiHost #baseInvestigationWindow .base-review-decision>label{font-size:11px}
#baseAiHost #baseInvestigationWindow .base-review-decision input[type=text]{font-size:14px;min-height:34px}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{font-size:12px;min-height:34px;padding:7px 10px}
@media(max-width:1100px){#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow{inset:60px 6px 6px;width:calc(100vw - 12px)}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{padding:0}#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:12px}#baseAiHost #baseInvestigationWindow .base-review-navigation button{min-height:38px}}


/* Give the decision check priority without increasing the text scale. */
#baseAiHost #baseInvestigationWindow .base-check-focus{order:0;margin:8px 0 6px;padding:11px 12px;background:#fff7e7;border:1px solid #e8c881;border-left:3px solid #bc8116;border-radius:7px;color:#64420b}
#baseAiHost #baseInvestigationWindow .base-check-focus>strong{display:block;font-size:12px;font-weight:650;margin-bottom:5px;color:inherit}
#baseAiHost #baseInvestigationWindow .base-check-focus .base-analysis-check{color:inherit!important;font-size:12px!important;line-height:1.55!important;margin:0!important}
#baseAiHost #baseInvestigationWindow .base-comparison-delta{padding:10px 12px;margin:12px 0;background:var(--review-soft);border:1px solid var(--review-border);border-radius:7px;display:grid;grid-template-columns:1fr;gap:3px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>strong{font-size:11px;font-weight:650;color:var(--review-ink);margin-bottom:4px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>small{font-size:10px;color:var(--review-muted);margin-top:4px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>p{font-size:12px!important;line-height:1.5!important;font-weight:600;color:var(--review-ink)!important;margin:0!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-theme=dark] #baseAiHost #baseInvestigationWindow .base-check-focus{background:#2b2518;border-color:#6d5930;border-left-color:#d9aa4e;color:#f0d499}


/* Smaller working window; full histories remain visible and wrap naturally. */
#baseAiHost #baseInvestigationWindow{top:84px;bottom:auto;right:20px;width:min(1040px,calc(100vw - 40px));height:min(700px,calc(100dvh - 108px));max-height:calc(100dvh - 108px)}
#baseAiHost #baseInvestigationWindow.is-expanded{inset:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:none}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{padding:9px 12px}
#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:12px 14px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{gap:7px;padding-bottom:9px;margin-bottom:10px}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:185px minmax(0,1fr);gap:14px}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:min(490px,calc(100dvh - 300px));padding-right:10px}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:12px!important}
#baseAiHost #baseInvestigationWindow .base-history-text{white-space:normal;overflow:visible;text-overflow:clip;max-height:none;-webkit-line-clamp:unset}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{padding:9px 10px;margin:10px 0 6px}
#baseAiHost #baseInvestigationWindow .base-check-focus{margin:6px 0;padding:8px 10px}
#baseAiHost #baseInvestigationWindow .base-check-focus>strong{font-size:11px;margin-bottom:3px}
#baseAiHost #baseInvestigationWindow .base-reasoning-details{margin:5px 0 0}
#baseAiHost #baseInvestigationWindow .base-reasoning-details>summary{font-size:11px;color:var(--review-action);cursor:pointer;padding:3px 0}
#baseAiHost #baseInvestigationWindow .base-reasoning-details>p{font-size:12px!important;line-height:1.55!important;margin:6px 0!important}
#baseAiHost #baseInvestigationWindow .base-comparison-delta{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px;padding:8px 10px;margin:9px 0}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>strong{grid-column:1/-1;margin:0 0 3px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>small{grid-column:1;margin:0;align-self:center}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>p{grid-column:2}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{padding:8px 10px;bottom:-12px}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{padding:6px 8px}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow{inset:60px 6px 6px;width:calc(100vw - 12px);height:auto;max-height:none}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-sidebar{max-height:none;padding:0}#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(0,1fr)}}


/* Each review area scrolls independently; toolbar and options stay in place. */
#baseAiHost #baseInvestigationWindow .base-ai-window-body:has(.base-review-layout){display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto;gap:0}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{flex:none}
#baseAiHost #baseInvestigationWindow .base-review-layout{flex:1;min-height:0;overflow:hidden;align-items:stretch;margin:0}
#baseAiHost #baseInvestigationWindow .base-review-sidebar{position:static;min-height:0;height:100%;max-height:none;box-sizing:border-box;overflow:hidden}
#baseAiHost #baseInvestigationWindow .base-review-queue{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--review-border) transparent}
#baseAiHost #baseInvestigationWindow .base-review-detail{min-height:0;overflow:auto;padding-right:8px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--review-border) transparent;scroll-padding-bottom:80px}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{bottom:0;background:var(--review-paper);z-index:3}
#baseAiHost #baseInvestigationWindow .base-review-options{flex:none;max-height:125px;overflow:auto;margin:10px 0 0;padding-top:7px}
#baseAiHost #baseInvestigationWindow .base-investigation-learn{flex:none;margin:7px 0 0}
#baseAiHost #baseInvestigationWindow .base-review-footer{flex:none;max-height:85px;overflow:auto}
#baseAiHost #baseInvestigationWindow .base-review-footer:empty{display:none}
#baseAiHost #baseInvestigationWindow .base-export-review:not([hidden]){flex:0 1 auto;max-height:38%;overflow:auto}
#baseAiHost #baseInvestigationWindow .base-draft-notice{flex:none;max-height:100px;overflow:auto}
#baseAiHost #baseInvestigationWindow .base-received-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;padding-bottom:9px;margin-bottom:10px;border-bottom:1px solid var(--review-border)}
#baseAiHost #baseInvestigationWindow .base-received-heading>h4{margin:0;padding:0;border:0;flex:1}
#baseAiHost #baseInvestigationWindow .base-received-heading .base-account-candidates{display:flex;gap:5px;flex-wrap:wrap;margin:0;padding:0}
#baseAiHost #baseInvestigationWindow .base-account-candidates button{font-size:11px;padding:5px 8px;min-height:28px;border-radius:6px;margin:0}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow .base-ai-window-body:has(.base-review-layout){display:block;overflow:auto}#baseAiHost #baseInvestigationWindow .base-review-layout{overflow:visible}#baseAiHost #baseInvestigationWindow .base-review-sidebar{height:auto;max-height:none;overflow:visible}#baseAiHost #baseInvestigationWindow .base-review-queue{max-height:115px}#baseAiHost #baseInvestigationWindow .base-review-detail{overflow:visible;padding:0;scrollbar-gutter:auto}#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-review-decision{bottom:-12px}}


#baseAiHost .base-ai-launcher{height:62px;min-height:62px;width:62px;padding:7px;gap:0;border-radius:18px}
#baseAiHost .base-ai-launcher .base-brand-mark{width:46px;height:46px;border-radius:13px}


/* The assistant uses the same quiet loading language as the tools. */
#baseAiHost .base-ai-loading{display:grid;grid-template-columns:20px minmax(0,1fr);align-content:center;align-items:center;column-gap:12px;row-gap:5px;min-height:180px;padding:22px 16px;text-align:left}
#baseAiHost .base-ai-loading .base-loading-orbit{grid-column:1;grid-row:1;position:relative;width:20px;height:20px;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#baseAiHost .base-ai-loading .base-loading-orbit::before{content:'';position:absolute;inset:0;border:2px solid var(--task-track,#dbe5f5);border-top-color:var(--task-accent,#356bd6);border-right-color:var(--task-accent,#356bd6);border-radius:50%;animation:razyncTaskOrbit 1s cubic-bezier(.45,.1,.55,.9) infinite}
#baseAiHost .base-ai-loading h3{grid-column:2;font-size:14px;line-height:1.5;letter-spacing:-.2px;margin:0}
#baseAiHost .base-ai-loading>p{grid-column:2;max-width:440px;font-size:12px;line-height:1.6;margin:0;font-weight:400}
#baseAiHost .base-ai-loading .base-loading-note{grid-column:2;max-width:440px;font-size:11px;line-height:1.6;margin:0;color:var(--review-muted)}
#baseAiHost .base-ai-loading>button{grid-column:2;justify-self:start;margin:10px 0 0;padding:6px 10px;font-size:11px;min-height:30px}
#baseAiHost .base-ai-explanation{padding:0 0 12px;margin:0 0 12px;border:0;border-bottom:1px solid var(--review-border);background:transparent;min-width:0}
#baseAiHost .base-ai-explain-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
#baseAiHost .base-ai-explain-title{font-size:12px;color:var(--review-ink)}
#baseAiHost .base-ai-explain-toolbar button{padding:6px 10px;min-height:30px;font-size:11px;color:var(--review-action);border-color:var(--review-border);background:transparent}
#baseAiHost .base-ai-explain-status,#baseAiHost .base-ai-explain-summary{font-size:12px;line-height:1.65;margin:7px 0;color:var(--review-ink);overflow-wrap:anywhere}
#baseAiHost .base-ai-explain-status{font-size:11px;color:var(--review-muted)}
#baseAiHost .base-ai-explain-status.is-busy{position:relative;padding-left:27px;min-height:20px}
#baseAiHost .base-ai-explain-status.is-busy::before{content:'';position:absolute;left:0;top:1px;width:16px;height:16px;border:2px solid var(--task-track,#dbe5f5);border-top-color:var(--task-accent,#356bd6);border-radius:50%;animation:razyncTaskOrbit 1s ease-in-out infinite}
#baseAiHost .base-ai-explain-provider{display:block;font-size:10px;color:var(--review-action);margin-top:7px}
#baseAiHost .base-ai-explain-account{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:8px 0;font-size:11px;line-height:1.6}
#baseAiHost .base-ai-explain-account strong{color:var(--review-action);font-size:11px;white-space:nowrap}
#baseAiHost .base-ai-explain-label{display:block;margin-top:10px;font-size:11px}
#baseAiHost .base-ai-explain-checks{margin:5px 0 8px;padding-left:17px;font-size:11px;line-height:1.7}
#baseAiHost .base-ai-explain-limit{display:block;font-size:10px;color:var(--review-muted);line-height:1.6}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-ai-explain-status.is-busy::before{animation:none!important}}
@media(prefers-reduced-motion:reduce){#baseAiHost .base-ai-loading .base-loading-orbit::before{animation:none!important}}


/* Review workspace: comparison first, supporting analysis on demand. */
#baseAiHost{--review-paper:#fff;--review-soft:#f6f7f9;--review-ink:#253247;--review-muted:#596579;--review-border:#dce1e8;--review-selected:#edf3ff}
html[data-theme=dark] #baseAiHost{--review-paper:#111214;--review-soft:#18191c;--review-ink:#e8eaef;--review-muted:#aeb4c0;--review-border:#303238;--review-action:#93b9ff;--review-selected:#19263e}
#baseAiHost #baseInvestigationWindow{width:min(1100px,calc(100vw - 40px))}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{background:var(--review-paper);flex-wrap:wrap}
#baseAiHost #baseInvestigationWindow .base-ai-workbar{min-width:0;gap:10px}
#baseAiHost #baseInvestigationWindow .base-workbar-actions button{font-size:11px!important;min-height:32px;padding:6px 10px}
#baseAiHost #baseInvestigationWindow .base-workbar-actions button[hidden]{display:none!important}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(190px,245px) minmax(0,1fr);gap:10px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{gap:5px;flex-wrap:wrap}
#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters button{font-size:11px!important;line-height:1.3;min-height:32px;padding:6px 8px;white-space:nowrap}
#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:215px minmax(0,1fr);gap:14px}
#baseAiHost #baseInvestigationWindow .base-review-item>span{font-size:12px;line-height:1.5}
#baseAiHost #baseInvestigationWindow .base-review-item>small,#baseAiHost #baseInvestigationWindow .base-review-item>strong{font-size:11px;line-height:1.5}
#baseAiHost #baseInvestigationWindow .base-history-comparison{align-items:start;gap:12px;margin-top:8px}
#baseAiHost #baseInvestigationWindow .base-history-saved{background:transparent!important}
#baseAiHost #baseInvestigationWindow .base-history-text{font-size:13px!important;line-height:1.65!important}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{background:transparent;border:0;padding:0;margin:10px 0 0}
#baseAiHost #baseInvestigationWindow .base-check-focus{background:transparent;border:0;border-left:2px solid #b98a35;border-radius:0;padding:3px 0 3px 9px;margin:8px 0}
#baseAiHost #baseInvestigationWindow .base-check-focus>strong{font-size:12px;margin-bottom:4px;color:var(--review-ink)}
#baseAiHost #baseInvestigationWindow .base-check-focus .base-analysis-check{color:var(--review-muted)!important}
#baseAiHost #baseInvestigationWindow .base-account-history-entry{background:transparent;border:0;padding:8px 0;margin:8px 0 0}
#baseAiHost #baseInvestigationWindow .base-comparison-delta{background:transparent;border:0;border-top:1px solid var(--review-border);border-radius:0;padding:9px 0;margin:8px 0}
#baseAiHost #baseInvestigationWindow .base-ai-explanation{grid-column:1/-1;border:0!important;border-top:1px solid var(--review-border)!important;border-radius:0;padding:10px 0!important;margin:0;background:transparent}
#baseAiHost #baseInvestigationWindow .base-ai-explain-summary{font-size:12px;line-height:1.6;margin:7px 0!important;color:var(--review-ink)}
#baseAiHost #baseInvestigationWindow .base-ai-explain-details>summary{font-size:12px;padding:3px 0}
#baseAiHost #baseInvestigationWindow .base-ai-explain-account,#baseAiHost #baseInvestigationWindow .base-ai-explain-checks{font-size:12px;line-height:1.6}
#baseAiHost #baseInvestigationWindow .base-review-decision{grid-column:1/-1;background:var(--review-paper);box-shadow:0 -5px 12px #00000009}
#baseAiHost #baseInvestigationWindow button:disabled{opacity:.5!important;cursor:default}
#baseAiHost #baseInvestigationWindow .base-review-confirm:disabled{opacity:.55!important}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{font-size:11px!important;min-height:34px}
#baseAiHost #baseInvestigationWindow .base-queue-tools>input{color:var(--review-ink);background:var(--review-paper)}
@media(max-width:1000px){#baseAiHost #baseInvestigationWindow .base-review-toolbar{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:195px minmax(0,1fr)}}
@media(max-width:760px){#baseAiHost #baseInvestigationWindow{width:calc(100vw - 12px)}#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-ai-workbar{flex-basis:100%;flex-wrap:wrap}#baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{flex-wrap:wrap;overflow:visible}#baseAiHost #baseInvestigationWindow .base-workbar-actions{display:flex;flex-wrap:wrap}#baseAiHost #baseInvestigationWindow .base-history-comparison{grid-template-columns:minmax(0,1fr)}}
/* Compact review: readable histories and a decision row that never covers content. */
#baseAiHost #baseInvestigationWindow{top:68px;height:min(660px,calc(100dvh - 84px));max-height:calc(100dvh - 84px)}
#baseAiHost #baseInvestigationWindow.is-expanded{inset:12px;height:calc(100dvh - 24px);max-height:none}
#baseAiHost #baseInvestigationWindow .base-ai-window-header{padding:8px 12px}
#baseAiHost #baseInvestigationWindow .base-ai-window-body{padding:10px 12px}
#baseAiHost #baseInvestigationWindow .base-review-toolbar{padding-bottom:8px;margin-bottom:8px;gap:8px}
#baseAiHost #baseInvestigationWindow .base-review-layout{gap:12px;grid-template-columns:205px minmax(0,1fr)}
#baseAiHost #baseInvestigationWindow .base-review-detail{display:flex;flex-direction:column;overflow:hidden;padding:0;scrollbar-gutter:auto;scroll-padding-bottom:0}
#baseAiHost #baseInvestigationWindow .base-review-reading{flex:1;min-height:0;overflow:auto;padding-right:6px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--review-border) transparent}
#baseAiHost #baseInvestigationWindow .base-review-reading>small{font-size:10.5px;margin:0 0 5px;line-height:1.4}
#baseAiHost #baseInvestigationWindow .base-history-comparison{gap:8px;margin-top:5px;align-items:start}
#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-received,#baseAiHost #baseInvestigationWindow .base-history-comparison>.base-history-saved{padding:10px!important;border-radius:8px;min-height:0}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:10px;letter-spacing:.3px;padding-bottom:6px;margin:0 0 7px}
#baseAiHost #baseInvestigationWindow .base-received-heading{padding-bottom:6px;margin-bottom:7px;gap:5px}
#baseAiHost #baseInvestigationWindow .base-received-heading h4{padding:0;margin:0}
#baseAiHost #baseInvestigationWindow .base-history-text,#baseAiHost #baseInvestigationWindow .base-history-received>.base-history-text,#baseAiHost #baseInvestigationWindow .base-history-saved .base-history-text{font-size:12px!important;line-height:1.5!important;margin:3px 0 6px!important;white-space:normal;overflow:visible;max-height:none;-webkit-line-clamp:unset}
#baseAiHost #baseInvestigationWindow .base-history-received>small,#baseAiHost #baseInvestigationWindow .base-account-history>small,#baseAiHost #baseInvestigationWindow .base-account-history-entry>small{font-size:10.5px;line-height:1.45;margin-top:3px}
#baseAiHost #baseInvestigationWindow .base-history-received>small:first-of-type{font-size:11.5px}
#baseAiHost #baseInvestigationWindow .base-evidence-summary{gap:3px;margin:7px 0 0;padding:0}
#baseAiHost #baseInvestigationWindow .base-evidence-summary>strong{font-size:11px;line-height:1.4;font-weight:550}
#baseAiHost #baseInvestigationWindow .base-check-focus{margin:4px 0;padding:3px 0 3px 8px;background:transparent!important;border:0;border-left:2px solid #b98a35}
#baseAiHost #baseInvestigationWindow .base-check-focus>strong{font-size:11px;line-height:1.4;margin-bottom:2px}
#baseAiHost #baseInvestigationWindow .base-check-focus .base-analysis-check{font-size:11px!important;line-height:1.45!important;margin:0!important}
#baseAiHost #baseInvestigationWindow .base-reasoning-details,#baseAiHost #baseInvestigationWindow .base-evidence-list{margin:4px 0 0}
#baseAiHost #baseInvestigationWindow .base-reasoning-details>summary,#baseAiHost #baseInvestigationWindow .base-evidence-list>summary,#baseAiHost #baseInvestigationWindow .base-more-histories>summary,#baseAiHost #baseInvestigationWindow .base-comparison-differences>summary{font-size:10.5px;line-height:1.4;padding:2px 0}
#baseAiHost #baseInvestigationWindow .base-account-history>strong{font-size:12px!important;line-height:1.4}
#baseAiHost #baseInvestigationWindow .base-account-history-entry{padding:3px 0;margin:5px 0 0}
#baseAiHost #baseInvestigationWindow .base-comparison-delta{padding:5px 0;margin:6px 0;gap:2px 6px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>strong{font-size:10.5px;margin-bottom:2px}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>p{font-size:11px!important;line-height:1.4!important}
#baseAiHost #baseInvestigationWindow .base-account-candidates button{min-height:26px;font-size:10.5px;padding:4px 6px}
#baseAiHost #baseInvestigationWindow .base-ai-explanation{padding:7px 0!important}
#baseAiHost #baseInvestigationWindow .base-ai-explain-title{font-size:11px}
#baseAiHost #baseInvestigationWindow .base-ai-explain-toolbar button{min-height:27px;font-size:10.5px;padding:4px 8px}
#baseAiHost #baseInvestigationWindow .base-ai-explain-summary{font-size:11.5px!important;line-height:1.5!important;margin:5px 0!important}
#baseAiHost #baseInvestigationWindow .base-ai-explain-details>summary{font-size:10.5px;padding:2px 0}
#baseAiHost #baseInvestigationWindow .base-ai-explain-status[hidden]{display:none!important}
#baseAiHost #baseInvestigationWindow .base-review-detail>.base-review-decision{position:static;flex:none;display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:5px 10px;padding:8px 0 0;margin:6px 0 0;border:0;border-top:1px solid var(--review-border);border-radius:0;background:var(--review-paper);box-shadow:none;box-sizing:border-box;min-width:0}
#baseAiHost #baseInvestigationWindow .base-review-decision>label{grid-row:1;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:550;white-space:nowrap;margin:0;min-width:0}
#baseAiHost #baseInvestigationWindow .base-review-decision input[type=text]{width:150px;max-width:100%;min-width:95px;min-height:32px;box-sizing:border-box;padding:5px 8px;font-size:12px;letter-spacing:0;flex:0 1 150px}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-navigation{grid-row:1;grid-column:2;display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;align-self:center}
#baseAiHost #baseInvestigationWindow .base-review-navigation button{min-height:32px;padding:5px 8px;font-size:10.5px!important;line-height:1.3}
#baseAiHost #baseInvestigationWindow .base-review-navigation .base-review-confirm{min-width:120px}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval{grid-row:2;grid-column:1/-1;font-size:11px}
#baseAiHost #baseInvestigationWindow .base-review-approval[hidden]{display:none!important}
#baseAiHost #baseInvestigationWindow .base-review-options{padding-top:5px;margin-top:7px}
#baseAiHost #baseInvestigationWindow .base-investigation-learn{margin-top:5px;font-size:10.5px;line-height:1.4}
@media(max-width:1050px){#baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:185px minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-detail>.base-review-decision{grid-template-columns:minmax(0,1fr)}#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-navigation{grid-row:2;grid-column:1;justify-content:flex-start}#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval{grid-row:3}}
@media(max-width:760px), (max-height:580px){
  #baseAiHost #baseInvestigationWindow .base-ai-window-body:has(.base-review-layout){display:block;overflow:auto;overscroll-behavior:contain}
  #baseAiHost #baseInvestigationWindow .base-review-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:12px;overflow:visible}
  #baseAiHost #baseInvestigationWindow .base-review-sidebar{height:auto;max-height:none;overflow:visible}
  #baseAiHost #baseInvestigationWindow .base-review-sidebar>h3{display:none}
  #baseAiHost #baseInvestigationWindow .base-review-queue{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;max-height:none;padding-bottom:5px}
  #baseAiHost #baseInvestigationWindow .base-review-queue .base-review-item{flex:0 0 190px;min-height:80px}
  #baseAiHost #baseInvestigationWindow .base-review-toolbar .base-review-filters{flex-wrap:wrap;overflow:visible;padding-bottom:0}
  #baseAiHost #baseInvestigationWindow .base-review-detail,
  #baseAiHost #baseInvestigationWindow .base-review-reading,
  #baseAiHost #baseInvestigationWindow .base-review-options{overflow:visible;max-height:none;padding-right:0}
  #baseAiHost #baseInvestigationWindow .base-review-decision>label{white-space:normal}
}
@media(max-width:760px){
  #baseAiHost #baseInvestigationWindow{top:60px;height:calc(100dvh - 66px);max-height:calc(100dvh - 66px)}
  #baseAiHost #baseInvestigationWindow .base-history-comparison{grid-template-columns:minmax(0,1fr)}
  #baseAiHost #baseInvestigationWindow .base-review-decision input[type=text],
  #baseAiHost #baseInvestigationWindow .base-queue-tools>input{font-size:16px}
}
#baseAiHost #baseInvestigationWindow .base-received-heading>h4{flex:1 0 130px;min-width:130px;overflow-wrap:normal;word-break:normal}
#baseAiHost #baseInvestigationWindow .base-received-heading .base-account-candidates{max-width:100%;flex-wrap:wrap}

/* Direct review: one instruction, two histories and one decision. */
#baseAiHost #baseInvestigationWindow .base-case-details {margin-top:8px;font-size:11px;line-height:1.5;color:var(--review-muted);}
#baseAiHost #baseInvestigationWindow .base-case-details>summary,#baseAiHost #baseInvestigationWindow .base-reference-details>summary {cursor:pointer;font-size:11px;line-height:1.5;padding:3px 0;color:var(--review-muted);}
#baseAiHost #baseInvestigationWindow .base-case-details[open] {padding-top:6px;}
#baseAiHost #baseInvestigationWindow .base-case-details>strong {display:block;margin:7px 0 4px;font-size:11px;}
#baseAiHost #baseInvestigationWindow .base-case-details p {font-size:11px!important;line-height:1.5!important;}
#baseAiHost #baseInvestigationWindow .base-check-focus {margin:7px 0 3px;padding:4px 0 4px 8px;}
#baseAiHost #baseInvestigationWindow .base-check-focus>strong {font-size:11.5px;font-weight:650;}
#baseAiHost #baseInvestigationWindow .base-reference-details {margin-top:6px;}
#baseAiHost #baseInvestigationWindow .base-reference-details>small {display:block;font-size:10.5px;line-height:1.5;margin:4px 0;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 10px;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>strong {grid-column:1/-1;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>small:nth-child(2) {grid-row:2;grid-column:1;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>p:nth-child(3) {grid-row:3;grid-column:1;overflow-wrap:anywhere;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>small:nth-child(4) {grid-row:2;grid-column:2;}
#baseAiHost #baseInvestigationWindow .base-comparison-delta>p:nth-child(5) {grid-row:3;grid-column:2;overflow-wrap:anywhere;}
#baseAiHost #baseInvestigationWindow .base-decision-help {grid-column:1/-1;grid-row:2;font-size:11px;line-height:1.4;color:var(--review-muted);margin:0;}
#baseAiHost #baseInvestigationWindow .base-decision-help[hidden] {display:none;}
#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval {grid-row:3;}
#baseAiHost #baseInvestigationWindow .base-ai-explain-title[hidden] {display:none;}
@media(max-width:1050px){#baseAiHost #baseInvestigationWindow .base-decision-help{grid-row:3}#baseAiHost #baseInvestigationWindow .base-review-decision .base-review-approval{grid-row:4}}

/* Keep transaction histories and secondary text readable in both themes. */
html[data-theme=dark] #baseAiHost{
  --review-paper:var(--surface);
  --review-soft:var(--surface-2);
  --review-ink:#edf2fa;
  --review-muted:#b8c5d7;
  --review-border:var(--border);
  --review-selected:#213655;
}
#baseAiHost #baseInvestigationWindow .base-history-text,
#baseAiHost #baseInvestigationWindow .base-history-received>.base-history-text,
#baseAiHost #baseInvestigationWindow .base-history-saved .base-history-text{font-size:14px!important;line-height:1.55!important;overflow-wrap:anywhere}
#baseAiHost #baseInvestigationWindow .base-history-comparison h4{font-size:11px;color:var(--review-ink)}
#baseAiHost #baseInvestigationWindow .base-review-reading>small,
#baseAiHost #baseInvestigationWindow .base-history-received>small,
#baseAiHost #baseInvestigationWindow .base-case-details>summary,
#baseAiHost #baseInvestigationWindow .base-reference-details>summary{font-size:12px;color:var(--review-muted)}
#baseAiHost #baseInvestigationWindow .base-queue-tools>input::placeholder{color:var(--review-muted);opacity:1}
#baseAiHost #baseInvestigationWindow .base-review-queue .base-review-item[aria-pressed=true]{
  background:var(--review-selected)!important;
  box-shadow:inset 3px 0 0 var(--review-action);
}

/* assets/css/themes.css */
/* Theme controls are shared by every page. No filters: original assets retain their colors. */
.topbar-actions {display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 11px;border:1px solid #dbe4ee;border-radius:11px;background:#ffffffa6;color:#526c84;cursor:pointer;font-size:11px;font-weight:550}
.theme-toggle:hover {background:#eaf1f8;border-color:#b7cadc}
.theme-toggle:focus-visible {outline:2px solid #5286bf;outline-offset:3px}
.topbar-home-link {text-decoration:none;white-space:nowrap}
@media(max-width:760px) {.topbar-home-link span{display:none}}
/* Reveal a single theme snapshot rather than transitioning every table cell. */
html[data-theme-transition="active"]::view-transition-old(root),
html[data-theme-transition="active"]::view-transition-new(root) {animation:none;mix-blend-mode:normal}
html[data-theme-transition="active"]::view-transition-old(root) {z-index:1}
html[data-theme-transition="active"]::view-transition-new(root) {z-index:2}
html[data-theme-transition="active"]::view-transition-group(root) {animation-duration:460ms}
@media(prefers-reduced-motion:no-preference) {
 .theme-toggle svg {animation:themeIconAppear .32s ease-out}
 @keyframes themeIconAppear {from{opacity:.3;transform:rotate(-35deg) scale(.7)}to{opacity:1;transform:none}}
}
.theme-toggle svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-sun {display:none}
html[data-theme="dark"] .theme-moon {display:none}
html[data-theme="dark"] .theme-sun {display:block}
@media(max-width:760px) {.topbar-actions{gap:6px}.theme-toggle{min-width:38px;padding:8px}#themeToggleLabel{display:none}.topbar .status-pill{max-width:145px;text-align:center;line-height:1.4}}
/* A restrained refinement of the portfolio action, in both themes. */
#portfolioPicker .portfolio-entry-action {padding:0;border:0;border-radius:0;background:transparent}
#portfolioPicker .portfolio-entry-arrow {background:#dfeaf4}
#portfolioPicker .portfolio-entry:hover .portfolio-entry-action {background:transparent}
html[data-theme="dark"] {
 color-scheme:dark;--bg:#080808;--surface:#141414;--surface-2:#1c1c1c;--surface-soft:#101010;
 --border:#383838;--line:var(--border);--text:#edf2fa;--ink:var(--text);--muted:#b6c2d2;--ink-muted:var(--muted);
 --accent:#8cbcf3;--accent-soft:#17243a;--action:#2864d7;--tool-accent:#8cbcf3;--panel-shadow:0 6px 24px #00000018;
 --dark-text:var(--text);--dark-muted:var(--muted);--dark-accent:#8ab8ff;--dark-success:#87d8b9;--dark-error:#f3a6ad;--dark-warning:#e5c391;
 background:var(--bg);scrollbar-color:#666666 var(--bg);
}
html[data-theme="dark"] body {background:var(--bg);color:var(--text)}
html[data-theme="dark"] ::selection {background:#386292;color:#fff}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) {color:var(--text)}
/* Raise only color specificity, preserving all component dimensions and layouts. */
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(h1,h2,h3,h4,h5,h6,strong,label,legend,summary,.company-row-name,.form-card-header,.fiscal-detail-title,.fiscal-ai-source-title) {color:var(--dark-text)!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(p,small,.helper,.eyebrow,.company-row-meta,.company-row-action,.portfolio-date,.portfolio-eyebrow,.portfolio-access-kicker,.portfolio-entry-label,.portfolio-entry-quantity,.file-drop-hint,.preview-note,.preview-subtitle,.form-card-header small,.topbar-title,.directory-heading p,.tool-feature-list,.period-help,.base-cleanup,.fiscal-ai-card-description,.fiscal-ai-inline-status,.fiscal-ai-executive-kicker,.fiscal-ai-executive-coverage,.fiscal-ai-source,.fiscal-summary-top,.fiscal-workflow-button,.fiscal-account-resolution-heading,.bank-investments-note) {color:var(--dark-muted)!important}
html[data-theme="dark"] :is(main,dialog) :where(*) {border-color:var(--border)!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.search-card,.directory-controls,.overview-card,.panel-head,.tool-card,.modern-form,.preview-sheet,.preview-results,.preview-table-scroll,.daily-table-scroll,.daily-review,.daily-table,.report-result,.result-card,.summary-card,.company-card,.portfolio-entry,.company-dialog,.preview-dialog,.admin-auth-dialog,.bank-investments,.fiscal-setup,.fiscal-results-card,.fiscal-summary,.fiscal-detail,.fiscal-investigation,.fiscal-ai,.fiscal-ai-account,.fiscal-account-dialog,.fiscal-account-dialog-body,.fiscal-ai-source,.fiscal-ai-evidence,.fiscal-account-resolution,.fiscal-document-panel,.fiscal-evidence-card) {background:var(--surface)!important;color:var(--text)!important;box-shadow:0 4px 20px #00000012}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.tool-intro,.period-card,.bank-selector,.bank-choice,.file-drop-shell,.preview-summary-item,.mini-metrics > span,.summary-metric,.form-card-icon,.tool-visual-icon,.overview-icon,.company-row-code,.company-row-action b,.portfolio-avatar,.portfolio-feature-icon,.portfolio-entry-action,.portfolio-entry-arrow,.file-selection,.file-selection-item,.tool-flow,.upload-progress,.upload-visual-status,.base-cleanup-confirmation,.base-periods,.base-period-bank,.base-period-item,.fiscal-next-step,.fiscal-summary-pending,.fiscal-review-toolbar,.fiscal-detail-metric-difference,.fiscal-ai-icon,.fiscal-ai-source-panel,.fiscal-ai-account-nav,.fiscal-ai-executive,.fiscal-ai-evidence,.fiscal-ai-account-resolution,.fiscal-ai-source.is-ready,.fiscal-ai-heading-tools .fiscal-ai-provider,.fiscal-ai-local-note,.fiscal-ai-method,.fiscal-ai-context,.fiscal-ai-document-summary) {background:var(--surface-2)!important;color:var(--dark-accent)!important;box-shadow:none!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {background:var(--surface-soft)!important;color:var(--text)!important;border-color:#595959!important;caret-color:#8ab8ff;box-shadow:none}
html[data-theme="dark"] :is(input,textarea)::placeholder {color:var(--muted)!important;opacity:1}
html[data-theme="dark"] input::file-selector-button {background:#252525;color:#e2e2e2;border:1px solid #505050;border-radius:7px;padding:7px 11px;margin-right:10px}
html[data-theme="dark"] :is(input[type=checkbox],input[type=radio]) {accent-color:#8cbcf3}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(input,select,textarea,button,a,summary):focus-visible {outline:2px solid #91c6ff!important;outline-offset:3px;box-shadow:none!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(button,.secondary-action,.preview-expand) {background:var(--surface-2)!important;color:#dddddd!important;border-color:#3d3d3d!important;box-shadow:none!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(button,.secondary-action,.preview-expand):hover:not(:disabled) {background:#292929!important;border-color:#626262!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(button[type=submit]:not(.secondary-action),.preview-download,.daily-download,.bank-investments-download,.fiscal-ai-primary,#adminAuthConfirm) {background:#2864d7!important;color:#fff!important;border-color:#417de8!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(button[type=submit]:not(.secondary-action),.preview-download,.daily-download,.bank-investments-download,.fiscal-ai-primary,#adminAuthConfirm):hover:not(:disabled) {background:#3474e5!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.tool-tab.active,.main-nav-btn.active,.company-filter.active,.bank-choice.selected,[aria-pressed=true],.is-selected,.is-current) {background:#17243a!important;color:#c2d8ff!important;border-color:#507db6!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) button:disabled {opacity:.48;cursor:not-allowed}
/* Tables: headers, zebra rows, hover, editors and semantic balance colors. */
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(table,tbody,td) {background:var(--surface)!important;color:#dedede!important;box-shadow:none}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) th {background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) tr:nth-child(even) td {background:#191919!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) tbody tr:hover td {background:#262626!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.is-success,.is-success p,.is-success strong,.status-success,.fiscal-status-ok,.daily-balance.is-balanced,.match-ok,.positive,.online) {color:var(--dark-success)!important;background:#16382f!important;border-color:#396858!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.is-warning,.is-warning p,.is-warning strong,.preview-row-warning,.preview-pending-summary,.fiscal-warnings,.accounts-pending,.status-warning) {color:var(--dark-warning)!important;background:#3a3023!important;border-color:#6e5940!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.is-error,.is-error p,.is-error strong,.base-stat-error,.is-different,.daily-balance.is-different,.negative,.status-error,.fiscal-account-resolution-error,[role=alert]) {color:var(--dark-error)!important;background:#3b252e!important;border-color:#76434f!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(#confirmBaseCleanup,.danger-action) {background:#853e50!important;color:#fff!important;border-color:#b66677!important}
/* AI tokens also apply when the fiscal styles are loaded after theme selection. */
html[data-theme="dark"] #fiscalView {--fw-ink:#ededed;--fw-text:#d2d2d2;--fw-muted:#ababab;--fw-border:#333333;--fw-light:#1e1e1e;--fw-accent:#9ac4f2;--fw-focus:#91c6ff;--studio-line:#333333;--studio-blue:#9ac4f2}
html[data-theme="dark"] #fiscalView .fiscal-ai {--ai-ink:#ededed;--ai-muted:#ababab;--ai-blue:#8ab8ff;--ai-line:#333333}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-value strong,.fiscal-detail-metric strong,.fiscal-ai-card-description,.fiscal-ai-nav-account,.fiscal-ai-value small,.fiscal-ai-source-title,.fiscal-ai-executive-kicker,.fiscal-ai-card-description) {color:#d4d4d4!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-value,.fiscal-ai-account-summary,.fiscal-ai-toolbar,.fiscal-company-result,.fiscal-workflow-nav,.fiscal-detail-metric,.fiscal-account-dialog-header,.fiscal-account-dialog-footer) {background:transparent!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(dialog,.company-dialog,.admin-auth-dialog,.fiscal-account-dialog) {background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:0 24px 90px #0008!important}
html[data-theme="dark"] dialog::backdrop {background:#000000b3;backdrop-filter:blur(4px)}
html[data-theme="dark"] .topbar {border-color:#2d2d2d}
html[data-theme="dark"] .topbar :is(.sidebar-toggle,.theme-toggle) {background:#1e1e1e!important;color:#d6d6d6!important;border-color:#3d3d3d!important}
html[data-theme="dark"] .topbar .status-pill {background:#141414;color:#ababab;border-color:#333333}
html[data-theme="dark"] .topbar .status-pill.online {background:#16382f!important;color:#87d8b9!important;border-color:#396858!important}
html[data-theme="dark"] .topbar-title strong {color:#ededed}
html[data-theme="dark"] footer {color:#a3a3a3;border-color:#2d2d2d}
html[data-theme="dark"] #portfolioPicker :is(.portfolio-brand,.portfolio-brand>span,.portfolio-section-title,.portfolio-tools-heading h2) {color:#ededed!important}
html[data-theme="dark"] #portfolioPicker .portfolio-heading {background:linear-gradient(115deg,#191919,#0e0e0e);border-color:#383838!important}
html[data-theme="dark"] #portfolioPicker .portfolio-heading h1 {color:#fff!important}
html[data-theme="dark"] #portfolioPicker h1 em {color:#8ab8ff}
html[data-theme="dark"] #portfolioPicker .portfolio-heading p {color:#bdbdbd!important}
html[data-theme="dark"] #portfolioPicker .portfolio-home-summary>span {background:transparent;border-color:transparent!important}
html[data-theme="dark"] #portfolioPicker .portfolio-home-summary strong {color:#fff!important}
html[data-theme="dark"] #portfolioPicker .portfolio-feature:hover,html[data-theme="dark"] #portfolioPicker .portfolio-feature[open] {background:#141414}
html[data-theme="dark"] #portfolioPicker .portfolio-feature {border-color:#333333}
html[data-theme="dark"] #portfolioPicker .portfolio-entry:hover {background:#202020!important}
html[data-theme="dark"] #portfolioPicker .portfolio-entry-action {background:transparent!important}
html[data-theme="dark"] #portfolioPicker .portfolio-entry-action>span:first-child {color:#a9caff}
html[data-theme="dark"] #portfolioPicker .portfolio-feature-toggle {color:#a6a6a6}
html[data-theme="dark"] :is(.company-card,.file-drop-shell):hover {background:#242424!important}
html[data-theme="dark"] a {color:#8ab8ff}
@media(prefers-reduced-motion:reduce) {.theme-toggle{transition:none}}
html[data-theme="dark"] .availability-page main {background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:0 12px 40px #0003}
html[data-theme="dark"] .availability-page :is(h1,.brand,.hours) {color:var(--text)}
html[data-theme="dark"] .availability-page :is(p,.label,.foot) {color:var(--muted);border-color:var(--border)}

/* Fixed-color fiscal surfaces, including sections mounted after document reading. */
html[data-theme="dark"] #fiscalView :is(.fiscal-form,.fiscal-setup-heading,.fiscal-upload-item,.fiscal-company-auto,.fiscal-table-count,.fiscal-reading-guide,.fiscal-unmapped,.fiscal-ai-no-results,.fiscal-ai-documentary,.fiscal-ai-case,.fiscal-ai-cases-more,.fiscal-doc-reader,.fiscal-doc-stage,.fiscal-doc-empty,.fiscal-doc-accounts,.fiscal-inline-host,.fiscal-detail-table,.fiscal-account-analysis,.fiscal-account-analysis.is-docked) {background:var(--surface)!important;color:var(--text)!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-setup-filetype,.fiscal-step-index,.fiscal-upload-symbol,.fiscal-form-actions,.fiscal-summary-icon,.fiscal-progress,.fiscal-investigation-step,.fiscal-investigation-metric,.fiscal-ai-loading,.fiscal-ai-loading-orbit,.fiscal-ai-loading-time,.fiscal-ai-loading-meter,#fiscal242AIMessage,.fiscal-usage-footer,.fiscal-ai-account-chevron,.fiscal-ai-conclusion,.fiscal-ai-document-summary,.fiscal-ai-case-strength,.fiscal-ai-case-action,.fiscal-doc-totals > div,.fiscal-doc-badge,.fiscal-doc-balance,.fiscal-doc-search-totals,.fiscal-doc-pagination,.fiscal-doc-account,.fiscal-account-opinion-conclusion,.fiscal-account-opinion-hypothesis,.fiscal-account-opinion-local,.fiscal-account-situation-symbol,.fiscal-ai-executive-coverage) {background:var(--surface-2)!important;color:var(--dark-accent)!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-checklist li,.fiscal-ai-finding-list li,.fiscal-ai-step-documents > li,.fiscal-difference-reading,.fiscal-accum-breakdown,.fiscal-detail-metrics) {background:var(--surface-2)!important;color:var(--text)!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-checklist > li,.fiscal-account-opinion-steps > li,.fiscal-ai-loading-stages li)::before {background:#242424;color:#d4d4d4}
html[data-theme="dark"] #fiscalView input[type=file]::file-selector-button {background:#252525!important;color:#e2e2e2!important;border:1px solid #505050!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-status-ok,.fiscal-doc-badge-conciliado,.fiscal-ai-status-conciliado) {background:#16382f!important;color:#87d8b9!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-status-review,.fiscal-status-alert,.fiscal-ai-status-alerta,.fiscal-doc-badge-valor_diferente,.fiscal-doc-badge-conta_diferente) {background:#3a3023!important;color:#e5c391!important}
html[data-theme="dark"] #fiscalView #fiscal242Rows > .fiscal-result-row {background:var(--surface)!important;color:var(--text)!important}
html[data-theme="dark"] #fiscalView #fiscal242Rows > .fiscal-result-row:nth-child(even) {background:#191919!important}
html[data-theme="dark"] #fiscalView #fiscal242Rows > .fiscal-result-row:hover,html[data-theme="dark"] #fiscalView #fiscal242Rows > .fiscal-result-row.selected {background:#292929!important}

html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.saved-period-bank,.saved-period-months>span,.preview-metric,.preview-intro,.preview-sheet-badge,.preview-sheet-switcher,.preview-mini-meta,.file-selection-summary,.base-stat-chip,.base-stat,.task-metric,.admin-auth-badge) {background:var(--surface-2)!important;color:var(--dark-accent)!important}

html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.search-wrap,.grid,.daily-reconciliation,.empty-state,.base-management,.tool-result) {background:var(--surface)!important;color:var(--text)!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.process-visual-status,.process-status-icon,.classification-coverage-track,.tool-flow i) {background:var(--surface-2)!important;color:var(--dark-accent)!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) .helper {background:transparent!important}

/* Floating guides are mounted outside the main workspace. */
html[data-theme="dark"] :is(.company-tool-guide,.company-tool-guide-heading) {background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] .company-tool-guide strong {color:var(--text)!important}
html[data-theme="dark"] .company-tool-guide :is(p,small) {color:var(--muted)!important}
html[data-theme="dark"] .company-tool-guide-index,html[data-theme="dark"] #companyToolGuideClose {background:var(--surface-2)!important;color:var(--dark-accent)!important}

html[data-theme="dark"] #fiscalView :is(.fiscal-ai-audit,.fiscal-doc-total-difference,.fiscal-doc-lookup-difference) {color:var(--dark-accent)!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-audit,.fiscal-doc-total-difference,.fiscal-doc-lookup-difference) {background:var(--surface-2)!important}
html[data-theme="dark"] #fiscalView .fiscal-warnings p {background:#3a3023!important;color:#e5c391!important;border-color:#6e5940!important}

/* Neutral black surfaces; blue identifies actions and the current location. */
html[data-theme="dark"] .sidebar {background:var(--surface-soft)!important;border-right-color:var(--border)!important;color:var(--text)}
html[data-theme="dark"] .sidebar :is(.brand,.brand strong) {color:var(--text)}
html[data-theme="dark"] .sidebar :is(.nav-caption,.sidebar-note,.sidebar-note small) {color:var(--muted);border-color:var(--border)}
html[data-theme="dark"] .app-shell #mainSidebar .main-nav-btn {transition:background-color .18s ease,color .18s ease!important;color:#c9c9c9!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme="dark"] .app-shell #mainSidebar .main-nav-btn:hover:not(:disabled) {background:#242424!important;border-color:transparent!important;color:#fff!important}
html[data-theme="dark"] .app-shell #mainSidebar .main-nav-btn.active,
html[data-theme="dark"] .app-shell #mainSidebar .main-nav-btn.active:hover:not(:disabled) {background:#17243a!important;border-color:transparent!important;color:#d5e4ff!important;box-shadow:inset 3px 0 #80adff!important}
html[data-theme="dark"] .app-shell #mainSidebar .sidebar-close {background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme="dark"] .app-shell #mainSidebar .sidebar-close:hover:not(:disabled) {background:#242424!important;border-color:transparent!important}
html[data-theme="dark"] .statement-reading {background:var(--surface);border-color:var(--border);color:var(--text)}
html[data-theme="dark"] .statement-reading :is(p,.statement-reading-count) {color:var(--muted)}
html[data-theme="dark"] #companyPanel :is(.field-group,.tool-tabs) {background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] #companyPanel .field-group:focus-within {border-color:#507db6!important;box-shadow:0 0 0 2px #8ab8ff1c}
html[data-theme="dark"] .sidebar-backdrop {background:#00000070}
html[data-theme="dark"] dialog::backdrop {background:#000000b3!important}

/* The search wrapper owns its border and focus ring, including keyboard focus. */
html #companiesView .directory-controls .search-wrap {border:1px solid #ced8e4!important;border-radius:11px!important;background:#fafbfd;box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease}
html #companiesView .directory-controls .search-wrap:focus-within {border-color:#507cbb!important;box-shadow:0 0 0 2px #507cbb1f!important}
html #companiesView .directory-controls #companySearch,
html #companiesView .directory-controls #companySearch:focus,
html #companiesView .directory-controls #companySearch:focus-visible {border:0!important;border-radius:0!important;outline:none!important;box-shadow:none!important;background:transparent!important}
html[data-theme="dark"] #companiesView .directory-controls .search-wrap {border-color:#3b3b3b!important;background:#101010!important}
html[data-theme="dark"] #companiesView .directory-controls .search-wrap:focus-within {border-color:#7198ce!important;box-shadow:0 0 0 2px #8ab8ff18!important}
/* Quiet, consistent edges for preparation surfaces, without changing result layouts. */
html #companyPanel :is(.panel-head,.tool-card,.modern-form,.tool-intro) {border-radius:16px!important}
html #companyPanel .modern-form :is(.field-group,.bank-selector,.period-card) {border-radius:12px!important}
html[data-theme="dark"] #companyPanel :is(.panel-head,.tool-card,.modern-form,.tool-intro) {border-color:#383838!important;box-shadow:none!important}
html[data-theme="dark"] #companyPanel .modern-form :is(.field-group,.bank-selector,.period-card) {border-color:#303030!important;box-shadow:none!important}
html[data-theme="dark"] #companyPanel .modern-form .field-group:focus-within {border-color:#303030!important;box-shadow:none!important}
html[data-theme="dark"] #companyPanel .modern-form .file-drop-shell {border-color:#414141!important;box-shadow:none!important;border-radius:11px!important}
html[data-theme="dark"] #companyPanel .modern-form .file-drop-shell:focus-within {border-color:#7198ce!important;box-shadow:0 0 0 2px #8ab8ff18!important}
html[data-theme="dark"] #companyPanel .modern-form :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),select,textarea):focus-visible {outline:none!important;border-color:#7198ce!important;box-shadow:0 0 0 2px #8ab8ff18!important}
html[data-theme="dark"] #companyPanel .modern-form input[type=file]:focus-visible {outline:none!important;border-color:transparent!important;box-shadow:none!important}

/* Result cards are created after the upload; cover their inner surfaces too. */
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) :is(.daily-summary > div,.daily-rule),
html[data-theme="dark"] .preview-dialog-header,
html[data-theme="dark"] #companyPanel :is(.tool-result-metrics > span,#baseStats > span) {background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) :is(.daily-summary small,.daily-rule span) {color:var(--muted)!important}
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) :is(.daily-summary strong,.daily-rule strong,.daily-rule b) {color:var(--text)!important}
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) .daily-status.is-ok,
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) .daily-table td.daily-balance.is-zero {background:#16382f!important;color:var(--dark-success)!important}
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) .daily-status.is-review {background:#3a3023!important;color:var(--dark-warning)!important}
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) .daily-filter.active {background:#17243a!important;color:#c2d8ff!important;border-color:#507db6!important}
html[data-theme="dark"] :is(#reconcileResult,#ledgerResult,.preview-dialog) .bank-investments :is(.bank-investments-note,.bank-investments-rule,.bank-investments-preview-totals) {background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(#reconcileResult,#ledgerResult,.preview-dialog) .bank-investments :is(input,select,input:read-only) {background:var(--surface-soft)!important;color:var(--text)!important;border-color:#595959!important}
html[data-theme="dark"] :is(#reconcileResult,#ledgerResult,.preview-dialog) .bank-investments label {color:var(--text)!important}

/* Fiscal styles use theme-aware colors even when loaded after document reading. */
html[data-theme="dark"] #fiscalView {
 --fiscal-surface:#141414;--fiscal-soft:#141414;--fiscal-line:#353535;
 --fiscal-copy:#dedede;--fiscal-muted:#b2b2b2;
 --fiscal-success:#87d8b9;--fiscal-error:#f3a6ad;--fiscal-warning:#e5c391;
 --fw-shadow:none;
}
html[data-theme="dark"] #fiscalView :is(.fiscal-account-dialog-header,.fiscal-account-dialog-footer,.fiscal-account-opinion,.fiscal-account-opinion-conclusion,.fiscal-comparison-bridge,.fiscal-reading-guide,.fiscal-summary-pending) {background:var(--surface-2)!important;border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-result-row,.fiscal-document-row,.fiscal-ai-nav-account):hover {background:#242424!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-result-row.selected,.fiscal-ai-nav-account.is-selected,.fiscal-workflow-button.active,.fiscal-account-review-filter[aria-pressed=true]) {background:#17243a!important;color:#c2d8ff!important;border-color:#507db6!important}
html[data-theme="dark"] #fiscalView :is(input,select,textarea):focus-visible {outline:none!important;border-color:#7198ce!important;box-shadow:0 0 0 2px #8ab8ff20!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-summary,.fiscal-results-card,.fiscal-account-dialog,.fiscal-ai-account) {box-shadow:none!important;border-color:#333!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-loading-meter,.fiscal-progress) {background:#292929!important}
html[data-theme="dark"] #fiscalView :is(.fiscal-ai-loading-meter > span,.fiscal-progress-matches) {background:#7198ce!important}
html[data-theme="dark"] #fiscalView .fiscal-account-dialog [role=tab][aria-selected=true] {background:transparent!important;color:#b9d3ff!important;border-bottom-color:#80adff!important;box-shadow:none!important}
html[data-theme="dark"] #fiscalView .fiscal-account-dialog .fiscal-account-analysis-button {background:#2864d7!important;color:#fff!important;border-color:#417de8!important}
html[data-theme="dark"] #fiscalView .fiscal-account-dialog .fiscal-account-analysis-button:hover:not(:disabled) {background:#245ac0!important}

/* Flat interiors: headings and explanatory rows belong to their parent panel. */
html[data-theme="dark"] :is(.global-view,#companyPanel,#fiscalView,dialog) .tool-card > div:first-child,
html[data-theme="dark"] #companyPanel .tool-card > .tool-intro,
html[data-theme="dark"] #fiscalView :is(.fiscal-account-dialog-header,.fiscal-account-dialog-footer,.fiscal-comparison-bridge,.fiscal-detail-metrics,.fiscal-difference-reading,.fiscal-next-step,.fiscal-summary-pending),
html[data-theme="dark"] :is(.daily-reconciliation,.preview-dialog) :is(.daily-toolbar,.daily-rule),
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) :is(.preview-sheet-head,.preview-commandbar,.preview-table-tools,.preview-intro,.form-card-header,.tool-flow) {background:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-theme="dark"] :is(#companyPanel,#fiscalView,.app-shell,dialog) th {background:var(--surface)!important}

/* Preserve component boundaries; transparent wrappers never become extra cards. */
html[data-theme="dark"] #companyPanel :is(.tool-card,.tool-tabs),
html[data-theme="dark"] #companiesView :is(.grid,.directory-controls) {background:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-theme="dark"] #companyPanel .tool-card {border:0!important}
html[data-theme="dark"] .app-shell #companyPanel .tool-card :is(.tool-intro,.tool-flow) {background:transparent!important;background-image:none!important;box-shadow:none!important}
/* The dropzone owns the dashed edge; its native input has no second box. */
html[data-theme="dark"] .app-shell :is(#companyPanel,#ledgerView,#fiscalView) :is(.file-drop-shell,.reconcile-bank-file,.fiscal-upload-item,.field-group:has(.file-drop-shell)) {background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:#454545!important}
html[data-theme="dark"] .app-shell :is(#companyPanel,#ledgerView,#fiscalView) .file-drop-shell:hover {background:transparent!important;border-color:#666!important}
html[data-theme="dark"] .app-shell :is(#companyPanel,#ledgerView,#fiscalView) .file-drop-shell:focus-within,
html[data-theme="dark"] .app-shell :is(#companyPanel,#ledgerView,#fiscalView) .file-drop-shell.is-dragging {border-color:#7198ce!important;outline:2px solid #7198ce;outline-offset:2px}
html[data-theme="dark"] .app-shell :is(#companyPanel,#ledgerView,#fiscalView) input[type=file] {background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important}
html[data-theme="dark"] .app-shell .file-drop-shell :is(.file-selection,.file-selection-item,.file-selection-summary) {background:transparent!important;box-shadow:none!important}
/* Small labels, progress markers and decorative icons need their own dark colors. */
html[data-theme="dark"] .app-shell :is(.company-code,.bank-selector-head > span,.period-card .optional,.reconcile-bank-file .optional) {color:#b2b2b2!important}
html[data-theme="dark"] .app-shell .panel-quick-info > span {background:transparent!important;color:#bdbdbd!important;border-color:#454545!important}
html[data-theme="dark"] .app-shell .tool-feature-list span {color:var(--muted)!important}
html[data-theme="dark"] .app-shell .tool-feature-list b {background:#16382f!important;color:var(--dark-success)!important}
html[data-theme="dark"] .app-shell .tool-flow span {color:var(--muted)!important}
html[data-theme="dark"] .app-shell .tool-flow span b {background:#202020!important;color:#c8c8c8!important;border-color:#484848!important}
html[data-theme="dark"] .app-shell .tool-flow span.active {color:#b9d3ff!important}
html[data-theme="dark"] .app-shell .tool-flow span.active b {background:#2864d7!important;color:#fff!important;border-color:#7198ce!important}
html[data-theme="dark"] .app-shell .tool-flow span.completed b {background:#16382f!important;color:var(--dark-success)!important;border-color:#396858!important}
html[data-theme="dark"] .app-shell .tool-flow i {background:#3a3a3a!important}
html[data-theme="dark"] .app-shell .tool-flow span.completed + i {background:#396858!important}
html[data-theme="dark"] .app-shell .form-card-icon {background:transparent!important;color:var(--dark-accent)!important}
html[data-theme="dark"] .app-shell :is(#companyPanel,#companiesView,#fiscalView) :is(.tool-tab.active,.company-filter.active,[aria-pressed=true]):hover:not(:disabled) {background:#1d2d48!important;color:#c2d8ff!important;border-color:#7198ce!important}
html[data-theme="dark"] .app-shell #companyPanel .bank-choice.selected {background:#17243a!important;border-color:#507db6!important}
html[data-theme="dark"] .app-shell #companyPanel .bank-choice input {accent-color:#8cbcf3!important}
html[data-theme="dark"] .app-shell :is(.file-drop-hint,.tool-feature-list span) {font-size:11px;line-height:1.6}
html[data-theme="dark"] #companiesView :is(.company-row-regime,.mini-status,.portfolio-owner,.search-meta) {color:var(--muted)!important}
html[data-theme="dark"] #companiesView #companyCount {color:var(--muted)!important}
html[data-theme="dark"] #companiesView .company-row[data-availability="api_ready"] .mini-status {color:var(--dark-success)!important}
/* Keep table sorting controls visually inside the column heading. */
html[data-theme="dark"] .app-shell th button {background:transparent!important;color:inherit!important;border-color:transparent!important}
html[data-theme="dark"] .app-shell th button:hover:not(:disabled) {background:#242424!important;border-color:transparent!important}

/* Inline fiscal results follow the row surface, including zebra and hover states. */
html[data-theme="dark"] #fiscalView :is(.fiscal-account-type,.fiscal-accum-tag,.fiscal-difference-number) {background:transparent!important;color:var(--dark-accent)!important;box-shadow:none!important}
html[data-theme="dark"] #fiscalView #fiscal242Rows .fiscal-account-link,
html[data-theme="dark"] #fiscalView #fiscal242Rows .fiscal-account-link:hover:not(:disabled) {background:transparent!important;box-shadow:none!important}


/* Compact connection state. Keeps topbar height unchanged. */
.topbar .connection-pill {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:34px;max-width:205px;padding:7px 10px;
  cursor:pointer;white-space:nowrap;transition:background .2s,border-color .2s;
  font-size:11px;line-height:1.25;
}
.topbar .connection-pill::before {display:none!important}
.topbar .connection-indicator {
  box-sizing:border-box;display:inline-block;flex:none;width:8px;height:8px;
  border:1.5px solid currentColor;border-radius:50%;opacity:.75;
}
.topbar .connection-label {display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .connection-pill[data-connection="checking"],
.topbar .connection-pill[data-connection="waking"] {color:#496581;background:#f1f5fa;border-color:#d9e4f1}
.topbar .connection-pill[data-connection="waking"] .connection-indicator {
  width:11px;height:11px;border:2px solid #a2b6cb;border-top-color:#39699e;opacity:1;
  animation:razyncConnectSpin 1.1s linear infinite;
}
.topbar .connection-pill[data-connection="offline"],
.topbar .connection-pill[data-connection="unconfigured"] {color:#866535;background:#faf7f0;border-color:#e9dfcf}
.topbar .connection-pill[data-connection="offline"] .connection-indicator {background:#ad8650;border-color:#ad8650}
.topbar .connection-pill[data-connection="online"] .connection-indicator {background:#3e9b76;border-color:#3e9b76}
.topbar .connection-pill:focus-visible {outline:2px solid #568ac7;outline-offset:2px}
@keyframes razyncConnectSpin {to {transform:rotate(360deg)}}
html[data-theme="dark"] .topbar .connection-pill {background:#1b1b1b!important;border-color:#393939!important;color:#c4c4c4!important}
html[data-theme="dark"] .topbar .connection-pill[data-connection="online"] {color:#9bdabc!important}
html[data-theme="dark"] .topbar .connection-pill[data-connection="waking"],
html[data-theme="dark"] .topbar .connection-pill[data-connection="checking"] {color:#b5cdf1!important}
html[data-theme="dark"] .topbar .connection-pill[data-connection="offline"] {color:#ddc292!important}
@media(max-width:760px) {
  .topbar .connection-pill {min-width:0;max-width:145px;padding:7px 8px;gap:5px}
  .topbar .connection-label {max-width:114px;font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
  .topbar .connection-pill,.topbar .connection-indicator {animation:none!important;transition:none!important}
}


/* Higher specificity than the generic dark-mode button rule. */
html[data-theme="dark"] .app-shell .topbar #apiStatus.connection-pill {
  background:#171717!important;border-color:#393939!important;
  color:#c4c4c4!important;box-shadow:none!important;
}
html[data-theme="dark"] .app-shell .topbar #apiStatus[data-connection="online"] {color:#9bdabc!important}
html[data-theme="dark"] .app-shell .topbar #apiStatus[data-connection="checking"],
html[data-theme="dark"] .app-shell .topbar #apiStatus[data-connection="waking"] {color:#b5cdf1!important}
html[data-theme="dark"] .app-shell .topbar #apiStatus[data-connection="offline"] {color:#ddc292!important}


/* Layout containers inherit their panel surface instead of adding painted layers.
   Actual panels, editable controls, selected items and semantic warnings retain their surfaces. */
html[data-theme="dark"] .app-shell #companyPanel#companyPanel :is(
 .field-group,.bank-selector,.period-card,.tool-feature-list,.base-management,
 .base-periods,.saved-period-bank,.base-period-bank,.base-period-item,
 .base-cleanup,.base-cleanup-confirmation,.file-selection-summary
),
html[data-theme="dark"] .app-shell :is(#converterView#converterView,#ledgerView#ledgerView) :is(
 .global-tool-controls,.standard-period-card,.global-upload-grid,.global-upload-field
),
html[data-theme="dark"] .app-shell #fiscalView#fiscalView :is(
 .fiscal-form,.fiscal-setup-heading,.fiscal-form-actions,.fiscal-context-grid,
 .fiscal-account-opinion,.fiscal-account-opinion-conclusion,.fiscal-account-opinion-hypothesis,
 .fiscal-account-opinion-local,.fiscal-account-analysis,.fiscal-account-analysis.is-docked,
 .fiscal-doc-reader,.fiscal-doc-stage,.fiscal-doc-balance,.fiscal-doc-pagination,
 .fiscal-doc-accounts,.fiscal-ai-account-nav,.fiscal-ai-toolbar,
 .fiscal-reading-guide,.fiscal-table-count,.fiscal-ai-method,.fiscal-ai-context,
 .fiscal-ai-document-summary,.fiscal-ai-executive-coverage
) {
 background:transparent!important;
 background-image:none!important;
 box-shadow:none!important;
}
/* Nested text follows its notice background, without a separate colored rectangle. */
html[data-theme="dark"] .app-shell :is(.is-success,.is-warning,.is-error) :is(p,strong) {
 background:transparent!important;background-image:none!important;
}
/* File chips and legends share the drop area's canvas; their edges remain visible. */
html[data-theme="dark"] .app-shell :is(#companyPanel#companyPanel,#converterView#converterView,#ledgerView#ledgerView,#fiscalView#fiscalView) .file-drop-shell,
html[data-theme="dark"] .app-shell #companyPanel#companyPanel .preparation-form :is(.field-group,.bank-selector,.period-card):hover {
 background:transparent!important;background-image:none!important;box-shadow:none!important;
}

/* Result layout wrappers share the page canvas. Tables and status badges keep their surfaces. */
html[data-theme="dark"] :is(#companyPanel,#converterView,#ledgerView,#fiscalView,.preview-dialog) :is(
 .standard-preview,.preview-results,.streamlit-preview,.organizer-preview,
 .preview-summary-grid,.preview-sheet-switcher,.preview-intro,.preview-note,
 .preview-sheet,.preview-table-scroll,.daily-summary,.daily-table-scroll,.statement-reading,
 .fiscal-summary,.fiscal-results-card,.fiscal-table-scroll
),
html[data-theme="dark"] #fiscalView .fiscal-results-card :is(.fiscal-table,tbody) {
 background:transparent!important;
 box-shadow:none!important;
}
html[data-theme="dark"] .statement-reading > summary {
 color:var(--text);
}
html[data-theme="dark"] #companyPanel .classification-coverage-track {
 background:var(--surface-2);
}
html[data-theme="dark"] #companyPanel :is(.classification-coverage-heading,.classification-coverage-details) strong {
 color:var(--text);
}
html[data-theme="dark"] :is(#companyPanel#companyPanel,.preview-dialog.preview-dialog,#converterView#converterView,#ledgerView#ledgerView) .summary-icon {
 background:transparent!important;background-image:none!important;box-shadow:none!important;
 color:#8fb7f4!important;
}

/* The redirect page can briefly appear before the workspace loads. */
html[data-theme="dark"] .availability-page main {
 background:var(--surface);border-color:var(--border);color:var(--text);box-shadow:none;
}
html[data-theme="dark"] .availability-page :is(.label,p,.foot) {
 color:var(--muted);border-color:var(--border);
}
html[data-theme="dark"] .availability-page a {color:var(--dark-accent)}

/* Result labels and completed steps sit on different surfaces. */
html[data-theme="dark"] #companyPanel :is(
 .classification-coverage-heading span,.classification-coverage-details,.preview-table-tools span
) {color:var(--muted)}
html[data-theme="dark"] #companyPanel .tool-pane[data-pane=base]
.base-workflow-step[data-state=complete] .base-workflow-number {
 background:var(--action);color:#fff;
}

/* assets/css/sidebar-motion.css */
/* Navigation motion uses the existing open/closed state; focus and inert stay unchanged. */
#mainSidebar {isolation:isolate;transition:transform 360ms cubic-bezier(.16,1,.3,1),opacity 220ms ease,visibility 0s}
body.sidebar-collapsed #mainSidebar {transition:transform 240ms cubic-bezier(.4,0,.6,1),opacity 180ms ease,visibility 0s 240ms}
.sidebar-backdrop {transition:opacity 280ms ease,visibility 0s}
body.sidebar-collapsed .sidebar-backdrop {transition:opacity 220ms ease,visibility 0s 240ms}
#mainSidebar::before {content:"";position:absolute;inset:0 0 auto;height:260px;z-index:-1;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at 15% 0%,#9ac8ff14,transparent 70%);opacity:.6}
#mainSidebar .brand {opacity:1;transform:none;transition:opacity 300ms 60ms ease,transform 440ms 60ms cubic-bezier(.16,1,.3,1)}
#mainSidebar .brand-logo {transform:rotate(0deg);transition:transform 500ms 70ms cubic-bezier(.16,1,.3,1)}
#mainSidebar .nav-caption {opacity:1;transform:none;transition:opacity 300ms 100ms ease,transform 380ms 100ms cubic-bezier(.16,1,.3,1)}
#mainSidebar .main-nav-btn {--nav-delay:120ms;position:relative;opacity:1;transform:none;transition:opacity 300ms var(--nav-delay) ease,transform 400ms var(--nav-delay) cubic-bezier(.16,1,.3,1),background-color 180ms ease,color 180ms ease}
#mainSidebar .main-nav-btn:nth-child(2) {--nav-delay:165ms}
#mainSidebar .main-nav-btn:nth-child(3) {--nav-delay:210ms}
#mainSidebar .main-nav-btn:nth-child(4) {--nav-delay:255ms}
#mainSidebar .main-nav-btn::before {transition:transform 260ms cubic-bezier(.16,1,.3,1)}
#mainSidebar .sidebar-note {opacity:1;transform:none;transition:opacity 350ms 280ms ease,transform 400ms 280ms cubic-bezier(.16,1,.3,1)}
body.sidebar-collapsed #mainSidebar :is(.brand,.nav-caption,.main-nav-btn,.sidebar-note) {opacity:0;transform:translateX(-12px);transition-delay:0s}
body.sidebar-collapsed #mainSidebar .brand-logo {transform:rotate(-8deg);transition-delay:0s}
#mainSidebar .sidebar-close svg {transition:transform 280ms cubic-bezier(.16,1,.3,1)}
#sidebarToggle .sidebar-toggle-hint {transition:transform 280ms cubic-bezier(.16,1,.3,1)}
body:not(.sidebar-collapsed) #sidebarToggle .sidebar-toggle-hint {transform:rotate(180deg)}
@keyframes sidebarAmbient {0%,100%{opacity:.4}50%{opacity:.9}}
@keyframes sidebarNotePulse {0%,100%{box-shadow:0 0 0 0 #9bc5ff00}45%{box-shadow:0 0 0 5px #9bc5ff10}70%{box-shadow:0 0 0 8px #9bc5ff00}}
@media(prefers-reduced-motion:no-preference) {
 body:not(.sidebar-collapsed) #mainSidebar::before {animation:sidebarAmbient 9s ease-in-out infinite}
 body:not(.sidebar-collapsed) #mainSidebar .sidebar-dot {animation:sidebarNotePulse 4s 400ms ease-out infinite}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 body:not(.sidebar-collapsed) #mainSidebar .main-nav-btn:hover {transform:translateX(3px);transition-delay:0s}
 #mainSidebar .main-nav-btn:hover::before {transform:scale(1.08)}
 #mainSidebar .sidebar-close:hover svg {transform:rotate(90deg)}
 #mainSidebar .brand:hover .brand-logo {transform:translateY(-2px) rotate(-4deg);transition-delay:0s}
 body.sidebar-collapsed #sidebarToggle:hover .sidebar-toggle-hint {transform:translateX(2px)}
}
html[data-theme=dark] .app-shell #mainSidebar .main-nav .main-nav-btn {transition:opacity 300ms var(--nav-delay) ease,transform 400ms var(--nav-delay) cubic-bezier(.16,1,.3,1),background-color 180ms ease,color 180ms ease!important}
html[data-theme=dark] body.sidebar-collapsed .app-shell #mainSidebar .main-nav .main-nav-btn {transition-delay:0s!important}
@media(prefers-reduced-motion:reduce) {
 #mainSidebar,body.sidebar-collapsed #mainSidebar,.sidebar-backdrop,body.sidebar-collapsed .sidebar-backdrop,
 #mainSidebar *,#mainSidebar *::before,#mainSidebar *::after,#sidebarToggle .sidebar-toggle-hint {animation:none!important;transition:none!important}
 #mainSidebar::before {animation:none}
}

/* assets/css/home-welcome.css */
/* Razync welcome: an editorial entrance and an interactive product illustration. */
#companiesView #portfolioPicker {--home-ink:#1c3048;--home-muted:#6a7c90;--home-blue:#3067c7;--home-line:#dde6ef;--home-paper:#fff;--home-soft:#f0f5fc;max-width:1180px;display:grid;grid-template-columns:1fr;gap:24px;margin:24px auto 28px;padding:0;background:none;border:0;box-shadow:none}
#companiesView #portfolioPicker[hidden] {display:none!important}
#companiesView #portfolioPicker::before,#companiesView #portfolioPicker::after {display:none}
#companiesView #portfolioPicker .portfolio-home-topline {display:flex;justify-content:space-between;align-items:center;gap:20px}
#companiesView #portfolioPicker .portfolio-brand {display:flex;align-items:center;gap:11px;color:var(--home-ink)}
#companiesView #portfolioPicker .brand-mark {display:grid;place-items:center;width:38px;height:38px}
#companiesView #portfolioPicker .brand-mark img {width:36px;height:36px;border-radius:10px}
#companiesView #portfolioPicker .brand-wordmark {display:block;font-size:22px;line-height:1.1;letter-spacing:-.7px;font-weight:650}
#companiesView #portfolioPicker .brand-name {display:block}
#companiesView #portfolioPicker .brand-wordmark small {display:block;margin-top:5px;font-size:7px;letter-spacing:1.5px;font-weight:500;color:var(--home-muted)}
#companiesView #portfolioPicker .portfolio-date {font-size:11px;color:var(--home-muted);text-transform:capitalize}
#companiesView #portfolioPicker .portfolio-heading {position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:70px;min-height:0;margin:0;padding:16px 0 0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;color:var(--home-ink)}
#companiesView #portfolioPicker .portfolio-heading::before,#companiesView #portfolioPicker .portfolio-heading::after {display:none}
#companiesView #portfolioPicker .home-intro-copy {min-width:0;position:relative;z-index:1;padding:8px 0}
#companiesView #portfolioPicker .portfolio-eyebrow {display:flex;align-items:center;gap:8px;margin:0 0 20px;font-size:11px;font-weight:500;color:var(--home-muted)}
#companiesView #portfolioPicker .portfolio-eyebrow::before {content:"";width:5px;height:5px;border-radius:50%;background:#6f99db;box-shadow:0 0 0 4px #6f99db10}
#companiesView #portfolioPicker h1 {margin:0 0 22px;font-size:clamp(44px,4.7vw,64px);font-weight:600;line-height:1.05;letter-spacing:-.055em;color:var(--home-ink)}
#companiesView #portfolioPicker h1 em {display:inline-block;font-style:normal;font-weight:500;color:var(--home-blue)}
#companiesView #portfolioPicker h1 em::after {display:none}
#companiesView #portfolioPicker .portfolio-heading .home-intro-copy > p {max-width:36ch;margin:0;font-size:14px;line-height:1.8;color:var(--home-muted)}
#companiesView #portfolioPicker .portfolio-access {display:block;max-width:420px;margin-top:30px;padding:0;border:0;background:none;box-shadow:none}
#companiesView #portfolioPicker .portfolio-access::before {display:none}
#companiesView #portfolioPicker .portfolio-access-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px!important;padding:0}
#companiesView #portfolioPicker .portfolio-access-kicker {font-size:7px;letter-spacing:1.4px;font-weight:600;color:var(--home-muted);margin:0}
#companiesView #portfolioPicker .portfolio-section-title {margin:0;font-size:12px;letter-spacing:-.1px;line-height:1.4;font-weight:550;color:var(--home-ink)}
#companiesView #portfolioPicker .portfolio-list {display:grid;gap:12px}
#companiesView #portfolioPicker .portfolio-entry {display:grid;position:relative;isolation:isolate;overflow:hidden;grid-template-columns:44px minmax(0,1fr) 76px;grid-template-rows:auto auto;align-items:center;gap:6px 13px;width:100%;min-height:94px;margin:0;padding:17px 19px;border:1px solid #355c89;border-radius:12px;background:linear-gradient(110deg,#1c3858,#2c5687);box-shadow:0 8px 22px #1c38580a;text-align:left;cursor:pointer;transform:none;transition:border-color .25s,box-shadow .25s}
#companiesView #portfolioPicker .portfolio-entry::before {content:"";display:block;position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(200px circle at var(--pointer-x,80%) var(--pointer-y,50%),#bddbff24,transparent 80%);opacity:.4;pointer-events:none;transition:opacity .25s}
#companiesView #portfolioPicker .portfolio-entry::after {content:"";position:absolute;inset:-20% auto -20% -40%;width:25%;background:linear-gradient(100deg,transparent,#cce3ff16,transparent);transform:skewX(-15deg) translateX(-150%);pointer-events:none}
#companiesView #portfolioPicker .portfolio-entry:hover {transform:none;border-color:#6993c2;box-shadow:0 12px 30px #1c385818}
#companiesView #portfolioPicker .portfolio-entry:hover::before {opacity:1}
#companiesView #portfolioPicker .portfolio-entry-label {grid-column:2;grid-row:1;font-size:7px;letter-spacing:1.25px;color:#b3c9e1}
#companiesView #portfolioPicker .portfolio-avatar {grid-column:1;grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border:1px solid #c4ddff1a;border-radius:10px;background:#c4ddff0b;animation:none;transform:none}
#companiesView #portfolioPicker .wallet-folder {width:34px;height:34px;overflow:visible}
#companiesView #portfolioPicker .wallet-back {fill:#6698d0;stroke:#aacdf7;stroke-width:.8}
#companiesView #portfolioPicker .wallet-sheet {fill:#e4f0ff;stroke:#fff;stroke-width:.6}
#companiesView #portfolioPicker .wallet-lines {stroke:#80a5d1;stroke-width:1.1;stroke-linecap:round}
#companiesView #portfolioPicker .wallet-front {fill:#83afe4;stroke:#c2ddff;stroke-width:.8}
#companiesView #portfolioPicker .portfolio-entry-info {grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:3px;min-width:0}
#companiesView #portfolioPicker .portfolio-entry-info strong {font-size:18px;letter-spacing:-.35px;font-weight:600;line-height:1.3;color:#fff}
#companiesView #portfolioPicker .portfolio-entry-quantity {font-size:11px;color:#b8cee5}
#companiesView #portfolioPicker .portfolio-entry-preview {display:none}
#companiesView #portfolioPicker .portfolio-entry-action {grid-column:3;grid-row:1/3;display:flex;align-items:center;justify-content:flex-end;gap:7px;border:0;padding:0;background:transparent;color:#edf5ff}
#companiesView #portfolioPicker .portfolio-entry-action > span:first-child {display:block;font-size:11px;font-weight:550}
#companiesView #portfolioPicker .portfolio-entry-arrow {display:grid;place-items:center;width:28px;height:30px;border:1px solid #b9d7ff20;border-radius:8px;background:#c4ddff0a;color:#fff;font-size:18px;animation:none;transition:translate .25s}
#companiesView #portfolioPicker .portfolio-entry:hover .portfolio-entry-arrow {translate:3px 0}
#companiesView #portfolioPicker .portfolio-entry:focus-visible {outline:2px solid #6e9ee4;outline-offset:4px}
/* The preview is an illustration with explicit, keyboard-accessible stage controls. */
#companiesView #portfolioPicker .showcase-wrap {position:relative;min-width:0;perspective:1200px}
#companiesView #portfolioPicker .showcase-aura {position:absolute;z-index:-1;inset:-40px -25px 30px;overflow:hidden;pointer-events:none;border-radius:40%}
#companiesView #portfolioPicker .showcase-aura i {position:absolute;inset:10% 0 10% 0;border-radius:40% 60% 55% 45%;background:radial-gradient(ellipse,#b9d3fa45,transparent 70%)}
#companiesView #portfolioPicker .showcase-aura i+i {inset:30% 0 0 30%;background:radial-gradient(ellipse,#cddff866,transparent 70%)}
#companiesView #portfolioPicker .home-showcase {position:relative;min-width:0;overflow:hidden;border:1px solid #d8e3f0;border-radius:19px;background:var(--home-paper);box-shadow:0 22px 65px #254c7c0c,0 3px 8px #254c7c04;transform:rotate(-1deg);transition:transform .4s cubic-bezier(.16,1,.3,1)}
#companiesView #portfolioPicker .showcase-top {display:flex;align-items:center;justify-content:space-between;gap:12px;height:42px;padding:0 20px;border-bottom:1px solid var(--home-line);background:#f9fbfe;color:#7e90a5;font-size:7px;letter-spacing:1.35px}
#companiesView #portfolioPicker .showcase-window-dots {display:flex;gap:4px}
#companiesView #portfolioPicker .showcase-window-dots i {display:block;width:4px;height:4px;border-radius:50%;background:#cbd7e5}
#companiesView #portfolioPicker .showcase-mark {font-size:8px;letter-spacing:-.4px;color:#9aacc0}
#companiesView #portfolioPicker .showcase-panels {padding:15px 24px 20px}
#companiesView #portfolioPicker .showcase-panel[hidden] {display:none!important}
#companiesView #portfolioPicker .showcase-art {position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:18px;height:190px}
#companiesView #portfolioPicker .showcase-art::before {content:"";position:absolute;z-index:-1;width:220px;height:150px;background:radial-gradient(ellipse,#d8e7fd55,transparent 70%);border-radius:50%}
#companiesView #portfolioPicker .scene-paper {position:relative;display:flex;flex-direction:column;gap:8px;box-sizing:border-box;width:108px;height:138px;padding:13px 12px;border:1px solid #d2e0f1;border-radius:10px;background:#fff;box-shadow:0 8px 22px #355c8d0a}
#companiesView #portfolioPicker .scene-source {transform:rotate(-8deg)}
#companiesView #portfolioPicker .scene-model {background:linear-gradient(145deg,#fff,#edf5ff);transform:rotate(6deg)}
#companiesView #portfolioPicker .paper-format {font-size:7px;letter-spacing:1px;color:#7e98b9;font-weight:600}
#companiesView #portfolioPicker .scene-paper > svg {width:22px;height:22px;fill:none;stroke:#6e96c7;stroke-width:1.4}
#companiesView #portfolioPicker .scene-paper > i {width:90%;height:2px;border-radius:2px;background:#d7e2ef}
#companiesView #portfolioPicker .scene-paper > i:nth-last-of-type(1) {width:60%}
#companiesView #portfolioPicker .scene-paper small {margin-top:auto;font-size:8px;color:#6883a4}
#companiesView #portfolioPicker .paper-mini-grid {display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}
#companiesView #portfolioPicker .paper-mini-grid i {height:11px;border-radius:2px;background:#d5e6fc}
#companiesView #portfolioPicker .paper-mini-grid i:nth-child(even) {background:#e6eef8}
#companiesView #portfolioPicker .paper-check {position:absolute;right:-9px;bottom:24px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e8f4ef;border:3px solid var(--home-paper)}
#companiesView #portfolioPicker .paper-check svg {width:15px;height:15px;stroke:#548b75;stroke-width:1.8}
#companiesView #portfolioPicker .scene-transfer {width:48px}
#companiesView #portfolioPicker .scene-transfer svg {width:100%;height:24px;fill:none;stroke:#a1bce1;stroke-width:1.3}
#companiesView #portfolioPicker .scene-spark {position:absolute;right:12%;top:14%;color:#94b4df;font-size:14px}
#companiesView #portfolioPicker .spark-two {left:8%;top:auto;bottom:15%;right:auto;font-size:9px;opacity:.5}
#companiesView #portfolioPicker .showcase-copy {min-height:82px;text-align:left}
#companiesView #portfolioPicker .scene-index {display:block;font-size:7px;font-weight:600;letter-spacing:1.35px;color:#7f99b8;margin-bottom:8px}
#companiesView #portfolioPicker .showcase-copy h2 {margin:0 0 7px;font-size:21px;letter-spacing:-.55px;font-weight:550;line-height:1.3;color:var(--home-ink)}
#companiesView #portfolioPicker .showcase-copy p {max-width:40ch;margin:0;font-size:12px;line-height:1.7;color:var(--home-muted)}
#companiesView #portfolioPicker .showcase-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--home-line)}
#companiesView #portfolioPicker .home-showcase .showcase-step {position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:12px 5px;border:0;border-radius:0;background:transparent;color:#7b8da2;font-size:10px;font-weight:500;cursor:pointer;box-shadow:none}
#companiesView #portfolioPicker .home-showcase .showcase-step > span {font-size:8px;color:#9bafc6}
#companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:#f3f7fd;color:var(--home-blue)}
#companiesView #portfolioPicker .showcase-step > i {position:absolute;bottom:0;left:12px;right:12px;height:2px;overflow:hidden;border-radius:3px}
#companiesView #portfolioPicker .showcase-step > i::after {content:"";display:block;width:100%;height:100%;background:#80a7e0;transform-origin:left;transform:scaleX(0)}
#companiesView #portfolioPicker .showcase-step[aria-pressed=true] > i::after {transform:scaleX(1)}
#companiesView #portfolioPicker .showcase-playback {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 15px;border-top:1px solid var(--home-line);color:#8596aa;font-size:8px}
#companiesView #portfolioPicker .home-showcase .showcase-pause {min-height:24px;padding:3px 5px;border:0;border-radius:5px;background:transparent;color:#6f89aa;box-shadow:none;font-size:9px;cursor:pointer}
#companiesView #portfolioPicker .home-showcase button:focus-visible {outline:2px solid #749fe0;outline-offset:-3px}
#companiesView #portfolioPicker .portfolio-home-summary {display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 8px 0;padding:0;border:0;background:none}
#companiesView #portfolioPicker .portfolio-home-summary > span {display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0;background:none;border:0}
#companiesView #portfolioPicker .portfolio-home-summary > span+span {justify-content:flex-end}
#companiesView #portfolioPicker .portfolio-home-summary strong {font-size:20px;line-height:1.2;font-weight:550;letter-spacing:-.7px;color:var(--home-ink)}
#companiesView #portfolioPicker .portfolio-home-summary :is(.home-stat-label,#portfolioWalletLabel) {font-size:10px;line-height:1.5;letter-spacing:0;color:var(--home-muted)}
/* The two other scenes are diagrams, not customer data or completed checks. */
#companiesView #portfolioPicker .scene-ledger {display:flex;flex-direction:column;gap:11px;width:94px;height:126px;padding:14px 12px;border:1px solid #d2e0f1;border-radius:10px;background:#fff;box-shadow:0 8px 20px #355c8d08}
#companiesView #portfolioPicker .scene-ledger b {font-size:7px;letter-spacing:1px;color:#7e98b9;margin-bottom:4px}
#companiesView #portfolioPicker .scene-ledger i {height:4px;border-radius:2px;background:linear-gradient(90deg,#c6daf4 65%,#edf3fa 65%);transform-origin:left}
#companiesView #portfolioPicker .ledger-left {transform:rotate(-7deg)}
#companiesView #portfolioPicker .ledger-right {transform:rotate(7deg)}
#companiesView #portfolioPicker .scene-balance {position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #cee4d9;border-radius:50%;background:#edf7f1;box-shadow:0 0 0 8px #edf7f144}
#companiesView #portfolioPicker .scene-balance svg {width:24px;height:24px;stroke:#5c8f78;stroke-width:1.7}
#companiesView #portfolioPicker .scene-connector {position:absolute;z-index:-1;width:180px;height:1px;left:50%;top:50%;translate:-50% 0;background:#b7cce7}
#companiesView #portfolioPicker .scene-classify {display:block}
#companiesView #portfolioPicker .scene-label {position:absolute;display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #d4e1f1;border-radius:8px;background:#fff;box-shadow:0 6px 15px #355c8d08;color:#7490b3;font-size:9px}
#companiesView #portfolioPicker .scene-label svg {width:15px;height:15px;stroke:#7c9fc9;stroke-width:1.4}
#companiesView #portfolioPicker .label-one {left:8%;top:25px;transform:rotate(-8deg)}
#companiesView #portfolioPicker .label-two {right:8%;top:20px;transform:rotate(8deg)}
#companiesView #portfolioPicker .label-three {left:50%;top:5px;transform:translateX(-50%)}
#companiesView #portfolioPicker .scene-folder {position:absolute;z-index:1;left:50%;bottom:20px;translate:-50% 0;display:flex;align-items:end;justify-content:space-between;width:164px;height:90px;padding:17px;border:1px solid #a8c8ee;border-radius:4px 12px 12px 12px;background:linear-gradient(145deg,#c4dcfa,#e1edfd);box-shadow:0 10px 23px #355c8d0d}
#companiesView #portfolioPicker .scene-folder > i {position:absolute;left:-1px;top:-12px;width:60px;height:15px;border:1px solid #a8c8ee;border-bottom:0;border-radius:7px 7px 0 0;background:#c4dcfa}
#companiesView #portfolioPicker .scene-folder b {font-size:10px;color:#5e85b6;font-weight:550}
#companiesView #portfolioPicker .scene-folder svg {width:20px;height:20px;stroke:#618cbd;stroke-width:1.7}
/* Deliberate motion, with one active scene at a time. */
@keyframes entrance {from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@keyframes auraDrift {0%,100%{transform:translate(-10px,0) rotate(-12deg);opacity:.65}50%{transform:translate(15px,12px) rotate(15deg);opacity:1}}
@keyframes sceneFloat {0%,100%{translate:0 0}50%{translate:0 -11px}}
@keyframes sourceFloat {0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(-11deg) translateY(-9px)}}
@keyframes modelFloat {0%,100%{transform:rotate(6deg) translateY(0)}50%{transform:rotate(9deg) translateY(-11px)}}
@keyframes flowSignal {0%,100%{stroke-dashoffset:80;opacity:.35}50%{stroke-dashoffset:0;opacity:1}}
@keyframes checkDraw {0%,10%{stroke-dashoffset:25;opacity:.4}55%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes rowReveal {from{scale:.65 1;opacity:.4}to{scale:1 1;opacity:1}}
@keyframes stepProgress {from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes walletLight {0%,60%{transform:skewX(-15deg) translateX(-150%)}100%{transform:skewX(-15deg) translateX(700%)}}
@keyframes folderPaper {0%,100%{translate:0 0}50%{translate:0 -4px}}
@media(prefers-reduced-motion:no-preference) {
 #companiesView #portfolioPicker .portfolio-home-topline {animation:entrance .7s .05s cubic-bezier(.16,1,.3,1) both}
 #companiesView #portfolioPicker .home-intro-copy {animation:entrance .9s .12s cubic-bezier(.16,1,.3,1) both}
 #companiesView #portfolioPicker .showcase-wrap {animation:entrance 1s .22s cubic-bezier(.16,1,.3,1) both}
 #companiesView #portfolioPicker .showcase-aura i {animation:auraDrift 16s ease-in-out infinite}
 #companiesView #portfolioPicker .showcase-aura i+i {animation-delay:-8s}
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .showcase-copy {animation:entrance .55s ease-out both}
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .scene-source {animation:sourceFloat 5s ease-in-out infinite}
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .scene-model {animation:modelFloat 5s -1s ease-in-out infinite}
 #companiesView #portfolioPicker .scene-transfer svg path {stroke-dasharray:25 70;animation:flowSignal 2.8s linear infinite}
 #companiesView #portfolioPicker .paper-check path,#companiesView #portfolioPicker .scene-balance path,#companiesView #portfolioPicker .scene-folder path {stroke-dasharray:25;animation:checkDraw 2.6s ease-out both}
 #companiesView #portfolioPicker .scene-spark {animation:sceneFloat 6s ease-in-out infinite}
 #companiesView #portfolioPicker .spark-two {animation-delay:-3s}
 #companiesView #portfolioPicker .scene-ledger i {animation:rowReveal .7s .15s ease-out both}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(2) {animation-delay:.3s}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(3) {animation-delay:.45s}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(4) {animation-delay:.6s}
 #companiesView #portfolioPicker .scene-label {animation:sceneFloat 5s ease-in-out infinite}
 #companiesView #portfolioPicker .label-two {animation-delay:-2s}
 #companiesView #portfolioPicker .label-three {animation-delay:-3.5s}
 #companiesView #portfolioPicker .showcase-step[aria-pressed=true] > i::after {animation:stepProgress 5.6s linear both}
 #companiesView #portfolioPicker .portfolio-entry::after {animation:walletLight 10s ease-in-out infinite}
 #companiesView #portfolioPicker .wallet-sheet,#companiesView #portfolioPicker .wallet-lines {animation:folderPaper 6s ease-in-out infinite}
}
#companiesView #portfolioPicker .home-showcase[data-playing=false] .showcase-step > i::after {animation-play-state:paused}
#companiesView #portfolioPicker .home-showcase[data-art-motion=paused] .showcase-panels *,#companiesView #portfolioPicker .home-showcase[data-playing=false] .showcase-panels *::after {animation-play-state:paused}
#companiesView #portfolioPicker[data-motion=paused] *,#companiesView #portfolioPicker[data-motion=paused] *::before,#companiesView #portfolioPicker[data-motion=paused] *::after {animation-play-state:paused!important}
/* Dark mode stays neutral, with blue reserved for the illustration and actions. */
html[data-theme=dark] #companiesView #portfolioPicker {--home-ink:#edf0f5;--home-muted:#9da9b9;--home-blue:#a0c4ff;--home-line:var(--border);--home-paper:var(--surface);--home-soft:var(--surface-2)}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-heading {background:none!important;border:0!important;box-shadow:none}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-heading h1 {color:#edf0f5!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-heading p {color:var(--home-muted)!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry {background:linear-gradient(110deg,#1c2b40,#263e5e)!important;border-color:#425e82!important;box-shadow:none}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry:hover {background:linear-gradient(110deg,#22334b,#2d486e)!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry-label {color:#b3c9e1!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry-info strong {color:#fff!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry-quantity {color:#b8cee5!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-avatar {background:#c4ddff0b!important;border-color:#c4ddff1a!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry-action {background:transparent!important;box-shadow:none!important}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry-arrow {background:#c4ddff0a!important;color:#fff!important}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase {background:var(--home-paper);border-color:#343e4b;box-shadow:0 22px 65px #0002}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-top {background:#1c2129}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-art::before {background:radial-gradient(ellipse,#38629722,transparent 70%)}
html[data-theme=dark] #companiesView #portfolioPicker .scene-paper,html[data-theme=dark] #companiesView #portfolioPicker .scene-ledger,html[data-theme=dark] #companiesView #portfolioPicker .scene-label {background:#202c3d;border-color:#405572}
html[data-theme=dark] #companiesView #portfolioPicker .scene-model {background:linear-gradient(145deg,#25364d,#1f2e42)}
html[data-theme=dark] #companiesView #portfolioPicker .scene-paper > i {background:#3f5572}
html[data-theme=dark] #companiesView #portfolioPicker .paper-mini-grid i {background:#45648e}
html[data-theme=dark] #companiesView #portfolioPicker .paper-mini-grid i:nth-child(even) {background:#334b6c}
html[data-theme=dark] #companiesView #portfolioPicker .paper-check,html[data-theme=dark] #companiesView #portfolioPicker .scene-balance {background:#243c34;border-color:var(--home-paper)}
html[data-theme=dark] #companiesView #portfolioPicker .paper-check path,html[data-theme=dark] #companiesView #portfolioPicker .scene-balance path {stroke:#91bca7}
html[data-theme=dark] #companiesView #portfolioPicker .scene-ledger i {background:linear-gradient(90deg,#45648e 65%,#293c56 65%)}
html[data-theme=dark] #companiesView #portfolioPicker .scene-folder {background:linear-gradient(145deg,#304d72,#263f5e);border-color:#597a9e}
html[data-theme=dark] #companiesView #portfolioPicker .scene-folder > i {background:#304d72;border-color:#597a9e}
html[data-theme=dark] #companiesView #portfolioPicker .scene-folder b {color:#b5cdeb}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step,html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-pause {background:transparent!important;border:0!important;color:#a7b7cd!important;box-shadow:none!important}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:#23334b!important;color:#c3d9fa!important}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step:hover,html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-pause:hover {background:#263449!important}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 #companiesView #portfolioPicker .home-showcase:hover {transform:rotate(0deg)}
}
/* Keep the working entrance within normal laptop heights. */
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker {margin:12px auto 18px;gap:16px}
 #companiesView #portfolioPicker .portfolio-heading {gap:48px;padding-top:5px}
 #companiesView #portfolioPicker h1 {font-size:50px;margin-bottom:18px}
 #companiesView #portfolioPicker .portfolio-eyebrow {margin-bottom:16px}
 #companiesView #portfolioPicker .portfolio-heading .home-intro-copy > p {font-size:13px}
 #companiesView #portfolioPicker .portfolio-access {margin-top:23px}
 #companiesView #portfolioPicker .portfolio-access-heading {margin-bottom:10px!important}
 #companiesView #portfolioPicker .portfolio-entry {min-height:86px;padding:14px 17px}
 #companiesView #portfolioPicker .showcase-top {height:34px;padding-inline:17px}
 #companiesView #portfolioPicker .showcase-panels {padding:12px 20px 15px}
 #companiesView #portfolioPicker .showcase-art {height:130px;gap:17px}
 #companiesView #portfolioPicker .scene-paper {width:88px;height:112px;padding:10px;gap:6px}
 #companiesView #portfolioPicker .scene-paper > svg {width:18px;height:18px}
 #companiesView #portfolioPicker .paper-mini-grid {gap:4px;margin-top:5px}
 #companiesView #portfolioPicker .paper-mini-grid i {height:8px}
 #companiesView #portfolioPicker .showcase-copy {min-height:70px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:18px}
 #companiesView #portfolioPicker .showcase-copy p {font-size:11px;line-height:1.6}
 #companiesView #portfolioPicker .scene-index {margin-bottom:6px;font-size:7px}
 #companiesView #portfolioPicker .home-showcase .showcase-step {min-height:42px;padding-block:10px}
 #companiesView #portfolioPicker .showcase-playback {padding-block:4px}
 #companiesView #portfolioPicker .portfolio-home-summary {margin-top:13px}
 #companiesView #portfolioPicker .scene-ledger {height:108px;width:84px;padding:10px;gap:8px}
 #companiesView #portfolioPicker .scene-folder {height:72px;width:144px;bottom:8px;padding:13px}
 #companiesView #portfolioPicker .scene-label {padding:6px 9px}
 #companiesView #portfolioPicker .label-one {top:12px}
 #companiesView #portfolioPicker .label-two {top:10px}
 #companiesView #portfolioPicker .label-three {top:-4px}
}
@media(min-width:1000px) and (max-height:600px) {
 #companiesView #portfolioPicker {margin-block:8px;gap:12px}
 #companiesView #portfolioPicker .portfolio-heading {gap:40px}
 #companiesView #portfolioPicker h1 {font-size:44px;margin-bottom:15px}
 #companiesView #portfolioPicker .portfolio-eyebrow {margin-bottom:12px;font-size:10px}
 #companiesView #portfolioPicker .portfolio-access {margin-top:18px}
 #companiesView #portfolioPicker .portfolio-entry {min-height:80px;padding-block:11px}
 #companiesView #portfolioPicker .showcase-art {height:104px}
 #companiesView #portfolioPicker .scene-paper {height:96px;width:80px;padding:9px;gap:4px}
 #companiesView #portfolioPicker .scene-paper small {font-size:7px}
 #companiesView #portfolioPicker .showcase-copy {min-height:65px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:17px}
 #companiesView #portfolioPicker .showcase-playback {font-size:7px}
 #companiesView #portfolioPicker .scene-ledger {height:94px;padding:9px;gap:6px}
 #companiesView #portfolioPicker .scene-folder {height:58px;width:132px;bottom:0}
 #companiesView #portfolioPicker .scene-folder b {font-size:9px}
 #companiesView #portfolioPicker .scene-label {padding:5px 7px;font-size:8px}
}
@media(max-width:999px) {
 #companiesView #portfolioPicker .portfolio-heading {gap:32px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
 #companiesView #portfolioPicker h1 {font-size:45px}
 #companiesView #portfolioPicker .scene-paper {width:92px;height:124px}
 #companiesView #portfolioPicker .showcase-art {gap:12px}
 #companiesView #portfolioPicker .scene-transfer {width:30px}
 #companiesView #portfolioPicker .showcase-panels {padding-inline:16px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker {gap:24px;margin:18px auto 26px}
 #companiesView #portfolioPicker .portfolio-heading {grid-template-columns:1fr;gap:32px;padding:0}
 #companiesView #portfolioPicker .home-intro-copy {padding:0}
 #companiesView #portfolioPicker h1 {font-size:clamp(43px,11vw,58px)}
 #companiesView #portfolioPicker .portfolio-heading .home-intro-copy > p {font-size:13px}
 #companiesView #portfolioPicker .portfolio-date {max-width:125px;text-align:right;font-size:9px;line-height:1.5}
 #companiesView #portfolioPicker .portfolio-access {margin-top:24px;max-width:none}
 #companiesView #portfolioPicker .portfolio-entry {padding:16px;min-height:90px;grid-template-columns:40px minmax(0,1fr) 70px;gap:6px 10px}
 #companiesView #portfolioPicker .portfolio-avatar {width:40px;height:40px}
 #companiesView #portfolioPicker .portfolio-entry-info strong {font-size:17px}
 #companiesView #portfolioPicker .home-showcase {transform:none;border-radius:16px}
 #companiesView #portfolioPicker .showcase-art {height:170px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:19px}
 #companiesView #portfolioPicker .showcase-top {padding-inline:15px}
 #companiesView #portfolioPicker .portfolio-home-summary {margin-top:14px}
 #companiesView #portfolioPicker .showcase-aura {inset:-15px 0 0}
}
@media(prefers-reduced-motion:reduce) {
 #companiesView #portfolioPicker *,#companiesView #portfolioPicker *::before,#companiesView #portfolioPicker *::after {animation:none!important;transition:none!important}
 #companiesView #portfolioPicker .home-showcase {transform:none}
 #companiesView #portfolioPicker .showcase-pause {display:none}
 #companiesView #portfolioPicker .portfolio-entry::after {display:none}
 #companiesView #portfolioPicker .showcase-step[aria-pressed=true] > i::after {transform:scaleX(1)}
 #companiesView #portfolioPicker .paper-check path,#companiesView #portfolioPicker .scene-balance path,#companiesView #portfolioPicker .scene-folder path {stroke-dasharray:none}
}

/* A clearer, level showcase with readable headings and compact stage controls. */
#companiesView #portfolioPicker .home-showcase,#companiesView #portfolioPicker .home-showcase:hover {transform:none}
#companiesView #portfolioPicker .showcase-top {height:48px;padding-inline:22px;gap:10px;background:transparent}
#companiesView #portfolioPicker .showcase-window-dots {display:none}
#companiesView #portfolioPicker .showcase-title {font-size:12px;line-height:1.4;font-weight:550;letter-spacing:-.1px;color:var(--home-ink)}
#companiesView #portfolioPicker .showcase-mark {font-size:9px;letter-spacing:0;color:var(--home-muted);padding:4px 7px;border:1px solid var(--home-line);border-radius:6px}
#companiesView #portfolioPicker .showcase-panels {padding:12px 24px 10px}
#companiesView #portfolioPicker .showcase-art {height:175px}
#companiesView #portfolioPicker .showcase-copy {min-height:96px}
#companiesView #portfolioPicker .scene-index {font-size:8px;letter-spacing:1.2px;margin-bottom:7px}
#companiesView #portfolioPicker .showcase-copy h2 {font-size:20px;margin-bottom:8px;line-height:1.3}
#companiesView #portfolioPicker .showcase-copy p {font-size:12px;line-height:1.75;max-width:42ch}
#companiesView #portfolioPicker .showcase-steps {gap:3px;margin:0 14px 10px;padding:4px;border:0;border-radius:11px;background:var(--home-soft)}
#companiesView #portfolioPicker .home-showcase .showcase-step {min-height:40px;padding:10px 6px;gap:5px;font-size:11px;border-radius:8px;transition:background-color .2s,color .2s,box-shadow .2s}
#companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:var(--home-paper);color:var(--home-blue);box-shadow:0 2px 7px #2d4d760a}
#companiesView #portfolioPicker .showcase-step > i {bottom:3px;left:13px;right:13px;height:1.5px}
#companiesView #portfolioPicker .showcase-playback {padding:5px 17px;border-top:1px solid var(--home-line);font-size:9px;line-height:1.5;color:var(--home-muted)}
#companiesView #portfolioPicker .home-showcase .showcase-pause {min-height:30px;padding:5px 7px;font-size:10px}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-top {background:transparent}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-steps {background:#11161e}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:#27364c!important;box-shadow:none!important}
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker .showcase-top {height:40px;padding-inline:20px}
 #companiesView #portfolioPicker .showcase-panels {padding:9px 20px 5px}
 #companiesView #portfolioPicker .showcase-art {height:126px}
 #companiesView #portfolioPicker .showcase-copy {min-height:82px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:18px;margin-bottom:6px}
 #companiesView #portfolioPicker .showcase-copy p {font-size:11px;line-height:1.65}
 #companiesView #portfolioPicker .showcase-steps {margin:0 11px 8px}
 #companiesView #portfolioPicker .home-showcase .showcase-step {min-height:36px;padding-block:8px;font-size:10px}
 #companiesView #portfolioPicker .showcase-playback {padding-block:3px;font-size:8px}
 #companiesView #portfolioPicker .home-showcase .showcase-pause {min-height:26px;font-size:9px}
}
@media(min-width:1000px) and (max-height:600px) {
 #companiesView #portfolioPicker .showcase-top {height:36px}
 #companiesView #portfolioPicker .showcase-art {height:102px}
 #companiesView #portfolioPicker .showcase-copy {min-height:77px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:17px}
 #companiesView #portfolioPicker .showcase-playback {font-size:7px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker .showcase-top {padding-inline:17px;height:44px}
 #companiesView #portfolioPicker .showcase-panels {padding-inline:18px}
 #companiesView #portfolioPicker .showcase-art {height:164px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:19px}
 #companiesView #portfolioPicker .showcase-playback {padding-inline:12px;font-size:8px}
}

/* Keep the whole welcome alive, including a scene held for reading. */
#companiesView #portfolioPicker .showcase-aura::before {content:"";position:absolute;inset:15% 8% 8%;border:1px solid #8eb4eb35;border-radius:42% 58% 61% 39% / 54% 43% 57% 46%;pointer-events:none}
#companiesView #portfolioPicker .showcase-aura i {background:radial-gradient(ellipse,#b1cff959,transparent 70%)}
#companiesView #portfolioPicker .showcase-aura i+i {background:radial-gradient(ellipse,#c0daf975,transparent 70%)}
#companiesView #portfolioPicker .scene-ledger {position:relative;overflow:hidden}
#companiesView #portfolioPicker .scene-ledger::after {content:"";position:absolute;left:12px;right:12px;top:34px;height:1px;background:#7ba8e8;box-shadow:0 0 6px #7ba8e840;opacity:0;pointer-events:none}
#companiesView #portfolioPicker .portfolio-avatar {position:relative}
#companiesView #portfolioPicker .portfolio-avatar::after {content:"";position:absolute;inset:-3px;border:1px solid #c8e0ff24;border-radius:12px;opacity:0;pointer-events:none}
@keyframes welcomeAmbientMove {0%,100%{background-position:0% 0%,100% 100%}50%{background-position:100% 60%,0% 40%}}
@keyframes welcomeContour {0%,100%{transform:rotate(-14deg) scale(.96);opacity:.45}50%{transform:rotate(16deg) scale(1.04);opacity:.9}}
@keyframes welcomeTitleLight {0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes welcomeBrandFloat {0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -2px;rotate:-3deg}}
@keyframes welcomeGridCell {0%,100%{opacity:.45;scale:.94}45%,65%{opacity:1;scale:1}}
@keyframes welcomeLedgerRows {0%,100%{scale:.86 1;opacity:.6}45%,65%{scale:1 1;opacity:1}}
@keyframes welcomeLedgerScan {0%,8%{opacity:0;translate:0 0}20%{opacity:.7}75%{opacity:.5;translate:0 52px}90%,100%{opacity:0;translate:0 52px}}
@keyframes welcomeBalancePulse {0%,100%{box-shadow:0 0 0 6px #9ac6af0b;scale:1}50%{box-shadow:0 0 0 12px #9ac6af00;scale:1.04}}
@keyframes welcomeCheckLoop {0%,8%{stroke-dashoffset:25;opacity:.4}42%,80%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.45}}
@keyframes welcomeFolderBob {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes welcomeAvatarHalo {0%,100%{opacity:0;scale:.97}50%{opacity:.6;scale:1.04}}
@media(prefers-reduced-motion:no-preference) {
  #companiesView #portfolioPicker .showcase-aura::before {animation:welcomeContour 14s ease-in-out infinite}
 #companiesView #portfolioPicker .brand-mark img {animation:welcomeBrandFloat 5s ease-in-out infinite}
 #companiesView #portfolioPicker h1 em {color:transparent;background:linear-gradient(110deg,var(--home-blue) 15%,#759ce0 50%,var(--home-blue) 85%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;animation:welcomeTitleLight 7s ease-in-out infinite}
 #companiesView #portfolioPicker .paper-mini-grid i {animation:welcomeGridCell 3.4s ease-in-out infinite}
 #companiesView #portfolioPicker .paper-mini-grid i:nth-child(2) {animation-delay:.25s}
 #companiesView #portfolioPicker .paper-mini-grid i:nth-child(3) {animation-delay:.5s}
 #companiesView #portfolioPicker .paper-mini-grid i:nth-child(4) {animation-delay:.75s}
 #companiesView #portfolioPicker .paper-mini-grid i:nth-child(5) {animation-delay:1s}
 #companiesView #portfolioPicker .paper-mini-grid i:nth-child(6) {animation-delay:1.25s}
 #companiesView #portfolioPicker .scene-ledger i {animation:welcomeLedgerRows 3.6s ease-in-out infinite}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(2) {animation-delay:.25s}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(3) {animation-delay:.5s}
 #companiesView #portfolioPicker .scene-ledger i:nth-of-type(4) {animation-delay:.75s}
 #companiesView #portfolioPicker .scene-ledger::after {animation:welcomeLedgerScan 3.6s ease-in-out infinite}
 #companiesView #portfolioPicker .ledger-right::after {animation-delay:.45s}
 #companiesView #portfolioPicker .scene-balance {animation:welcomeBalancePulse 3.6s ease-in-out infinite}
 #companiesView #portfolioPicker .paper-check path,#companiesView #portfolioPicker .scene-balance path,#companiesView #portfolioPicker .scene-folder path {animation:welcomeCheckLoop 3.8s ease-in-out infinite}
 #companiesView #portfolioPicker .scene-folder {animation:welcomeFolderBob 4.6s ease-in-out infinite}
 #companiesView #portfolioPicker .portfolio-avatar::after {animation:welcomeAvatarHalo 5s ease-in-out infinite}
}
#companiesView #portfolioPicker .showcase-wrap:has(.home-showcase[data-art-motion=paused]) .showcase-aura,
#companiesView #portfolioPicker .showcase-wrap:has(.home-showcase[data-art-motion=paused]) .showcase-aura *,
#companiesView #portfolioPicker .showcase-wrap:has(.home-showcase[data-art-motion=paused]) .showcase-aura::before {animation-play-state:paused}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-aura::before {border-color:#7399d024!important}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-aura i {background:radial-gradient(ellipse,#4c74ae2b,transparent 70%)}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-aura i+i {background:radial-gradient(ellipse,#36557933,transparent 70%)}
@media(prefers-reduced-motion:reduce) {
 #companiesView #portfolioPicker .scene-ledger::after,#companiesView #portfolioPicker .portfolio-avatar::after {display:none}
 #companiesView #portfolioPicker .paper-check path,#companiesView #portfolioPicker .scene-balance path,#companiesView #portfolioPicker .scene-folder path {stroke-dasharray:none}
}

/* Clean backdrop: the page itself is the background, with no large painted halo. */
#companiesView #portfolioPicker .portfolio-heading,
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-heading {background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}
#companiesView #portfolioPicker .portfolio-heading::before,
#companiesView #portfolioPicker .portfolio-heading::after,
#companiesView #portfolioPicker .showcase-aura,
#companiesView #portfolioPicker .showcase-wrap::before,
#companiesView #portfolioPicker .showcase-wrap::after,
#companiesView #portfolioPicker .showcase-art::before {display:none!important}
#companiesView #portfolioPicker .showcase-panel .showcase-copy {animation:none!important;opacity:1!important;transform:none!important}
#companiesView #portfolioPicker .portfolio-avatar::after {display:none}
html[data-theme=dark] #companiesView #portfolioPicker {--home-ink:#e9edf4;--home-muted:#a1abb9;--home-blue:#91b5ee;--home-line:var(--border);--home-paper:var(--surface);--home-soft:var(--surface-2)}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase {background:#111316;border-color:#2b313b;box-shadow:0 8px 24px #00000018}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-top {background:#111316}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-copy h2 {color:#e9edf4}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-copy p {color:#a1abb9!important}
html[data-theme=dark] #companiesView #portfolioPicker .scene-index {color:#91a8c8}
html[data-theme=dark] #companiesView #portfolioPicker .scene-paper,
html[data-theme=dark] #companiesView #portfolioPicker .scene-ledger,
html[data-theme=dark] #companiesView #portfolioPicker .scene-label {background:#1b2431;border-color:#35465d;box-shadow:0 7px 16px #0000000d}
html[data-theme=dark] #companiesView #portfolioPicker .scene-model {background:linear-gradient(145deg,#202e42,#192330)}
html[data-theme=dark] #companiesView #portfolioPicker .paper-format,
html[data-theme=dark] #companiesView #portfolioPicker .scene-ledger b {color:#9aafcb}
html[data-theme=dark] #companiesView #portfolioPicker .scene-paper small {color:#9caec7!important}
html[data-theme=dark] #companiesView #portfolioPicker .scene-label {color:#a0b6d4}
html[data-theme=dark] #companiesView #portfolioPicker .paper-mini-grid i {background:#345273}
html[data-theme=dark] #companiesView #portfolioPicker .paper-mini-grid i:nth-child(even) {background:#293f5b}
html[data-theme=dark] #companiesView #portfolioPicker .scene-ledger i {background:linear-gradient(90deg,#3b577b 65%,#25354c 65%)}
html[data-theme=dark] #companiesView #portfolioPicker .paper-check,
html[data-theme=dark] #companiesView #portfolioPicker .scene-balance {background:#1d3028;border-color:#111316}
html[data-theme=dark] #companiesView #portfolioPicker .paper-check path,
html[data-theme=dark] #companiesView #portfolioPicker .scene-balance path {stroke:#a0c5b0}
html[data-theme=dark] #companiesView #portfolioPicker .scene-folder {background:linear-gradient(145deg,#29415e,#1d3048);border-color:#435f80}
html[data-theme=dark] #companiesView #portfolioPicker .scene-folder > i {background:#29415e;border-color:#435f80}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-steps {background:#0b0d10}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:#1e2b3e!important;color:#bdd2f0!important}
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-step:hover,
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase .showcase-pause:hover {background:#1a2330!important}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-playback {background:#101215;color:#9ba6b6}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry {background:linear-gradient(110deg,#151d29,#1d2c41)!important;border-color:#334964!important;box-shadow:0 5px 16px #0000000d}
html[data-theme=dark] #companiesView #portfolioPicker .portfolio-entry:hover {background:linear-gradient(110deg,#1a2534,#22344d)!important;border-color:#4b688e!important}
@keyframes showcaseArtArrive {from{transform:translateY(7px) scale(.985)}to{transform:none}}
@keyframes showcasePaperSway {0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(-10deg) translateY(-7px)}}
@keyframes showcaseModelSway {0%,100%{transform:rotate(6deg) translateY(0)}50%{transform:rotate(8deg) translateY(-8px)}}
@media(prefers-reduced-motion:no-preference) {
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .showcase-art {animation:showcaseArtArrive .45s cubic-bezier(.16,1,.3,1) both}
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .scene-source {animation:showcasePaperSway 4.8s ease-in-out infinite}
 #companiesView #portfolioPicker .showcase-panel:not([hidden]) .scene-model {animation:showcaseModelSway 4.8s -.8s ease-in-out infinite}
}

/* An open composition: no frame, painted panels or boxed stage navigation. */
#companiesView #portfolioPicker .home-showcase,
html[data-theme=dark] #companiesView #portfolioPicker .home-showcase {overflow:visible;border:0!important;border-radius:0;background:transparent!important;background-image:none!important;box-shadow:none!important;transform:none}
#companiesView #portfolioPicker .showcase-top,
html[data-theme=dark] #companiesView #portfolioPicker .showcase-top {height:38px;padding:0;border:0!important;background:transparent!important}
#companiesView #portfolioPicker .showcase-title {font-size:13px;font-weight:550;letter-spacing:-.15px}
#companiesView #portfolioPicker .showcase-mark {padding:0;border:0!important;border-radius:0;background:transparent;color:var(--home-muted);font-size:9px}
#companiesView #portfolioPicker .showcase-panels {padding:7px 0 5px}
#companiesView #portfolioPicker .showcase-copy {min-height:92px}
#companiesView #portfolioPicker .showcase-copy h2 {font-size:21px;line-height:1.35}
#companiesView #portfolioPicker .showcase-copy p {max-width:39ch}
#companiesView #portfolioPicker .showcase-steps,
html[data-theme=dark] #companiesView #portfolioPicker .showcase-steps {gap:14px;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none}
#companiesView #portfolioPicker .home-showcase .showcase-step {min-height:40px;padding:9px 0 11px;border-radius:0;font-size:11px;gap:6px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--home-muted)}
#companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {background:transparent!important;box-shadow:none!important;color:var(--home-blue);font-weight:600}
#companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] > span {color:var(--home-blue)}
#companiesView #portfolioPicker .showcase-step > i {bottom:0;left:0;right:0;height:2px;border-radius:2px;background:#c6d4e52e}
#companiesView #portfolioPicker .showcase-step > i::after {background:#739bd7}
#companiesView #portfolioPicker .showcase-playback,
html[data-theme=dark] #companiesView #portfolioPicker .showcase-playback {padding:9px 0 0;border:0!important;background:transparent!important;font-size:9px}
#companiesView #portfolioPicker .home-showcase .showcase-pause {padding-inline:0;background:transparent!important;border:0!important;box-shadow:none!important;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .2s}
#companiesView #portfolioPicker .home-showcase .showcase-pause:hover {text-decoration-color:currentColor;background:transparent!important}
#companiesView #portfolioPicker .portfolio-home-summary {margin:17px 0 0;padding:0;border:0;background:transparent}
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step,
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true],
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step:hover,
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-pause:hover {background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step {color:#92a1b6!important}
html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step[aria-pressed=true] {color:#b7cef0!important}
html[data-theme=dark] #companiesView #portfolioPicker .showcase-step > i {background:#51678324}
@media(hover:hover) and (pointer:fine) {
 #companiesView #portfolioPicker .home-showcase .showcase-step:hover {color:var(--home-blue)}
 html[data-theme=dark] .app-shell #companiesView #portfolioPicker .home-showcase .showcase-step:hover {color:#c0d4ef!important}
}
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker .showcase-top {height:32px}
 #companiesView #portfolioPicker .showcase-panels {padding:4px 0 3px}
 #companiesView #portfolioPicker .showcase-copy {min-height:80px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:19px}
 #companiesView #portfolioPicker .showcase-steps {gap:12px;margin:0;padding:0}
 #companiesView #portfolioPicker .home-showcase .showcase-step {min-height:36px;padding:8px 0 10px;font-size:10px}
 #companiesView #portfolioPicker .showcase-playback {padding:6px 0 0}
 #companiesView #portfolioPicker .portfolio-home-summary {margin-top:12px}
}
@media(min-width:1000px) and (max-height:600px) {
 #companiesView #portfolioPicker .showcase-copy {min-height:75px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:18px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker .showcase-top {padding:0}
 #companiesView #portfolioPicker .showcase-panels {padding-inline:0}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:20px}
 #companiesView #portfolioPicker .showcase-steps {gap:10px}
 #companiesView #portfolioPicker .showcase-playback {padding-inline:0}
}

/* Keep the wallet and its totals together; readable controls on an open canvas. */
#companiesView #portfolioPicker {--home-muted:#586b80}
html[data-theme=dark] #companiesView #portfolioPicker {--home-muted:#a1abb9}
#companiesView #portfolioPicker .portfolio-access-heading {flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px}
#companiesView #portfolioPicker .portfolio-access-kicker {font-size:9px;letter-spacing:1.15px}
#companiesView #portfolioPicker .portfolio-section-title {font-size:14px}
#companiesView #portfolioPicker .portfolio-access .portfolio-home-summary {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px 24px;margin:14px 0 0}
#companiesView #portfolioPicker .portfolio-home-summary > span+span {justify-content:flex-start}
#companiesView #portfolioPicker .portfolio-home-summary strong {font-size:16px}
#companiesView #portfolioPicker .portfolio-home-summary :is(.home-stat-label,#portfolioWalletLabel) {font-size:11px}
#companiesView #portfolioPicker .showcase-mark {font-size:11px}
#companiesView #portfolioPicker .scene-index {font-size:10px;letter-spacing:1.1px;color:var(--home-muted)}
#companiesView #portfolioPicker .showcase-copy p {font-size:13px;line-height:1.7}
#companiesView #portfolioPicker .home-showcase .showcase-step {font-size:12px}
#companiesView #portfolioPicker .home-showcase .showcase-step > span {font-size:10px;opacity:1}
#companiesView #portfolioPicker .showcase-playback {font-size:11px}
#companiesView #portfolioPicker .home-showcase .showcase-pause {font-size:11px;min-height:30px;color:var(--home-muted)}
#companiesView #portfolioPicker .home-showcase .showcase-step:focus-visible,
#companiesView #portfolioPicker .home-showcase .showcase-pause:focus-visible {outline:2px solid var(--home-blue);outline-offset:4px}
@media(min-width:1000px) and (min-height:761px) {
 #companiesView #portfolioPicker .portfolio-heading {min-height:clamp(440px,calc(100svh - 260px),640px);padding-top:0}
}
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker .portfolio-access {margin-top:22px}
 #companiesView #portfolioPicker .portfolio-access-heading {gap:3px;margin-bottom:9px!important}
 #companiesView #portfolioPicker .portfolio-access .portfolio-home-summary {margin-top:10px}
 #companiesView #portfolioPicker .showcase-copy p {font-size:12px}
 #companiesView #portfolioPicker .home-showcase .showcase-step {font-size:11px}
 #companiesView #portfolioPicker .showcase-playback,
 #companiesView #portfolioPicker .home-showcase .showcase-pause {font-size:10px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker .portfolio-access {max-width:100%}
 #companiesView #portfolioPicker .showcase-copy {min-height:100px}
}


/* One calm, centered composition: illustration, outcome, then navigation. */
#companiesView #portfolioPicker .home-showcase {max-width:470px;margin-inline:auto}
#companiesView #portfolioPicker .showcase-top {justify-content:center;height:auto;min-height:30px;margin-bottom:0}
#companiesView #portfolioPicker .showcase-title {font-size:17px;font-weight:550;letter-spacing:-.25px;color:var(--home-ink)}
#companiesView #portfolioPicker .showcase-panels {padding:0}
#companiesView #portfolioPicker .showcase-art {height:155px;gap:22px}
#companiesView #portfolioPicker .showcase-copy {min-height:84px;padding:0;text-align:center}
#companiesView #portfolioPicker .scene-index {display:none}
#companiesView #portfolioPicker .showcase-copy h2 {font-size:23px;line-height:1.3;letter-spacing:-.5px;margin:0 0 9px}
#companiesView #portfolioPicker .showcase-copy p {font-size:13px;line-height:1.7;max-width:40ch;margin:0 auto}
#companiesView #portfolioPicker .showcase-steps {gap:0;margin:6px 0 0}
#companiesView #portfolioPicker .home-showcase .showcase-step {justify-content:center;min-height:46px;padding:10px 3px 14px;font-size:13px;gap:7px}
#companiesView #portfolioPicker .home-showcase .showcase-step > span {font-size:11px;color:var(--home-muted)}
#companiesView #portfolioPicker .showcase-step > i {height:2px;left:10px;right:10px;background:var(--home-line)}
#companiesView #portfolioPicker .showcase-playback {padding:7px 10px 0;font-size:11px}
#companiesView #portfolioPicker .scene-transfer {position:relative;width:50px}
#companiesView #portfolioPicker .scene-transfer svg path {animation:none;stroke-dasharray:none;stroke:#7c9ec8;opacity:.8}
#companiesView #portfolioPicker .scene-transfer::after {content:"";position:absolute;left:0;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:var(--home-blue)}
#companiesView #portfolioPicker .scene-balance path,
#companiesView #portfolioPicker .paper-check path {stroke-dasharray:none;animation:none}
#companiesView #portfolioPicker .scene-paper {border-color:#c0d0e3}
#companiesView #portfolioPicker .scene-paper small {color:#536e91}
#companiesView #portfolioPicker .scene-ledger b {color:#59789f}
@keyframes workflowSignal {0%{translate:0 0;opacity:0}15%,75%{opacity:1}100%{translate:43px 0;opacity:0}}
@media(prefers-reduced-motion:no-preference) {
 #companiesView #portfolioPicker .scene-transfer::after {animation:workflowSignal 2.6s ease-in-out infinite}
}
#companiesView #portfolioPicker .home-showcase[data-art-motion=paused] .scene-transfer::after {animation-play-state:paused}
@media(prefers-reduced-motion:reduce) {
 #companiesView #portfolioPicker .scene-transfer::after {display:none}
}
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker .showcase-top {min-height:26px;margin-bottom:3px}
 #companiesView #portfolioPicker .showcase-art {height:135px}
 #companiesView #portfolioPicker .showcase-copy {min-height:80px;padding-top:3px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:20px}
 #companiesView #portfolioPicker .showcase-copy p {font-size:12px}
 #companiesView #portfolioPicker .showcase-steps {margin-top:4px}
 #companiesView #portfolioPicker .showcase-playback {padding-top:7px}
}
@media(min-width:1000px) and (max-height:600px) {
 #companiesView #portfolioPicker .showcase-art {height:104px}
 #companiesView #portfolioPicker .showcase-copy {min-height:88px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:18px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker .home-showcase {width:100%}
 #companiesView #portfolioPicker .showcase-art {height:155px;gap:16px}
 #companiesView #portfolioPicker .showcase-copy {min-height:96px}
 #companiesView #portfolioPicker .showcase-copy h2 {font-size:20px}
 #companiesView #portfolioPicker .home-showcase .showcase-step {font-size:12px;gap:5px}
}

/* Balance the headline with the compact product walkthrough. */
#companiesView #portfolioPicker h1 {font-size:clamp(42px,4.2vw,56px);line-height:1.08}
@media(min-width:1000px) and (max-height:760px) {
 #companiesView #portfolioPicker h1 {font-size:48px}
}
@media(min-width:1000px) and (max-height:600px) {
 #companiesView #portfolioPicker h1 {font-size:42px}
}
@media(max-width:760px) {
 #companiesView #portfolioPicker h1 {font-size:clamp(36px,8.5vw,48px)}
}

/* One header and a balanced working entrance, scoped to the home only. */
.home-header-brand,.home-header-date {display:none}
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) .home-header-brand {display:flex;align-items:center;gap:9px;margin-right:auto;min-width:0;color:var(--text,#1c3048)}
.home-header-brand img {display:block;object-fit:contain;border-radius:9px;flex:none;transition:transform .25s}
.home-header-brand strong {display:block;font-size:20px;letter-spacing:-.6px;line-height:1.2}
.home-header-brand small {display:block;font-size:8px;line-height:1.4;letter-spacing:.6px;color:var(--muted,#586b80)}
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) .topbar-title {display:none}
.app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) .home-header-date {display:block;margin-right:12px;font-size:11px;text-transform:capitalize;color:var(--muted,#586b80)}
#companiesView #portfolioPicker {margin:0 auto;gap:0}
#companiesView #portfolioPicker .portfolio-heading {min-height:0;padding:24px 0;gap:clamp(32px,4vw,56px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#companiesView #portfolioPicker .home-intro-copy {padding:0}
#companiesView #portfolioPicker .portfolio-access {max-width:460px;margin-top:26px}
#companiesView #portfolioPicker .portfolio-entry {min-height:100px;padding:19px 21px;grid-template-columns:48px minmax(0,1fr) 92px;gap:6px 15px;border-color:#587eaa;box-shadow:0 8px 28px #18324d12}
#companiesView #portfolioPicker .portfolio-avatar {width:48px;height:48px}
#companiesView #portfolioPicker .portfolio-entry-info strong {font-size:20px}
#companiesView #portfolioPicker .portfolio-entry-action {font-size:12px}
#companiesView #portfolioPicker .portfolio-entry-action > span:first-child {font-size:12px}
#companiesView #portfolioPicker:has(#portfolioList > .portfolio-entry:only-child) .portfolio-home-summary {display:none}
#companiesView #portfolioPicker .home-showcase {max-width:500px;width:100%}
#companiesView #portfolioPicker .showcase-art {height:180px;gap:24px}
#companiesView #portfolioPicker .scene-paper {width:102px;height:132px;padding:12px;gap:8px}
#companiesView #portfolioPicker .scene-ledger {width:98px;height:128px;padding:13px;gap:10px}
#companiesView #portfolioPicker .showcase-copy {min-height:88px}
#companiesView #portfolioPicker .showcase-copy p {font-size:13px;max-width:36ch}
html[data-theme=dark] #companiesView #portfolioPicker {--home-muted:#b2bdcc}
@media(min-width:1000px) {
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) main #companiesView.active {min-height:calc(100svh - 104px);display:grid;align-items:center}
 #companiesView #portfolioPicker .portfolio-heading {padding:24px 0 48px}
}
@media(min-width:1000px) and (max-height:640px) {
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) main #companiesView.active {min-height:calc(100svh - 90px)}
 #companiesView #portfolioPicker .portfolio-heading {padding:18px 0 28px}
 #companiesView #portfolioPicker .showcase-art {height:135px}
 #companiesView #portfolioPicker .scene-paper {width:88px;height:112px;padding:10px;gap:6px}
 #companiesView #portfolioPicker .scene-ledger {width:84px;height:108px;padding:10px;gap:8px}
 #companiesView #portfolioPicker .portfolio-entry {min-height:90px;padding:14px 18px}
}
@media(max-width:760px) {
 .app-shell:has(#companiesView.active #portfolioPicker:not([hidden])) .home-header-date {display:none}
 .home-header-brand small {display:none}
 .home-header-brand strong {font-size:clamp(13px,3.7vw,18px)}
 .home-header-brand img {width:28px;height:28px}
 #companiesView #portfolioPicker .portfolio-heading {grid-template-columns:minmax(0,1fr);gap:38px;padding:24px 0 32px}
 #companiesView #portfolioPicker .portfolio-access {max-width:none}
 #companiesView #portfolioPicker .portfolio-entry {grid-template-columns:40px minmax(0,1fr) 70px;padding:16px;gap:6px 10px}
 #companiesView #portfolioPicker .portfolio-avatar {width:40px;height:40px}
 #companiesView #portfolioPicker .portfolio-entry-info strong {font-size:18px}
 #companiesView #portfolioPicker .showcase-art {height:160px;gap:16px}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 .home-header-brand:hover img {transform:rotate(-6deg)}
}

/* assets/css/global-tool-preparation.css */
/* Preparation panels only: result tables retain their full width. */
:is(#converterView,#ledgerView) > .page-head {max-width:1000px;margin-inline:auto}
:is(#converterView,#ledgerView) > .global-tool-preparation {display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:100%;max-width:1000px;margin:0 auto 24px;padding:24px 28px;border:1px solid #dce5ef;border-radius:16px;background:#fff;box-shadow:0 4px 20px #263e5704;box-sizing:border-box}
:is(#converterView,#ledgerView) .global-tool-intro {position:static;min-height:0;margin:0;padding:0 0 18px;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:transparent;box-shadow:none}
:is(#converterView,#ledgerView) .global-tool-intro h3 {margin:0 0 7px;font-size:18px;letter-spacing:-.35px;color:var(--text)}
:is(#converterView,#ledgerView) .global-tool-intro p {max-width:none;margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
:is(#globalConverterForm,#ledgerForm) {display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0;width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
:is(#converterView,#ledgerView) .global-upload-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
:is(#converterView,#ledgerView) .global-upload-field {display:grid;gap:9px;min-width:0}
:is(#converterView,#ledgerView) .global-upload-field > label {display:block;margin:0;font-size:12px;font-weight:600;color:var(--text)}
:is(#converterView,#ledgerView) .global-upload-field .file-drop-shell {display:grid;align-content:center;justify-items:center;gap:12px;min-width:0;min-height:132px;width:100%;padding:20px 16px;border:1px dashed #aebfd4;border-radius:12px;background:#f8fafd;box-sizing:border-box}
:is(#globalConverterForm,#ledgerForm) input[type=file] {display:block;width:100%;max-width:460px;min-width:0;min-height:44px;margin:0;justify-self:center;padding:8px!important;border:0!important;background:transparent!important;font-size:12px;box-sizing:border-box}
:is(#globalConverterForm,#ledgerForm) input[type=file]::file-selector-button {margin-right:12px;padding:9px 13px;border:1px solid #cbd9e8;border-radius:8px;background:#fff;color:#35587c;font:inherit;font-weight:600;cursor:pointer}
:is(#converterView,#ledgerView) .file-drop-hint {justify-content:center;text-align:center;font-size:11px;line-height:1.6;max-width:46ch}
:is(#converterView,#ledgerView) .file-selection {justify-self:stretch;width:100%;box-sizing:border-box;text-align:left}
:is(#converterView,#ledgerView) .global-tool-controls {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px;padding-top:18px;border-top:1px solid #e7edf4}
:is(#converterView,#ledgerView) .global-tool-controls .standard-period-card {min-width:0;width:100%;max-width:480px;grid-column:1;grid-row:1;margin:0;padding:12px 14px;border:1px solid #dce5ef;border-radius:10px;background:#fafcfe;box-sizing:border-box}
:is(#converterView,#ledgerView) .global-tool-controls legend {font-size:12px;font-weight:600}
:is(#converterView,#ledgerView) .global-tool-controls legend span {font-size:11px;font-weight:400;color:var(--muted)}
:is(#converterView,#ledgerView) .global-tool-controls .period-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
:is(#converterView,#ledgerView) .global-tool-controls .period-fields > div {display:grid;gap:6px;min-width:0}
:is(#converterView,#ledgerView) .global-tool-controls input[type=date] {width:100%;min-width:0;min-height:42px;box-sizing:border-box;border:1px solid #ccd9e7;border-radius:8px;background:#fff;padding:9px 10px;font-size:12px;color:var(--text)}
:is(#converterView,#ledgerView) .global-tool-controls .standard-period-card p {margin:9px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
:is(#converterView,#ledgerView) .global-tool-action {display:grid;grid-column:2;grid-row:1;min-width:220px;align-self:end}
:is(#converterView,#ledgerView) .global-tool-action > button[type=submit] {width:100%;min-height:44px;margin:0;padding:12px 20px;border:1px solid #2864d7;border-radius:9px;background:#2864d7;color:#fff;font-size:12px;font-weight:600;cursor:pointer}
:is(#converterView,#ledgerView) .global-tool-action > button[type=submit]:hover:not(:disabled) {background:#2157bd}
:is(#globalConverterForm,#ledgerForm) > .helper {margin:0;font-size:12px;line-height:1.6}
:is(#globalConverterForm,#ledgerForm) > .helper:empty {display:none}
html[data-theme=dark] :is(#converterView,#ledgerView) .global-tool-intro {background:transparent!important;border-color:#303030!important}
html[data-theme=dark] :is(#converterView,#ledgerView) .global-tool-controls {border-color:#303030!important}
html[data-theme=dark] .app-shell :is(#converterView,#ledgerView) .global-upload-field .file-drop-shell {background:transparent!important;border-color:#454545!important;box-shadow:none!important}
html[data-theme=dark] .app-shell :is(#converterView,#ledgerView) .global-upload-field .file-drop-shell:hover {background:transparent!important;border-color:#7198ce!important}
html[data-theme=dark] .app-shell :is(#globalConverterForm,#ledgerForm) input[type=file] {background:transparent!important;border:0!important;box-shadow:none!important}
@media(max-width:760px) {
 :is(#converterView,#ledgerView) > .global-tool-preparation {padding:20px;gap:18px;border-radius:13px}
 :is(#converterView,#ledgerView) .global-upload-grid {grid-template-columns:minmax(0,1fr);gap:18px}
 :is(#converterView,#ledgerView) .global-upload-field .file-drop-shell {min-height:116px;padding:16px 12px}
 :is(#converterView,#ledgerView) .global-tool-controls {grid-template-columns:minmax(0,1fr);gap:18px}
 :is(#converterView,#ledgerView) .global-tool-controls .standard-period-card {grid-column:1;grid-row:auto;max-width:none}
 :is(#converterView,#ledgerView) .global-tool-action {grid-column:1;grid-row:auto;min-width:0;width:100%}
}

html[data-theme=dark] :is(#globalConverterForm,#ledgerForm) input[type=file]::file-selector-button {background:#252525;color:#e2e2e2;border-color:#505050}

/* Ledger setup keeps the files together and separates the run controls. */
#ledgerView > .page-head,
#ledgerView > .global-tool-preparation {max-width:none}
#ledgerView > .global-tool-preparation {
  padding:22px 24px;margin-bottom:0;border-color:var(--border);background:var(--surface);box-shadow:none;
}
#ledgerView #ledgerForm {
  grid-template-columns:minmax(0,1fr) minmax(260px,290px);
  gap:22px;align-items:start;
}
#ledgerView .ledger-documents {display:grid;gap:16px;min-width:0}
#ledgerView .ledger-documents-header h2 {margin:0 0 4px;color:var(--text);font-size:17px;letter-spacing:-.02em}
#ledgerView .ledger-documents-header p {margin:0;color:var(--muted);font-size:12px;line-height:1.5}
#ledgerView .global-upload-grid {gap:14px;align-items:stretch}
#ledgerView .global-upload-field {grid-template-rows:auto 1fr}
#ledgerView .global-upload-field > .ledger-file-label {display:flex;align-items:center;gap:9px}
#ledgerView .ledger-file-label strong {font-size:12px;color:var(--text)}
#ledgerView .ledger-file-label small {display:block;margin-top:2px;color:var(--muted);font-size:11px;font-weight:400}
#ledgerView .ledger-file-icon {
  display:grid;place-items:center;flex:none;width:32px;height:32px;
  border:1px solid var(--border);border-radius:8px;color:var(--accent);
}
#ledgerView .ledger-file-icon svg {width:17px;height:17px}
#ledgerView .global-upload-field .file-drop-shell {
  min-height:104px;padding:12px;gap:8px;align-content:start;justify-items:start;background:transparent;border-color:var(--border);
}
#ledgerView .file-drop-shell:focus-within {outline:2px solid var(--accent);outline-offset:2px}
#ledgerView .ledger-settings {
  grid-template-columns:minmax(0,1fr);gap:12px;align-content:start;
  min-width:0;padding:0 0 0 20px;border:0;border-inline-start:1px solid var(--border);
}
#ledgerView .ledger-settings :is(.standard-period-card,.global-tool-action) {
  grid-column:auto;grid-row:auto;min-width:0;max-width:none;
}
#ledgerView .ledger-settings .standard-period-card {padding:0;border:0;background:transparent!important}
#ledgerView .ledger-settings .period-fields {gap:8px;margin-top:6px}
#ledgerView .ledger-settings .period-fields label {font-size:11px;color:var(--muted)}
#ledgerView .ledger-settings .standard-period-card p,
#ledgerView #ledgerMessage {margin:0;color:var(--muted);font-size:11px;line-height:1.5}
#ledgerView .ledger-settings .standard-period-card p {margin-top:7px}
#ledgerView #ledgerMessage:not(:empty) {
  grid-column:1/-1;margin:0!important;padding:10px 0 0;border:0;
  border-top:1px solid var(--border);border-radius:0;background:transparent;font-size:12px!important;
}
#ledgerView #ledgerMessage::before {content:none}
#ledgerView #ledgerForm input[type=file][hidden] {display:none}
#ledgerView .ledger-file-add {
  min-height:36px;padding:7px 11px;border:1px solid var(--border);border-radius:8px;
  background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;
}
#ledgerView .ledger-file-add:hover {border-color:var(--accent)}
#ledgerView .file-drop-hint {justify-content:start;text-align:start}
#ledgerView .file-selection-summary {background:transparent;color:var(--muted)}
#ledgerView .file-selection-item {background:transparent}

@media(max-width:1000px) {
  #ledgerView #ledgerForm {grid-template-columns:minmax(0,1fr);gap:16px}
  #ledgerView .ledger-settings {
    grid-template-columns:minmax(0,360px) minmax(150px,210px);
    align-items:end;justify-content:space-between;padding:14px 0 0;border:0;border-top:1px solid var(--border);
  }
  #ledgerView #ledgerMessage {grid-column:1/-1}
}
@media(max-width:600px) {
  #ledgerView > .global-tool-preparation {padding:16px}
  #ledgerView .global-upload-grid,
  #ledgerView .ledger-settings {grid-template-columns:minmax(0,1fr)}
}

/* assets/css/site-access.css */
body[data-site-locked] .app-shell {display:none!important}
#workspaceRestoring {display:none}
:is(body[data-site-loading],html[data-workspace-restoring]) #siteAccess {display:none}
html[data-workspace-restoring] .app-shell {visibility:hidden;opacity:0;pointer-events:none}
:is(body[data-site-loading],html[data-workspace-restoring]) #workspaceRestoring {
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:radial-gradient(ellipse at 50% 45%,#e6eeff,transparent 58%),#f8faff;
  color:#142038;
}
html[data-theme="dark"] #workspaceRestoring {
  background:radial-gradient(ellipse at 50% 45%,#121e33,transparent 58%),#09090b;
  color:#eef3ff;
}
.workspace-loading-content {
  display:grid;
  justify-items:center;
  gap:12px;
  text-align:center;
}
.workspace-loading-content img {
  width:52px;
  height:52px;
  border-radius:13px;
  box-shadow:0 8px 24px #193d7733;
}
.workspace-loading-content strong {font-size:22px;letter-spacing:-.04em}
.workspace-loading-content span {font-size:13px;color:#4d5d74}
html[data-theme="dark"] .workspace-loading-content span {color:#b4bfce}
.workspace-loading-content::after {
  content:"";
  width:52px;
  height:3px;
  margin-top:3px;
  border-radius:999px;
  background:#83a9ff;
}
@media(prefers-reduced-motion:no-preference) {
  .workspace-loading-content::after {animation:workspace-loading-slide 1.35s ease-in-out infinite alternate}
}
@keyframes workspace-loading-slide {from{transform:translateX(-18px);opacity:.5}to{transform:translateX(18px);opacity:1}}
#siteAccess[hidden],#siteAccess [hidden],#siteAccessAccount[hidden]{display:none!important}
#mainSidebar .sidebar-account:not([hidden]) + .sidebar-note{display:none}
#mainSidebar .sidebar-account{
  margin-top:auto;padding:13px 5px 2px;border-top:1px solid #ffffff22;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;
}
.sidebar-account-avatar{
  display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:#71aaff26;color:#d9e9ff;font-size:11px;font-weight:800;letter-spacing:.04em;
}
.sidebar-account-identity{display:grid;gap:3px;min-width:0}
.sidebar-account-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f3f7ff;font-size:13px;line-height:1.2}
.sidebar-account-identity span{color:#aebfd5;font-size:10px;line-height:1.2}
#siteAccessExit{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;
  padding:0 8px;border:0;border-radius:8px;background:transparent;color:#c9d7ec;
  font:inherit;font-size:11px;font-weight:650;cursor:pointer;transition:background-color .18s,color .18s;
}
#siteAccessExit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#siteAccessExit:hover{background:#ffffff12;color:#fff}
#siteAccessExit:focus-visible{outline:2px solid #8cbaff;outline-offset:2px}
#siteAccessExit:disabled{opacity:.55;cursor:wait}


#siteAccess {
  --login-card:#fbfcff; --login-ink:#142038; --login-muted:#4d5d74;
  --login-line:#d4deeb; --login-field:#f2f5fa; --login-accent:#254fc5; --login-focus:#3666e2;
  --login-error:#98372c; --login-error-bg:#fff3ee;
  min-height:100dvh; color:var(--login-ink); background:var(--login-card);
}
html[data-theme="dark"] #siteAccess {
  --login-card:#101113; --login-ink:#f4f6fb; --login-muted:#b4bfce;
  --login-line:#414953; --login-field:#1b1d23; --login-accent:#315cd5; --login-focus:#86adff;
  --login-error:#ffb9ac; --login-error-bg:#30201e;
}
#siteAccess .site-access-card {
  width:100%; min-height:100dvh; display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);
}
.site-access-welcome {
  position:relative; isolation:isolate; overflow:hidden; min-width:0;
  display:grid; align-content:center; justify-items:start; gap:clamp(12px,4dvh,42px);
  padding:clamp(18px,5dvh,72px) clamp(24px,5.6vw,104px);
  background:radial-gradient(ellipse at 96% 82%,#172c53,transparent 67%),#0c1018;
}
.site-access-welcome::before {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background-image:linear-gradient(#a3c3ff0a 1px,transparent 1px),linear-gradient(90deg,#a3c3ff0a 1px,transparent 1px);
  background-size:32px 32px; mask-image:linear-gradient(145deg,transparent 28%,#000);
}
.site-access-brand {display:flex; align-items:center; gap:12px}
.site-access-brand img {border-radius:11px}
.site-access-brand strong,.site-access-brand span {display:block}
.site-access-brand strong {color:#f6f8ff; font-size:19px; letter-spacing:-.03em}
.site-access-brand span {color:#b5c3d9; font-size:11px; margin-top:3px}
#siteAccess p {font-size:14px; line-height:1.55; color:var(--login-muted); margin:0}
#siteAccess .site-access-eyebrow {font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.17em; color:#b1c7ff}
#siteAccess .site-access-welcome-title {
  margin:12px 0 16px; color:#f6f8ff; font-size:clamp(34px,min(5.55vw,10dvh),92px);
  line-height:.99; font-weight:760; letter-spacing:-.064em;
}
.site-access-welcome-title em {font-style:normal; color:#9ebdff}
#siteAccess .site-access-welcome-copy>p:last-child {max-width:39ch; color:#c7d4e9; font-size:clamp(14px,1.3vw,19px)}
.site-access-demo {
  --demo-ink:#edf3ff; --demo-muted:#afbed5; --demo-accent:#a6c8ff;
  --demo-node:#152239; --demo-line:#6e98d956;
  --demo-surface:#9cbfff10;
  width:min(100%,510px); min-width:0; margin:0;
  display:grid; gap:14px; color:var(--demo-ink); text-align:center;
}
.site-access-demo figcaption {
  color:var(--demo-muted); font-size:10px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase;
}
.site-access-demo-steps {
  --tools-cycle:4.6s;
  --node-size:46px;
  position:relative; isolation:isolate;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0; padding:0; list-style:none;
}
.site-access-demo-steps::before,.site-access-demo-steps::after {
  content:""; position:absolute; z-index:-1; inset:calc(var(--node-size) / 2) 16.67% auto;
  height:1px; background:var(--demo-line);
}
.site-access-demo-steps li {
  --step-delay:0s;
  min-width:0; display:grid; justify-items:center; align-content:start; gap:9px; padding-inline:3px;
  text-align:center; line-height:1.22;
}
.site-access-demo-icon {
  box-sizing:border-box; width:var(--node-size); height:var(--node-size);
  display:grid; place-items:center; border:1px solid var(--demo-line); border-radius:14px;
  background:linear-gradient(155deg,var(--demo-surface),transparent),var(--demo-node);
  color:var(--demo-accent);
}
.site-access-demo-icon svg {
  width:calc(var(--node-size) * .51); height:calc(var(--node-size) * .51); fill:none; stroke:currentColor;
  stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round;
}
.site-access-demo-steps strong,.site-access-demo-steps small {display:block}
.site-access-demo-steps strong {font-size:13px; overflow-wrap:anywhere}
.site-access-demo-steps small {margin-top:3px; color:var(--demo-muted); font-size:11px; overflow-wrap:anywhere}
@media(prefers-reduced-motion:no-preference) {
  .site-access-demo-steps li:nth-child(2) {--step-delay:.66s}
  .site-access-demo-steps li:nth-child(3) {--step-delay:1.32s}
  .site-access-demo-steps::after {
    height:2px; background:var(--demo-accent);
    animation:login-tools-link var(--tools-cycle) linear infinite;
  }
  .site-access-demo-icon {animation:login-tools-node var(--tools-cycle) var(--step-delay) ease-in-out infinite}
  .site-access-demo-steps strong {animation:login-tools-label var(--tools-cycle) var(--step-delay) ease-in-out infinite}
}
@keyframes login-tools-link {
  0% {clip-path:inset(0 100% 0 0);opacity:0}
  5% {clip-path:inset(0 94% 0 0);opacity:.8}
  18% {clip-path:inset(0 49% 0 23%);opacity:.8}
  33% {clip-path:inset(0 0 0 72%);opacity:.8}
  42%,100% {clip-path:inset(0 0 0 99%);opacity:0}
}
@keyframes login-tools-node {
  0%,22%,100% {border-color:var(--demo-line);box-shadow:0 0 0 0 transparent}
  9% {border-color:var(--demo-accent);box-shadow:0 0 0 4px var(--demo-line)}
}
@keyframes login-tools-label {
  0%,22%,100% {color:var(--demo-ink)}
  9% {color:var(--demo-accent)}
}
.site-access-content {
  min-width:0; display:grid; grid-template-rows:auto 1fr; gap:22px;
  padding:clamp(22px,4vw,64px);
}
.site-access-controls {display:flex; justify-content:flex-end}
#siteAccessTheme {
  display:flex; align-items:center; gap:7px; min-height:42px; padding:7px 12px;
  color:var(--login-muted); background:var(--login-field); border:1px solid var(--login-line);
  border-radius:999px; font-size:12px; font-weight:650; cursor:pointer;
}
#siteAccessTheme svg {width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7}
.site-access-form-panel {width:min(100%,400px); margin:auto; min-width:0; padding:16px 0 28px; animation:login-studio-enter .36s ease-out both}
.site-access-heading {margin:0 0 26px}
#siteAccess .site-access-tag {
  display:inline-flex; align-items:center; gap:6px; padding:5px 9px;
  color:var(--login-muted); border:1px solid var(--login-line); border-radius:99px;
  font-size:11px; font-weight:650;
}
#siteAccess .site-access-heading h1 {
  margin:13px 0 7px; color:var(--login-ink); font-size:clamp(29px,4vw,40px);
  letter-spacing:-.045em; line-height:1.14;
}
#siteAccess :is(.site-access-tag,.site-access-input) svg {
  width:17px; height:17px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
#siteAccess .site-access-tag svg {width:13px; height:13px}
#siteAccess .site-access-tag {background:var(--login-field)}
#siteAccess form {display:grid; gap:16px; margin:0; padding:0; background:transparent; border:0; box-shadow:none}
.site-access-field {display:grid; gap:7px}
#siteAccess .site-access-field label {margin:0; font-size:13px!important; font-weight:650; color:var(--login-ink)!important}
.site-access-input {position:relative; min-width:0}
.site-access-input>svg {position:absolute; left:14px; top:50%; transform:translateY(-50%); pointer-events:none; color:var(--login-muted)}
#siteAccess :is(#siteAccessEmail,#siteAccessPassword) {
  box-sizing:border-box; width:100%; min-height:50px; margin:0; padding:11px 13px 11px 42px!important;
  border:1px solid var(--login-line)!important; border-radius:11px!important; font-size:16px!important; font-weight:500;
  background:var(--login-field)!important; color:var(--login-ink)!important;
  -webkit-text-fill-color:var(--login-ink)!important; caret-color:var(--login-ink);
}
#siteAccess #siteAccessPassword {padding-right:50px!important}
#siteAccess :is(#siteAccessEmail,#siteAccessPassword)::placeholder {
  color:var(--login-muted)!important; -webkit-text-fill-color:var(--login-muted)!important; opacity:1; font-weight:400;
}
#siteAccess :is(#siteAccessEmail,#siteAccessPassword):is(:-webkit-autofill,:autofill) {
  -webkit-text-fill-color:var(--login-ink)!important; box-shadow:0 0 0 1000px var(--login-field) inset!important;
}
#siteAccess :is(input,button):focus-visible {outline:2px solid var(--login-focus); outline-offset:2px}
#siteAccessShow {
  position:absolute; inset:3px 3px 3px auto; width:44px; display:grid; place-items:center;
  border:0; border-radius:8px; background:transparent; color:var(--login-muted); cursor:pointer;
}
#siteAccessShow:hover {color:var(--login-ink); background:var(--login-line)}
.site-access-eye-off {display:none}
#siteAccessShow[aria-pressed="true"] .site-access-eye-off {display:block}
#siteAccess .site-access-submit,#siteAccessRetry {
  display:flex; align-items:center; justify-content:center; gap:9px; min-height:49px;
  padding:10px 16px; margin:4px 0 0; border:0; border-radius:11px;
  background:var(--login-accent); color:#fff; font-size:14px; font-weight:700;
  cursor:pointer; transition:filter .18s,transform .18s;
}
#siteAccess .site-access-submit::before {content:none}
#siteAccess .site-access-submit {background:linear-gradient(110deg,var(--login-accent),#2f58bc)}
#siteAccess :is(.site-access-submit,#siteAccessRetry):hover:not(:disabled) {filter:brightness(1.1)}
#siteAccess .site-access-submit:active:not(:disabled) {transform:translateY(1px)}
#siteAccess button:disabled {opacity:.65; cursor:wait}
#siteAccess .site-access-session-note {font-size:11px; text-align:center}
#siteAccessStatus:not(:empty) {
  display:flex; gap:9px; align-items:center; margin:0 0 15px; padding:10px 12px;
  border:1px solid var(--login-line); border-radius:10px; background:var(--login-field); font-size:12px;
}
#siteAccessStatus:empty {display:none}
#siteAccess[data-access-state="submitting"] #siteAccessStatus {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
  margin:0; padding:0; border:0; white-space:nowrap;
}
#siteAccess[data-access-state="error"] #siteAccessStatus {color:var(--login-error); background:var(--login-error-bg)}
#siteAccess #siteAccessCaps {margin-top:-7px; font-size:12px; color:var(--login-muted)}
#siteAccessRetry {margin-top:12px}
#siteAccess .site-access-submit[aria-busy="true"] .site-access-submit-indicator {
  width:13px; height:13px; border:2px solid currentColor; border-right-color:transparent;
  border-radius:50%; font-size:0; animation:site-access-progress .7s linear infinite;
}
@keyframes site-access-progress {to{transform:rotate(360deg)}}
@keyframes login-studio-enter {from{opacity:.6;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-height:720px) {
  .site-access-content {padding-block:12px;gap:4px}
  .site-access-form-panel {padding:0}
  .site-access-heading {margin-bottom:14px}
  #siteAccess .site-access-heading h1 {margin:7px 0 4px}
  #siteAccess form {gap:10px}
  .site-access-field {gap:4px}
  #siteAccess :is(#siteAccessEmail,#siteAccessPassword) {min-height:44px;padding-block:8px!important}
  #siteAccess .site-access-submit {min-height:44px}
}
@media(max-width:760px) and (orientation:portrait), (max-width:499px) {
  #siteAccess .site-access-card {
    position:relative; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto;
    align-content:start;
  }
  .site-access-welcome {display:contents}
  .site-access-welcome-copy {display:none}
  .site-access-brand {grid-row:1;padding:9px 16px;background:#0c1018}
  .site-access-brand img {width:34px;height:34px}
  .site-access-content {grid-row:2;display:block;padding:9px 16px 12px}
  .site-access-controls {position:absolute;inset:8px 16px auto auto}
  #siteAccessTheme {min-height:36px}
  .site-access-form-panel {padding:0}
  .site-access-heading {margin-bottom:10px}
  #siteAccess .site-access-heading h1 {font-size:28px;margin:5px 0 3px}
  #siteAccess form {gap:8px}
  .site-access-field {gap:3px}
  .site-access-demo {
    grid-row:3;justify-self:center;width:min(calc(100% - 32px),400px);
    margin:0 0 max(8px,env(safe-area-inset-bottom));gap:8px;
    --demo-ink:var(--login-ink); --demo-muted:var(--login-muted); --demo-accent:var(--login-focus);
    --demo-node:var(--login-field); --demo-line:var(--login-line);
  }
  .site-access-demo-steps {--node-size:34px}
  .site-access-demo-steps li {gap:6px}
  .site-access-demo-icon {border-radius:10px}
  .site-access-demo-steps small {font-size:10px}
  .site-access-demo-steps strong {font-size:11px}
}
@media(max-height:620px) and (max-width:760px) and (orientation:portrait), (max-height:620px) and (max-width:499px) {
  .site-access-heading .site-access-tag,
  .site-access-heading > p {display:none!important}
  .site-access-heading {margin-bottom:8px}
  .site-access-content {padding-block:6px 8px}
}
@media(max-height:520px) and (min-width:500px) and (orientation:landscape) {
  .site-access-welcome {padding:12px 18px;gap:9px}
  .site-access-welcome-copy {display:none}
  .site-access-demo {gap:7px}
  .site-access-demo-steps {--node-size:34px}
  .site-access-demo-steps li {gap:6px}
  .site-access-demo-icon {border-radius:10px}
  .site-access-demo-steps small {font-size:10px}
  .site-access-content {padding:8px 18px;gap:2px}
  #siteAccessTheme {min-height:34px}
  .site-access-heading .site-access-tag,
  .site-access-heading > p {display:none!important}
}
@media(prefers-reduced-motion:reduce) {
  #siteAccess *,#siteAccess *::before,#siteAccess *::after {animation:none!important;transition:none!important}
}

#siteAccessChangePassword {
  justify-self:start; padding:4px 0; border:0; background:transparent;
  color:#d9e9ff; font:inherit; font-size:11px; cursor:pointer; text-align:left;
}
#siteAccessChangePassword:hover {text-decoration:underline}
#siteAccessChangePassword:focus-visible {outline:2px solid #8cbaff;outline-offset:2px}
#sitePasswordDialog input[type=password] {font-size:16px}
#sitePasswordMessage {margin:0;min-height:1.25em;font-size:12px;color:var(--muted)}

/* assets/css/preview-layout.css */
/* The same frame and actions for workbooks, daily balances and fiscal results. */
.app-shell .standard-preview {
  display:grid; grid-template-columns:minmax(0,1fr); gap:14px;
  width:100%; max-width:100%; min-width:0; margin:18px 0 0;
}
.app-shell .standard-preview[hidden], .app-shell .standard-preview:empty { display:none; }
.app-shell :is(#companyPanel,#converterView,#ledgerView) .standard-preview,
.app-shell .preview-dialog .standard-preview:not(.fiscal-results-card) {
  margin:18px 0 0; padding:0; border:0; background:transparent; box-shadow:none;
}
.app-shell #fiscalView #fiscal242ResultsCard.standard-preview { display:grid; gap:14px; }
.app-shell .standard-preview > .preview-commandbar {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:12px 18px; min-width:0; padding:12px 14px;
  border:1px solid var(--border,#dfe6ee); border-radius:12px;
  background:var(--surface,#fff); box-shadow:none;
}
.app-shell .standard-preview .preview-command-info strong {
  font-size:14px; line-height:1.35; color:var(--text,#233750);
}
.app-shell .standard-preview .preview-command-info small {
  margin-top:3px; font-size:12px; line-height:1.35; color:var(--muted,#53677f);
}
.app-shell .standard-preview .preview-primary-actions { flex:0 1 auto; flex-wrap:wrap; min-width:0; }
.app-shell .standard-preview .preview-primary-actions button {
  min-height:42px; margin:0; padding:9px 12px; border-radius:9px;
  font-size:12px; font-weight:650;
}
.app-shell .standard-preview .preview-primary-actions .preview-download {
  border:1px solid #315fc5; color:#fff; background:#315fc5;
}
.app-shell .standard-preview .preview-primary-actions .preview-download:hover { background:#244da7; }
.app-shell .standard-preview :is(.preview-summary-grid,.daily-summary) { gap:10px; }
.app-shell .standard-preview :is(.preview-summary-item,.daily-summary > div) {
  min-width:0; padding:12px 14px; border-radius:11px;
}
.app-shell .standard-preview :is(.preview-summary-item,.daily-summary > div) small { font-size:11px; }
.app-shell .standard-preview :is(.preview-summary-item,.daily-summary > div) strong { font-size:17px; }
.app-shell .standard-preview :is(.preview-sheet,.preview-table-scroll,.daily-table-scroll,.fiscal-table-scroll) { min-width:0; }
.app-shell .preview-dialog .fiscal-table-scroll { max-height:68dvh; overflow:auto; }
html[data-theme="dark"] .app-shell :is(#companyPanel,#converterView,#ledgerView,.preview-dialog) .standard-preview:not(.fiscal-results-card) {
  background:transparent!important; box-shadow:none!important;
}
@media (max-width:760px) {
  .app-shell .standard-preview,
  .app-shell :is(#companyPanel,#converterView,#ledgerView) .standard-preview { gap:11px; margin-top:14px; }
  .app-shell .standard-preview > .preview-commandbar { align-items:stretch; flex-direction:column; }
  .app-shell .standard-preview .preview-primary-actions button { flex:1 1 auto; min-height:44px; }
  .app-shell .standard-preview .preview-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell .standard-preview :is(.preview-summary-item,.daily-summary > div) { padding:10px; }
}
