/* ==========================================================================
   Reports & Dashboard View — Modern Space-Efficient Mobile Theme
   ========================================================================== */

body[data-view="closeout"] #closeout-view,
body[data-view="closeout"] .closeout-shell {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--mobile-page-bg, #f4f3f8);
}

.closeout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 12px 0;
  padding: 14px 18px;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.closeout-toolbar > div {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.closeout-toolbar .section-copy {
  margin: 0;
}

.closeout-toolbar .toolbar-button {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 9999px;
  font-weight: 800;
}

#closeout-run-button {
  border-color: #b86b11;
  background: linear-gradient(180deg, var(--theme-accent, #e59a38) 0%, var(--theme-accent, #d98c2b) 100%);
  color: var(--mobile-on-accent, #ffffff);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 25%, transparent);
}

.closeout-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 20px;
}

.closeout-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.closeout-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.closeout-summary-card span {
  color: var(--theme-quiet, #546c86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.closeout-summary-card strong {
  color: var(--mobile-purple, #21133d);
  font-size: 24px;
  font-weight: 800;
}

.closeout-tenders-panel {
  overflow: hidden;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.closeout-tenders-panel > .panel-caption {
  padding: 10px 16px;
  background: linear-gradient(180deg, var(--theme-panel, #d6ebf7) 0%, var(--theme-panel, #c3e1f2) 100%);
  border-bottom: 1px solid var(--theme-border, #9bc7df);
  color: var(--theme-text, #21133d);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.closeout-tenders {
  padding: 4px 18px;
}

.closeout-tender-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--theme-border, #e4edf6);
  color: var(--theme-text, #21133d);
  font-weight: 600;
}

.closeout-tender-row:last-child {
  border-bottom: 0;
}

.closeout-tender-row strong {
  color: var(--mobile-purple, #21133d);
  font-weight: 800;
}

.closeout-empty,
.closeout-note {
  padding: 12px 2px;
  color: var(--theme-quiet, #546c86);
}

@media (max-width: 600px) {
  .closeout-toolbar {
    align-items: flex-start;
    padding: 14px;
  }

  .closeout-content {
    padding: 14px;
  }

  .closeout-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .closeout-summary-card {
    padding: 14px;
  }

  .closeout-summary-card strong {
    font-size: 20px;
  }
}

body[data-view="reports"] #reports-view,
body[data-view="reports"] .reports-shell {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--mobile-page-bg, #f4f3f8) !important;
}

body[data-view="reports"] .reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--theme-panel, #ffffff);
  border-bottom: 1px solid var(--theme-border, #e2e8f0);
  flex-shrink: 0;
}

body[data-view="reports"] .reports-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body[data-view="reports"] .reports-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-view="reports"] .reports-title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
  letter-spacing: -0.01em;
}

body[data-view="reports"] .reports-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ece8f5;
  color: var(--mobile-purple, #21133d);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-view="reports"] .reports-copy {
  margin: 0;
  color: var(--theme-quiet, #64748b);
  font-size: 12.5px;
  line-height: 1.35;
}

body[data-view="reports"] .reports-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-view="reports"] .reports-action-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mobile-purple, #21133d);
  background: var(--theme-panel, #ffffff);
  border: 1px solid #d0d7e2;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-view="reports"] .reports-action-btn:hover {
  background: #f7f9fc;
  border-color: #b8c4d4;
}

/* --- Segmented Buttons / Tabs Bar --- */
body[data-view="reports"] .reports-nav-bar {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--theme-panel, #ffffff);
  border-bottom: 1px solid var(--theme-border, #e2e8f0);
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body[data-view="reports"] .reports-nav-bar::-webkit-scrollbar {
  display: none;
}

body[data-view="reports"] .reports-tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

body[data-view="reports"] .reports-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--mobile-purple, #21133d);
  background: var(--theme-panel, #f8fafc);
  border: 1px solid var(--theme-border, #e2e8f0);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

body[data-view="reports"] .reports-tab-btn:hover {
  background: var(--theme-panel, #f1f5f9);
  border-color: var(--theme-border, #cbd5e1);
}

body[data-view="reports"] .reports-tab-btn.is-active {
  background: var(--mobile-coral, #ec665c) !important;
  border-color: var(--mobile-coral, #ec665c) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, #ec665c) 25%, transparent);
}

body[data-view="reports"] .reports-tab-icon {
  font-size: 13.5px;
}

body[data-view="reports"] .reports-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--theme-panel, #e2e8f0);
  color: var(--mobile-purple, #21133d);
  font-size: 10.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

body[data-view="reports"] .reports-tab-btn.is-active .reports-tab-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* --- Scrollable Content Container --- */
body[data-view="reports"] .reports-content-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

body[data-view="reports"] .reports-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-view="reports"] .reports-panel-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-view="reports"] .reports-panel-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
}

body[data-view="reports"] .reports-panel-subtitle {
  font-size: 12px;
  color: var(--theme-quiet, #64748b);
}

/* --- Metric KPI Grid & Cards --- */
body[data-view="reports"] .reports-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
}

@media (min-width: 1350px) {
  body[data-view="reports"] .reports-metric-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

body[data-view="reports"] .metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  min-width: 0;
  min-height: 85px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body[data-view="reports"] .metric-card:hover {
  border-color: var(--theme-border, #cbd5e1);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-text, #21133d) 8%, transparent);
}

body[data-view="reports"] .metric-card.metric-card-financial {
  border-color: #dbeafe;
  background: linear-gradient(135deg, var(--theme-panel, #ffffff) 60%, #f0f7ff 100%);
}

body[data-view="reports"] .metric-card strong {
  display: block;
  color: var(--theme-quiet, #64748b);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-view="reports"] .metric-value {
  display: block;
  color: var(--mobile-purple, #21133d);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-view="reports"] .metric-note {
  display: block;
  color: #718096;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Overview Highlights --- */
body[data-view="reports"] .reports-overview-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

body[data-view="reports"] .reports-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

body[data-view="reports"] .reports-highlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-view="reports"] .reports-highlight-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-quiet, #64748b);
}

body[data-view="reports"] .reports-highlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--theme-panel, #eff6ff);
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

body[data-view="reports"] .reports-highlight-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-view="reports"] .reports-highlight-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-purple, #21133d) 0%, #4a2b7a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  flex-shrink: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 15%, transparent);
}

body[data-view="reports"] .reports-highlight-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body[data-view="reports"] .reports-highlight-title {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-view="reports"] .reports-highlight-sub {
  font-size: 12px;
  color: var(--theme-quiet, #64748b);
  margin: 0;
}

/* --- Section Panels & Tables --- */
body[data-view="reports"] .reports-section-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  overflow: hidden;
  min-height: 280px;
  max-height: 100%;
}

body[data-view="reports"] .reports-panel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: var(--theme-panel, #ffffff);
  font-size: 14px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
  flex-shrink: 0;
}

body[data-view="reports"] .reports-caption-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-view="reports"] .reports-caption-icon {
  font-size: 14px;
}

body[data-view="reports"] .reports-caption-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #64748b);
}

body[data-view="reports"] .reports-table-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--theme-panel, #ffffff);
}

body[data-view="reports"] .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body[data-view="reports"] .data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 14px;
  background: var(--theme-panel, #f8fafc);
  color: var(--theme-quiet, #64748b);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--theme-border, #e2e8f0);
  text-align: left;
  white-space: nowrap;
}

body[data-view="reports"] .data-table th.is-numeric {
  text-align: right;
}

body[data-view="reports"] .data-table td {
  padding: 11px 14px;
  color: var(--theme-text, #1e293b);
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

body[data-view="reports"] .data-table td.is-numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

body[data-view="reports"] .data-table tr:hover td {
  background: #f8faff;
}

.report-table {
  min-height: 0;
}

.client-roadmap-shell {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.roadmap-summary {
  padding: 9px 10px;
  border: 1px solid #c8d5e5;
  border-radius: var(--radius-tight);
  background: linear-gradient(var(--theme-panel, #ffffff), #f0f5fc);
}

.roadmap-summary strong {
  display: block;
  color: #365477;
}

.roadmap-summary p {
  margin-top: 4px;
  color: #5d738c;
  line-height: 1.4;
}

.roadmap-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-group {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cfdae8;
  border-radius: var(--radius-tight);
  background: var(--theme-panel, #ffffff);
}

.roadmap-group h3 {
  font-size: 13px;
  color: #355375;
}

.roadmap-group p {
  color: #5e748d;
  line-height: 1.4;
}

.roadmap-plan-list {
  display: grid;
  gap: 8px;
}

.roadmap-plan-button {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #d1dbe8;
  border-radius: var(--radius-tight);
  background: linear-gradient(#fbfdff, var(--theme-panel, #eef4fb));
  text-align: left;
}

.roadmap-plan-button:hover,
.roadmap-plan-button:focus-visible {
  border-color: #8aa3c1;
  background: linear-gradient(var(--theme-panel, #ffffff), #e7eef9);
}

.roadmap-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.roadmap-plan-title-block {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.roadmap-plan-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.roadmap-plan-title-line strong {
  color: #24394f;
}

.roadmap-plan-number {
  color: #516b89;
  font-weight: 700;
}

.roadmap-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.roadmap-plan-open {
  color: #476688;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.roadmap-plan-description {
  color: #60758e;
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 10px 0;
}

.metric-card {
  padding: 12px 14px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.metric-card strong {
  display: block;
  color: var(--theme-quiet, #546c86);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-text, #21133d);
}

.metric-note {
  display: block;
  margin-top: 4px;
  color: var(--theme-quiet, #546c86);
  font-size: 11.5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--theme-border, #e4edf6);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--theme-panel, #d6ebf7) 0%, var(--theme-panel, #c3e1f2) 100%);
  color: var(--theme-text, #21133d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--theme-border, #9bc7df);
}

.data-table td.is-numeric {
  text-align: right;
}

.table-action {
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid var(--theme-border, #b8cde2);
  border-radius: 9999px;
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-weight: 700;
}

.help-copy,
.help-list,
.help-actions {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
}

.help-copy p {
  line-height: 1.45;
}

.help-list div {
  padding: 7px 8px;
  border: 1px solid #d1dbe8;
  border-radius: var(--radius-tight);
  background: var(--theme-panel, #ffffff);
}

.help-actions {
  grid-auto-rows: min-content;
}

#help-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--theme-canvas, #e8f2fb);
}

.help-hub-shell {
  display: grid;
  gap: 16px;
  padding: 16px 20px 48px;
  max-width: 1360px;
  min-width: 0;
  width: 100%;
  margin: 0 auto;
  color: var(--theme-text, #21133d);
}

.help-hub-shell.is-mobile {
  padding: 12px 14px calc(84px + env(safe-area-inset-bottom, 0px));
}

.help-hub-hero {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  border: 1px solid var(--theme-border, #9bc7df);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.help-hub-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.help-hub-glossary-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--mobile-coral, #ec665c);
  background: linear-gradient(135deg, rgba(236, 102, 92, 0.12), rgba(33, 19, 61, 0.04));
  color: var(--theme-text, #21133d);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.help-hub-glossary-hero-btn:hover {
  background: linear-gradient(135deg, rgba(236, 102, 92, 0.22), rgba(33, 19, 61, 0.08));
  box-shadow: 0 3px 12px color-mix(in srgb, var(--theme-accent, #ec665c) 22%, transparent);
}

.help-hub-glossary-hero-btn:active {
  transform: scale(0.97);
}

.help-hub-glossary-hero-btn strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--theme-text, #21133d);
}

.help-hub-glossary-hero-btn small {
  display: block;
  font-size: 11px;
  color: var(--theme-quiet, #5e5772);
}

.help-hub-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mobile-coral, #ec665c);
}

.help-hub-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--theme-text, #21133d);
}

.help-hub-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--mobile-text-subtle, #5e5772);
  line-height: 1.45;
}

.help-hub-support-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--mobile-card-border, #9bc7df);
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--theme-text, #21133d);
  text-decoration: none;
  font-size: 13px;
  min-height: 44px;
}

.help-hub-support-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.8;
}

.help-hub-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.help-quick-pill:hover {
  border-color: var(--mobile-coral, #ec665c);
}

.help-quick-pill:active {
  transform: scale(0.98);
}

.help-hub-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.help-hub-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.help-hub-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
}

.help-hub-search-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 38px 8px 36px;
  border-radius: 12px;
  border: 1.5px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 14px;
}

.help-hub-search-input:focus {
  outline: none;
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #ec665c) 18%, transparent);
}

.help-hub-search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9999px;
  background: var(--theme-panel, #eef2fa);
  color: var(--theme-text, #21133d);
  font-weight: 700;
  cursor: pointer;
}

.help-hub-chips {
  display: flex;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .help-hub-chips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 4px 0;
  }
}

.help-hub-chips::-webkit-scrollbar {
  display: none;
}

.help-hub-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.help-hub-chip:hover {
  border-color: var(--mobile-card-border, #9bc7df);
  background: #fbfcfe;
  transform: translateY(-1px);
}

.help-hub-chip:active {
  transform: scale(0.96);
}

.help-hub-chip.is-active {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--theme-accent, #ec665c) 35%, transparent);
}

.help-hub-body {
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.help-hub-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.help-hub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-hub-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--theme-text, #21133d);
}

.help-hub-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-mini-btn,
.help-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #9bc7df);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.help-mini-btn.is-active,
.help-action-btn {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
}

.help-mini-btn:disabled,
.help-action-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.help-sop-list {
  display: grid;
  gap: 10px;
}

.help-sop-card {
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  overflow: hidden;
}

.help-sop-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.help-sop-title-group {
  display: grid;
  gap: 4px;
}

.help-sop-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--theme-text, #21133d);
  font-size: 11px;
  font-weight: 700;
}

.help-sop-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--theme-text, #21133d);
}

.help-sop-summary {
  margin: 0;
  font-size: 13px;
  color: var(--theme-quiet, #5e5772);
}

.help-sop-chevron {
  font-size: 18px;
  color: var(--theme-quiet, #5e5772);
}

.help-sop-body {
  padding: 0 16px 16px;
  border-top: 1px solid #eef2f7;
}

.help-sop-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--theme-text, #21133d);
  font-size: 13.5px;
  line-height: 1.5;
}

.help-sop-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.help-policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.help-policy-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.help-policy-card.is-flipped {
  border-color: var(--mobile-coral, #ec665c);
  background: #fffafa;
}

.help-policy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.help-policy-chip {
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--theme-panel, #eef2fa);
  color: var(--theme-text, #21133d);
  font-size: 11px;
  font-weight: 700;
}

.help-policy-flip-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.help-policy-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--theme-text, #21133d);
}

.help-policy-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--theme-quiet, #4b5563);
}

.help-learn-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--mobile-coral, #ec665c);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
}

.help-learn-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--theme-quiet, #5e5772);
}

.help-learn-card h4 {
  margin: 0;
  font-size: 17px;
  color: var(--theme-text, #21133d);
}

.help-learn-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--theme-text, #21133d);
}

.help-learn-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.help-services-grid,
.help-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.help-service-card,
.help-product-brand-card,
.help-shared-notes-card {
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.help-shared-notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-shared-notes-actions .help-mini-btn {
  min-height: 44px;
}

.help-service-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.help-service-thumb-btn {
  padding: 0;
  border: 1px solid var(--theme-border, #d7d9de);
  border-radius: 10px;
  overflow: hidden;
  background: var(--theme-panel, #f4f3f8);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.help-service-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.help-service-body {
  display: grid;
  gap: 6px;
}

.help-service-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--theme-text, #21133d);
}

.help-service-detail {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--theme-quiet, #4b5563);
}

.help-service-detail strong {
  color: var(--theme-text, #21133d);
}

.help-product-brand-head {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.help-product-brand-head h4 {
  margin: 0;
  font-size: 16px;
  color: var(--theme-text, #21133d);
}

.help-product-brand-head span {
  font-size: 12px;
  color: var(--theme-quiet, #5e5772);
}

.help-product-items {
  display: grid;
  gap: 10px;
}

.help-product-item {
  display: grid;
  gap: 3px;
}

.help-product-item strong {
  font-size: 13.5px;
  color: var(--theme-text, #21133d);
}

.help-product-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--theme-quiet, #4b5563);
}

.help-glossary-shell {
  display: grid;
  gap: 14px;
}

.help-glossary-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 10px;
}

.help-glossary-alpha-pill {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.help-glossary-alpha-pill:hover:not(:disabled) {
  border-color: var(--mobile-coral, #ec665c);
  color: var(--mobile-coral, #ec665c);
  transform: translateY(-1px);
}

.help-glossary-alpha-pill:active:not(:disabled) {
  transform: scale(0.95);
}

.help-glossary-alpha-pill.is-active {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, #ec665c) 32%, transparent);
}

.help-glossary-alpha-pill:disabled {
  opacity: 0.35;
  cursor: default;
  border-style: dashed;
}

.help-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.help-glossary-card {
  border: 1px solid var(--theme-border, #9bc7df);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.help-glossary-card:hover {
  transform: translateY(-2px);
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-text, #21133d) 8%, transparent);
}

.help-glossary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.help-glossary-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--theme-text, #21133d);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.help-glossary-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 750;
  background: var(--theme-panel, #f4f3f8);
  color: var(--theme-quiet, #5e5772);
  border: 1px solid var(--theme-border, #d7d9de);
}

.help-glossary-term {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--theme-text, #21133d);
}

.help-glossary-def {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-quiet, #4b5563);
}

.help-glossary-footer {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.help-glossary-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--mobile-card-border, #9bc7df);
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--theme-text, #21133d);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.help-glossary-jump-btn:hover {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
  transform: translateY(-1px);
}

.help-glossary-jump-btn:active {
  transform: scale(0.96);
}

.help-glossary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.help-glossary-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--theme-text, #21133d);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.help-glossary-link:hover {
  color: var(--mobile-coral, #ec665c);
}

.help-shared-notes-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--theme-quiet, #5e5772);
}

.help-shared-notes-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--theme-quiet, #5e5772);
}

.help-shared-notes-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #d7d9de);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  resize: vertical;
}

.help-shared-notes-textarea:disabled {
  background: var(--mobile-page-bg, #f4f3f8);
  color: var(--theme-quiet, #5e5772);
  cursor: not-allowed;
}

.help-hub-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--theme-border, #9bc7df);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.help-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(16, 13, 31, 0.78);
  display: grid;
  place-items: center;
  padding: 20px;
}

.help-lightbox-card {
  width: min(640px, 100%);
  background: var(--theme-panel, #ffffff);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.help-lightbox-close {
  justify-self: end;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, #d7d9de);
  background: var(--theme-panel, #ffffff);
  font-weight: 700;
  cursor: pointer;
}

.help-lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: var(--theme-text, #100d1f);
}

.help-lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-text, #21133d);
}

.clock-modal-card {
  width: min(440px, calc(100vw - 24px));
}

.clock-modal-card.clock-out-card {
  width: min(500px, calc(100vw - 24px));
}

.intake-modal-card {
  width: min(640px, calc(100vw - 32px));
}

.client-modal-card,
.employee-modal-card {
  width: min(640px, calc(100vw - 32px));
}

.import-modal-card {
  width: min(880px, calc(100vw - 28px));
  border-radius: 16px;
  border: 1px solid var(--theme-border, #9ab7ce);
  overflow: hidden;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-text, #21133d) 28%, transparent);
}

.import-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, var(--theme-panel, #c8dcf0) 0%, var(--theme-panel, #bcd4e6) 100%);
}

.import-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.import-step {
  padding: 10px 12px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  color: var(--theme-quiet, #64748b);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

.import-step.is-active {
  border-color: var(--mobile-coral, #ec665c);
  background: #fff5f4;
  color: var(--mobile-purple, #21133d);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, #ec665c) 16%, transparent);
}

.import-step.is-complete {
  border-color: var(--mobile-card-border, #9bc7df);
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--mobile-purple, #21133d);
}

.import-modal-body {
  min-height: 280px;
  max-height: calc(100svh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.import-panel-list {
  display: grid;
  gap: 12px;
}

.import-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.import-panel h4 {
  color: var(--mobile-purple, #21133d);
  font-size: 14.5px;
  font-weight: 750;
  margin: 0;
}

.import-panel p {
  margin: 0;
  color: var(--theme-quiet, #64748b);
  font-size: 12.5px;
  line-height: 1.45;
}

.import-section-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.import-panel-danger {
  border-color: #fca5a5;
  background: linear-gradient(135deg, var(--theme-panel, #ffffff) 0%, #fef2f2 100%);
}

.import-upload-field input[type="file"] {
  padding: 8px 0;
  min-height: 44px;
}

.import-source-summary {
  padding: 10px 14px;
  border: 1.5px dashed var(--mobile-card-border, #9bc7df);
  border-radius: 12px;
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--mobile-purple, #21133d);
  font-size: 12.5px;
  font-weight: 600;
}

.import-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.import-option-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  cursor: pointer;
  min-height: 52px;
  transition: all 0.15s ease;
  user-select: none;
}

.import-option-card:hover {
  border-color: var(--mobile-card-border, #9bc7df);
  transform: translateY(-1px);
}

.import-option-card.is-selected {
  border-color: var(--mobile-coral, #ec665c);
  background: linear-gradient(135deg, var(--theme-panel, #ffffff) 0%, #fff7f6 100%);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-accent, #ec665c) 16%, transparent);
}

.import-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.import-option-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
}

.import-option-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.import-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--theme-border, #cbd5e1);
  background: var(--theme-panel, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.import-radio-dot.is-checked {
  border-color: var(--mobile-coral, #ec665c);
  background: var(--mobile-coral, #ec665c);
}

.import-radio-dot.is-checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-panel, #ffffff);
}

.import-option-desc {
  font-size: 12px;
  color: var(--theme-quiet, #64748b);
  margin: 0;
  line-height: 1.4;
}

.import-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.import-badge-recommended {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.import-badge-info {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #475569);
  border: 1px solid var(--theme-border, #e2e8f0);
}

.import-badge-caution {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.import-badge-coral {
  background: #ffe4e1;
  color: var(--mobile-coral, #ec665c);
  border: 1px solid #fecaca;
}

.import-badge-default {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #64748b);
  border: 1px solid var(--theme-border, #e2e8f0);
}

.import-verify-panel {
  border-color: var(--theme-border, #cbd5e1);
  background: linear-gradient(135deg, var(--theme-panel, #ffffff) 0%, #fafbfc 100%);
}

.import-bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.import-bulk-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 12.5px;
  cursor: pointer;
}

.import-verify-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.import-verify-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.import-verify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.import-verify-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.import-verify-name {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
}

.import-verify-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mobile-page-bg, #f4f3f8);
  border: 1px solid var(--mobile-grid-line, #d7d9de);
}

.import-compare-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.import-compare-heading {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mobile-purple, #21133d);
  margin-bottom: 2px;
}

.import-compare-item {
  font-size: 12px;
  color: var(--theme-quiet, #334155);
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.import-compare-label {
  font-weight: 650;
  color: var(--theme-quiet, #64748b);
  flex-shrink: 0;
}

.import-verify-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.import-decision-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  background: var(--theme-panel, #ffffff);
  font-size: 12px;
  font-weight: 750;
  color: var(--theme-quiet, #475569);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.import-decision-btn:hover {
  border-color: var(--theme-border, #94a3b8);
}

.import-decision-btn.is-active.decision-exclude {
  border-color: var(--mobile-purple, #21133d);
  background: var(--mobile-purple, #21133d);
  color: #ffffff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 22%, transparent);
}

.import-decision-btn.is-active.decision-update {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
}

.import-decision-btn.is-active.decision-create {
  border-color: var(--mobile-coral, #ec665c);
  background: var(--mobile-coral, #ec665c);
  color: #ffffff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 22%, transparent);
}

.import-more-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.import-more-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 13px;
  border: 1.5px solid var(--mobile-card-border, #9bc7df);
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--mobile-purple, #21133d);
  cursor: pointer;
  transition: all 0.15s ease;
}

.import-more-btn:hover {
  background: #aed5ec;
  border-color: #83b6d2;
}

.import-mapping-list {
  display: grid;
  gap: 8px;
}

.import-mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.import-mapping-row span {
  font-weight: 700;
  color: var(--mobile-purple, #21133d);
  font-size: 13px;
}

.import-mapping-row select {
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  padding: 8px 12px;
  font-size: 13px;
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.import-issue-list,
.import-operation-list,
.client-context-list {
  display: grid;
  gap: 8px;
}

.import-issue-item,
.import-operation-item {
  padding: 10px 14px;
  border: 1.5px solid var(--mobile-grid-line, #d7d9de);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  font-size: 12.5px;
}

.import-operation-item.tone-create {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.import-operation-item.tone-update {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.import-operation-item.tone-skip {
  border-color: var(--mobile-grid-line, #d7d9de);
  background: var(--theme-panel, #f8fafc);
  color: var(--theme-quiet, #64748b);
}

.clock-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Clock In Hero Badge */
.clock-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(135deg, var(--theme-text, #221d3b) 0%, var(--theme-text, #342459) 100%);
  border: 1px solid #18132c;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-text, #21133d) 20%, transparent);
}

.clock-hero-time {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.clock-hero-date {
  font-size: 11.5px;
  font-weight: 700;
  color: #c3e1f2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clock-in-submit-btn,
.clock-out-submit-btn {
  background: linear-gradient(180deg, var(--theme-accent, #e59a38) 0%, var(--theme-accent, #d98c2b) 100%) !important;
  border-color: #b86b11 !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 25%, transparent) !important;
}

.clock-in-submit-btn:hover,
.clock-out-submit-btn:hover {
  background: linear-gradient(180deg, #eca445 0%, #df9432 100%) !important;
}

/* Clock Out Shift Stats Summary */
.clock-out-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: var(--theme-panel, #eef6fc);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 10px;
  padding: 10px;
}

.clock-stat-tile {
  display: grid;
  gap: 2px;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 8px;
  padding: 8px 10px;
}

.clock-stat-tile.highlight-tile {
  background: var(--theme-panel, #c3e1f2);
  border-color: var(--theme-border, #9bc7df);
}

.clock-stat-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-quiet, #546c86);
}

.clock-stat-value {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: auto !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--theme-text, #21133d) !important;
  box-shadow: none !important;
}

.inline-note {
  margin: 0;
  color: var(--theme-quiet, #546c86);
}

.status-bar {
  min-height: 21px;
  padding: 3px 8px;
  border-top: 1px solid #8ca4c4;
  background: linear-gradient(var(--theme-status-top), var(--theme-status-bottom));
  color: #4b688d;
}

#plan-fab {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  background: rgba(20, 32, 48, 0.28);
  transition: opacity 0.15s ease;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.plans-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 48px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  border-left: 1px solid var(--theme-border, #9ab7ce);
  background: linear-gradient(180deg, var(--theme-panel, #c8dcf0) 0%, var(--theme-panel, #bcd4e6) 100%);
  box-shadow: -12px 0 36px color-mix(in srgb, var(--theme-text, #21133d) 22%, transparent);
  transform: translateX(100%);
  transition: transform 0.15s ease;
}

.plans-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #18132c;
  background: linear-gradient(135deg, var(--theme-text, #221d3b) 0%, var(--theme-text, #342459) 100%);
  color: #ffffff;
}

.drawer-eyebrow {
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c3e1f2;
}

.drawer-header h2 {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.drawer-header p {
  margin-top: 4px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.drawer-header-tools {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.drawer-header-tools .drawer-button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
}

.drawer-header-tools .drawer-button:hover {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
}

.plans-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.plans-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.plans-search-icon {
  position: absolute;
  left: 12px;
  color: #878292;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.plans-search-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 12px 6px 34px;
  border: 1.5px solid var(--theme-border, #b8cde2);
  border-radius: 9999px;
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font: inherit;
  font-size: 13px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.plans-search-input:focus {
  outline: none;
  border-color: var(--mobile-coral, #ec665c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #ec665c) 16%, transparent);
}

.plans-filter-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.plans-filter-chips::-webkit-scrollbar {
  display: none;
}

.plan-chip {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--theme-border, #b8cde2);
  background: var(--theme-panel, #ffffff);
  color: var(--mobile-purple, #21133d);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-chip.is-active {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 25%, transparent);
}

.plan-count {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--mobile-card-border, #9bc7df);
  border-radius: 9999px;
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--mobile-purple, #21133d);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.plan-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  list-style: none;
  overflow-y: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-item {
  position: relative;
  padding: 14px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 6%, transparent);
}

.plan-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid var(--theme-border, #d7d9de);
  border-radius: 999px;
  color: #5e6877;
  background: #f4f5f7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.plan-status.is-done {
  border-color: #86efac;
  color: #166534;
  background: #dcfce7;
}

.plan-item:nth-child(even) {
  background: var(--theme-panel, #ffffff);
}

.plan-item.is-highlighted {
  border-color: var(--mobile-coral, #ec665c);
  background: #fff7f6;
}

.plan-item-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-right: 88px;
}

.plan-number {
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--mobile-card-border, #9bc7df);
  border-radius: 12px;
  background: var(--mobile-card-blue, #c3e1f2);
  color: var(--mobile-purple, #21133d);
  text-align: center;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-title-block {
  min-width: 0;
}

.plan-title-block h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--mobile-purple, #21133d);
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tag {
  padding: 2px 8px;
  border: 1px solid var(--theme-border, #9bc7df);
  border-radius: 9999px;
  background: var(--theme-panel, #eef6fc);
  color: var(--theme-text, #21133d);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-description {
  margin: 6px 0 0 42px;
  line-height: 1.4;
}

.plan-notes-button {
  position: absolute;
  top: 10px;
  right: 12px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--mobile-coral, #ec665c);
  border-radius: 9999px;
  background: var(--mobile-coral, #ec665c);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.plan-notes-button:hover,
.plan-notes-button:focus-visible {
  background: #d9554d;
  border-color: #d9554d;
}

.plan-notes-modal-card {
  width: min(740px, calc(100vw - 32px));
  border: 1px solid var(--theme-border, #9ab7ce);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--theme-panel, #c8dcf0) 0%, var(--theme-panel, #bcd4e6) 100%);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-text, #21133d) 28%, transparent);
}

.plan-notes-modal-card .app-modal-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--theme-text, #221d3b) 0%, var(--theme-text, #342459) 100%);
  border-bottom: 1px solid #18132c;
  align-items: flex-start;
}

.plan-notes-modal-card .drawer-eyebrow {
  color: #c3e1f2;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.plan-notes-modal-card .app-modal-header h2 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.plan-notes-modal-card .app-modal-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.4;
}

.plan-notes-modal-card .app-modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-notes-modal-card .app-modal-close-btn:hover {
  background: var(--mobile-coral, #ec665c);
  border-color: var(--mobile-coral, #ec665c);
  color: #ffffff;
}

.plan-notes-body {
  min-height: 260px;
  max-height: calc(100svh - 220px);
  overflow: auto;
  padding: 14px 16px;
  background: transparent;
}

.plan-note-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-note-year-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-note-year-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-note-year-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #9ab7ce;
}

.plan-note-year-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--theme-text, #221d3b);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.plan-note-month-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-note-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.plan-note-month-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--theme-text, #21133d);
  letter-spacing: -0.01em;
}

.plan-note-month-count {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--theme-text, #21133d);
  background: var(--theme-panel, #c3e1f2);
  border: 1px solid var(--theme-border, #9bc7df);
  border-radius: 999px;
  padding: 2px 9px;
}

.plan-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-note-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 6%, transparent);
}

.plan-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-note-date {
  color: var(--theme-text, #0f172a);
  font-size: 13px;
  font-weight: 750;
}

.plan-note-model-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--theme-panel, #eff6ff);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-note-model-tag.is-unknown {
  border-color: var(--theme-border, #cbd5e1);
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #64748b);
  font-weight: 600;
}

.plan-note-model-tag.is-flash {
  background: #fff0ee;
  border-color: #f3aaa4;
  color: #b7423b;
}

.plan-note-model-tag.is-gpt {
  background: #eaf5fa;
  border-color: var(--mobile-card-border, #9bc7df);
  color: var(--mobile-purple, #21133d);
}

.plan-note-model-tag.is-claude {
  background: #fffbf0;
  border-color: #fed7aa;
  color: #c2410c;
}

.plan-note-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plan-note-block strong {
  display: block;
  color: var(--theme-quiet, #64748b);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.plan-note-block.is-done-block strong {
  color: var(--mobile-coral, #ec665c);
}

.plan-note-block.is-followup-block strong {
  color: #716982;
}

.plan-note-block p {
  margin: 0;
  color: var(--theme-text, #1e293b);
  font-size: 13px;
  line-height: 1.5;
}

/* --- Admin Controls & Quick Access --- */
.admin-quick-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--theme-panel, #ffffff);
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 12px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 3%, transparent);
  margin-bottom: 2px;
}

.admin-quick-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mobile-purple, #21133d);
}

.admin-quick-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mobile-purple, #21133d);
  background: var(--theme-panel, #f8fafc);
  border: 1.5px solid var(--theme-border, #cad9e6);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-quick-pill:hover {
  background: var(--theme-panel, #f1f5f9);
  border-color: var(--theme-border, #9bc7df);
  transform: translateY(-1px);
}

.admin-quick-pill.highlight-pill {
  background: linear-gradient(135deg, #fff5f4, #ffebe8);
  border-color: var(--mobile-coral, #ec665c);
  color: #b92e24;
  font-weight: 800;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, #ec665c) 15%, transparent);
}

.admin-controls-panel {
  overflow: hidden;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 5%, transparent);
}

.admin-controls-body {
  padding: 16px 18px 22px;
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1.5px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
  transition: all 0.15s ease;
}

.admin-card:hover {
  border-color: var(--theme-border, #9bc7df);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-text, #21133d) 8%, transparent);
  transform: translateY(-1px);
}

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--theme-panel, #f4f3f8);
  font-size: 20px;
  flex-shrink: 0;
}

.admin-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--mobile-purple, #21133d);
}

.admin-card-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--theme-quiet, #546c86);
  background: #eef2f6;
  padding: 2px 8px;
  border-radius: 9999px;
  width: max-content;
}

.admin-card-badge.is-paused {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-card-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--theme-quiet, #546c86);
  line-height: 1.45;
  flex: 1 1 auto;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.admin-action-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-action-btn.primary-btn {
  background: linear-gradient(135deg, var(--mobile-coral, #ec665c), var(--theme-accent, #d95349));
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, #ec665c) 28%, transparent);
}

.admin-action-btn.primary-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* ==========================================================================
   Reports & Dashboard — Admin Command Center & Access Controls Panel
   ========================================================================== */

.reports-admin-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
}

.reports-admin-quick-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(195, 225, 242, 0.4) 0%, rgba(244, 243, 248, 0.8) 100%);
  border: 1px solid var(--theme-border, #9bc7df);
}

.reports-admin-quick-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mobile-purple, #21133d);
}

.reports-admin-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reports-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--theme-border, #cad9e6);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.reports-admin-btn:hover {
  background: var(--theme-panel, #f0f6fc);
  border-color: var(--theme-border, #9bc7df);
  transform: translateY(-1px);
}

.reports-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reports-admin-card {
  padding: 18px 20px;
  border: 1px solid var(--theme-border, #cad9e6);
  border-radius: 14px;
  background: var(--theme-panel, #ffffff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.reports-admin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
  flex-wrap: wrap;
}

.reports-admin-card-icon {
  font-size: 24px;
  line-height: 1;
}

.reports-admin-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--mobile-purple, #21133d);
}

.reports-admin-card-desc {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--theme-quiet, #64748b);
}

.reports-admin-header-btn {
  margin-left: auto;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--theme-border, #9bc7df);
  background: var(--theme-panel, #c3e1f2);
  color: var(--theme-text, #21133d);
}

.reports-admin-staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reports-admin-staff-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--theme-border, #e2e8f0);
  border-radius: 10px;
  background: var(--theme-panel, #f8fafd);
  transition: all 0.15s ease;
}

.reports-admin-staff-row:hover {
  background: var(--theme-panel, #ffffff);
  border-color: var(--theme-border, #9bc7df);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-text, #21133d) 4%, transparent);
}

.reports-admin-staff-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-coral, #ec665c), var(--mobile-purple, #21133d));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.reports-admin-staff-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 140px;
}

.reports-admin-staff-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--mobile-purple, #21133d);
}

.reports-admin-staff-email {
  font-size: 11.5px;
  color: var(--theme-quiet, #64748b);
}

.reports-admin-staff-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.admin-role-badge {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 750;
}

.admin-role-badge.role-owner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.admin-role-badge.role-staff {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.admin-passkey-badge {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
}

.admin-passkey-badge.passkey-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.admin-passkey-badge.password-only {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #475569);
  border: 1px solid var(--theme-border, #cbd5e1);
}

.reports-admin-row-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--theme-border, #cad9e6);
  background: var(--theme-panel, #ffffff);
  color: var(--theme-text, #21133d);
  cursor: pointer;
  white-space: nowrap;
}

.reports-admin-table-wrapper {
  overflow-x: auto;
}

.reports-admin-rbac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.reports-admin-rbac-table th,
.reports-admin-rbac-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
}

.reports-admin-rbac-table th {
  background: var(--theme-panel, #c3e1f2);
  color: var(--theme-text, #21133d);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reports-admin-rbac-table th:first-child {
  border-top-left-radius: 8px;
}

.reports-admin-rbac-table th:last-child {
  border-top-right-radius: 8px;
}

.reports-admin-rbac-table tr:hover td {
  background: var(--theme-panel, #f8fafd);
}

.perm-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.perm-pill.full {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.perm-pill.partial {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.perm-pill.view {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.perm-pill.none {
  background: var(--theme-panel, #f1f5f9);
  color: var(--theme-quiet, #94a3b8);
  border: 1px solid var(--theme-border, #e2e8f0);
}

