/* WEB-007: shared spacing and palette, loaded after each page's existing styles. */
body.site-theme {
    --site-bg: #0b1425;
    --site-surface: #142239;
    --site-input: #101d31;
    --site-border: #2d415b;
    --site-text: #eaf0f8;
    --site-muted: #a8b9ce;
    --site-green: #00dc82;
    --site-green-hover: #00c574;
    --site-accent: #81dfc3;
    --site-hero: linear-gradient(125deg, #19354a, #14243d 60%, #101d32);
    --ui-panel: linear-gradient(155deg, rgba(255,255,255,.025), transparent 55%), var(--site-surface);
    --ui-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 6px 20px rgba(0,0,0,.12);
    --ui-soft: rgba(88,212,176,.09);
    --ui-danger: #ffb4bc;
    --ui-danger-bg: #3a202d;
    --admin-bg-body: var(--site-bg);
    --admin-bg-sidebar: var(--site-surface);
    --admin-bg-card: var(--site-surface);
    --admin-bg-input: var(--site-input);
    --admin-border: var(--site-border);
    --admin-text-main: var(--site-text);
    --admin-text-muted: var(--site-muted);
    --admin-primary: var(--site-accent);
    --admin-active-bg: var(--ui-soft);
    --company-green-end: var(--site-green-hover);
    --company-primary-background: var(--site-green);
    --company-primary-text: #072b22;
    --radius: 14px;
    --shadow: var(--ui-shadow);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.55;
    background: var(--site-bg);
    color: var(--site-text);
}
body.site-theme.light {
    --site-bg: #f2f6f5;
    --site-surface: #ffffff;
    --site-input: #edf7f0;
    --site-border: #cdded5;
    --site-text: #1b3434;
    --site-muted: #536c67;
    --site-green: #56c6a2;
    --site-green-hover: #70d3b2;
    --site-accent: #146c53;
    --site-hero: linear-gradient(125deg, #e3f2ec, #f7fbf9 65%, #eef4f8);
    --ui-panel: #ffffff;
    --ui-shadow: 0 4px 16px rgba(26,66,54,.045);
    --ui-soft: #e6f4ec;
    --ui-danger: #a42a3d;
    --ui-danger-bg: #fff0f1;
    --admin-bg-sidebar: var(--site-surface);
    --admin-bg-card: var(--site-surface);
    --admin-bg-input: var(--site-input);
    --admin-border: var(--site-border);
    --admin-text-main: var(--site-text);
    --admin-text-muted: var(--site-muted);
    --admin-primary: var(--site-accent);
    --admin-active-bg: var(--ui-soft);
}
body.site-theme *, body.site-theme *::before, body.site-theme *::after { box-sizing: border-box; }
body.site-theme :is(.portal-main,.wallet-page,.profile-page,.page-shell,.notifications-page) {
    width: min(1320px, 100%); max-width: 1320px; margin: 22px auto 40px; padding: 0 24px;
}
body.site-theme :is(.portal-main,.admin-main-content) { font-size: 14px; }
body.site-theme :is(.page-heading,.wallet-heading,.profile-heading,.notifications-heading) {
    margin: 0 0 16px; gap: 12px;
}
body.site-theme :is(.page-heading,.section-heading,.panel-heading) { flex-wrap: wrap; }
body.site-theme :is(.portal-main,.wallet-page,.profile-page,.admin-main-content,.notifications-page) h1,
body.site-theme .notifications-heading h1 { font-size: clamp(23px, 2.1vw, 29px); line-height: 1.35; margin: 0 0 12px; letter-spacing: -.02em; }
body.site-theme :is(.page-heading,.wallet-heading,.profile-heading,.notifications-heading) h1 { margin: 0; }
body.site-theme :is(.portal-main,.wallet-page,.profile-page,.admin-main-content) h2 { font-size: 18px; line-height: 1.45; margin: 0 0 10px; }
body.site-theme :is(.portal-main,.wallet-page,.profile-page,.admin-main-content) h3 { font-size: 16px; margin: 0 0 8px; }
body.site-theme :is(.portal-main,.wallet-page,.profile-page,.admin-main-content) p { margin-block: 8px; }
body.site-theme .eyebrow { font-size: 12px; margin: 0 0 4px; color: var(--site-accent); }
body.site-theme :is(.panel,.wallet-panel,.profile-panel,.wallet-stat-card,.wallet-main-card,.notifications-card,.card) {
    background: var(--ui-panel); border-color: var(--site-border); border-radius: 14px; box-shadow: var(--ui-shadow);
}
body.site-theme :is(.panel,.wallet-panel,.profile-panel,.notifications-card) { padding: 18px; margin-bottom: 16px; }
body.site-theme :is(.wallet-stat-card,.wallet-main-card,.portal-stat) { padding: 16px 18px; }
body.site-theme :is(.portal-stat-grid,.wallet-summary-grid,.admin-stats-grid,.profile-content,.wallet-content-grid,.portal-task-list) { gap: 14px; }
body.site-theme :is(.portal-stat,.wallet-stat-card) strong { font-size: 28px; margin: 4px 0; }
body.site-theme .portal-stat p { margin: 0 0 4px; }
body.site-theme :is(.notice,.errors) { padding: 11px 14px; margin: 0 0 14px; border-radius: 10px; line-height: 1.55; }
body.site-theme .notice { background: var(--ui-soft); color: var(--site-accent); border: 1px solid var(--site-border); }
body.site-theme .notice p { margin: 4px 0 0; }
body.site-theme .errors { color: var(--ui-danger); background: var(--ui-danger-bg); }
body.site-theme :is(.notice,.errors) ul { margin-block: 4px; }
body.site-theme .company-workspace .company-hero { padding: 22px; border-radius: 16px; gap: 20px; background: var(--site-hero); border-color: var(--site-border); }
body.site-theme .company-workspace .company-hero h1 { margin: 5px 0; font-size: 29px; }
body.site-theme .hero-wallet { padding: 14px 18px; border-radius: 12px; background: var(--site-surface); border-color: var(--site-border); }
body.site-theme .hero-wallet strong { font-size: 27px; }
body.site-theme .workspace-tasks { padding: 18px; margin-top: 16px; border-radius: 14px; background: var(--ui-panel); }
body.site-theme .section-heading { margin-bottom: 12px; }
body.site-theme .portal-task-card { padding: 14px 16px; gap: 14px; }
body.site-theme .portal-empty { padding: 20px; }
/* Controls: compact desktop spacing, readable labels, no change to hidden inputs. */
body.site-theme :is(.button,.secondary-button,.icon-button) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: 8px 14px; font-size: 13px; line-height: 1.4; border-radius: 9px; font-weight: 600;
    text-align: center; text-decoration: none;
}
body.site-theme .button:not(.secondary):not(.danger) { background: var(--site-green); color: #072b22; }
body.site-theme :is(.button.secondary,.secondary-button,.icon-button) { background: var(--site-surface); color: var(--site-text); border: 1px solid var(--site-border); }
body.site-theme :is(.button.secondary,.secondary-button,.icon-button):hover { background: var(--ui-soft); border-color: var(--site-accent); }
body.site-theme :is(.button.danger,.profile-danger-button) { background: var(--ui-danger-bg); color: var(--ui-danger); border: 1px solid var(--ui-danger); }
body.site-theme :is(button,input,select,textarea):disabled { opacity: .55; cursor: not-allowed; }
body.site-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea) {
    background: var(--site-input); color: var(--site-text); border: 1px solid var(--site-border);
    border-radius: 9px; padding: 9px 11px; font: inherit; line-height: 1.45; min-width: 0; max-width: 100%;
}
body.site-theme :is(input,textarea)::placeholder { color: var(--site-muted); opacity: .85; }
body.site-theme :is(input,select,textarea):focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
body.site-theme :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--site-accent); }
body.site-theme :is(.company-form,.review-form) label { font-size: 13px; margin-top: 10px; }
body.site-theme .company-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea) { margin: 4px 0 10px; width: 100%; }
body.site-theme .company-form textarea { min-height: 90px; resize: vertical; }
body.site-theme .company-form { max-width: none; }
body.site-theme :is(.setup-actions,.task-actions) { margin-top: 12px; }
body.site-theme :is(.actions,.pagination) { gap: 8px; }
body.site-theme fieldset { margin: 0 0 18px; }
body.site-theme legend { font-size: 16px; margin-bottom: 10px; }
body.site-theme .check { align-items: flex-start; gap: 8px; }
body.site-theme .check input { flex: none; margin-top: 3px; }
body.site-theme :is(.profile-panel p,.profile-panel label,fieldset p,small,.portal-muted) { color: var(--site-muted); }
/* Shared detail grids also work outside the report page. */
body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary,.ui-field-grid) {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 18px; margin: 0 0 16px;
}
body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary) > div {
    min-width: 0; padding: 10px 12px; border: 1px solid var(--site-border); border-radius: 9px; background: var(--site-input);
}
body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary) dt { color: var(--site-muted); font-size: 12px; font-weight: 500; }
body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary) dd { margin: 4px 0 0; color: var(--site-text); font-size: 14px; overflow-wrap: anywhere; }
body.site-theme .report-columns :is(.payment-details-grid,.report-summary-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.site-theme .ui-field-grid > * { min-width: 0; }
body.site-theme .ui-field label { display: block; margin-top: 0; }
body.site-theme .ui-field :is(input,select,textarea) { margin-bottom: 0; }
body.site-theme .ui-field-grid > :is(p,small,.check) { grid-column: 1 / -1; margin-block: 0; }
body.site-theme .ui-two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
body.site-theme .ui-two-columns > * { min-width: 0; }
body.site-theme .ui-two-columns .panel { margin-bottom: 0; }
body.site-theme .ui-two-columns { margin-bottom: 16px; }
body.site-theme .ui-timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 4px; }
body.site-theme .ui-timeline p { margin: 0; padding: 9px 12px; border-inline-start: 3px solid var(--site-green); background: var(--ui-soft); border-radius: 6px; font-size: 13px; }
body.site-theme .ui-review-history article { padding: 10px 0; border-bottom: 1px solid var(--site-border); }
body.site-theme .ui-review-history article:last-of-type { border-bottom: 0; }
/* Tables remain tables; only the container scrolls on narrow screens. */
body.site-theme :is(.table-wrap,.admin-table-wrap) { overflow-x: auto; max-width: 100%; }
body.site-theme :is(.portal-main,.admin-main-content,.wallet-page) :is(th,td) { padding: 10px 12px; font-size: 13px; text-align: start; border-color: var(--site-border); }
body.site-theme :is(.portal-main,.admin-main-content,.wallet-page) th { background: var(--site-input); color: var(--site-muted); font-weight: 600; }
body.site-theme :is(.portal-main,.admin-main-content,.wallet-page) td { vertical-align: middle; }
body.site-theme :is(.portal-main,.admin-main-content,.wallet-page) tbody tr:hover { background: var(--ui-soft); }
body.site-theme .pagination { margin: 12px 0 0; font-size: 13px; }
body.site-theme .pagination a { min-height: 36px; }
body.site-theme :is(.portal-header,.topbar) { background: var(--ui-panel); border-color: var(--site-border); padding: 12px 24px; gap: 16px; }
body.site-theme .portal-header { flex-wrap: wrap; }
body.site-theme .portal-header nav { flex-wrap: wrap; gap: 6px; }
body.site-theme .portal-header nav > a:not(.icon-button) { color: var(--site-muted); padding: 7px 9px; border-radius: 8px; font-size: 13px; }
body.site-theme .portal-header nav > a:not(.icon-button):hover { color: var(--site-accent); background: var(--ui-soft); }
body.site-theme .portal-header nav > a[aria-current="page"] { color: var(--site-accent); background: var(--ui-soft); }
body.site-theme .portal-header .icon-button { min-width: 38px; padding: 8px; }
body.site-theme :is(.brand,.portal-brand,.admin-brand) img { width: 60px; height: 40px; }
body.site-theme .notification-badge { color: white; }
body.site-theme .admin-layout { grid-template-columns: 220px minmax(0,1fr); }
body.site-theme .admin-sidebar { padding: 20px 14px; overflow-y: auto; }
body.site-theme .admin-brand { margin-bottom: 20px; }
body.site-theme .admin-sidebar-nav { gap: 5px; }
body.site-theme .admin-sidebar-nav a { padding: 10px 12px; font-size: 13px; border-radius: 8px; }
body.site-theme .admin-main-content { padding: 24px; }
body.site-theme :is(.wallet-actions .cashout-button,.wallet-actions .deposit-button) { padding: 10px 14px !important; min-height: 40px; font-size: 14px; }
body.site-theme .profile-section-header { margin-bottom: 14px; }
body.site-theme .profile-section-header h2 { font-size: 18px; }
body.site-theme .notification-item { padding-block: 12px; gap: 12px; }
body.site-theme .notifications-empty { padding: 20px 12px; }
body.site-theme .hero.card { min-height: 280px; padding: 28px; gap: 24px; background: var(--site-hero); }
body.site-theme .hero.card h1 { font-size: clamp(26px,3vw,42px); }
body.site-theme .wallet-visual { min-height: 200px; }
body.site-theme .site-auth-shell { justify-content: flex-start; padding-block: 32px; }
body.site-theme .site-auth-logo img { width: 300px !important; height: 120px !important; object-fit: contain; }
body.site-theme .site-auth-card { margin-top: 16px; border-radius: 14px; box-shadow: var(--ui-shadow) !important; }
@media (max-width: 1050px) {
    body.site-theme .portal-header { align-items: flex-start; }
    body.site-theme .portal-header nav { width: 100%; }
    body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary,.ui-field-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    body.site-theme .admin-layout { grid-template-columns: minmax(0,1fr); }
    body.site-theme .admin-sidebar { height: auto; position: relative; }
    body.site-theme .admin-main-content { padding: 18px; }
    body.site-theme .ui-two-columns { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
    body.site-theme :is(.portal-main,.wallet-page,.profile-page,.page-shell,.notifications-page) { padding-inline: 14px; margin-block: 16px 28px; }
    body.site-theme :is(.panel,.wallet-panel,.profile-panel,.notifications-card) { padding: 14px; border-radius: 12px; }
    body.site-theme :is(.payment-details-grid,.report-summary-grid,.funding-summary,.ui-field-grid,.ui-timeline),
    body.site-theme .report-columns :is(.payment-details-grid,.report-summary-grid) { grid-template-columns: minmax(0,1fr); }
    body.site-theme :is(.portal-header,.topbar) { padding: 12px 14px; }
    body.site-theme .portal-header nav { gap: 4px; }
    body.site-theme :is(.page-heading,.notifications-heading) { align-items: flex-start; }
    body.site-theme .company-workspace .company-hero { padding: 16px; }
    body.site-theme .hero.card { padding: 20px; min-height: 0; }
    body.site-theme :is(.button,.secondary-button,.icon-button) { min-height: 44px; }
    body.site-theme :is(input,select,textarea) { font-size: 16px; }
    body.site-theme .site-auth-shell { padding-block: 20px; }
}
@media (pointer: coarse) {
    body.site-theme :is(.button,.secondary-button,.icon-button),
    body.site-theme :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    body.site-theme *,body.site-theme *::before,body.site-theme *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Overrides for older workspace rules with higher specificity. */
body.site-theme:not(.light) .company-workspace .company-hero { background: var(--site-hero); }
body.site-theme .company-workspace { gap: 16px; }
body.site-theme .company-workspace .company-hero { min-height: 0; }
body.site-theme .company-workspace .portal-stat { min-height: 0; }
body.site-theme .company-workspace .workspace-tasks { margin-top: 0; }
body.site-theme .hero-actions .button { min-height: 40px; padding: 10px 16px; border-radius: 10px; box-shadow: none; }
body.site-theme .hero-wallet > span { color: var(--site-muted); }
body.site-theme .workspace-tasks .task-card-meta { font-size: 12px; }
body.site-theme .ui-two-columns .company-setup { width: 100%; }
/* WEB-007C: reference-inspired navy surfaces; restrained glow; mint daytime fields. */
body.site-theme {
    --site-bg: #070e19;
    --site-surface: #0b1525;
    --site-input: #101e33;
    --site-border: #1c304a;
    --site-text: #f1f5f9;
    --site-muted: #a3b5cc;
    --site-green: #00dc82;
    --site-green-hover: #00c574;
    --site-accent: #00d38a;
    --site-hero: linear-gradient(110deg, #091322 0%, #0c1c2d 60%, #103040 100%);
    --ui-panel: var(--site-surface);
    --ui-shadow: inset 0 1px 0 rgba(170,205,240,.035);
    --ui-soft: rgba(0,211,138,.10);
    --ui-info: #36cde2;
    --ui-warning: #fbbf24;
    --ui-success: #00d38a;
    --company-primary-text: #041a13;
}
body.site-theme.light {
    --site-bg: #f4f7f6;
    --site-surface: #ffffff;
    --site-input: #edf7f0;
    --site-border: #d2e1da;
    --site-text: #17312b;
    --site-muted: #526b63;
    --site-green: #00dc82;
    --site-green-hover: #00c574;
    --site-accent: #087a50;
    --site-hero: linear-gradient(110deg, #f5faf7 0%, #e8f5ee 100%);
    --ui-panel: #ffffff;
    --ui-shadow: 0 3px 12px rgba(22,54,42,.04);
    --ui-soft: #e7f5ed;
    --ui-info: #087c90;
    --ui-warning: #8a5900;
    --ui-success: #087a50;
}
/* Stronger legacy rules must share the same surfaces. */
body.site-theme .admin-main-content :is(.wallet-stat-card,.wallet-panel),
body.site-theme .company-workspace .portal-stat { background: var(--ui-panel); box-shadow: var(--ui-shadow); }
body.site-theme :is(.portal-header,.topbar,.admin-sidebar) { background: var(--site-surface); }
body.site-theme .hero.card,
body.site-theme .company-workspace .company-hero { background: var(--site-hero); box-shadow: inset 0 1px 0 rgba(170,205,240,.08); }
body.site-theme:not(.light) .company-workspace .company-hero { background: var(--site-hero); }
body.site-theme :is(.primary-button,.profile-save-button,.site-primary-button,.btn-primary,.button-primary,.primary,.admin-save-button),
body.site-theme .button:not(.secondary):not(.danger) {
    background: var(--site-green) !important;
    color: #041a13 !important;
    border-color: transparent;
    box-shadow: none !important;
}
body.site-theme :is(.primary-button,.profile-save-button,.site-primary-button,.btn-primary,.button-primary,.primary,.admin-save-button):hover,
body.site-theme .button:not(.secondary):not(.danger):hover { background: var(--site-green-hover) !important; }
body.site-theme .hero-actions :is(.primary-button,.button:not(.secondary):not(.danger)) {
    box-shadow: 0 7px 20px rgba(0,211,138,.18) !important;
}
body.site-theme :is(input,select,textarea):focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
body.site-theme.light :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea) {
    background: #edf7f0; border-color: #cdded5; color: var(--site-text);
}
body.site-theme :is(.desktop-nav,.mobile-nav) a:is(:hover,.active) { color: var(--site-accent); }
body.site-theme :is(.hero-wallet strong,.balance-available,.stat-published strong) { color: var(--ui-success); }
body.site-theme :is(.stat-draft strong,.stat-expired strong) { color: var(--ui-warning); }
body.site-theme :is(.hero-funding-link,.section-heading > a) { color: var(--ui-info); }
body.site-theme :is(.badge-published,.status-approved,.admin-success-message) { background: var(--ui-soft); color: var(--ui-success); border-color: rgba(0,211,138,.25); }
body.site-theme :is(.badge-expired,.status-pending,.directory-warning) { background: rgba(245,158,11,.12); color: var(--ui-warning); }
body.site-theme :is(.badge-cancelled,.status-rejected) { background: var(--ui-danger-bg); color: var(--ui-danger); }
body.site-theme .company-workspace .company-hero { padding: 20px; gap: 18px; }
body.site-theme .company-workspace .portal-stat { padding: 16px 18px; border-radius: 14px; }
body.site-theme .company-workspace .portal-stat small { margin-top: 5px; }
body.site-theme .hero-wallet { background: var(--site-input); }
body.site-theme .mini-icon { background: var(--ui-soft); }
body.site-theme .glow-one { background: #15324a; }
body.site-theme .glow-two { background: var(--site-green); }
@media (max-width: 640px) {
    body.site-theme .company-workspace .company-hero { padding: 16px; }
}
/* WEB-007D: content-sized admin controls and cards. */
body.site-theme .admin-main-content { padding: 18px 20px; }
body.site-theme .admin-stats-grid { gap: 12px; margin-bottom: 12px; }
body.site-theme .admin-main-content .wallet-stat-card {
    min-height: 0; padding: 12px 16px; gap: 3px; justify-content: flex-start;
}
body.site-theme .admin-main-content .wallet-stat-card > span { font-size: 13px; line-height: 1.4; }
body.site-theme .admin-main-content .wallet-stat-card > strong { font-size: 26px; line-height: 1.2; margin: 2px 0; }
body.site-theme .admin-main-content .wallet-stat-card > small { font-size: 12px; line-height: 1.4; }
body.site-theme .admin-main-content .wallet-panel { padding: 12px 16px; margin-bottom: 12px; }
body.site-theme .admin-main-content .panel-heading { margin-bottom: 8px; gap: 8px; }
body.site-theme .admin-main-content .panel-heading span { font-size: 12px; line-height: 1.4; }
body.site-theme .admin-main-content .panel-heading h2 { font-size: 17px; line-height: 1.35; margin: 2px 0; }
body.site-theme .admin-main-content .admin-table :is(th,td) { padding: 8px 10px; font-size: 13px; line-height: 1.4; }
body.site-theme .admin-main-content .admin-table .admin-empty-cell { padding: 12px 10px !important; }
body.site-theme .admin-brand { margin-bottom: 14px; }
body.site-theme .admin-sidebar-nav { gap: 3px; }
body.site-theme .admin-sidebar-nav a { min-height: 34px; padding: 7px 10px; font-size: 13px; line-height: 1.4; }
body.site-theme .admin-sidebar .admin-user-view-link {
    display: flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
    white-space: nowrap; overflow-wrap: normal; border-radius: 9px;
}
body.site-theme .admin-sidebar .admin-theme-toggle { min-height: 34px; padding: 6px 10px; font-size: 14px; }
/* Single-line fields follow their text; text areas keep room for longer content. */
body.site-theme :is(.company-form,.admin-provider-form,.admin-form-grid,.admin-provider-form-grid) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),select) {
    height: 36px; min-height: 36px; padding: 6px 10px !important; font-size: 14px !important; line-height: 1.4;
}
body.site-theme :is(.company-form,.admin-provider-form,.admin-form-grid,.admin-provider-form-grid) textarea {
    min-height: 80px; padding: 8px 10px !important; font-size: 14px !important; line-height: 1.5;
}
@media (max-width: 640px) {
    body.site-theme .admin-main-content { padding: 14px; }
    body.site-theme :is(.company-form,.admin-provider-form,.admin-form-grid,.admin-provider-form-grid) :is(input,select,textarea) { font-size: 16px !important; }
}
@media (pointer: coarse) {
    body.site-theme .admin-sidebar :is(.admin-user-view-link,.admin-theme-toggle),
    body.site-theme .admin-sidebar-nav a,
    body.site-theme :is(.company-form,.admin-provider-form,.admin-form-grid,.admin-provider-form-grid) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select) { min-height: 44px; }
}

/* Back navigation for legal pages */

/* Back navigation for legal pages */
.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    background: var(--site-green);
    border: 1px solid var(--site-green);
    border-radius: 10px;
    color: #041a13;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.legal-back-link:hover {
    background: var(--site-green-hover);
    border-color: var(--site-green-hover);
    color: #041a13;
    opacity: 1;
}

.legal-back-link span:first-child {
    font-size: 22px;
    line-height: 1;
}

