/* Shared workspace design: surfaces, typography, controls and analytics. */
.form-guidance { display:flex; align-items:flex-start; gap:.6rem; margin-bottom:1.5rem; padding:.8rem 1rem; border:1px solid var(--workspace-border); border-radius:8px; background:var(--workspace-soft); color:var(--workspace-muted); font-size:.75rem; }
.form-guidance i { margin-top:.2rem; color:#3978a8; }
.form-guidance p { margin:0; line-height:1.6; }
.required-mark { color:#c8404b; font-weight:700; }
.optional-mark { margin-left:.3rem; color:var(--workspace-muted); font-size:.65rem; font-weight:400; }
.form-section-heading { margin:1.4rem 0 1rem; padding-bottom:.7rem; border-bottom:1px solid var(--workspace-border); }
.form-section-heading h2 { margin:0; font-size:.87rem; font-weight:700; color:var(--workspace-ink); }
.form-section-heading p { margin:.3rem 0 0; color:var(--workspace-muted); font-size:.73rem; line-height:1.6; }
.form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; margin-top:1.5rem; padding-top:1.1rem; border-top:1px solid var(--workspace-border); }
.form-error-summary a { color:inherit; font-weight:600; }
.filter-field { display:flex; flex-direction:column; gap:.3rem; margin:0; }
.filter-field > span { color:var(--workspace-muted); font-size:.65rem; font-weight:600; }
.list-toolbar form { align-items:flex-end; }
.table caption { caption-side:top; padding:.85rem 1rem; border-bottom:1px solid var(--workspace-border); color:var(--workspace-ink); font-size:.82rem; font-weight:700; }
.table th { white-space:nowrap; }
:root {
  --workspace-surface: #fff;
  --workspace-border: #e2e9f1;
  --workspace-ink: #203750;
  --workspace-muted: #65788c;
  --workspace-soft: #f7f9fc;
  --workspace-shadow: 0 3px 14px rgba(24, 48, 76, .035);
}
html[data-theme="dark"] {
  --workspace-surface: #182532;
  --workspace-border: #304252;
  --workspace-ink: #e2eaf2;
  --workspace-muted: #a5b6c7;
  --workspace-soft: #1e2f3e;
  --workspace-shadow: 0 3px 14px rgba(0, 0, 0, .1);
}
body { background: #f3f6fa; }
html[data-theme="dark"] body { background: #111c27; }
.page-body { padding: 1.8rem; }
.workspace-page-heading { margin-bottom: 1.6rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--workspace-border); }
.workspace-page-heading h1 { color: var(--workspace-ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; }
.workspace-page-subtitle { color: var(--workspace-muted); font-size: .78rem; line-height: 1.6; }
.page-eyebrow { color: #3978a8; font-size: .61rem; letter-spacing: .14em; font-weight: 750; }
.page-eyebrow:empty, .workspace-page-subtitle:empty, .workspace-page-actions:empty { display: none; }
.card-panel, .stat-card, .list-toolbar,
html[data-theme="dark"] .card-panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .list-toolbar {
  background: var(--workspace-surface);
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  box-shadow: var(--workspace-shadow);
}
.card-panel h6 { color: var(--workspace-ink); font-size: .86rem; font-weight: 700; letter-spacing: -.015em; }
.stat-card { min-height: 155px; height: 100%; padding: 1.3rem; }
.stat-card:hover { transform: none; }
.stat-card .stat-icon { float: right; width: 40px; height: 40px; margin: 0 0 .8rem .5rem; border-radius: 12px; }
.stat-card .stat-value { padding-top: .25rem; font-size: 1.65rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.stat-card .stat-label { clear: both; padding-top: .8rem; font-size: .74rem; color: var(--workspace-muted); }
.list-toolbar { padding: 1rem; box-shadow: var(--workspace-shadow); }
.table > thead > tr > th { background: var(--workspace-soft); padding: .85rem 1rem; font-size: .62rem; letter-spacing: .08em; }
.table > tbody > tr > td { padding: .85rem 1rem; font-size: .79rem; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table-empty-state { min-height: 170px; gap: .65rem; }
.form-label { color: var(--workspace-ink); margin-bottom: .45rem; font-size: .77rem; }
.form-text { color: var(--workspace-muted); font-size: .72rem; line-height: 1.65; }
.form-control, .form-select { min-height: 38px; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #448cbe; box-shadow: 0 0 0 3px rgba(40, 120, 184, .13); }
.form-control-sm, .form-select-sm { min-height: 34px; }
.btn { min-height: 36px; padding: .45rem .85rem; font-weight: 600; }
.btn-sm { min-height: 31px; padding: .32rem .65rem; }
.btn-brand { box-shadow: 0 2px 4px rgba(23, 105, 170, .12); }
.btn:focus-visible, .icon-action:focus-visible { outline: 2px solid #448cbe; outline-offset: 3px; }
.icon-action { border-radius: 7px; }
.badge { font-weight: 650; letter-spacing: .015em; }
.alert { border-radius: 10px; font-size: .8rem; }
.modal-content { border-radius: 14px; }
.modal-header, .modal-footer { padding: 1rem 1.25rem; }
.modal-body { padding: 1.25rem; }
.product-card { padding: 1.4rem; }
.profile-summary-card, .profile-info-card, .profile-security-card { padding: 1.4rem; }
.chart-panel { padding: 1.25rem; overflow: hidden; }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.3rem; }
.chart-heading h2 { margin: 0; color: var(--workspace-ink); font-size: .85rem; font-weight: 700; }
.chart-heading p { margin: .3rem 0 0; color: var(--workspace-muted); font-size: .7rem; line-height: 1.5; }
.chart-period { flex-shrink: 0; padding: .3rem .5rem; border: 1px solid var(--workspace-border); border-radius: 6px; background: var(--workspace-soft); color: var(--workspace-muted); font-size: .6rem; font-weight: 600; }
.chart-frame { position: relative; height: 250px; min-width: 0; }
.chart-frame canvas { width: 100% !important; height: 100% !important; }
.chart-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--workspace-border); }
.chart-legend span { display: flex; align-items: center; gap: .4rem; color: var(--workspace-muted); font-size: .69rem; }
.chart-legend i { font-size: .45rem; }
.auth-form-side { background: #f3f6fa; }
.auth-form-box { padding: 2.25rem; border: 1px solid #e2e9f1; border-radius: 18px; background: #fff; box-shadow: 0 12px 40px rgba(24, 48, 76, .06); }
.auth-form-box h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; }
.auth-form-box .form-lede { font-size: .8rem; line-height: 1.6; }
/* Compact type scale for page content, including Bootstrap heading utilities. */
.page-body { font-size: .8125rem; }
.page-body h2, .page-body .h2 { font-size: 1rem; }
.page-body h3, .page-body .h3 { font-size: .9375rem; }
.page-body h4, .page-body .h4 { font-size: .875rem; }
.page-body h5, .page-body .h5,
.page-body h6, .page-body .h6 { font-size: .8125rem; }
.page-body p { font-size: .78rem; line-height: 1.6; }
.page-body .form-section-heading h2,
.page-body .chart-heading h2 { font-size: .8125rem; font-weight: 650; }
.page-body .form-section-heading p,
.page-body .chart-heading p,
.page-body .form-guidance p { font-size: .73rem; }
.page-body .form-label, .auth-form-box .form-label { font-size: .75rem; font-weight: 600 !important; }
.page-body .form-check-label { font-size: .75rem; }
.page-body .form-control, .page-body .form-select,
.auth-form-box .form-control, .auth-form-box .form-select { font-size: .8125rem; }
.page-body .form-text { font-size: .72rem; }
.page-body .modal-title { font-size: .875rem; }
.page-body .page-intro h1 { font-size: 1.125rem; }
@media (max-width: 1024px) { .page-body { padding: 1.2rem; } }
@media (max-width: 767px) {
  .page-body { padding: .9rem; }
  .workspace-page-heading { margin-bottom: 1.1rem; padding-bottom: 1rem; }
  .chart-panel { padding: 1rem; }
  .chart-frame { height: 230px; }
  .stat-card { min-height: 140px; padding: 1rem; }
  .stat-card .stat-icon { width: 30px; height: 30px; font-size: .8rem; }
  .auth-form-box { padding: 1.5rem; }
}
@media (max-width: 380px) {
  .stat-card .stat-icon { float: none; margin-bottom: .7rem; }
  .stat-card .stat-label { padding-top: .5rem; }
  .chart-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .stat-card, .product-card { transition: none; } }
