/* WOT web identity. Keep --wot-brand aligned with wot/pdf_assets/design.css.
   Loaded after component styles. Status and financial chart colors stay semantic. */
:root {
    --wot-brand: #205c3b;
    --wot-brand-dark: #163f29;
    --wot-brand-deep: #102e20;
    --wot-brand-hover: #28734a;
    --wot-brand-light: #c5dfce;
    --wot-brand-soft: #eaf3ed;
    --wot-surface: #ffffff;
    --wot-focus: #38835a;
    --ink: #24382d;
    --muted: #66796e;
    --line: #dfe7e1;
    --canvas: #f5f7f4;
    /* Compatibility for components using the original token names. */
    --navy: var(--wot-brand);
    --navy2: var(--wot-brand-dark);
    --accent: var(--wot-brand);
}

/* Brand mark: the same W silhouette in the sidebar, login and browser tab. */
.logo-mark {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    background: var(--wot-brand);
    border-radius: 11px;
}
.brand { gap: 11px; }
.brand .logo-mark { box-shadow: 0 0 0 1px #ffffff30; }
.brand small { color: #d5e6da; }
.brand-dot { color: var(--wot-brand-light); }
.boot .logo-mark { width: 56px; height: 56px; }
.sidebar-bottom { padding-top: 10px; }
.sidebar-credit { display: block; padding-top: 0; letter-spacing: 0; }
.sidebar-company-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.sidebar-company-brand img { display: block; width: 76px; height: auto; }
.sidebar-company-brand span { font-size: 9px; }
.sidebar-business-info { font-style: normal; font-size: 10px; line-height: 1.3; color: #c5d9cd; word-break: keep-all; overflow-wrap: anywhere; }
.sidebar-business-info p { margin: 0; }
.sidebar-business-info p:last-child { margin-bottom: 0; }
.login-foot .sidebar-credit { max-width: 280px; padding-top: 0; }

/* Navigation and primary branded surfaces. */
.sidebar {
    background: linear-gradient(165deg, var(--wot-brand), var(--wot-brand-dark) 62%, var(--wot-brand-deep));
    color: #d5e6da;
}
.nav-item.active { background: #ffffff15; box-shadow: inset 3px 0 var(--wot-brand-light); }
.nav-item.drop-target { background: #ffffff18; box-shadow: inset 0 3px var(--wot-brand-light); }
.nav-label, .nav-tools, .nav-order-button, .drag-grip, .logic-nav-label button,
.workspace-note, .sidebar-credit { color: #b8d0c1; }
.workspace-note strong { color: #e1eee5; }
.nav-section.has-active .nav-section-toggle,
.nav-section.has-active .nav-section-toggle[aria-expanded=false] span:first-child:after { color: #d5eddf; }
.hero, .br-hero, .login-visual {
    background: linear-gradient(115deg, var(--wot-brand-dark), var(--wot-brand) 65%, #2b6a46);
}
.hero .eyebrow, .hero p, .hero-aside span, .login-message p,
.login-foot, .br-eyebrow { color: #d0e4d7; }
.login-message h1 em { color: #c5e6d1; }
.report-cover { background: linear-gradient(140deg, var(--wot-brand-dark), var(--wot-brand)); }
.report-cover small, .report-cover p, .report-cover .cover-footer { color: #d0e4d7; }
.toast:not(.error), .tr-code { background: var(--wot-brand-dark); color: #f3f8f5; }
.toast { box-shadow: 0 8px 24px #102e2026; }
.scrim { background: #102e2059; }
.modal { box-shadow: 0 25px 80px #102e202e; }
.drawer { box-shadow: -10px 0 60px #102e201f; }

/* Actions, focus and selection. Keep danger/amber/status colors distinct. */
.button:not(.primary):not(.soft):not(.danger):not(.ghost) { color: #486152; border-color: var(--line); }
.button:not(.primary):not(.soft):not(.danger):hover { background: var(--wot-brand-soft); border-color: #b6cdbc; }
.button.primary { background: var(--wot-brand); border-color: var(--wot-brand); }
.button.primary:hover { background: var(--wot-brand-hover); border-color: var(--wot-brand-hover); }
.button.soft { color: var(--wot-brand); background: var(--wot-brand-soft); border-color: #c8dfd0; }
.button.soft:hover { background: #dcece1; }
.icon-button { color: #6a8072; }
.icon-button:hover { background: var(--wot-brand-soft); color: var(--wot-brand); }
input, select, textarea { border-color: #ccd9cf; }
input:focus, select:focus, textarea:focus { border-color: var(--wot-focus); box-shadow: 0 0 0 3px #38835a20; }
button:focus-visible, a:focus-visible, .table-wrap:focus-visible,
.floating-scroll-track:focus-visible { outline-color: var(--wot-focus); }
.sidebar button:focus-visible, .sidebar a:focus-visible { outline-color: #c5e6d1; }
input[type=checkbox], input[type=radio] { accent-color: var(--wot-brand); }
.tab.active { border-color: var(--wot-brand); color: var(--wot-brand); }
.selection-bar { background: var(--wot-brand-soft); color: var(--wot-brand-dark); border-color: var(--line); }
tbody tr.selected { background: var(--wot-brand-soft); }
tbody tr:hover { background: #f6faf7; }
.report-card.is-selected { outline-color: var(--wot-brand); }
.report-selection input, .report-select-label input { accent-color: var(--wot-brand); }
.progress-track { background: var(--wot-brand-soft); }
.progress-track span { background: var(--wot-brand-hover); }

/* Quiet, readable neutral surfaces around the green identity. */
.login-form, .global-search, .advanced-filters { background: #fafcf9; }
.avatar, .stat-icon, .chip, .step-number { background: var(--wot-brand-soft); color: var(--wot-brand); }
.logic-icon:not(.purple):not(.teal) { background: var(--wot-brand-soft); color: var(--wot-brand); }
.logic-card:hover { border-color: #b6cdbc; box-shadow: 0 5px 20px #163f2910; }
.stat-value, .detail-metric strong, .metrics-inline strong, .company-button,
.graph-node strong, .report-period, .schedule-summary strong, .schedule-name strong,
.schedule-due, .tr-value strong, .table-tools strong, th.sorted { color: var(--wot-brand-dark); }
.breadcrumb strong, .user-menu, td, .graph-node, .tr-value { color: #4a6253; }
.eyebrow, .field-label, .help-text, .login-card>p, .login-caption,
.logic-card p, .logic-card-bottom, .stat-top, .stat-caption,
.report-info p, .report-list-meta, .results-pagination,
.table-tools, .table-footer, .empty, .empty h3, .empty p,
.graph-node small, .run-config label { color: var(--muted); }
th, .business-insights th, .history-table th { background: #f0f5f1; color: #526c5d; }
.notice:not(.amber):not(.green):not(.apikey-alert) {
    background: #eff5f0;
    border-color: var(--line);
    color: #4d6957;
}
.detail-metric, .column-row, .tr-value, .output-workbook { background: #f1f5f1; }
.column-group-head, .result-column-settings .column-list-head {
    background: var(--wot-brand-soft); color: #456350; border-color: var(--line);
}
.history-filters input, .history-filters select { color: var(--ink); border-color: var(--line); }
.graph-node { border-color: var(--line); }
.graph-node.selected { background: var(--wot-brand-soft); border-color: #89b79a; }
.floating-table-scroll { border-color: #bdcfbf; box-shadow: 0 4px 24px #163f2922; }
.floating-scroll-status { color: #526c5d; }
.floating-scroll-track::-webkit-slider-runnable-track { background: #e4ede6; border-color: #cadacf; }
.floating-scroll-track::-webkit-slider-thumb { background: #718f7b; border-color: #476e54; }
.floating-scroll-track::-moz-range-track { background: #e4ede6; border-color: #cadacf; }
.floating-scroll-track::-moz-range-thumb { background: #718f7b; border-color: #476e54; }

/* Keep the logo visible on the compact login screen as well. */
@media (max-width: 820px) {
    .sidebar.open~.mobile-backdrop { background: #102e2077; }
    .login { grid-template-rows: auto 1fr; }
    .login-visual { display: block; padding: 26px 28px; }
    .login-visual .brand { padding: 0; }
    .login-message, .login-foot, .login-visual:after { display: none; }
    .login-form { min-height: 0; padding: 28px; }
}
