/* Workspace design system. Public pages continue to use style.css alone. */
.dashboard .notification-trigger {position:relative;text-decoration:none}
.dashboard .notification-trigger svg {width:20px;height:20px}
.dashboard .notification-count {position:absolute;top:-5px;right:-6px;min-width:19px;padding:1px 4px;border-radius:12px;background:var(--negative);color:var(--surface);font-size:10px;font-weight:700;text-align:center}
.dashboard .notification-header {display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}
.dashboard .notification-controls {display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.dashboard .notification-controls .field {min-width:130px;margin:0}
.dashboard .notification-list {list-style:none;padding:0;margin:0;display:grid;gap:12px}
.dashboard .notification-card {border-left:4px solid var(--line)}
.dashboard .notification-card.unread {border-left-color:var(--green)}
.dashboard .notification-meta,.dashboard .notification-actions,.dashboard .notification-pagination {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dashboard .notification-meta {margin-bottom:12px}
.dashboard .notification-pagination {justify-content:center;margin:20px 0}
.dashboard .reminder-summary {display:flex;gap:24px;flex-wrap:wrap;margin:18px 0}
.dashboard .reminder-summary dt {color:var(--muted);font-size:12px}
.dashboard .reminder-summary dd {margin:0;font-weight:600}
.dashboard #notification-preferences fieldset {border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 14px;min-width:0}
.dashboard #notification-preferences legend {font-weight:600;padding:0 6px}
@media(max-width:700px){.dashboard .notification-header {flex-direction:column;align-items:stretch}.dashboard .notification-controls {align-items:stretch}.dashboard .notification-controls button {flex:1}.dashboard .notification-meta {gap:6px}.dashboard .notification-actions button {flex:1}}
.dashboard {
  --paper:#f5f7f6; --surface:#fff; --surface-subtle:#edf2ee; --ink:#17271f;
  --muted:#5a6c60; --line:#dce5de; --input-border:#83918a;
  --green:#176c50; --green-hover:#10583f; --on-green:#fff; --lime:#d4f06d;
  --nav-bg:#12212d; --nav-ink:#e9f0f5; --nav-muted:#9ba9b5; --focus:#176c50;
  --positive:#146341; --positive-bg:#e8f5eb; --warning:#8a5a14; --warning-bg:#fff4dc;
  --negative:#9e3535; --negative-bg:#fceceb; --info:#285994; --info-bg:#eaf1fb;
  --radius:14px; --shadow:0 3px 12px #10261b05;
  margin:0; background:var(--paper); color:var(--ink); font:14px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light; font-variant-numeric:tabular-nums;
}
.dashboard[data-theme="dark"] {
  --paper:#0e1d17; --surface:#172b23; --surface-subtle:#20392d; --ink:#e8efeb;
  --muted:#adbbb2; --line:#355244; --input-border:#6e8177;
  --green:#9be0b8; --green-hover:#b7efc9; --on-green:#10261b; --focus:#d4f06d;
  --positive:#b9eccd; --positive-bg:#244333; --warning:#f4d791; --warning-bg:#44351c;
  --negative:#ffb7b3; --negative-bg:#452727; --info:#bdd3ff; --info-bg:#233043;
  color-scheme:dark;
}
.dashboard *, .dashboard *::before, .dashboard *::after {box-sizing:border-box}
.dashboard [hidden] {display:none!important}
.dashboard a {color:var(--green); text-underline-offset:3px}
.dashboard :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--focus); outline-offset:3px}
.dashboard :is(h1,h2,h3,p) {overflow-wrap:anywhere}
.dashboard h1 {font-size:30px; line-height:1.2; letter-spacing:-1.1px; font-weight:680}
.dashboard h2 {font-size:19px; line-height:1.35; letter-spacing:-.45px; margin:0 0 10px; font-weight:650}
.dashboard h3 {font-size:15px; line-height:1.4; margin:0 0 8px; font-weight:650}
.dashboard p {margin:0 0 14px}
.dashboard p:last-child {margin-bottom:0}
.dashboard .smalltext, .dashboard small {font-size:12px; line-height:1.5}
.dashboard .muted, .dashboard .smalltext {color:var(--muted)}
.dashboard .shell {display:grid; grid-template-columns:244px minmax(0,1fr); min-height:100vh; gap:0}
.dashboard .sidebar {position:sticky; top:0; height:100vh; min-height:0; background:var(--nav-bg); padding:26px 16px 16px; display:flex; flex-direction:column; color:var(--nav-ink); overflow:hidden}
.dashboard .sidebar .brand {display:flex; align-items:center; gap:11px; margin:0 10px 30px; font-size:21px; font-weight:660; letter-spacing:-.6px; line-height:1.1; color:var(--nav-ink); text-decoration:none}
.dashboard .brand-mark {display:grid; place-items:center; width:37px; height:37px; flex-shrink:0; border-radius:11px; background:var(--lime); color:#12212d; font-weight:750; font-size:27px; line-height:1}
.dashboard .brand-caption {display:block; margin-top:7px; color:var(--nav-muted); font-size:10px; font-weight:450; letter-spacing:.02em}
.dashboard .workspace-label {margin:0 12px 7px; font-size:11px; color:var(--nav-muted); font-weight:550}
.dashboard .sidebar select {background:#1d303c; color:var(--nav-ink); border:1px solid #60717e; border-radius:9px; margin:0 6px 12px; width:calc(100% - 12px); padding:11px 12px; min-height:42px; font-size:13px; box-shadow:none}
.dashboard .sidebar select option {background:var(--nav-bg); color:var(--nav-ink)}
.dashboard .sidebar .menu {display:block; flex:1; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#52636f transparent; padding:0 2px 10px; margin:0}
.dashboard .nav-group {margin:24px 12px 8px; color:var(--nav-muted); text-transform:uppercase; letter-spacing:.11em; font-size:10px; font-weight:650}
.dashboard .nav-group:first-child {margin-top:10px}
.dashboard .sidebar button {display:flex; align-items:center; width:100%; gap:11px; min-height:39px; text-align:left; padding:9px 12px; margin:2px 0; color:var(--nav-ink); background:transparent; border:1px solid transparent; border-radius:9px; font-size:12px; font-weight:450; line-height:1.35; box-shadow:none}
.dashboard .sidebar button:hover {background:#21343f}
.dashboard .sidebar button.active {background:#26392f; color:var(--lime); border-color:#3e5347; font-weight:650}
.dashboard .nav-symbol {width:19px; height:19px; flex:0 0 19px; display:grid; place-items:center; color:var(--nav-muted); font-size:15px}
.dashboard .sidebar button.active .nav-symbol {color:var(--lime)}
.dashboard .ui-icon {width:19px; height:19px; display:block; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0}
.dashboard .sidebar-footer {padding:12px 8px 0; margin-top:10px; border-top:1px solid #344651}
.dashboard .nav-footnote {display:block; font-size:10px; color:var(--nav-muted); margin:0 4px 6px}
.dashboard #logout {margin:0; font-size:12px; color:var(--nav-muted)}
.dashboard #mobile-menu {display:none}
.dashboard .workspace {min-width:0; width:100%; max-width:1650px; margin:0 auto; padding:0 40px 24px; align-self:start}
.dashboard .workspace-bar {min-height:76px; display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:1px solid var(--line); margin-bottom:30px}
.dashboard .breadcrumb {display:flex; gap:10px; align-items:center; font-size:12px; color:var(--muted)}
.dashboard .breadcrumb #current-section {color:var(--ink); font-weight:550}
.dashboard .workspace-tools {display:flex; align-items:center; gap:8px}
.dashboard button, .dashboard .button {display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; padding:10px 15px; border-radius:9px; min-height:40px; background:var(--green); color:var(--on-green); text-decoration:none; cursor:pointer; font:600 13px/1.35 inherit; font-family:inherit; font-size:13px; font-weight:600; line-height:1.35; box-shadow:none; transition:background .14s,border-color .14s,color .14s}
.dashboard button:hover, .dashboard .button:hover {background:var(--green-hover)}
.dashboard button.secondary, .dashboard .button.secondary {background:var(--surface); color:var(--ink); border-color:var(--line)}
.dashboard button.secondary:hover, .dashboard .button.secondary:hover {background:var(--surface-subtle); border-color:var(--input-border)}
.dashboard button.danger {color:var(--negative); background:var(--negative-bg); border-color:var(--negative)}
.dashboard button.small {min-height:32px; padding:6px 9px; font-size:12px; margin:2px 5px 2px 0; font-weight:550}
.dashboard button:disabled, .dashboard .button[aria-disabled="true"] {opacity:.6; cursor:not-allowed}
.dashboard .icon-button {width:38px; min-width:38px; padding:7px; font-size:18px}
.dashboard .search-trigger {font-weight:450; min-height:36px; padding:8px 12px; font-size:12px; color:var(--muted)!important}
.dashboard kbd {background:var(--surface-subtle); color:var(--muted); font:10px/1.6 inherit; padding:1px 5px; border:1px solid var(--line); border-radius:4px; margin-left:18px}
.dashboard .topline {display:flex; justify-content:space-between; align-items:center; gap:24px; margin:0 0 28px; padding:0; border:0}
.dashboard .topline h1 {margin:7px 0 10px}
.dashboard .page-kicker {display:block; color:var(--muted); text-transform:uppercase; letter-spacing:.12em; font-size:10px; font-weight:650}
.dashboard #subtitle {color:var(--muted); font-size:13px; max-width:680px; margin:0}
.dashboard .account-meta {display:grid; gap:7px; text-align:right; max-width:260px; overflow-wrap:anywhere; border-left:1px solid var(--line); padding-left:22px; font-size:12px}
.dashboard #workspace-meta {font-size:11px; color:var(--muted)}
.dashboard #account {font-weight:550; color:var(--ink)}
.dashboard #view {min-height:200px; min-width:0}
.dashboard .card, .dashboard .panel {background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); margin:0}
.dashboard #view > :is(form,.tablewrap,.panel,details.create-panel) {margin:20px 0}
.dashboard .stats {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0 24px}
.dashboard .stats .card {padding:22px; position:relative; min-width:0}
.dashboard .stats .card > span {display:block; color:var(--muted); font-size:12px; font-weight:550}
.dashboard .stats .card > strong {display:block; margin:12px 0 8px; font-size:33px; line-height:1.2; font-weight:670; letter-spacing:-1px; color:var(--ink)}
.dashboard .stats .card > small {color:var(--muted); display:block; font-size:11px}
.dashboard .metric-icon {position:absolute; right:20px; top:19px; color:var(--green); padding:7px; border-radius:9px; background:var(--surface-subtle)}
.dashboard .overview-banner {display:flex; justify-content:space-between; align-items:center; gap:24px; border:1px solid #c9dcbd; border-radius:var(--radius); background:#eaf2df; padding:26px 28px; position:relative; overflow:hidden; color:#17351f}
.dashboard .overview-banner h2 {font-size:23px; max-width:650px; letter-spacing:-.7px}
.dashboard .overview-banner p {font-size:13px; color:#466047; max-width:650px; margin:0}
.dashboard .overview-banner .button {flex-shrink:0}
.dashboard[data-theme="dark"] .overview-banner {background:#263d29; border-color:#405b36; color:var(--ink)}
.dashboard[data-theme="dark"] .overview-banner p {color:#c0ceb8}
.dashboard .overview-grid {display:grid; grid-template-columns:1.15fr 1fr; gap:20px; margin:24px 0}
.dashboard .quick-link {display:flex; justify-content:space-between; align-items:center; gap:16px; padding:17px 0; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink)}
.dashboard .quick-link:last-child {border-bottom:0; padding-bottom:0}
.dashboard .quick-link b {font-size:13px; font-weight:600}
.dashboard .quick-link small {display:block; color:var(--muted); font-weight:400; margin-top:4px; font-size:12px}
.dashboard .quick-link .arrow {display:grid; place-items:center; width:28px; height:28px; border-radius:8px; color:var(--green); background:var(--surface-subtle)}
.dashboard .listrow {display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:13px}
.dashboard .listrow:last-child {border-bottom:0}
.dashboard .badge {display:inline-flex; align-items:center; gap:5px; border-radius:7px; padding:4px 8px; background:var(--surface-subtle); color:var(--muted); font-size:11px; line-height:1.4; font-weight:600; white-space:nowrap}
.dashboard .badge.good {color:var(--positive); background:var(--positive-bg)}
.dashboard .badge.warn {color:var(--warning); background:var(--warning-bg)}
.dashboard .badge.bad {color:var(--negative); background:var(--negative-bg)}
.dashboard .badge.info {color:var(--info); background:var(--info-bg)}
.dashboard .tablewrap {width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); position:relative}
.dashboard table {width:100%; border-collapse:collapse; text-align:left; background:var(--surface); font-size:12px}
.dashboard th {padding:13px 16px; font-size:10px; text-transform:uppercase; letter-spacing:.05em; font-weight:600; background:var(--surface-subtle); color:var(--muted); border-bottom:1px solid var(--line); white-space:nowrap}
.dashboard td {padding:16px; border-bottom:1px solid var(--line); vertical-align:middle; overflow-wrap:anywhere; max-width:470px; line-height:1.6}
.dashboard tbody tr:last-child td {border-bottom:0}
.dashboard tbody tr:hover {background:var(--surface-subtle)}
.dashboard td:first-child {font-weight:550; color:var(--ink)}
.dashboard td .smalltext {font-weight:400; display:block}
.dashboard .table-caption {display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px}
.dashboard .table-caption input {width:200px; min-height:32px; font-size:12px; padding:6px 10px}
.dashboard .table-caption label {display:flex; align-items:center; gap:8px; font-size:11px}
.dashboard .sort-button {background:transparent!important; color:var(--muted)!important; padding:0; border:0; border-radius:3px; min-height:25px; text-transform:inherit; letter-spacing:inherit; font-size:10px; font-weight:600; justify-content:start}
.dashboard .sort-button::after {content:'↕'; margin-left:8px; color:var(--muted)}
.dashboard th[aria-sort="ascending"] .sort-button::after {content:'↑'}
.dashboard th[aria-sort="descending"] .sort-button::after {content:'↓'}
.dashboard .empty-state {display:grid; justify-items:center; gap:7px; padding:38px 20px; text-align:center; color:var(--muted); font-weight:400}
.dashboard .empty-state strong {font-size:16px; font-weight:600; color:var(--ink)}
.dashboard .empty-state .ui-icon {width:29px; height:29px; margin-bottom:5px; color:var(--muted)}
.dashboard .toolbar, .dashboard .section-toolbar {display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:20px 0}
.dashboard .toolbar span {color:var(--muted); font-size:12px}
.dashboard .filters {display:flex; flex-wrap:wrap; gap:12px; align-items:end; padding:16px 18px; margin:20px 0; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius)}
.dashboard .filters .field {flex:1; min-width:130px; max-width:240px}
.dashboard .filters .field:first-child {flex:2; max-width:none}
.dashboard .filters input, .dashboard .filters select {font-size:12px; min-height:38px}
.dashboard .fields {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px}
.dashboard .field {display:flex; flex-direction:column; gap:7px; font-size:12px; font-weight:550; color:var(--ink); min-width:0}
.dashboard .field.wide, .dashboard .fields .wide {grid-column:1/-1}
.dashboard input, .dashboard select, .dashboard textarea {display:block; width:100%; max-width:100%; min-height:40px; border:1px solid var(--input-border); border-radius:9px; background:var(--surface); color:var(--ink); padding:10px 12px; font:400 13px/1.5 inherit; font-family:inherit; font-size:13px; line-height:1.5; box-shadow:none}
.dashboard input::placeholder, .dashboard textarea::placeholder {color:var(--muted)}
.dashboard textarea {min-height:125px; resize:vertical}
.dashboard :is(input,select,textarea):focus {border-color:var(--focus)}
.dashboard input[type="checkbox"], .dashboard input[type="radio"] {width:17px; height:17px; min-height:17px; accent-color:var(--green); margin:3px 0; flex-shrink:0}
.dashboard input[type="file"] {padding:8px; font-size:12px}
.dashboard .check {display:flex; align-items:flex-start; gap:9px; font-size:12px; font-weight:400; line-height:1.65}
.dashboard .form-heading {margin:0 0 20px}
.dashboard .form-heading p {font-size:12px; color:var(--muted); margin:5px 0 0}
.dashboard form > p:last-child {display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:20px}
.dashboard details.create-panel {background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow)}
.dashboard details.create-panel > summary {list-style:none; display:flex; gap:13px; align-items:center; padding:18px 22px; margin:0; font-weight:600; font-size:13px; cursor:pointer}
.dashboard details.create-panel > summary::-webkit-details-marker {display:none}
.dashboard details.create-panel > summary::after {content:'+'; margin-left:auto; font-size:20px; color:var(--green)}
.dashboard details.create-panel[open] > summary::after {content:'−'}
.dashboard details.create-panel > summary small {display:block; margin-top:3px; font-weight:400; color:var(--muted)}
.dashboard details.create-panel > form {border:0; border-top:1px solid var(--line); border-radius:0 0 var(--radius) var(--radius); margin:0; box-shadow:none}
.dashboard .notice {padding:16px 18px; border:1px solid var(--line); border-radius:10px; background:var(--surface-subtle); color:var(--ink); font-size:12px; line-height:1.7; margin:16px 0}
.dashboard .notice.error {color:var(--negative); background:var(--negative-bg); border-color:var(--negative)}
.dashboard .notice.success {color:var(--positive); background:var(--positive-bg); border-color:var(--positive)}
.dashboard #feedback {margin-bottom:22px; padding-right:44px; position:relative}
.dashboard .feedback-close {position:absolute; right:8px; top:9px; width:28px; min-height:28px; padding:0; background:transparent!important; color:inherit!important; font-size:20px}
.dashboard .subscription-notice {margin:0 0 24px; padding:20px 22px; border-radius:var(--radius); background:var(--warning-bg); color:var(--warning); border:1px solid var(--warning)}
.dashboard .subscription-notice strong {font-size:17px}
.dashboard .subscription-notice p {margin:8px 0 14px}
.dashboard pre {border:1px solid var(--line); border-radius:10px; padding:18px; background:var(--surface-subtle); color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; max-height:480px; overflow:auto}
.dashboard .quota-list {display:grid; gap:20px}
.dashboard .quota-heading {display:flex; justify-content:space-between; gap:16px; margin-bottom:8px; font-size:12px}
.dashboard progress {display:block; width:100%; height:7px; border:0; border-radius:6px; accent-color:var(--green); overflow:hidden; background:var(--surface-subtle)}
.dashboard progress::-webkit-progress-bar {background:var(--surface-subtle); border-radius:6px}
.dashboard progress::-webkit-progress-value {background:var(--green); border-radius:6px}
.dashboard progress::-moz-progress-bar {background:var(--green); border-radius:6px}
.dashboard .chart-card {margin:24px 0}
.dashboard .chart-row {display:grid; grid-template-columns:100px minmax(70px,1fr) 110px; gap:14px; align-items:center; padding:10px 0; font-size:12px}
.dashboard .chart-row strong {text-align:right; font-size:12px}
.dashboard .chart-row small {font-weight:400; color:var(--muted)}
.dashboard .chart-card .tablewrap {margin-top:18px; box-shadow:none}
.dashboard .daily-chart {width:100%; height:auto; display:block}
.dashboard .daily-chart text {font-size:11px; fill:var(--muted)}
.dashboard .report-history {margin-top:24px}
.dashboard details summary {cursor:pointer; font-weight:600; margin:14px 0}
.dashboard .loading-skeleton {display:grid; gap:18px; padding-top:4px}
.dashboard .skeleton-row {display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.dashboard .skeleton-block {height:130px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius)}
.dashboard .skeleton-block.large {height:250px}
.dashboard .loading-status {display:flex; gap:10px; align-items:center; color:var(--muted); font-size:13px}
.dashboard .loading-status::before {content:''; width:14px; height:14px; border:2px solid var(--line); border-top-color:var(--green); border-radius:100%; animation:rotate .9s linear infinite}
@keyframes rotate {to {transform:rotate(360deg)}}
.dashboard .workspace-dialog, .dashboard .search-dialog {background:var(--surface); color:var(--ink); border:1px solid var(--line); padding:24px; border-radius:18px; width:min(680px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; box-shadow:0 20px 60px #06150e30; margin:auto}
.dashboard .workspace-dialog::backdrop, .dashboard .search-dialog::backdrop {background:#06150e70}
.dashboard .dialog-header {display:flex; justify-content:space-between; gap:20px; align-items:start; margin-bottom:22px}
.dashboard .dialog-header h2 {margin:5px 0 0; font-size:21px}
.dashboard .dialog-header .icon-button {margin:0; flex-shrink:0}
.dashboard .dialog-actions {display:flex; justify-content:flex-end; gap:10px; margin-top:22px; flex-wrap:wrap}
.dashboard #dialog-content > form {padding:0; border:0; box-shadow:none}
.dashboard .search-dialog {width:min(570px,calc(100vw - 32px))}
.dashboard .section-results {max-height:360px; overflow:auto; display:grid; gap:4px; margin:16px -4px}
.dashboard .section-result {display:flex; text-align:left; gap:12px; align-items:center; width:100%; padding:12px; border:1px solid transparent; background:var(--surface); color:var(--ink); font-size:13px; border-radius:9px; text-decoration:none}
.dashboard .section-result:hover {background:var(--surface-subtle); border-color:var(--line)}
.dashboard .section-result small {display:block; font-weight:400; color:var(--muted); margin-top:3px}
.dashboard .integration-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0}
.dashboard .integration-card .integration-header {display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px}
.dashboard .integration-card h3 {margin:0}
.dashboard .integration-icon {font-size:18px; font-weight:700; background:var(--surface-subtle); border:1px solid var(--line); border-radius:11px; width:40px; height:40px; display:grid; place-items:center; color:var(--green); margin-bottom:14px}
.dashboard .settings-layout {display:grid; grid-template-columns:185px minmax(0,1fr); gap:24px; align-items:start}
.dashboard .settings-nav {position:sticky; top:22px; display:grid; gap:5px; padding:7px}
.dashboard .settings-nav button {justify-content:start; background:transparent; color:var(--muted); border:0; text-align:left; font-size:12px}
.dashboard .settings-nav button.active {background:var(--surface-subtle); color:var(--green); font-weight:650}
.dashboard .settings-content {display:grid; gap:20px; min-width:0}
.dashboard .settings-section {scroll-margin-top:25px}
.dashboard .preference-options {display:flex; flex-wrap:wrap; gap:10px; margin:18px 0}
.dashboard .preference-option {padding:12px 16px!important; background:var(--surface)!important; color:var(--ink)!important; border:1px solid var(--input-border)!important}
.dashboard .preference-option[aria-pressed="true"] {border-color:var(--green)!important; background:var(--surface-subtle)!important; box-shadow:inset 0 0 0 1px var(--green)}
.dashboard .agenda-board {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0}
.dashboard .agenda-column {background:var(--surface-subtle); border:1px solid var(--line); border-radius:var(--radius); padding:16px; min-width:0}
.dashboard .agenda-column h3 {display:flex; justify-content:space-between; margin-bottom:15px}
.dashboard .agenda-item {padding:15px; border:1px solid var(--line); border-radius:11px; background:var(--surface); margin:10px 0; box-shadow:var(--shadow)}
.dashboard .agenda-item h4 {font-size:13px; margin:0 0 8px; font-weight:600; overflow-wrap:anywhere}
.dashboard .agenda-item .badge {margin:7px 0}
.dashboard .agenda-item .agenda-actions {display:flex; flex-wrap:wrap; gap:5px; margin-top:10px}
.dashboard .view-switch {display:inline-flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:9px; background:var(--surface)}
.dashboard .view-switch button {min-height:31px; padding:6px 11px; background:transparent; color:var(--muted); font-size:12px}
.dashboard .view-switch button[aria-pressed="true"] {background:var(--surface-subtle); color:var(--ink)}
.dashboard .recipient-list {display:grid; gap:0; max-height:280px; overflow:auto; border:1px solid var(--line); border-radius:10px; margin:14px 0}
.dashboard .recipient-list label {padding:12px 14px; border-bottom:1px solid var(--line)}
.dashboard .recipient-list label:last-child {border:0}
.dashboard .recipient-list label span {min-width:0; overflow-wrap:anywhere}
.dashboard .recipient-list small {display:block; color:var(--muted)}
.dashboard .sequence-preview {border-left:3px solid var(--green); padding:0 0 0 16px; margin:18px 0}
.dashboard .sequence-preview h3 {font-size:14px; margin-bottom:8px}
.dashboard .sequence-preview p {white-space:pre-wrap; font-size:12px; line-height:1.8}
.dashboard .workflow-steps {display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 24px; padding:0; list-style:none}
.dashboard .workflow-steps li {display:flex; gap:8px; align-items:center; font-size:11px; border:1px solid var(--line); background:var(--surface); border-radius:8px; padding:10px 12px}
.dashboard .workflow-steps li.done {background:var(--positive-bg); color:var(--positive)}
.dashboard .workflow-steps li.current {background:var(--info-bg); color:var(--info); border-color:var(--info)}
.dashboard .workflow-steps li span {width:21px; height:21px; display:grid; place-items:center; border:1px solid currentColor; border-radius:50%; font-weight:650}
.dashboard .detail-toolbar {margin:0 0 18px}
.dashboard .workspace-footer {display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin:48px 0 0; padding-top:20px; border-top:1px solid var(--line); font-size:10px; color:var(--muted)}
.dashboard .workspace-footer a {color:var(--muted)}
.dashboard #view-updated {margin-left:auto}
.dashboard .auth {width:min(520px,calc(100vw - 36px)); margin:7vh auto; padding:32px 0; background:var(--paper); color:var(--ink)}
.dashboard .auth > .brand {display:block; font-size:22px; font-weight:650; text-decoration:none; letter-spacing:-.5px; margin-bottom:38px; color:var(--ink)}
.dashboard .auth h1 {margin-bottom:12px}
.dashboard .auth .card {margin-top:28px}
.dashboard .auth .fields {grid-template-columns:1fr}
.dashboard .auth > p {text-align:center; font-size:12px; margin-top:24px}
.dashboard #auth-message:not(:empty) {padding:13px 16px; background:var(--info-bg); color:var(--info); border-radius:9px; margin:18px 0}
.dashboard .skip-link {position:absolute; top:-100px; left:270px; z-index:50; padding:12px 16px; background:var(--surface); color:var(--ink); border-radius:7px}
.dashboard .skip-link:focus {top:10px}
.dashboard[data-density="compact"] :is(td,.card) {padding-top:12px; padding-bottom:12px}
.dashboard[data-density="compact"] .stats .card {padding:18px}
.dashboard[data-density="compact"] .fields {gap:12px 18px}
@media (min-width:1650px) {.dashboard .workspace {padding-left:56px; padding-right:56px}}
@media (max-width:1200px) {.dashboard .shell {grid-template-columns:224px minmax(0,1fr)} .dashboard .workspace {padding:0 26px 24px} .dashboard .overview-grid {grid-template-columns:1fr 1fr} .dashboard .account-meta {max-width:210px} .dashboard .search-trigger kbd {display:none}}
@media (max-width:1000px) {.dashboard .overview-grid {grid-template-columns:1fr} .dashboard .settings-layout {grid-template-columns:1fr} .dashboard .settings-nav {position:static; display:flex; flex-wrap:wrap} .dashboard .agenda-board {grid-template-columns:1fr} .dashboard .account-meta {max-width:180px} .dashboard .topline {align-items:start}}
@media (max-width:850px) {
  .dashboard .shell {display:block}
  .dashboard .sidebar {position:static; height:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:17px 18px; overflow:visible}
  .dashboard .sidebar .brand {margin:0 0 7px; font-size:20px}
  .dashboard .brand-mark {width:33px; height:33px}
  .dashboard #mobile-menu {display:block; width:auto; padding:9px 14px; min-height:38px; margin:0; color:var(--nav-ink); border-color:#60717e; background:#1d303c}
  .dashboard .workspace-label, .dashboard .sidebar select {grid-column:1/-1; margin:0; width:100%}
  .dashboard .workspace-label {margin-top:10px}
  .dashboard .sidebar .menu, .dashboard .sidebar-footer {display:none}
  .dashboard.nav-open .sidebar .menu, .dashboard.nav-open .sidebar-footer {display:block; grid-column:1/-1; max-height:65vh; overflow:auto}
  .dashboard .workspace {padding:0 20px 22px}
  .dashboard .workspace-bar {min-height:65px; margin-bottom:24px}
  .dashboard .breadcrumb {font-size:11px}
  .dashboard .search-trigger {font-size:0; width:36px; padding:8px}
  .dashboard .search-trigger span {font-size:20px}
  .dashboard .workspace-tools {gap:6px}
  .dashboard .topline {flex-wrap:wrap; gap:17px}
  .dashboard .account-meta {max-width:100%; width:100%; display:flex; flex-wrap:wrap; text-align:left; padding:0; border:0; gap:8px 16px}
  .dashboard .overview-banner {display:block; padding:22px}
  .dashboard .overview-banner h2 {font-size:21px}
  .dashboard .overview-banner .button {margin-top:18px}
  .dashboard .stats {gap:12px}
  .dashboard .stats .card {padding:17px}
  .dashboard .stats .card > strong {font-size:28px}
  .dashboard .metric-icon {display:none}
  .dashboard .integration-grid {grid-template-columns:1fr}
  .dashboard .skip-link {left:18px}
  .dashboard h1 {font-size:28px}
}
@media (max-width:560px) {
  .dashboard .workspace {padding:0 16px 22px}
  .dashboard .workspace-bar {gap:10px}
  .dashboard .breadcrumb {max-width:180px; flex-wrap:wrap; gap:4px 8px}
  .dashboard .stats {grid-template-columns:1fr}
  .dashboard .stats .card {padding:18px 20px}
  .dashboard .stats .card > strong {margin:6px 0}
  .dashboard .fields {grid-template-columns:1fr}
  .dashboard .card, .dashboard .panel {padding:19px}
  .dashboard .filters {padding:16px; gap:12px}
  .dashboard .filters .field {flex:1 1 100%; max-width:none}
  .dashboard .filters button {flex:1}
  .dashboard .chart-row {grid-template-columns:85px minmax(40px,1fr) 85px; gap:8px}
  .dashboard .chart-row strong {font-size:11px}
  .dashboard .table-caption {flex-wrap:wrap}
  .dashboard .table-caption label, .dashboard .table-caption input {width:100%}
  .dashboard .workspace-dialog, .dashboard .search-dialog {padding:19px; width:calc(100vw - 24px)}
  .dashboard .dialog-actions > button {flex:1}
  .dashboard .skeleton-row {grid-template-columns:1fr}
  .dashboard .workspace-footer {gap:12px}
  .dashboard #view-updated {margin-left:0; flex-basis:100%}
}
@media (prefers-reduced-motion:reduce) {.dashboard *, .dashboard *::before, .dashboard *::after {animation:none!important; transition:none!important; scroll-behavior:auto!important}}
@media (forced-colors:active) {.dashboard .badge, .dashboard .preference-option {border:1px solid CanvasText} .dashboard .sidebar button.active {outline:2px solid Highlight} .dashboard progress {forced-color-adjust:auto}}
.dashboard .settings-section > form {padding:0; border:0; box-shadow:none; margin:22px 0}
.dashboard .campaign-step {padding:18px; background:var(--surface-subtle); border:1px solid var(--line); border-radius:10px}
.dashboard .campaign-step .field {margin:12px 0}
.dashboard .filters > .fields {display:contents}
.dashboard .filters > p {margin:0; display:flex; gap:8px; align-items:center}
.dashboard .pending-invites {margin-top:24px!important}
.dashboard [aria-invalid="true"] {border-color:var(--negative)}
.dashboard .sidebar button {justify-content:flex-start}
.dashboard .sidebar .brand > span:last-child {color:var(--nav-ink)}
.dashboard .sidebar .brand-caption {color:var(--nav-muted)}
.dashboard .priority-inline-stats .card {border:0; background:var(--surface-subtle); padding:13px 16px; box-shadow:none}
.dashboard .priority-inline-stats .card > strong {font-size:22px; margin:6px 0}
.dashboard .agent-catalog-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:22px 0}
.dashboard .agent-service-card .integration-header {display:flex; justify-content:space-between; align-items:start; gap:12px; margin:0 0 12px}
.dashboard .agent-service-card .integration-icon {display:grid; place-items:center; width:38px; height:38px; color:var(--green); background:var(--surface-subtle); border-radius:10px; margin-bottom:18px}
.dashboard .internal-reference {display:none!important}
.dashboard .result-text {white-space:pre-wrap; line-height:1.8}
.dashboard .result-data {margin-top:20px}
.dashboard .billing-current {display:flex; justify-content:space-between; gap:22px; align-items:center}
.dashboard .billing-current h2 {font-size:26px; margin-top:8px}
.dashboard .billing-current > div:last-child {max-width:340px; text-align:right}
.dashboard .plan-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0}
.dashboard .plan-card.current {border-color:var(--green)}
.dashboard .plan-card .integration-header {display:flex; justify-content:space-between; gap:10px; margin-bottom:20px}
.dashboard .plan-price {font-size:27px; letter-spacing:-.7px; display:block; margin:14px 0 6px}
.dashboard .plan-price small {font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0}
.dashboard .plan-card ul {padding:16px 0 0 18px; margin:14px 0 0; border-top:1px solid var(--line); font-size:12px; line-height:2.3; color:var(--muted)}
.dashboard .billing-tax {margin:18px 0}
@media(max-width:1000px) {.dashboard .plan-grid {grid-template-columns:1fr} .dashboard .plan-card {display:grid; grid-template-columns:1fr 1fr; gap:4px 20px} .dashboard .plan-card .integration-header {grid-column:1/-1} .dashboard .plan-card ul {grid-row:2/4; grid-column:2; padding-top:0; border-top:0; margin:0}}
@media(max-width:560px) {.dashboard .agent-catalog-grid {grid-template-columns:1fr} .dashboard .billing-current {display:block} .dashboard .billing-current > div:last-child {text-align:left; margin-top:18px} .dashboard .plan-card {display:block} .dashboard .plan-card ul {padding-top:16px; border-top:1px solid var(--line); margin-top:14px}}
/* Source cards and message previews use the shared workspace surfaces. */
.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.knowledge-card{display:flex;flex-direction:column;min-width:0;margin:0}
.knowledge-card h3{margin:18px 0 10px}
.knowledge-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;color:var(--muted);font-size:14px;line-height:1.65}
.knowledge-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}
.message-meta{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.message-body{padding:20px;background:var(--surface-subtle);border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}
@media(max-width:1100px){.knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.knowledge-grid{grid-template-columns:1fr}}

/* Mobile tables keep readable column widths inside their scroll region. */
@media (max-width:560px) {
 .dashboard .tablewrap table {min-width:760px; table-layout:auto}
 .dashboard .tablewrap th, .dashboard .tablewrap td {min-width:130px}
 .dashboard .tablewrap th:first-child, .dashboard .tablewrap td:first-child {min-width:190px}
 .dashboard .tablewrap th:last-child, .dashboard .tablewrap td:last-child {min-width:160px}
}

/* Empty tables keep their message inside the mobile viewport. */
@media (max-width:560px) {
 .dashboard .tablewrap table:has(tbody .empty-state) {min-width:0; width:100%}
 .dashboard .tablewrap table:has(tbody .empty-state) thead {display:none}
 .dashboard .tablewrap table:has(tbody .empty-state) td {min-width:0}
}
/* Approved agent content stays readable without exposing its JSON envelope. */
.agent-result-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-result li + li { margin-top: .6rem; }
