/* ============================================================
   PAYDECK360 DESIGN TOKENS - Phase 0 (Session 246)
   Single source of truth for the UI system. Additive only:
   nothing consumes these yet. Surfaces adopt tokens per
   UI_MIGRATION.md phases. Do not hardcode new colors below
   this block - reference tokens instead.
   Exempt from tokens: user marker colors (data-driven),
   logo/icon assets, Google/Apple OAuth button branding.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  /* Surfaces */
  --pd-bg: #F4F8FA;            /* app background (mist) */
  --pd-card: #FFFFFF;          /* card surface */
  --pd-field: #F4FAFC;         /* input fill */
  --pd-navy-band: #0B3550;     /* dark section headers */
  --pd-input-card: #F0FAFD;    /* input card / info box (CLAUDE.md section 4) */
  --pd-mint: #e0f7f4;          /* mint pill fill, ink text */

  /* Ink */
  --pd-ink: #0B3550;           /* primary text */
  --pd-ink-2: #5B7A8C;         /* secondary text */
  --pd-sub: #7E99A8;           /* muted labels */

  /* Lines */
  --pd-line: #E2ECF1;          /* hairline borders */

  /* Brand (single accent) */
  --pd-brand: #0891B2;
  --pd-brand-deep: #065E75;
  --pd-brand-soft: #E3F5FA;

  /* Money */
  --pd-money: #0A9B6C;         /* net pay / positive, light surfaces */
  --pd-money-soft: #E7F6F0;
  --pd-logo-green: #4ade80;    /* wordmark 360 on navy only - matches app icon, LOCKED */

  /* Status */
  --pd-warn: #B97A1A;
  --pd-warn-soft: #FBF1DC;
  --pd-danger: #C2554F;
  --pd-danger-soft: #FBEAE9;

  /* Radii */
  --pd-r-chip: 999px;
  --pd-r-input: 12px;
  --pd-r-card: 14px;
  --pd-r-panel: 20px;

  /* Shadows */
  --pd-shadow-card: 0 1px 3px rgba(11,53,80,0.06);
  --pd-shadow-float: 0 10px 30px rgba(11,53,80,0.25);

  /* Type */
  --pd-font-display: 'Archivo', -apple-system, sans-serif;
  --pd-font-body: 'Barlow', -apple-system, sans-serif;
  --pd-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
/* ===================== END DESIGN TOKENS ===================== */

* {margin:0;padding:0;box-sizing:border-box;}
body {
  font-family:var(--pd-font-body), -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--pd-bg);
  color:var(--pd-ink);
  line-height:1.5;
  touch-action:manipulation;
  -webkit-text-size-adjust:100%;
  min-height:100vh;
}
/* Fix gradient on mobile - iOS doesn't support background-attachment:fixed */
@media (max-width: 768px) {
  body {
    background: var(--pd-bg);
  }
}
.header {background:none;padding:16px 18px;position:relative;z-index:600;}
/* Master logo class - used everywhere */
.pd-logo {font-weight:400;letter-spacing:4px;color:#fff;white-space:nowrap;}
.pd-logo .green {color:#4ade80;}
.pd-logo .degree {display:inline-block;position:relative;top:-0.55em;margin-left:0.02em;width:0.22em;height:0.22em;}
@keyframes sheen {0%,100%{stroke-opacity:0.7;}50%{stroke-opacity:1;}}
.pd-logo .degree circle {animation:sheen 2.9s ease-in-out infinite;}
.profile-menu {position:absolute;top:8px;right:28px;}
.hamburger-btn {background:none;border:none;cursor:pointer;padding:8px;-webkit-tap-highlight-color:transparent;transition:transform 0.15s ease;}
.hamburger-btn:active {transform:scale(0.92);}
.hamburger-icon {width:22px;height:18px;}
.hamburger-icon svg {width:100%;height:100%;}
/* Hide old dropdown - replaced by slide panel */
.profile-dropdown {display:none !important;}
/* Slide-out Profile Panel */
.profile-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2999;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.profile-panel-overlay.show {
  display: block;
  opacity: 1;
}
.profile-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  /* Match header - dark teal gradient */
  background: #FFFFFF;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(11,53,80,0.18);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.profile-panel.show {
  right: 0;
}
.profile-panel-header {
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-panel-title {
  color: var(--pd-ink);
  font-size: 18px;
  font-weight: 600;
}
.profile-panel-close {
  background: none;
  border: none;
  color: #7E99A8;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.profile-panel-close:hover {
  background: #EFF5F8;
  color: var(--pd-ink);
}
.profile-panel-email {
  padding: 12px 20px 16px;
  color: #5B7A8C;
  font-size: 13px;
}
.profile-panel-email strong {
  display: block;
  color: var(--pd-brand);
  font-size: 14px;
  margin-top: 4px;
  word-break: break-all;
}
.profile-panel-content {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.profile-panel-content::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}
.profile-panel-status {
  margin: 8px 16px 16px;
  padding: 16px;
  border-radius: 12px;
  background: #E3F5FA;
  border: 1px solid #B9D6E3;
}
/* Beta: Cyan (brand) */
.profile-panel-status.beta {
  background: #F4FAFC;
  border: 1px solid var(--pd-brand);
}
.profile-panel-status.beta .profile-status-badge svg { fill: var(--pd-brand); }
.profile-panel-status.beta .profile-status-badge span { color: var(--pd-brand); }

/* Trial: Amber (urgency) */
.profile-panel-status.trial {
  background: #F4FAFC;
  border: 1px solid var(--pd-warn);
}
.profile-panel-status.trial .profile-status-badge svg { stroke: var(--pd-warn); fill: none; }
.profile-panel-status.trial .profile-status-badge span { color: var(--pd-warn); }
.profile-panel-status.trial .profile-status-progress-fill { background: var(--pd-warn); }
.profile-panel-status.trial .profile-status-btn { background: var(--pd-warn); color: #FFFFFF; }
.profile-panel-status.trial .profile-status-btn:hover { background: #8F5E14; }

/* Active: Light Green (success) */
.profile-panel-status.active {
  background: #F4FAFC;
  border: 1px solid var(--pd-money);
}
.profile-panel-status.active .profile-status-badge svg { fill: var(--pd-money); stroke: none; }
.profile-panel-status.active .profile-status-badge span { color: var(--pd-money); }
.profile-panel-status.active .profile-status-btn { 
  background: #E7F6F0; 
  color: var(--pd-money); 
  border: 1px solid var(--pd-money); 
}
.profile-panel-status.active .profile-status-btn:hover { background: #D5EEE2; }

/* Expired: Red (danger) */
.profile-panel-status.expired {
  background: #F4FAFC;
  border: 1px solid #C2554F;
}
.profile-panel-status.expired .profile-status-badge svg { stroke: #C2554F; fill: none; }
.profile-panel-status.expired .profile-status-badge span { color: #C2554F; }
.profile-panel-status.expired .profile-status-btn { background: #C2554F; color: white; }
.profile-panel-status.expired .profile-status-btn:hover { background: #C2554F; }

.profile-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.profile-status-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--pd-brand);
}
.profile-status-badge span {
  color: var(--pd-brand);
  font-size: 15px;
  font-weight: 700;
}
.profile-status-detail {
  color: #42606F;
  font-size: 13px;
  font-weight: 500;
}
.profile-status-progress {
  margin-top: 10px;
  height: 4px;
  background: #E4EEF3;
  border-radius: 2px;
  overflow: hidden;
}
.profile-status-progress-fill {
  height: 100%;
  background: var(--pd-brand);
  border-radius: 2px;
  transition: width 0.3s;
}
.profile-status-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: var(--pd-brand);
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-status-btn:hover {
  background: #065E75;
  transform: translateY(-2px);
}
.profile-status-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.profile-panel-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--pd-ink);
  padding: 14px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.profile-panel-btn:hover {
  background: #E2ECF1;
}
.profile-panel-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--pd-brand);
  fill: none;
  stroke-width: 2;
}
.profile-panel-divider {
  height: 1px;
  background: #EFF5F8;
  margin: 8px 16px;
}
.profile-panel-footer {
  padding: 12px 0;
}
.profile-panel-btn.danger {
  color: var(--pd-ink);
}
.profile-panel-btn.danger svg {
  stroke: var(--pd-brand);
}
.profile-panel-btn.danger:hover {
  background: #EEF9FC;
}
/* ===== MY ACCOUNT PANEL ===== */
.my-account-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 2999; opacity: 0; transition: opacity 0.4s ease-out;
}
.my-account-overlay.show { display: block; opacity: 1; }
.my-account-panel {
  position: fixed; top: 0; right: -340px; width: 320px; height: 100%;
  background: #FFFFFF;
  z-index: 3000; display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(11,53,80,0.18);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden; border-radius: 16px 0 0 16px;
}
.my-account-panel.show { right: 0; }
.my-account-header {
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #E2ECF1;
}
.my-account-back {
  width: 34px; height: 34px; background: #E2ECF1;
  border: 1px solid #EAF2F6; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--pd-brand); transition: background 0.15s;
}
.my-account-back:hover { background: #EAF2F6; }
.my-account-title { font-size: 18px; font-weight: 700; color: var(--pd-ink); }
.my-account-content {
  flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch;
}
.my-account-content::-webkit-scrollbar { width: 0; }
.my-account-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
  color: #42606F; margin: 20px 0 8px 4px;
}
.my-account-section-label:first-child { margin-top: 0; }
.my-account-card {
  background: #F4FAFC;
  border: 1px solid #EAF2F6; border-radius: 12px; overflow: hidden;
  margin-bottom: 4px;
}
.my-account-profile-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
}
.my-account-avatar {
  width: 46px; height: 46px; background: var(--pd-brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--pd-ink); flex-shrink: 0;
}
.my-account-profile-info { flex: 1; min-width: 0; }
.my-account-name { font-size: 16px; font-weight: 600; color: var(--pd-ink); }
.my-account-email { font-size: 12px; color: var(--pd-brand); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-account-edit-btn {
  padding: 7px 16px; background: #E2ECF1;
  border: 1px solid #E4EEF3; border-radius: 8px;
  color: #065E75; font-size: 13px; font-weight: 500; cursor: pointer; flex-shrink: 0;
}
.my-account-edit-btn:hover { background: #EAF2F6; }
.my-account-empty { text-align: center; padding: 24px 16px; }
.my-account-ticket {
  padding: 14px; border-bottom: 1px solid #EDF3F6;
}
.my-account-ticket:last-child { border-bottom: none; }
.my-account-ticket-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.my-account-ticket-paycheck { font-size: 13px; font-weight: 600; color: var(--pd-ink); }
.my-account-ticket-badge {
  font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.my-account-ticket-badge.submitted { background: rgba(251,191,36,0.15); color: var(--pd-warn); }
.my-account-ticket-badge.reviewed { background: rgba(59,130,246,0.15); color: #60a5fa; }
.my-account-ticket-badge.resolved { background: rgba(34,197,94,0.15); color: var(--pd-money); }
.my-account-ticket-date { font-size: 11px; color: #7E99A8; }
.my-account-ticket-response {
  margin-top: 8px; padding: 8px 10px;
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.12);
  border-radius: 8px; font-size: 11px; color: #5B7A8C; line-height: 1.5;
}
.my-account-ticket-response-label {
  font-size: 9px; font-weight: 700; color: var(--pd-money);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;
}
.my-submissions-resolved-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-top: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #93AEBC;
  border-top: 1px solid #EDF3F6;
}
.my-submissions-resolved-toggle:hover { color: #5B7A8C; }
.my-submissions-pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 14px 4px; font-size: 12px; color: #A9BFC9;
}
.my-submissions-pagination button {
  padding: 4px 12px; background: #EDF3F6;
  border: 1px solid #EFF5F8; border-radius: 6px;
  color: #7E99A8; font-size: 11px; cursor: pointer;
}
.my-submissions-pagination button:hover:not(:disabled) {
  background: #EFF5F8; color: #42606F;
}
.my-submissions-pagination button:disabled {
  opacity: 0.3; cursor: default;
}
.my-account-support-active {
  display: flex; align-items: center; justify-content: space-between; padding: 14px;
}
.my-account-support-card-tint {
  background: linear-gradient(135deg, rgba(34,211,238,0.12) 0%, rgba(34,211,238,0.06) 100%) !important;
  border-color: rgba(34,211,238,0.20) !important;
}
.my-account-support-label { font-size: 14px; font-weight: 600; color: var(--pd-ink); }
.my-account-support-dot {
  width: 8px; height: 8px; background: var(--pd-brand); border-radius: 50%;
  display: inline-block; margin-right: 8px; animation: accountPulse 2s infinite;
}
@keyframes accountPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.my-account-support-timer { font-size: 12px; color: #7E99A8; margin-top: 2px; }
.my-account-revoke-btn {
  padding: 7px 14px; background: #FBEAE9;
  border: 1px solid rgba(239,68,68,0.25); border-radius: 8px;
  color: #C2554F; font-size: 12px; font-weight: 600; cursor: pointer;
}
.my-account-revoke-btn:hover { background: rgba(239,68,68,0.2); }
.my-account-support-inactive { text-align: center; padding: 18px 14px; }
.my-account-spinner {
  width: 24px; height: 24px; margin: 4px auto;
  border: 3px solid #EFF5F8;
  border-top-color: var(--pd-brand);
  border-radius: 50%;
  animation: accountSpin 0.6s linear infinite;
}
@keyframes accountSpin { to { transform: rotate(360deg); } }
.my-account-grant-btn {
  margin-top: 12px; padding: 9px 20px;
  background: #EEF9FC; border: 1px solid rgba(34,211,238,0.25);
  border-radius: 8px; color: var(--pd-brand); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.my-account-grant-btn:hover { background: #E3F5FA; }
.my-account-danger-card {
  background: linear-gradient(135deg, #FBEAE9 0%, rgba(239,68,68,0.08) 100%);
  border: 1px solid rgba(239,68,68,0.28); border-radius: 12px; padding: 14px;
}
.my-account-danger-row { display: flex; align-items: center; justify-content: space-between; }
.my-account-danger-btn {
  padding: 8px 18px; background: transparent;
  border: 1px solid rgba(239,68,68,0.35); border-radius: 8px;
  color: #C2554F; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.my-account-danger-btn:hover { background: #FBEAE9; }
/* ===== END MY ACCOUNT PANEL ===== */
.profile-email {padding:16px 18px;font-size:14px;color:var(--pd-ink);font-weight:400;background:#F4FAFC;border-radius:16px 16px 0 0;}
.profile-email strong {font-weight:500;color:var(--pd-ink);}
.profile-name-row {display:flex;align-items:center;gap:6px;margin-bottom:4px;}
.profile-name-row span {color:var(--pd-money);font-weight:500;}
.edit-name-btn {background:none;border:none;padding:2px;cursor:pointer;opacity:0.6;transition:opacity 0.15s;display:inline-flex;align-items:center;}
.edit-name-btn:hover {opacity:1;}
.edit-name-btn svg {width:14px;height:14px;stroke:var(--pd-money);fill:none;stroke-width:2;}
.profile-dropdown button {width:100%;background:transparent;border:none;color:#1e293b;padding:14px 18px;text-align:left;cursor:pointer;font-size:14px;transition:background 0.15s;font-weight:500;display:flex;align-items:center;}
.profile-dropdown button:hover {background:rgba(7,64,104,0.06);}
.profile-dropdown button.danger {color:#C2554F;font-weight:500;}
.profile-dropdown button.danger:hover {background:rgba(239,68,68,0.08);}
#adminPanelBtn {display:none;} /* Hidden by default, shown for admin */
.subscription-box {margin:8px 12px;padding:16px;border-radius:12px;text-align:left;border:2px solid #cbd5e1;background:#f8fafc;position:relative;overflow:hidden;}
.subscription-box::before {content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#94a3b8,#cbd5e1);}
.subscription-box.trial {background:linear-gradient(135deg,#e8f4f8 0%,#d4edee 100%);border-color:#17a2b8;}
.subscription-box.trial::before {background:linear-gradient(90deg,#17a2b8,#20c997);}
.subscription-box.warning {background:linear-gradient(135deg,#fff8e6 0%,#ffecb3 100%);border-color:#f5a623;}
.subscription-box.warning::before {background:linear-gradient(90deg,#f5a623,#ff8c00);}
.subscription-box.expired {background:linear-gradient(135deg,#fef2f2 0%,#fecaca 100%);border-color:#dc3545;}
.subscription-box.expired::before {background:linear-gradient(90deg,#dc3545,#b02a37);}
.subscription-box.active {background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 100%);border-color:#10b981;}
.subscription-box.active::before {background:linear-gradient(90deg,#10b981,#059669);}
.subscription-status {font-size:15px;font-weight:700;margin-bottom:4px;display:flex;align-items:center;gap:8px;margin-top:4px;}
.subscription-status svg {width:18px;height:18px;flex-shrink:0;}
.subscription-status.trial {color:#0d6570;}
.subscription-status.warning {color:#b86e00;}
.subscription-status.expired {color:#9b2c2c;}
.subscription-status.active {color:#E7F6F0;}
.subscription-days {font-size:13px;color:#1e293b;margin-bottom:8px;font-weight:500;}
.subscription-subtext {font-size:13px;color:#E7F6F0;font-weight:500;margin-bottom:10px;}
.subscription-progress {background:#b8d4d8;border-radius:4px;height:6px;margin-bottom:14px;overflow:hidden;}
.subscription-progress-fill {height:100%;border-radius:4px;transition:width 0.3s ease;}
.subscription-box.trial .subscription-progress {background:#b8d4d8;}
.subscription-box.trial .subscription-progress-fill {background:linear-gradient(90deg,#17a2b8,#20c997);}
.subscription-box.warning .subscription-progress {background:#e6d5a8;}
.subscription-box.warning .subscription-progress-fill {background:linear-gradient(90deg,#f5a623,#ff8c00);}
.subscription-btn {width:100%;background:var(--pd-brand);color:#FFFFFF;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.2s;text-align:center;box-shadow:0 2px 8px rgba(23,162,184,0.3);}
.subscription-btn:hover {transform:translateY(-1px);box-shadow:0 4px 12px rgba(23,162,184,0.4);}
.subscription-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.subscription-btn.warning {background:linear-gradient(135deg,#f5a623 0%,#e67e00 100%);box-shadow:0 2px 8px rgba(245,166,35,0.4);}
.subscription-btn.warning:hover {box-shadow:0 4px 12px rgba(245,166,35,0.5);}
.subscription-btn.expired {background:linear-gradient(135deg,#dc3545 0%,#b02a37 100%);box-shadow:0 2px 8px rgba(220,53,69,0.35);}
.subscription-btn.expired:hover {box-shadow:0 4px 12px rgba(220,53,69,0.45);}
.subscription-btn.manage {background:linear-gradient(135deg,#10b981 0%,#059669 100%);box-shadow:0 2px 8px rgba(16,185,129,0.3);}
.subscription-btn.manage:hover {box-shadow:0 4px 12px rgba(16,185,129,0.4);}

/* Stats grid - unified auto-fit responsive */
/* ============ DASHBOARD TOGGLE ============ */
.dashboard-section {
  margin-bottom: 8px;
}
.dashboard-section.collapsed {
  margin-bottom: 0;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.dashboard-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-ink-2);
  text-transform: none;
  letter-spacing: 0.3px;
}
.dashboard-chevron {
  width: 22px;
  height: 22px;
  stroke: var(--pd-ink-2);
  transition: transform 0.3s ease;
}
.dashboard-header.collapsed .dashboard-chevron {
  transform: rotate(-90deg);
}
.dashboard-content {
  max-height: 1000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.dashboard-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ========== SYSTEM STATUS SECTION ========== */
.status-overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.status-dot.amber {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.status-label.green {
  color: #4ade80;
}

.status-label.amber {
  color: #fbbf24;
}

.status-chevron {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  transition: transform 0.3s ease;
}

.status-header.collapsed .status-chevron {
  transform: rotate(-90deg);
}

/* Off-Cycle Pay / YTD Adjust Pill Button */
.offcycle-pill-btn {
  display: none; /* retired - Pay Adjustments now lives in both menus */
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid #074068;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.offcycle-pill-btn:hover {
  background: #22d3ee;
  color: #074068;
  border-color: #074068;
}

.offcycle-pill-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.status-content {
  max-height: 1000px;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  padding: 8px 16px;
  margin: 0;
}

.status-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Primary Update Card (Yellow - elevated) */
.update-card-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #22d3ee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
}

.update-card-primary .card-title {
  font-size: 15px;
  font-weight: 700;
  color: #074068;
  margin-bottom: 10px;
}

.update-card-primary .card-body {
  font-size: 13px;
  color: #074068;
  line-height: 1.5;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  display: block;
}

.update-card-primary .card-secondary {
  font-size: 13px;
  color: #074068;
  margin-bottom: 14px;
  font-style: italic;
  opacity: 0.8;
}

.update-card-primary .card-btn {
  background: #22d3ee;
  color: #074068;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.update-card-primary .card-btn:hover {
  background: #06b6d4;
}

/* Secondary Update Card (Gray - flat) */
.update-card-secondary {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.update-card-secondary .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.update-card-secondary .card-body {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.update-card-secondary .card-btn {
  background: #64748b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.update-card-secondary .card-btn:hover {
  background: #475569;
}

/* Toggle Switch (iOS-style) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #0d9488;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.stats {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:10px;
  width:100%;
  font-size:14px;
  margin-bottom:0;
}

.stat {
  background: var(--pd-card);
  padding:11px 14px;
  border-radius:var(--pd-r-card);
  border:1px solid var(--pd-line);
  box-shadow:var(--pd-shadow-card);
  transition:transform 0.2s,box-shadow 0.2s;
  grid-column:auto;
  min-width:0;
  width:auto;
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  font-family:var(--pd-font-display);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}
.stat.maxed {
  background: var(--pd-money-soft);
  border-color: #BCE3D2;
}
.stat:hover {transform:translateY(-2px);box-shadow:0 4px 10px rgba(11,53,80,0.1);}
.footer-link {color:#074068;text-decoration:none;margin:0 12px;font-weight:500;transition:transform 0.15s ease;display:inline-block;}
.footer-link:hover {transform:translateY(-2px);}
.stat {color:var(--pd-ink-2);}
.stat strong {color:var(--pd-ink);font-size:20px;font-weight:700;letter-spacing:-0.3px;text-transform:none;font-variant-numeric:tabular-nums;line-height:1.05;}
.stat.maxed strong {color:var(--pd-ink);}
/* Next Check hero (Phase 3b) */
#nextCheckStat {grid-column:1 / -1;order:-1;border-top:3px solid var(--pd-brand);padding-bottom:14px;}
#nextCheckStat strong {font-size:26px;}
#nextCheckStat .nc-chip {position:absolute;top:16px;right:14px;background:none;color:var(--pd-ink);font-family:var(--pd-font-display);font-size:11px;font-weight:800;letter-spacing:0.4px;padding:0;text-transform:none;text-align:right;line-height:1.6;}
#nextCheckStat .nc-runway-wrap {display:flex;align-items:center;gap:6px;width:100%;margin-top:8px;}
#nextCheckStat .nc-runway {flex:1 1 auto;height:5px;border-radius:3px;background:#E4EEF3;position:relative;overflow:hidden;}
#nextCheckStat .nc-runway i {position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:3px;background:var(--pd-brand);transition:width 0.4s ease;}
/* Ledger info icons pin to card corner, tap target preserved */
.stats .stat .stat-info-icon {position:absolute;top:2px;right:2px;margin:0 !important;padding:10px;}
.ytd-note {font-size:11px;color:var(--pd-sub);margin-left:0;font-weight:600;letter-spacing:0;text-transform:none;}
.info-icon {cursor:pointer;margin-left:4px;color:#074068;opacity:0.8;display:inline-flex;align-items:center;padding:4px;vertical-align:middle;}
.info-icon:hover {opacity:1;}

/* Larger tap targets for info icons on mobile */
.stat-info-icon,
.pretax-info-icon,
.aftertax-info-icon,
.rotation-info-icon,
.vacation-info-icon,
.floating-info-icon,
.sick-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: -8px;
  margin-left: -2px;
}

.container {max-width:1400px;margin:0 auto;padding:0 20px 20px 20px;}
@media (max-width:480px) {.container {padding:12px;}}
.tab-content {display:none;opacity:0;}
.tab-content.active {display:block;animation:fadeIn 0.4s ease-out forwards;}
.tab-content.fade-out {display:block;animation:fadeOut 0.25s ease-out forwards;}
@keyframes fadeIn {from {opacity:0;} to {opacity:1;}}
@keyframes fadeOut {from {opacity:1;} to {opacity:0;}}
#paychecks-tab, #calendar-tab {margin-top:12px;}
#calendar-tab {padding-bottom:80px;}
.toggle-arrow {display:inline-block;transition:transform 0.3s ease;margin-left:4px;}
.toggle-arrow.expanded {transform:rotate(90deg);}

/* ============ MIDDLE NAV BAR ============ */
.middle-nav {display:none;} /* HIDDEN - replaced by bottom nav + radial menu */
/* OLD: .middle-nav {display:flex;align-items:stretch;gap:10px;padding:12px 20px;position:relative;} */
.nav-pills {flex:1;display:flex;background:rgba(255,255,255,0.95);border-radius:12px;padding:4px;box-shadow:0 4px 20px rgba(0,0,0,0.06);border:1px solid rgba(7,64,104,0.08);}
.nav-item {flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:none;background:transparent;border-radius:8px;cursor:pointer;transition:all 0.2s;color:#64748b;font-family:inherit;font-size:14px;font-weight:600;letter-spacing:0.3px;}
.nav-item.active {background:#334155;color:#ffffff;}
.nav-item.active svg {stroke:#22d3ee;}
.nav-item svg {width:18px;height:18px;}
.nav-item span {font-size:14px;font-weight:600;letter-spacing:0.3px;}
.nav-item:not(.active):hover {background:rgba(7,64,104,0.08);color:#074068;}
.options-btn {width:44px;align-self:stretch;border-radius:10px;background:rgba(255,255,255,0.95);border:1px solid rgba(7,64,104,0.08);box-shadow:0 4px 20px rgba(0,0,0,0.06);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;color:#074068;}
.options-btn:hover {background:#334155;color:#ffffff;}
.options-btn svg {width:20px;height:20px;}
.options-btn.ai-btn {background:rgba(255,255,255,0.95);color:var(--pd-brand);}
.options-btn.ai-btn:hover {background:#334155;color:#22d3ee;}

/* Options Panel */
.options-panel {display:none;position:absolute;top:80px;right:20px;width:280px;background:linear-gradient(180deg, #e8f4f8 0%, #f8fdfe 50%, #ffffff 100%);border-radius:16px;box-shadow:0 12px 48px rgba(7,64,104,0.18);border:1px solid rgba(7,64,104,0.12);overflow:hidden;z-index:100;}
.options-panel::before {content:'';display:block;height:8px;background:linear-gradient(135deg,#0f4c5c 0%,#1a6b7c 100%);border-radius:16px 16px 0 0;}
.options-panel.show {display:block;animation:optionsSlideIn 0.25s ease-out;}
@keyframes optionsSlideIn {from{opacity:0;transform:translateX(20px);}to{opacity:1;transform:translateX(0);}}
.options-section {padding:8px 0;}
.options-section:not(:last-child) {border-bottom:1px solid #cbd5e1;}
.options-header {display:inline-block;margin:12px 18px 8px;padding:6px 14px;font-size:11px;font-weight:700;color:#ffffff;background:#334155;border-radius:6px;letter-spacing:0.5px;}
.options-item {display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:15px;font-weight:600;color:#1e293b;cursor:pointer;transition:background 0.15s;}
.options-item:hover {background:rgba(7,64,104,0.06);}
.options-item .value {font-weight:600;font-size:12px;color:#64748b;background:#e2e8f0;padding:4px 10px;border-radius:4px;}
.options-item .value.active {color:var(--pd-brand);background:#e8f7fa;}
.options-item .arrow {color:#64748b;font-size:16px;font-weight:600;}

.section {padding:0;margin-top:16px !important;margin-bottom:16px !important;background:transparent;}
.paycheck-section {padding:0;margin-bottom:20px;background:transparent;}
@media (max-width:480px) {.section {padding:4px;}}
h2 {color:#074068;margin-bottom:16px;font-size:22px;font-weight:700;margin-top:32px;}
.grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px;}
#floatedHolidaysDetails {grid-column:1 / -1;}
.field {display:flex;flex-direction:column;gap:6px;}
.field label {font-size:12px;color:#334155;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;}
.field input,.field select {background:var(--pd-input-card);border:1px solid #B9D6E3;color:#1f2937;padding:8px 10px;border-radius:6px;font-size:15px;font-weight:600;transition:border 0.2s;}
.field input::placeholder {color:#1f2937;opacity:1;font-weight:600;}
.field input:focus,.field select:focus {outline:none;border-color:#4fc3f7;box-shadow:0 0 0 3px rgba(79,195,247,0.2);}

/* Deduction Line Items */
.deduction-box {background:#fff;border:1px solid #B9D6E3;border-radius:6px;padding:6px 10px;min-height:36px;}
.deduction-empty {display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#64748b;font-style:italic;}
.deduction-list {}
.deduction-item {display:flex;align-items:center;justify-content:space-between;padding:2px 0;font-size:13px;}
.deduction-item-amount {color:#1e3a4c;font-weight:600;font-variant-numeric:tabular-nums;}
.deduction-item-delete {color:#ef4444;cursor:pointer;font-size:14px;padding:0 4px;opacity:0.6;background:none;border:none;line-height:1;}
.deduction-item-delete:hover {opacity:1;}
.deduction-total {display:flex;align-items:center;padding-top:4px;margin-top:2px;border-top:1px solid #e2e8f0;font-size:12px;}
.deduction-total-label {color:#64748b;font-weight:500;}
.deduction-total-amount {color:#0e4a5c;font-weight:700;font-variant-numeric:tabular-nums;margin-left:4px;}
.deduction-add-btn {width:20px;height:20px;border-radius:50%;background:#0e7490;color:#fff;border:none;font-size:14px;font-weight:bold;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-left:auto;line-height:1;padding:0;}
.deduction-add-btn:hover {background:#0c5f73;}
.deduction-add-row {display:flex;align-items:center;gap:4px;padding-top:4px;}
.deduction-add-row input {width:70px;padding:4px 6px;font-size:13px;border:1px solid #0e7490;border-radius:4px;background:#f0fdfa;}
.deduction-add-row button {padding:4px 8px;font-size:11px;font-weight:600;background:#0e7490;color:#fff;border:none;border-radius:4px;cursor:pointer;}
.deduction-add-row button:hover {background:#0c5f73;}
.deduction-cancel-btn {background:#e2e8f0 !important;color:#64748b !important;padding:4px 6px !important;}
.deduction-cancel-btn:hover {background:#cbd5e1 !important;color:#475569 !important;}

.btn {background:linear-gradient(135deg,#4fc3f7 0%,#29b6f6 100%);color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:transform 0.2s,box-shadow 0.2s;box-shadow:0 4px 12px rgba(79,195,247,0.3);}
.btn-dark-blue {background:#074068;color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 6px rgba(7,64,104,0.3);}
.btn-dark-blue:hover {background:#065C94;transform:translateY(-2px);box-shadow:0 4px 12px rgba(7,64,104,0.4);}
.btn-dark-blue:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.btn:hover {transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.15);}
.btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.btn-secondary {background:#2a4a6f;box-shadow:none;}
.btn-secondary:hover {background:#34597f;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,0.15);}
.btn-secondary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
table {width:100%;border-collapse:collapse;margin-top:20px;}
th {background:#ffffff;color:#074068;padding:12px 8px;text-align:left;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;border-bottom:2px solid #cbd5e1;}
td {padding:10px 8px;border-bottom:1px solid #e2e8f0;font-size:14px;}
td input {width:80px;background:var(--pd-input-card);border:1px solid #B9D6E3;color:#1f2937;padding:6px;border-radius:4px;text-align:center;font-weight:600;}
td input::placeholder {color:#1f2937;opacity:1;font-weight:600;}
td input:focus {outline:none;border-color:#4fc3f7;}
.holiday-cell {text-align:center;font-size:20px;cursor:pointer;transition:transform 0.2s;}
.holiday-cell:hover {transform:scale(1.1);box-shadow:0 2px 6px rgba(0,0,0,0.15);}
.gear-icon {cursor:pointer;font-size:16px;opacity:1;transition:all 0.2s;display:inline-block;color:#074068;}
.header-gear {cursor:pointer;font-size:20px;color:#FFB703;opacity:1;margin-left:8px;transition:all 0.2s;}
.header-gear:hover {opacity:1;transform:scale(1.15);color:#FFC933;}

.gear-icon:hover {transform:scale(1.15);color:#4FC3F7;}
.text-right {text-align:right;}
.tax-rate-cell {text-align:center;font-size:13px;font-weight:600;}
.tax-warning {color:#fbbf24;}
.tax-danger {color:#ef4444;}
.loading {text-align:center;padding:40px;font-size:18px;color:var(--pd-brand-deep);}
.spinner {width:50px;height:50px;margin:0 auto 20px;border:4px solid #D6EAF2;border-top:4px solid var(--pd-brand);border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
#loadingText {font-size:16px;color:var(--pd-ink-2);font-weight:600;}
/* Auth Splash Screen */
#authSplash {position:fixed;top:0;left:0;right:0;bottom:0;background:#F4F8FA;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;}
#authSplash .splash-logo {font-size:28px;margin-bottom:16px;}
#authSplash .pd-logo {color:var(--pd-ink);}
#authSplash .pd-logo .green {color:var(--pd-money);}
#authSplash .splash-spinner {width:40px;height:40px;border:3px solid #D6EAF2;border-top:3px solid var(--pd-brand);border-radius:50%;animation:spin 1s linear infinite;}
#authSplash.fade-out {opacity:0;transition:opacity 0.3s ease;pointer-events:none;}
details {background:#f1f5f9;padding:8px !important;border-radius:6px;margin-bottom:8px !important;border:1px solid #cbd5e1;box-shadow:0 1px 3px rgba(0,0,0,0.06);}
summary {cursor:pointer;font-weight:700;color:#074068;padding:4px;user-select:none;transition:all 0.2s;}

/* Restore rounded corners */
details:not(#ytdDetails):not(#floatedHolidaysDetails),
details:not(#ytdDetails):not(#floatedHolidaysDetails) > summary,
.subsection,
.step-card,
.setup-block,
.marker-block,
.setup-section,
.marker-section {
  border-radius: 12px !important;
}

/* ============================================================================
   STEP CARD STYLES - Professional Two-Step Setup Flow
   ============================================================================ */
/* ===== Setup Card ===== */
.setup-card {
  margin-bottom: 12px !important;
  border-radius: 12px 12px 0 0 !important;
  overflow: visible;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: transparent;
  position: relative;
  max-width: fit-content;
}

/* Setup Panel - headerless version */
.setup-panel {
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  box-shadow: var(--pd-shadow-card);
  position: relative;
}

.setup-panel.collapsed {
  display: none;
}

.setup-panel .setup-content {
  display: block;
  padding: 20px 24px 24px 24px;
}

/* Close button for panels */
.panel-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
}
.panel-close-btn:hover {
  background: #334155;
  color: #22d3ee;
}
.panel-close-btn:active {
  transform: scale(0.95);
}
.panel-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Override for panel-close-btn inside setup-top-row (not absolute) */
.setup-top-row .panel-close-btn {
  position: static;
}

/* Save Changes Button - Top (appears left of X when changes detected) */
.save-btn-top {
  height: 32px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.save-btn-top:hover {
  background: #b91c1c;
}
.save-btn-top:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.save-btn-top.show {
  display: flex;
  align-items: center;
}

/* After build: dimmed state, activates on changes */
.setup-panel.build-complete .save-btn-top,
.setup-panel.build-complete .save-btn-bottom {
  display: flex;
  align-items: center;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.setup-panel.build-complete .save-btn-top.active,
.setup-panel.build-complete .save-btn-bottom.active {
  opacity: 1;
  pointer-events: auto;
  animation: subtle-pulse 2s ease-in-out infinite;
}
.setup-panel.build-complete .pending-text-top,
.setup-panel.build-complete .pending-changes-text {
  display: flex;
  align-items: center;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.setup-panel.build-complete .pending-text-top.active,
.setup-panel.build-complete .pending-changes-text.active {
  opacity: 1;
}
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3); }
}

/* Save Changes Button - Bottom */
.save-btn-bottom {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: none;
}
.save-btn-bottom:hover {
  background: #b91c1c;
}
.save-btn-bottom:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.save-btn-bottom.show {
  display: flex;
  align-items: center;
}

/* Pending changes text - Bottom */
.pending-changes-text {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  display: none;
  align-items: center;
}
.pending-changes-text.show {
  display: flex;
}

/* Close button - Bottom (matches top X style) */
.close-btn-bottom {
  width: 32px;
  height: 32px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}
.close-btn-bottom:hover {
  background: #334155;
  color: #22d3ee;
}
.close-btn-bottom:active {
  transform: scale(0.95);
}
.close-btn-bottom svg {
  width: 18px;
  height: 18px;
}
.close-btn-bottom.show {
  display: flex;
}

/* Pending changes text - Top */
.pending-text-top {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  height: 32px;
}
.pending-text-top.show {
  display: flex;
}

/* Setup top row - controls */
.setup-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0 16px;
}

/* Setup title row */
.setup-title {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #0e4a5c;
  margin: 0;
  padding: 4px 16px 8px 16px;
  text-align: center;
}
.setup-title strong {
  font-weight: 600;
}

/* Left accent bar */
.setup-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #4FC3F7, #0277BD);
  border-radius: 6px 0 0 0;
  opacity: 0.7;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.setup-card:hover::before,
.setup-card:not(.collapsed)::before {
  opacity: 1;
  border-radius: 6px 0 0 0;
}

.setup-header {
  padding: 6px 14px !important;
  background: #f1f5f9;
  color: #074068;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  user-select: none;
  border-radius: 0 8px 0 0 !important;
  margin-left: 6px;
}

/* When collapsed, header gets rounded top-right only, bottom stays square */
.setup-card.collapsed .setup-header {
  border-radius: 0 8px 0 0 !important;
}

.setup-header:hover {
  background: #e2e8f0;
}

.setup-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.setup-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

/* Warning state when changes are pending - shows in subtitle */
.setup-subtitle.warning {
  color: #ef4444;
  font-weight: 400;
  opacity: 1;
}

.collapse-icon {
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #074068;
}

/* Collapsed: arrow points right */
.setup-card.collapsed .collapse-icon {
  transform: rotate(0deg);
}

/* Expanded: arrow points down */
.setup-card:not(.collapsed) .collapse-icon {
  transform: rotate(90deg);
}

.setup-content {
  padding: 20px 24px 24px 24px;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 0;
  margin-top: 0;
  margin-left: 0;
}

.setup-card.collapsed .setup-content {
  display: none;
}

/* ===== Setup Content Section Headers ===== */
.setup-content .section-header {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #053847;
  background: none;
  margin: 16px 0 12px 0 !important;
  padding: 0 0 8px 0;
  border-radius: 0;
  border-bottom: none;
  position: relative;
}
.setup-content .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65%;
  height: 3px;
  background: rgba(34, 211, 238, 0.85);
}

.setup-content .section-header:first-child {
  margin-top: 0 !important;
}

/* ===== Already Earned Income & Holiday Settings - Clean iOS Style ===== */
#ytdDetails,
#floatedHolidaysDetails {
  background: #cef3f7 !important;
  border: 1px solid #a8e8f0 !important;
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Force rounded corners on YTD/Holiday */
details#ytdDetails,
details#floatedHolidaysDetails {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
}

/* Space between title and status */
#holidayStatus {
  margin-left: 6px;
}

#ytdDetails > summary,
#floatedHolidaysDetails > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #22d3ee;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: #334155;
  list-style: none;
  transition: background 0.2s;
  margin: 0;
  border-radius: 8px 8px 0 0;
}

#ytdDetails > summary:hover,
#floatedHolidaysDetails > summary:hover {
  background: #475569;
}

/* Hide default marker */
#ytdDetails > summary::-webkit-details-marker,
#floatedHolidaysDetails > summary::-webkit-details-marker {
  display: none;
}

/* Modern chevron - right aligned */
#ytdDetails > summary::after,
#floatedHolidaysDetails > summary::after {
  content: "›";
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.25s ease;
  margin-left: auto;
}

#ytdDetails[open] > summary::after,
#floatedHolidaysDetails[open] > summary::after {
  transform: rotate(90deg);
}

/* Remove old ::before arrows */
#ytdDetails > summary::before,
#floatedHolidaysDetails > summary::before {
  display: none !important;
}

/* Content area */
#ytdDetails > div,
#floatedHolidaysDetails > div {
  padding: 12px 18px;
  background: #cef3f7;
}

/* ===== FINAL SPACING FIXES ===== */

/* Fix Holiday Settings summary alignment */
#floatedHolidaysSummary {
  text-align: left !important;
}

/* Section header spacing */
/* ===== Info Box ===== */
.info-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #1e40af;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ===== Save Button ===== */
.save-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px !important;
  margin-bottom: 8px !important;
  padding-top: 8px !important;
  border-top: 2px solid #e2e8f0;
}

.save-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: not-allowed;
  transition: all 0.2s;
  background: white;
  color: #94a3b8;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.save-button.active {
  background: #ef4444;
  color: white;
  border: 2px solid #dc2626;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.save-button.active:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ===== Generate Button ===== */
.generate-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 4px 0 0 0;
  padding: 0;
}
.generate-status {
  font-size: 14px;
  font-weight: 500;
  color: #16a34a;
}
.generate-status.pending {
  color: #ef4444;
}
.generate-btn {
  padding: 12px 24px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  animation: build-pulse 2s ease-in-out infinite;
}
@keyframes build-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.3); }
}
.generate-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}
.generate-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.generate-btn:disabled {
  background: rgba(100,116,139,0.5);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  transform: none;
  animation: none;
}

#generateBtn {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Static Rocket - No animations */
.rocket-simple {
  display: inline-block;
  font-size: 18px;
}

/* Refresh emoji - No animations */
.refresh-emoji {
  display: inline-block;
  font-size: 18px;
}

@media (max-width: 480px) {
  .setup-card {
    margin-bottom: 20px;
  }
  .setup-header {
    padding: 16px;
  }
  .setup-title {
    font-size: 18px;
  }
  .setup-subtitle {
    font-size: 13px;
  }
  .setup-content {
    padding: 16px 16px;
  }
  .subsection summary {
    /* NEUTRALIZED - Override Zone controls visuals */
    /* padding: 14px 16px; */
    /* font-size: 15px; */
  }
  .save-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Section Headers Within Steps */
.section-header {
  display:block;
  font-size:20px;
  font-weight:700;
  color:#053847;
  letter-spacing:0.3px;
  margin:16px 0 12px 0 !important;
  padding:0 0 8px 0;
  border-radius:0;
  border-bottom:none;
  background:none;
  position:relative;
}
.section-header::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:65%;
  height:3px;
  background:rgba(34, 211, 238, 0.85);
}
.section-header:first-child {
  margin-top:0;
}

/* Pay Frequency Card */
/* Inner cards with tint background */
.pay-frequency-card,
.setup-inner-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 16px 0;
}
.pay-frequency-title {
  font-size: 15px;
  font-weight: 700;
  color: #074068;
  margin-bottom: 14px;
}

/* Radio Card Styles for Base Hours */
.base-hours-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (max-width:768px) {
  .base-hours-options {grid-template-columns:1fr;}
  
  /* Better spacing for pay frequency config on mobile */
  #semiMonthlyConfig input[type="number"],
  #biweeklyConfig input[type="date"] {
    margin: 2px 3px !important;
  }
  
  #biweeklyConfig input[type="date"] {
    max-width: 160px !important;
    width: 100% !important;
  }
}
.radio-card {
  border: 1px solid #a8e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  min-height: 100px;
  opacity: 0.5;
}
.radio-card:hover {
  border-color: #22d3ee;
  opacity: 0.75;
}
.radio-card.selected {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px #22d3ee;
  opacity: 1;
}
.radio-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #074068;
  margin-bottom: 6px;
}
.radio-card-subtitle {
  font-size: 14px;
  color: #074068;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Generate Button */
.btn-generate {
  width:100%;
  padding:18px 24px;
  background:linear-gradient(135deg,#34d399 0%,#10b981 100%);
  color:white;
  border:none;
  border-radius:12px;
  font-size:17px;
  font-weight:600;
  letter-spacing:0.3px;
  cursor:pointer;
  transition:all 0.25s ease;
  box-shadow:0 2px 8px rgba(16,185,129,0.25), 0 1px 3px rgba(0,0,0,0.1);
}
.btn-generate:hover {
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(16,185,129,0.35), 0 2px 6px rgba(0,0,0,0.1);
  background:linear-gradient(135deg,#4ade80 0%,#22c55e 100%);
}
.btn-generate:active {
  transform:translateY(0);
  box-shadow:0 1px 4px rgba(16,185,129,0.2);
}
@media (max-width:480px) {
  .btn-generate {
    padding:16px 20px;
    font-size:16px;
  }
}

/* Success Modal Animations */
@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
@keyframes popIn {
  from {transform:scale(0.8);opacity:0;}
  to {transform:scale(1);opacity:1;}
}

/* ============================================================================ */

.shadow-paycheck-banner {background:linear-gradient(135deg,#2a4a6f 0%,#1e3a5f 100%);color:#4fc3f7;border-top:3px solid #4fc3f7;font-weight:700;padding:12px;font-size:13px;text-align:center;}
.shadow-paycheck-row {background:rgba(79,195,247,0.05);}
.current-pay-period {background:linear-gradient(90deg,rgba(79,195,247,0.15) 0%,rgba(79,195,247,0.05) 100%);border-left:4px solid #4fc3f7 !important;}

/* CALENDAR GRID - DETERMINISTIC LAYOUT */
/* Year view - fixed columns, clean breakpoints */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 420px);
  gap: 24px;
  margin-top: 16px;
  justify-content: center;
}
@media (max-width: 1400px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 420px);
  }
}
@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}
/* Month view - always centered, readable */
.calendar-grid.month-view {
  grid-template-columns: minmax(420px, 720px);
}
/* All calendar views get percentage-based pills */
.calendar-grid .pill-container {
  left: 0;
  right: 0;
  transform: none;
}
.calendar-grid .calendar-pill {
  width: 85%;
  max-width: none;
}
@media (max-width: 900px) {
  .calendar-grid.month-view {
    grid-template-columns: 1fr;
  }
}

/* CARDS ARE DUMB - Grid decides size */
.month-calendar {
  width: 100%;
  max-width: none;
  transform: none;
  background: white;
  border-radius: 12px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--pd-navy-band);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .month-calendar:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  }
}
.month-calendar.collapsed {display:none;}

.month-name {text-align:left;font-weight:800;font-family:var(--pd-font-display);color:var(--pd-ink);background:linear-gradient(180deg,#FBFEFF,var(--pd-field));padding:12px 16px;border-radius:8px 8px 0 0;margin-bottom:0;font-size:17px;border-bottom:1px solid var(--pd-line);}
.calendar-days {display:grid;grid-template-columns:repeat(7,1fr);gap:1px;min-width:0;padding:12px;overflow:visible;}
@media (max-width:480px) {.calendar-days {gap:1px;padding:6px 8px;}}
.calendar-day-header {text-align:center;font-size:14px;color:#0D2136;padding:4px;font-weight:700;text-shadow:0 0 1px #fff;}
.calendar-day {min-height:88px;min-width:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:12px;font-weight:600;border-radius:8px;cursor:pointer;position:relative;transition:box-shadow 0.2s;padding:4px 2px;overflow:hidden;}
@media (max-width:480px) {.calendar-day {min-height:76px;min-width:42px;padding:2px 0px;}}
.calendar-day:hover {box-shadow:0 4px 12px rgba(0,0,0,0.15);}
.calendar-day.empty {cursor:default;}
.calendar-day.empty:hover {box-shadow:none;}
.calendar-day.off-day {background:#FFFFFF;border:1px solid #E7EEF2;color:var(--pd-sub);}
.calendar-day.work-day {background:#BFEBD5;border:1px solid #8FD9B5;color:#04533C;box-shadow:inset 0 -3px 0 var(--pd-money);}
.calendar-day.vacation {background:#4150FA;border:5px solid #10b981;}
.calendar-day.floating {background:#565DA8;border:5px solid #10b981;}
.calendar-day.sick {background:#E15438;border:5px solid #10b981;}
.calendar-day.xfl {background:#AF45E0;border:5px solid #10b981;}
.calendar-day.dto-work {background:#A99902;border:5px solid #10b981;}
.calendar-day.dto-off {background:#A99902;border:5px solid #d1d5db;}
.calendar-day.overtime {background:#FFB703;border:5px solid #d1d5db;}
.calendar-day.doubletime {background:#FFB703;border:5px solid #d1d5db;}
.calendar-day.dtw-work {background:#B8B405;border:5px solid #10b981;}
.calendar-day.dtw-off {background:#B8B405;border:5px solid #d1d5db;}
.calendar-day.spt-work {background:#01D3EB;border:5px solid #10b981;}
.calendar-day.spt-off {background:#01D3EB;border:5px solid #d1d5db;}
.calendar-day.today {box-shadow:inset 0 0 0 2.5px var(--pd-brand);}
.calendar-day.work-day.today {box-shadow:inset 0 0 0 2.5px var(--pd-brand), inset 0 -3px 0 var(--pd-money);}
/* Calendar date number */
.calendar-date-num {position:absolute;top:3px;left:5px;font-size:15px;font-weight:700;z-index:10;color:#0D2136;text-shadow:none;}
.calendar-day.work-day .calendar-date-num {color:#04533C;font-weight:800;}
.calendar-day.off-day .calendar-date-num {color:#9FB2BD;font-weight:600;}
@media (max-width:767px) {.calendar-date-num {font-size:13px;}}
/* Calendar holiday star */
.calendar-star {position:absolute;top:2px;right:4px;font-size:18px;color:#FFB703;z-index:10;line-height:1;filter:drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);}
@media (max-width:767px) {.calendar-star {top:3px;right:4px;font-size:14px;}}
/* Pill container */
.pill-container {position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:2px;align-items:center;pointer-events:none;z-index:5;}
@media (max-width:767px) {.pill-container {bottom:7px;gap:2px;}}
/* Pills - locked, no scaling */
.calendar-pill {position:relative;width:50px;height:22px;border-radius:4px;font-size:13px;font-weight:700;text-align:center;line-height:22px;letter-spacing:-0.3px;white-space:nowrap;overflow:hidden;flex-shrink:0;align-self:center;margin:0 auto;left:auto;right:auto;}
@media (max-width:480px) {.calendar-pill {font-size:10.5px;padding:2px 6px;line-height:1.1;height:auto;}}
/* Overflow pill */
.calendar-pill-overflow {background:#64748b;color:#fff;opacity:0.9;}
/* Shift indicator dots - upper right corner */
.calendar-pill.shift-day::after,.calendar-pill.shift-eve::after,.calendar-pill.shift-night::after{content:'';position:absolute;top:2px;right:2px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.calendar-pill.shift-day::after{background:#FBBF24;}
.calendar-pill.shift-eve::after{background:#F97316;}
.calendar-pill.shift-night::after{background:#4B6584;}
/* Shift dots for marker preview in settings */
.marker-preview.shift-day::after,.marker-preview.shift-eve::after,.marker-preview.shift-night::after{content:'';position:absolute;top:2px;right:2px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.marker-preview.shift-day::after{background:#FBBF24;}
.marker-preview.shift-eve::after{background:#F97316;}
.marker-preview.shift-night::after{background:#4B6584;}
.marker-preview{position:relative;}
/* Shift dots for context menu buttons */
.context-menu button.shift-day::after,.context-menu button.shift-eve::after,.context-menu button.shift-night::after{content:'';position:absolute;top:3px;right:3px;width:4px;height:4px;border-radius:50%;border:1px solid #000;}
.context-menu button.shift-day::after{background:#FBBF24;}
.context-menu button.shift-eve::after{background:#F97316;}
.context-menu button.shift-night::after{background:#4B6584;}
.context-menu button{position:relative;}
.context-menu-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.2);z-index:1000;display:none;}
.context-menu {position:fixed;right:16px;top:50%;transform:translateY(-50%);background:var(--pd-card);border:1px solid var(--pd-line);border-radius:14px;padding:8px;box-shadow:0 12px 36px rgba(11,53,80,0.22);z-index:1001;display:none;max-height:70vh;overflow-y:auto;min-width:56px;}
@media (orientation: landscape) and (max-height: 500px) {.context-menu {top:calc(50% + 30px);max-height:60vh;}}
.context-menu-date {color:var(--pd-ink);font-family:var(--pd-font-display);font-size:13px;text-align:center;padding:6px 8px 10px;border-bottom:1px solid var(--pd-line);margin-bottom:6px;font-weight:800;}
.context-menu button {display:block;width:100%;background:var(--pd-field);color:var(--pd-ink);border:none;padding:8px 12px;margin:3px 0;border-radius:6px;cursor:pointer;text-align:center;font-size:12px;font-weight:600;transition:all 0.15s;}
.context-menu button:hover {background:var(--pd-brand-soft);transform:scale(1.02);}
.context-menu-close {display:block;width:100%;background:#dc2626;border:none;border-radius:6px;color:#fff;font-size:12px;font-weight:600;padding:6px 12px;margin-bottom:6px;text-align:center;cursor:pointer;transition:all 0.15s;}
.context-menu-close:hover {background:#b91c1c;}
/* Calendar day pressed state - when menu is open for this day */
.calendar-day.pressed {box-shadow:inset 0 2px 4px rgba(0,0,0,0.25);border:2px solid #22d3ee !important;}
@media(max-width:480px){.context-menu{right:12px;min-width:60px;max-height:65vh;}}

/* OT Toast - Paycheck preview when adding OT/DT/TT markers */
.ot-toast {
  position: fixed;
  bottom: 100px;
  right: 16px;
  background: linear-gradient(135deg, #0a4a5e 0%, #0c5a72 100%);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(34, 211, 238, 0.4);
  min-width: 150px;
  z-index: 9999;
  animation: otToastSlideIn 0.3s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 14px);
}
@media (max-width: 480px) {
  .ot-toast {
    right: 12px;
    bottom: 90px;
  }
}
@keyframes otToastSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ot-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.ot-toast-close:hover { color: rgba(255,255,255,0.8); }
.ot-toast-date {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  padding-right: 20px;
}
.ot-toast-net {
  color: #4ade80;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.ot-toast-tax {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding-bottom: 2px;
}
.ot-toast-tax .flag-amber { color: #f59e0b; }
.ot-toast-tax .flag-red { color: #ef4444; }

.simple-toast {position:fixed;top:80px;left:50%;transform:translateX(-50%);background:var(--pd-navy-band);color:#fff;padding:12px 24px;border-radius:14px;font-size:14px;font-weight:600;z-index:10002;animation:toastIn 0.3s ease-out;box-shadow:var(--pd-shadow-float);border:none;}
.simple-toast.error {background:var(--pd-danger);}
.simple-toast.warning {background:var(--pd-warn);}
.simple-toast.info {background:var(--pd-brand-deep);}

.custom-modal-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:10000;display:none;align-items:flex-start;justify-content:center;animation:fadeIn 0.2s;padding:20px;overflow-y:auto;}
.custom-modal-overlay.show {display:flex;}
.modal-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:10001;display:flex;align-items:center;justify-content:center;animation:fadeIn 0.2s;}
.custom-modal {
  background: var(--pd-card);
  border: 1px solid #D9E5EB;
  border-radius: 14px;
  padding: 0;
  max-width: 400px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  animation: slideIn 0.3s;
  position: relative;
  touch-action: manipulation;
}
.custom-modal-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #E2ECF1;border-radius:14px 14px 0 0;margin:0;background:transparent;}
.custom-modal-header-left {display:flex;align-items:center;gap:8px;flex:1;}
.custom-modal-header-actions {display:flex;align-items:center;gap:8px;}
.custom-modal-icon {display:none;}
.custom-modal-title {font-size:15px;font-weight:500;color:#1e4d5c;letter-spacing:0.3px;}
.custom-modal-close {width:32px;height:32px;background:none;border:none;color:#1e4d5c;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;transition:color 0.15s;border-radius:50%;font-size:24px;}
.custom-modal-close:hover {color:#0e7490;}
.custom-modal-body {color:var(--pd-ink);font-size:15px;line-height:1.5;padding:14px 16px;overflow-x:hidden;}
.custom-modal-body * {color:var(--pd-ink);}
.custom-modal-body strong {color:var(--pd-ink);font-weight:600;}
.custom-modal-body a {color:var(--pd-brand-deep);text-decoration:none;font-weight:500;}
.custom-modal-body a:hover {text-decoration:underline;}
.custom-modal-body ul {margin:8px 0 8px 16px;}
.custom-modal-body ul li {margin:3px 0;font-size:15px;}
.custom-modal-body label {color:var(--pd-ink);font-size:15px;font-weight:400;}
.custom-modal-body span {color:var(--pd-ink);}
.custom-modal-body div {color:var(--pd-ink);font-size:15px;}
.custom-modal-input {width:100%;background:var(--pd-field);border:1px solid var(--pd-line);color:var(--pd-ink);padding:10px 12px;border-radius:8px;font-size:14px;margin-top:8px;transition:all 0.2s ease;box-sizing:border-box;max-width:100%;}
.custom-modal-input:focus {outline:none;border-color:var(--pd-brand);background:#FFFFFF;}
.custom-modal-input::placeholder {color:var(--pd-sub);}
.custom-modal-body select {width:100%;background:#ffffff;border:1px solid var(--pd-line);color:var(--pd-ink);padding:10px 12px;border-radius:8px;font-size:14px;transition:all 0.2s ease;cursor:pointer;}
.custom-modal-body select option {background:#ffffff;color:var(--pd-ink);}
.custom-modal-body select:focus {outline:none;border-color:var(--pd-brand);}
.custom-modal-body input[type="text"],.custom-modal-body input[type="email"],.custom-modal-body input[type="number"],.custom-modal-body input[type="date"],.custom-modal-body input[type="password"],.custom-modal-body select,.custom-modal-body textarea {background:#ffffff;border:1px solid var(--pd-line);border-radius:8px;color:var(--pd-ink);padding:10px 12px;font-size:14px;box-sizing:border-box;max-width:100%;width:100%;}
.custom-modal-body input:focus,.custom-modal-body select:focus,.custom-modal-body textarea:focus {border-color:var(--pd-brand-deep);box-shadow:none;outline:none;}
.custom-modal-body input::placeholder {color:var(--pd-sub);}
.custom-modal-buttons {display:none;padding:16px;gap:12px;justify-content:flex-end;}
.custom-modal-buttons.show {display:flex;}
.modal-action-btn {width:40px;height:40px;border-radius:50%;border:none;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;flex:none;}
.modal-action-btn svg {width:18px;height:18px;stroke-width:2;}
.modal-text-btn {padding:8px 16px;border-radius:6px;border:none;cursor:pointer;transition:all 0.15s ease;font-size:13px;font-weight:600;}
.modal-text-btn.primary {background:var(--pd-brand);color:var(--pd-ink);}
.modal-text-btn.primary:hover {background:var(--pd-brand-deep);}
.modal-text-btn.secondary {background:#94a3b8;color:#fff;border:none !important;}
.modal-text-btn.secondary:hover {background:#64748b;}
.modal-text-btn.danger {background:#dc2626;color:#fff;}
.modal-text-btn.danger:hover {background:#b91c1c;}
.modal-action-btn.primary {background:#22d3ee;color:#074068 !important;}
.modal-action-btn.primary svg {stroke:#074068 !important;}
.modal-action-btn.primary:hover {background:#06b6d4;transform:scale(1.05);}
.modal-action-btn.secondary {background:rgba(14,116,144,0.15);color:#0e7490;}
.modal-action-btn.secondary svg {stroke:#0e7490 !important;}
.modal-action-btn.secondary:hover {background:rgba(14,116,144,0.25);transform:scale(1.05);}
.modal-action-btn.success {background:#10b981;color:#fff;}
.modal-action-btn.success:hover {background:#059669;transform:scale(1.05);}
.modal-action-btn.danger {background:#dc2626;color:#fff;}
.custom-modal-body button.danger-text,.custom-modal-body .danger-text {color:#dc2626 !important;background:none !important;border:none !important;cursor:pointer;font-weight:500;}
.custom-modal-body button.danger-text:hover,.custom-modal-body .danger-text:hover {color:#fff !important;}
.custom-modal-body button.muted-text,.custom-modal-body .muted-text {color:#5B7A8C !important;background:none !important;border:none !important;cursor:pointer;font-weight:500;}
.custom-modal-body button.muted-text:hover,.custom-modal-body .muted-text:hover {color:#0F2733 !important;}
.ghost-btn {background:rgba(255,255,255,0.1);color:#fff;border:1px solid rgba(255,255,255,0.2);border-radius:6px;cursor:pointer;transition:all 0.15s ease;}
.ghost-btn:hover {border-color:#fff;transform:scale(1.02);}
.modal-action-btn.danger:hover {background:#b91c1c;transform:scale(1.05);}
.modal-btn-primary {background:#22d3ee;color:#074068 !important;}
.modal-btn-primary:hover {background:#06b6d4;transform:scale(1.02);}
.modal-btn-primary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-secondary {background:#94a3b8;color:#fff;}
.modal-btn-secondary:hover {background:#64748b;transform:scale(1.02);}
.modal-btn-secondary:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-success {background:#10b981;color:#fff;}
.modal-btn-success:hover {background:#059669;transform:scale(1.02);}
.modal-btn-success:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-danger {background:#dc2626;color:#fff !important;}
.modal-btn-danger:hover {background:#b91c1c;transform:scale(1.02);color:#fff !important;}
.modal-btn-danger:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.modal-btn-cancel {background:#94a3b8;color:#fff;}
.modal-btn-cancel:hover {background:#64748b;transform:scale(1.02);}
.modal-btn-cancel:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
/* YTD Toggle Buttons */
.ytd-toggle-btn {transition:all 0.15s ease;}
.ytd-toggle-btn:hover {transform:scale(1.02);}
.ytd-toggle-btn:active {transform:scale(0.95) !important;box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.custom-radio {display:none;}
.custom-radio-dot {width:20px;height:20px;min-width:20px;border:2px solid rgba(255,255,255,0.3);border-radius:50%;position:relative;flex-shrink:0;transition:all 0.2s;box-sizing:border-box;}
.custom-radio:checked + .custom-radio-dot {border-color:#22d3ee;background:#22d3ee;}
.custom-radio:checked + .custom-radio-dot::after {content:'';position:absolute;top:4px;left:4px;width:8px;height:8px;background:white;border-radius:50%;}
.modal-warning-yellow {color:#fbbf24 !important;}
.modal-warning-red {color:#ef4444 !important;}
.custom-modal-divider {height:1px;background:rgba(255,255,255,0.1);margin:24px 0;}
.custom-modal::-webkit-scrollbar {width:6px;}
.custom-modal::-webkit-scrollbar-track {background:rgba(255,255,255,0.05);border-radius:3px;}
.custom-modal::-webkit-scrollbar-thumb {background:rgba(255,255,255,0.2);border-radius:3px;}
.custom-modal::-webkit-scrollbar-thumb:hover {background:rgba(255,255,255,0.4);}
.custom-modal {scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.2) rgba(255,255,255,0.05);}
/* Three-Position Toggle Switch */
.marker-toggle-container {display:flex;flex-direction:column;gap:8px;margin:16px 0;}
.marker-toggle-label {color:#074068;font-weight:600;font-size:13px;}
.marker-toggle-wrapper {position:relative;width:100%;height:44px;background:#e2e8f0;border-radius:22px;cursor:pointer;user-select:none;}
.marker-toggle-track {position:absolute;top:4px;left:4px;right:4px;bottom:4px;display:flex;justify-content:space-between;align-items:stretch;}
.marker-toggle-option {flex:1;text-align:center;font-size:11px;font-weight:700;color:#64748b;z-index:1;transition:color 0.3s;padding:12px 8px;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.marker-toggle-slider {position:absolute;top:4px;bottom:4px;width:calc(33.333% - 2px);background:linear-gradient(135deg,#074068 0%,#065C94 100%);border-radius:18px;transition:left 0.3s ease;box-shadow:0 2px 6px rgba(7,64,104,0.3);}
.marker-toggle-wrapper[data-position="work"] .marker-toggle-slider {left:4px;}
.marker-toggle-wrapper[data-position="both"] .marker-toggle-slider {left:calc(33.333% + 2px);}
.marker-toggle-wrapper[data-position="off"] .marker-toggle-slider {left:calc(66.666% + 4px);}
.marker-toggle-wrapper[data-position="work"] .marker-toggle-option:first-child {color:#fff;}
.marker-toggle-wrapper[data-position="both"] .marker-toggle-option:nth-child(2) {color:#fff;}
.marker-toggle-wrapper[data-position="off"] .marker-toggle-option:last-child {color:#fff;}
@keyframes fadeIn {from{opacity:0;}to{opacity:1;}}
@keyframes slideIn {from{transform:translateY(-20px);opacity:0;}to{transform:translateY(0);opacity:1;}}
@keyframes toastIn {from{transform:translateX(-50%) translateY(-20px);opacity:0;}to{transform:translateX(-50%) translateY(0);opacity:1;}}
@keyframes toastOut {from{transform:translateX(-50%) translateY(0);opacity:1;}to{transform:translateX(-50%) translateY(-20px);opacity:0;}}
@keyframes slideOut {from{transform:translateY(0);opacity:1;}to{transform:translateY(-20px);opacity:0;}}
.welcome-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,20,40,0.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:none;align-items:flex-start;justify-content:center;opacity:0;perspective:1200px;z-index:10001;overflow-y:auto;padding:20px;}
.welcome-overlay.show{display:flex;animation:welcomeFadeIn 0.4s ease forwards;}
@keyframes welcomeFadeIn{to{opacity:1;}}
.welcome-card{background:rgba(255,255,255,0.95);border-radius:24px;width:380px;max-width:90vw;padding:40px 32px 32px;text-align:center;box-shadow:0 25px 60px rgba(0,0,0,0.3),0 0 0 1px rgba(255,255,255,0.2);transform-style:preserve-3d;margin:auto;}
.welcome-check{width:72px;height:72px;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;box-shadow:0 8px 24px rgba(16,185,129,0.35);}
.welcome-check svg{width:36px;height:36px;fill:#fff;}
.welcome-title{font-size:28px;font-weight:800;color:#0c4a6e;margin-bottom:8px;opacity:0;transform:translateY(10px);animation:welcomeFadeUp 0.4s ease 0.45s forwards;}
@keyframes welcomeFadeUp{to{opacity:1;transform:translateY(0);}}
.welcome-name{font-size:18px;color:var(--pd-brand);font-weight:600;margin-bottom:20px;height:27px;display:flex;align-items:center;justify-content:center;opacity:0;animation:welcomeFadeIn 0.1s ease 0.6s forwards;}
.welcome-name-text{display:inline-block;overflow:hidden;white-space:nowrap;border-right:2px solid var(--pd-brand);width:0;}
@keyframes welcomeTyping{to{width:var(--typing-width);}}
@keyframes welcomeBlink{50%{border-color:transparent;}}
@keyframes welcomeHideCursor{to{border-color:transparent;}}
.welcome-message{font-size:14px;color:#64748b;line-height:1.6;margin-bottom:28px;opacity:0;}
.welcome-message a{color:var(--pd-brand);text-decoration:none;font-weight:600;}
.welcome-btn-primary{width:100%;padding:16px;background:linear-gradient(135deg,#0c4a6e 0%,#0e7490 100%);border:none;border-radius:12px;font-size:16px;font-weight:700;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(12,74,110,0.35);margin-bottom:12px;opacity:0;transform:translateY(10px);transition:transform 0.2s,box-shadow 0.2s;}
.welcome-btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(12,74,110,0.45);}
.welcome-btn-cancel{width:100%;padding:14px;background:transparent;border:none;font-size:14px;font-weight:600;color:#64748b;cursor:pointer;opacity:0;}
.welcome-btn-cancel:hover{color:#0c4a6e;}
.welcome-subtitle{font-size:15px;color:#64748b;margin-bottom:20px;opacity:0;}
.welcome-input-group{margin-bottom:16px;text-align:left;opacity:0;}
.welcome-label{display:block;color:#0c4a6e;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px;}
.welcome-input{width:100%;padding:14px 16px;border:2px solid #e2e8f0;border-radius:10px;font-size:15px;font-family:inherit;transition:all 0.2s;background:#f8fafc;box-sizing:border-box;}
.welcome-input:focus{outline:none;border-color:#0e7490;background:#fff;box-shadow:0 0 0 4px rgba(14,116,144,0.1);}
.welcome-input.error{border-color:#ef4444;background:#fef2f2;}
.welcome-error{color:#ef4444;font-size:13px;text-align:center;margin-bottom:12px;display:none;}
.welcome-terms{font-size:13px;color:#64748b;line-height:1.6;margin-bottom:24px;opacity:0;}
.welcome-terms a{color:var(--pd-brand);text-decoration:none;font-weight:600;}
.welcome-btn-success{width:100%;padding:16px;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border:none;border-radius:12px;font-size:16px;font-weight:700;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(16,185,129,0.4);margin-bottom:12px;opacity:0;transform:translateY(10px);transition:transform 0.2s,box-shadow 0.2s;}
.welcome-btn-success:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(16,185,129,0.5);}
.welcome-card.folding{transform-origin:center bottom;animation:welcomeFoldAway 0.6s cubic-bezier(0.4,0,0.2,1) forwards;}
@keyframes welcomeFoldAway{0%{transform:rotateX(0deg) scale(1);opacity:1;}100%{transform:rotateX(90deg) scale(0.7) translateY(50px);opacity:0;}}
.welcome-overlay.closing{animation:welcomeFadeOut 0.4s ease 0.4s forwards;}
@keyframes welcomeFadeOut{to{opacity:0;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);}}
.forecasting-bar {position:fixed;bottom:0;left:0;right:0;background:linear-gradient(135deg,#074068 0%,#065C94 25%,var(--pd-brand) 50%,#06b6d4 75%,#22d3ee 100%);padding:14px 20px;display:none;align-items:center;justify-content:center;gap:12px;font-size:17px;font-weight:500;z-index:999;box-shadow:0 -4px 12px rgba(0,0,0,0.2);color:#EAF2F6;overflow:hidden;text-shadow:0 1px 0 rgba(0,0,0,0.12);}
.forecasting-bar::before {content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(79,195,247,0.15) 50%,transparent 100%);animation:shimmer 3s ease-in-out infinite;}
.forecasting-bar::after {content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#4FC3F7 0%,#0277BD 100%);}
@keyframes shimmer {0%{left:-100%;}100%{left:100%;}}
.forecasting-bar.show {display:none !important;}
.forecast-icon {font-size:20px;}
.forecast-current {color:#EAF2F6;font-weight:500;}
.forecast-next {color:#EAF2F6;font-weight:500;}
.forecast-row {display:flex;align-items:center;gap:8px;}
.forecast-divider {display:none;}
.forecast-next {margin-left:20px;}
.holiday-settings-grid {display:grid;grid-template-columns:auto 60px 60px;gap:8px 12px;align-items:center;max-width:400px;}
@media(max-width:600px){.holiday-settings-grid{grid-template-columns:2fr 60px 60px;gap:12px 8px;max-width:none;}.holiday-settings-grid span{font-size:14px;}}
@media(max-width:768px){.grid{grid-template-columns:1fr;}.stats{grid-template-columns:repeat(2,1fr);gap:9px;}.stats + .stats{margin-top:14px;}td input{width:60px;font-size:16px;}.custom-modal{max-height:90vh;border-radius:14px;}.custom-modal-header{padding:12px 14px;border-radius:14px 14px 0 0;}.custom-modal-body{padding:12px 14px;font-size:13px;}.custom-modal-buttons{padding:12px 14px;}.custom-modal-title{font-size:14px;}.forecasting-bar{font-size:14px;padding:12px 16px;flex-direction:column;gap:6px;}}
.temp-pay-section {background:white;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,0.1);margin-bottom:20px;border-left:4px solid #C5E5F3;}
.temp-pay-section summary {padding:16px;cursor:pointer;font-size:18px;font-weight:700;color:#074068;list-style:none;user-select:none;display:flex;align-items:center;gap:10px;background:var(--pd-input-card);}
.temp-pay-section summary::-webkit-details-marker {display:none;}
.temp-pay-section summary::before {content:'▼';font-size:12px;transition:transform 0.2s;color:#074068;}
.temp-pay-section:not([open]) summary::before {transform:rotate(-90deg);}
.temp-pay-content {padding:16px;}
.temp-pay-grid {display:grid;grid-template-columns:1fr;gap:10px;max-width:100%;}
.temp-pay-item {display:flex;gap:8px;align-items:center;max-width:100%;}
.temp-pay-item input[type="text"] {flex:1;min-width:0;padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;}
.temp-pay-item input[type="number"] {width:80px;padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;}
.temp-pay-item button {background:#ef4444;color:white;border:none;padding:6px 10px;border-radius:4px;cursor:pointer;font-size:12px;flex-shrink:0;}
/* Paycheck Cards Grid - see fixed sizes section below */

/* Individual Paycheck Card */
.paycheck-card {background:var(--pd-card);border-radius:16px;box-shadow:var(--pd-shadow-card);overflow:hidden;transition:all 0.2s;display:flex;flex-direction:column;}
@media (hover: hover) and (pointer: fine) {
.paycheck-card:hover, .paycheck-card:active {box-shadow:0 4px 12px rgba(0,0,0,0.1);transform:translateY(-2px);}
}
.paycheck-card.collapsed {display:none;}

/* Card Header */
.card-header {background:linear-gradient(180deg,#FBFEFF,var(--pd-field));color:var(--pd-ink);border-top:3px solid var(--pd-navy-band);padding:12px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--pd-line);}
.card-date {font-size:16px;font-weight:800;font-family:var(--pd-font-display);}
.card-amounts {display:flex;justify-content:flex-end;gap:16px;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;}
@media (max-width:480px) {.card-date {font-size:14px;} .card-amounts {font-size:14px;gap:12px;}}

/* Card Body */
.card-body {padding:16px;flex:1;display:flex;flex-direction:column;background:var(--pd-card);}

/* Input Section */
.input-section {background:transparent;padding:10px;border-radius:4px;margin-bottom:10px;border:none;}
.input-row {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
.input-field {display:flex;flex-direction:column;gap:4px;}
.input-field label {font-size:11px;color:#1e293b;font-weight:600;text-transform:uppercase;}
.input-field input {padding:8px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px;background:white;color:#1f2937;font-weight:600;width:100%;max-width:120px;box-shadow:0 1px 3px rgba(0,0,0,0.08);}
.input-field input::placeholder {color:#9ca3af;opacity:1;font-weight:400;}

/* Premium Pay Row */
.temppay-row {display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid #e5e7eb;}
.temppay-label {color:#1e293b;font-size:13px;display:flex;align-items:center;gap:8px;font-weight:600;}
.temppay-value {font-weight:600;color:#074068;font-size:14px;}

/* Detail Rows */
.detail-row {display:flex;justify-content:space-between;padding:8px 0;font-size:14px;}
.detail-row:last-child {border-bottom:none;}
.detail-label {color:#6b7280;}
.detail-value {font-weight:600;color:#1f2937;font-size:14px;}
.detail-value.positive {color:#10b981;}
.detail-value.negative {color:#ef4444;}

/* Card Footer */
.card-footer {background:transparent;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;margin-top:auto;}
.gross-net-summary {font-weight:600;color:#074068;}
.tax-rate-display {display:flex;align-items:center;gap:6px;font-size:12px;color:#374151;font-weight:600;}
.tax-rate-display .warning {color:#fbbf24;}

/* Badges - Soft pastels, consistent shape, fixed width */
.holiday-badge {background:var(--pd-warn-soft);color:var(--pd-warn);padding:6px 12px;border-radius:var(--pd-r-chip);font-size:11px;font-weight:800;font-family:var(--pd-font-display);display:inline-flex;align-items:center;justify-content:center;gap:4px;line-height:1.4;border:none;min-width:160px;text-align:center;}
.shadow-badge {background:var(--pd-brand-soft);color:var(--pd-brand-deep);padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #7dd3fc;min-width:160px;text-align:center;}
.carryover-badge {background:var(--pd-brand-deep);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #818cf8;min-width:160px;text-align:center;white-space:nowrap;}
.current-period-badge {background:var(--pd-money-soft);color:var(--pd-money);padding:6px 12px;border-radius:var(--pd-r-chip);font-size:11px;font-weight:800;font-family:var(--pd-font-display);display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:none;min-width:160px;text-align:center;}
.starting-point-badge {background:var(--pd-warn);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:1px solid #fdba74;min-width:160px;text-align:center;white-space:nowrap;}
.year-start-badge {background:var(--pd-navy-band);color:#fff;padding:6px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;border:none;min-width:160px;text-align:center;white-space:nowrap;}

/* Card Action Buttons - Match marker-action-btn style */
.card-action-btn {padding:8px 18px;font-size:13px;font-weight:600;background:var(--pd-mint);border:none;color:#0f4c5c;border-radius:20px;cursor:pointer;transition:all 0.2s;}
@media (hover: hover) and (pointer: fine) {
.card-action-btn:hover {background:#0f4c5c;color:#ffffff;}
}
.card-action-btn:active {background:#0f4c5c;color:#ffffff;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.card-action-btn.mark {padding:8px 18px;font-size:13px;font-weight:600;background:var(--pd-mint);border:none;color:#0f4c5c;border-radius:20px;cursor:pointer;transition:all 0.2s;}
.card-action-btn.mark:hover {background:#0f4c5c;color:#ffffff;}
.card-action-btn.mark:active {background:#0f4c5c;color:#ffffff;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.card-action-btn.remove {padding:8px 18px;font-size:13px;font-weight:600;background:#f1f5f9;border:none;color:#64748b;border-radius:20px;cursor:pointer;transition:all 0.2s;}
.card-action-btn.remove:hover {background:#e2e8f0;color:#475569;}
.card-action-btn.remove:active {background:#e2e8f0;color:#475569;transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}

/* Sync Edit/Reset buttons (inline styled in HTML) */
.paycheck-card button:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}

/* ===================================================================
   SUB-CUT 1 - CARD VISUAL REFRESH (additive, sc1- namespaced)
   New presentation classes for the redesigned card. These do NOT
   reference or override existing card classes. Nothing in the HTML
   uses them until sub-cut 1 Pass 2 wires the template. Dormant until then.
   =================================================================== */

/* Pill badges (word-width, wrap, right-aligned) */
.sc1-badges {display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.sc1-bdg {font-family:var(--pd-font-display);font-size:10.5px;font-weight:800;letter-spacing:.3px;padding:4px 10px;border-radius:var(--pd-r-chip);display:inline-flex;align-items:center;gap:4px;line-height:1.3;white-space:nowrap;}
.sc1-bdg svg {width:11px;height:11px;flex:none;}
.sc1-bdg.current {background:var(--pd-money-soft);color:var(--pd-ink);}
.sc1-bdg.exempt {background:#fde8e8;color:var(--pd-ink);}
.sc1-bdg.holiday {background:var(--pd-warn-soft);color:var(--pd-ink);}
.sc1-bdg.shadow {background:var(--pd-brand-soft);color:var(--pd-ink);}
.sc1-bdg.skip {background:var(--pd-warn-soft);color:var(--pd-ink);}
.sc1-bdg.first {background:var(--pd-navy-band);color:#fff;}

/* Big NET money row: small gross top-left, big net top-right */
.sc1-moneyrow {display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:2px;}
.sc1-m-k {font-family:var(--pd-font-display);font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#5A7183;margin-bottom:2px;}
.sc1-m-gross {font-family:var(--pd-font-display);font-weight:700;font-size:17px;color:var(--pd-ink);font-variant-numeric:tabular-nums;}
.sc1-m-netwrap {text-align:right;}
.sc1-m-net {font-family:var(--pd-font-display);font-weight:900;font-size:37px;line-height:.9;letter-spacing:-1.4px;color:var(--pd-money);font-variant-numeric:tabular-nums;}
.sc1-m-net small {font-size:19px;color:#7fc9ab;}
@media (max-width:480px) {.sc1-m-net {font-size:31px;} .sc1-m-net small {font-size:16px;}}

/* Settings row: W-4 exempt + tax rate */
.sc1-setrow {display:flex;align-items:center;justify-content:space-between;padding:2px 0 8px;margin:0;}
.sc1-setrow .sc1-w4 {display:flex;align-items:center;gap:6px;font-size:12px;color:#1f2937;font-weight:600;cursor:pointer;user-select:none;white-space:nowrap;}
.sc1-setrow .sc1-w4 input {accent-color:var(--pd-navy-band);margin:0;}
.sc1-setrow .sc1-tax {font-size:13px;color:var(--pd-ink);font-weight:700;white-space:nowrap;}

/* Labeled rate/hours field boxes */
.sc1-fields {display:flex;gap:12px;margin-bottom:14px;}
.sc1-fld {flex:1;}
.sc1-fld label {display:block;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--pd-ink-2);margin-bottom:6px;}
.sc1-fld .sc1-sublabel {font-size:10px;color:#9fb3bd;font-weight:700;text-transform:none;letter-spacing:0;background:#eef4f7;padding:1px 6px;border-radius:5px;margin-left:4px;}

/* Breakdown section (hours-only - NO dollar-per-line) */
.sc1-rh {font-family:var(--pd-font-display);font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--pd-ink-2);border-bottom:1px solid var(--pd-line);padding-bottom:6px;margin-bottom:2px;}

/* Controls tray at card bottom */
.sc1-tools {margin-top:auto;background:var(--pd-field);border-top:1px solid var(--pd-line);padding:13px 18px;margin-left:-18px;margin-right:-18px;border-radius:0 0 11px 11px;}
.sc1-tools-lead {font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#5A7183;margin-bottom:9px;}
.sc1-prow {display:flex;gap:8px;flex-wrap:wrap;}

/* Generic-class restyles SCOPED under .sc1-card only (GPT #4 - never touch
   the global .detail-row/.input-field/.card-header used by modals, calendar,
   and older card states). These only apply to cards carrying .sc1-card. */
.paycheck-card.sc1-card {position:relative;border-radius:12px;border:1px solid #cbd5e1;border-top:3px solid var(--pd-navy-band);}
.paycheck-card.sc1-card .card-header {background:transparent;border-top:none;border-bottom:none;padding:15px 18px 6px;flex-direction:column;align-items:stretch;gap:0;}
.paycheck-card.sc1-card .card-body {padding:6px 18px 0;}
.paycheck-card.sc1-card .card-date {font-size:17px;font-weight:800;font-family:var(--pd-font-display);color:var(--pd-ink);white-space:nowrap;margin-right:auto;}
.sc1-toprow {display:flex;align-items:center;justify-content:flex-end;gap:8px 6px;flex-wrap:wrap;margin-bottom:8px;}
.sc1-cuprow {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 0 8px;}
.paycheck-card.sc1-card .sc1-datesuffix {font-size:12px;font-weight:700;font-family:var(--pd-font-display);letter-spacing:.4px;text-transform:uppercase;color:var(--pd-ink-2);opacity:.7;}
.paycheck-card.sc1-card .input-field input {font-family:var(--pd-font-display);font-weight:700;font-size:15px;border:1px solid var(--pd-line);border-radius:9px;padding:11px 12px;max-width:none;}
.paycheck-card.sc1-card .detail-row {padding:5px 0;font-size:14px;align-items:baseline;}
.paycheck-card.sc1-card .detail-label {color:#5A7183;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;}
.paycheck-card.sc1-card .detail-value {font-family:var(--pd-font-display);font-weight:700;font-size:15px;color:var(--pd-ink);}
.paycheck-card.sc1-card .detail-value.sc1-money {color:var(--pd-money);}
.paycheck-card.sc1-card .input-field label {color:#5A7183;font-size:11px;font-weight:700;letter-spacing:.5px;}
.paycheck-card.sc1-card .input-field label .sc1-sublabel {font-size:10px;color:#9fb3bd;font-weight:700;text-transform:none;letter-spacing:0;background:#eef4f7;padding:1px 6px;border-radius:5px;margin-left:4px;}
.paycheck-card.sc1-card .card-amounts.sc1-moneyrow {gap:12px;font-size:inherit;font-weight:inherit;}

/* Shadow Paycheck Banner */
.shadow-banner {background:#074068;border:2px solid #fbbf24;padding:12px 16px;border-radius:4px;margin-bottom:16px;color:#fbbf24;font-weight:600;display:flex;justify-content:space-between;align-items:center;}
.shadow-banner-icon {cursor:pointer;opacity:0.8;padding:4px;font-size:16px;}
.shadow-banner-icon:hover {opacity:1;}


.help-text {font-size:14px;color:#074068;margin-top:4px;font-style:italic;}
.tax-info-box {background:#cef3f7;padding:12px;border-radius:6px;border:1px dashed #1a4480;margin:16px 0 24px 0;}
.tax-info-box strong {color:#1a4480;}
.stat.maxed {border:2px solid #22c55e;background:linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);}
.marker-card {background:linear-gradient(180deg, #ffffff 0%, #fefce8 100%);border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px;display:flex;align-items:center;gap:8px;transition:all 0.2s;cursor:pointer;height:42px;width:180px;position:relative;}
.marker-card:hover {background:linear-gradient(180deg, #ffffff 0%, #fef9c3 100%);border-color:#4fc3f7;}
.marker-card:hover .marker-action-icon {opacity:1;}
.marker-preview {width:36px;height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#111;font-weight:700;font-size:10px;flex-shrink:0;}
.marker-info {flex:1;min-width:0;overflow:hidden;padding-right:24px;}
.marker-info-name {font-size:12px;font-weight:600;color:#1f2937;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.marker-info-details {font-size:10px;color:#64748b;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.marker-action-icon {position:absolute;top:50%;right:6px;transform:translateY(-50%);width:22px;height:22px;border-radius:4px;border:none;background:#e2e8f0;color:#64748b;cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;opacity:0;transition:all 0.15s;}
.marker-action-icon:hover {background:#0f4c5c;color:#fff;}
.marker-list-grid {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
/* Marker Section Styles */
.marker-section {margin-bottom:16px;}
.marker-section-header {display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.marker-section-title {display:inline-block;font-size:20px;font-weight:700;color:#053847;letter-spacing:0.3px;}
.marker-section-subtitle {font-size:14px;color:#64748b;font-weight:500;}
.marker-divider {height:1px;background:#e2e8f0;margin:20px 0;}

.marker-action-btns {display:flex;gap:14px;margin-top:12px;margin-bottom:8px;}
.marker-action-btn {width:32px;height:32px;padding:0;background:transparent;border:none;color:#074068;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;justify-content:center;}
.marker-action-btn:hover {color:#0e4a5c;transform:scale(1.1);}
.marker-action-btn:active {transform:scale(0.9);}
.marker-action-btn.secondary {color:#074068;}
.marker-action-btn.secondary:hover {color:#0e4a5c;transform:scale(1.1);}
.marker-action-btn.secondary:active {transform:scale(0.9);}
.marker-action-btn svg {width:22px;height:22px;}
.color-palette {display:flex;flex-wrap:wrap;gap:0;margin-top:12px;}
.color-palette.compact {gap:2px;margin-top:4px;}
.color-palette.compact .color-square {width:22px;height:22px;border-radius:3px;}
.color-square {width:22px;height:22px;border-radius:3px;cursor:pointer;border:2px solid transparent;transition:all 0.15s;}
.color-square:hover {border-color:rgba(255,255,255,0.5);}
.color-square.selected {border-color:#fff;}
.emoji-dropdown-wrapper {position:relative;display:inline-block;width:100%;}
.emoji-dropdown-btn {width:100%;padding:10px 12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all 0.15s;}
.emoji-dropdown-btn:hover {background:rgba(255,255,255,0.15);border-color:rgba(255,255,255,0.3);}
.emoji-dropdown-btn svg {width:20px;height:20px;}
.emoji-dropdown-arrow {font-size:10px;opacity:0.7;}
.emoji-dropdown-grid {display:none;margin-top:8px;padding:10px;background:rgba(255,255,255,0.1);border-radius:8px;grid-template-columns:repeat(8, 1fr);gap:4px;}
.emoji-dropdown-grid.open {display:grid;}
.emoji-grid-item {padding:8px;text-align:center;cursor:pointer;border-radius:4px;font-size:14px;transition:background 0.15s;display:flex;align-items:center;justify-content:center;color:#fff;}
.emoji-grid-item:hover {background:rgba(255,255,255,0.15);}
.emoji-grid-item svg {width:22px;height:22px;}
.marker-toggle-wrapper.compact {height:28px;}
.marker-toggle-wrapper.compact .marker-toggle-option {font-size:11px;padding:5px 4px;}
.marker-checkbox-row {display:flex;gap:16px;margin-top:4px;}
.marker-checkbox-label {display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:#0F2733;}
.marker-checkbox-label input[type="checkbox"] {width:16px;height:16px;accent-color:#22d3ee;cursor:pointer;}
.marker-error {color:#ef4444;font-size:12px;margin-top:8px;display:none;}
.marker-card.disabled {opacity:0.4;}
.marker-toggle-wrapper.compact .marker-toggle-slider {border-radius:12px;}
.type-btn {transition:all 0.15s;}
.type-btn:hover:not(.selected) {border-color:#4fc3f7 !important;}
.type-btn.selected {border-color:#4fc3f7 !important;}
.type-btn:active {transform:scale(0.95);}
.shift-btn {transition:all 0.15s;}
.shift-btn:hover:not(.selected) {border-color:#4fc3f7 !important;}
.shift-btn:active {transform:scale(0.95);}
#app {padding-bottom:90px;}

/* ===============================================================
   AI INSIGHTS PANEL STYLES
   =============================================================== */
.ai-beta-badge {background:#4ade80;color:#064e3b;font-size:10px;font-weight:700;padding:3px 8px;border-radius:4px;margin-left:10px;vertical-align:middle;}
.ai-insight-btn {width:100%;background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:10px;padding:14px 16px;margin-bottom:10px;cursor:pointer;text-align:left;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,0.05);transition:all 0.15s;}
.ai-insight-btn:hover {background:#f0fdfa;border-color:#22d3ee;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.ai-insight-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.ai-insight-btn.selected {background:#f0fdfa;border-color:#0d9488;border-width:2px;}
.ai-insight-btn.dimmed {opacity:0.5;pointer-events:none;}
.ai-insight-icon {width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.ai-insight-icon.green {background:rgba(74,222,128,0.2);}
.ai-insight-icon.cyan {background:rgba(34,211,238,0.2);}
.ai-insight-icon.amber {background:rgba(251,191,36,0.2);}
.ai-insight-icon.purple {background:var(--pd-brand-soft);}
.ai-insight-text {flex:1;}
.ai-insight-title {color:#1e293b;font-size:14px;font-weight:600;margin-bottom:2px;}
.ai-insight-desc {color:#64748b;font-size:12px;}
.ai-insight-arrow {color:#94a3b8;font-size:20px;font-weight:300;}
.ai-response-area {background:linear-gradient(135deg,#0a4a5e 0%,#0c5a72 50%,#0e6680 100%);border-radius:12px;padding:16px;margin-top:8px;border:2px solid #22d3ee;}
.ai-response-label {color:rgba(255,255,255,0.7);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:10px;display:flex;align-items:center;gap:6px;}
.ai-response-label svg {width:14px;height:14px;color:#4ade80;}
.ai-response-text {color:#fff;font-size:14px;line-height:1.6;}
.ai-response-placeholder {color:rgba(255,255,255,0.5);font-size:13px;font-style:italic;text-align:center;padding:12px 0;}
.ai-highlight {color:#4ade80;font-weight:600;}
.ai-loading-dots {display:flex;justify-content:center;gap:6px;padding:16px 0;}
.ai-loading-dots span {width:8px;height:8px;background:#4ade80;border-radius:50%;animation:aiBounce 1.4s ease-in-out infinite;}
.ai-loading-dots span:nth-child(1) {animation-delay:0s;}
.ai-loading-dots span:nth-child(2) {animation-delay:0.2s;}
.ai-loading-dots span:nth-child(3) {animation-delay:0.4s;}
@keyframes aiBounce {0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-10px);}}
.ai-input-section {background:rgba(255,255,255,0.6);border-radius:10px;padding:14px;margin-top:12px;}
.ai-input-label {color:#334155;font-size:12px;font-weight:500;margin-bottom:8px;display:block;}
.ai-input-row {display:flex;gap:10px;align-items:center;}
.ai-input-wrapper {position:relative;flex:1;}
.ai-input-prefix {position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#64748b;font-weight:500;}
.ai-input-field {width:100%;padding:12px 14px 12px 30px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;color:#1e293b;font-size:16px;font-weight:600;}
.ai-input-field:focus {outline:none;border-color:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,0.2);}
.ai-calc-btn {background:#0d9488;color:#fff;border:none;padding:12px 20px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all 0.15s;}
.ai-calc-btn:hover {background:#0f766e;}
.ai-calc-btn:active {transform:scale(0.95);box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.ai-worktype-btns {display:flex;gap:8px;margin-top:8px;}
.ai-worktype-btn {flex:1;padding:10px 12px;border-radius:8px;border:2px solid rgba(255,255,255,0.2);background:rgba(255,255,255,0.05);color:#64748b;font-weight:600;font-size:14px;cursor:pointer;transition:all 0.15s;}
.ai-worktype-btn:hover {border-color:rgba(6,182,212,0.3);background:rgba(6,182,212,0.05);}
.ai-worktype-btn.selected {border-color:#0d9488;background:rgba(6,182,212,0.15);color:#0d9488;}

/* ===============================================================
   SETUP SECTION - CLEAN MINIMAL STYLES
   =============================================================== */

/* Setup Content padding */
.setup-content {
  padding: 20px;
  background: transparent;
}

/* ---------------------------------------------------------------
   PAYCHECK CARDS
   --------------------------------------------------------------- */
/* Cards are dumb - Grid decides size */
.paycheck-card {
    width: 100%;
    max-width: none;
    transform: none;
    position: relative;
    border-radius: 16px;
    background: var(--pd-card);
    box-shadow: var(--pd-shadow-card);
    overflow: hidden;
    border: 1px solid var(--pd-line);
    margin-bottom: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .paycheck-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    }
}

.paycheck-card .paycheck-header {
    padding: 12px 20px;
    background: var(--pd-navy-band);
    border-radius: 12px 12px 0 0;
}

.paycheck-card .paycheck-content {
    padding: 16px 20px;
}

/* ---------------------------------------------------------------
   PAYCHECK CARDS LAYOUT - MONTH/YEAR VIEW SYSTEM
   --------------------------------------------------------------- */

/* Paycheck Cards Grid - DETERMINISTIC LAYOUT */
/* Year view - fixed columns, clean breakpoints */
.paycheck-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 420px);
    gap: 24px;
    justify-content: center;
}
@media (max-width: 1400px) {
    .paycheck-cards-grid {
        grid-template-columns: repeat(2, 420px);
    }
}
@media (max-width: 900px) {
    .paycheck-cards-grid {
        grid-template-columns: 1fr;
    }
}
/* Month view - always centered, readable */
.paycheck-cards-grid.month-view {
    grid-template-columns: minmax(420px, 720px);
}
@media (max-width: 900px) {
    .paycheck-cards-grid.month-view {
        grid-template-columns: 1fr;
    }
}

/* Trial Expired Overlay */
.trial-expired-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 64, 104, 0.95);
  z-index: 500;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
.trial-expired-overlay.show {
  display: flex;
}
.trial-expired-overlay .expired-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: #f59e0b;
}
.trial-expired-overlay h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}
.trial-expired-overlay p {
  color: #a0d4f7;
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 480px;
  line-height: 1.6;
}
.trial-expired-overlay .reassurance-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
  display: inline-block;
}
.trial-expired-overlay .reassurance-list li {
  color: #d1fae5;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trial-expired-overlay .reassurance-list svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}
.trial-expired-overlay .pricing-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.trial-expired-overlay .subscribe-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trial-expired-overlay .subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.trial-expired-overlay .subscribe-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.trial-expired-overlay .subscribe-btn.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.trial-expired-overlay .subscribe-btn.secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  box-shadow: none;
  transform: none;
}
.trial-expired-overlay .best-value {
  font-size: 11px;
  background: #f59e0b;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
.trial-expired-overlay .view-data-link {
  color: #64b5f6;
  font-size: 14px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
}
.trial-expired-overlay .view-data-link:hover {
  color: #90caf9;
}
.trial-expired-overlay .menu-note {
  color: #64748b;
  font-size: 13px;
  margin-top: 12px;
}

/* ===== TOP BAR - Phase 1A ===== */
.top-bar {
  background: transparent;
  padding: 16px 18px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2000;
  transition: background 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}
/* Scrolled state - solid slim bar (Option A two-state header) */
.top-bar.scrolled {
  background: rgba(255,255,255,0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pd-line);
  box-shadow: 0 1px 10px rgba(11,53,80,0.08);
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
}
.top-bar::before {
  content: none;
}
@keyframes subtlePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
/* Remove shimmer element styling */
.header-shimmer {
  display: none;
}
.top-bar-logo {
  font-size: 42px;
  text-shadow: none;
  transition: font-size 0.22s ease;
}
.top-bar.scrolled .top-bar-logo {
  font-size: 30px;
}
/* Light-surface wordmark: ink letters, money-green 360 (scoped - master .pd-logo untouched for dark surfaces) */
.top-bar .pd-logo {color: var(--pd-ink);}
.top-bar .pd-logo .green {color: var(--pd-money);}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-greeting {
  color: var(--pd-ink-2);
  font-size: 1.1rem;
  font-weight: 600;
}
.top-bar-dots {
  color: var(--pd-ink);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile top bar - compact */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .top-bar.scrolled {
    padding-top: calc(7px + env(safe-area-inset-top, 0px));
    padding-bottom: 7px;
  }
  .top-bar-logo {
    font-size: 26px;
    letter-spacing: 2px;
  }
  .top-bar.scrolled .top-bar-logo {
    font-size: 20px;
  }
  .top-bar-right {
    gap: 10px;
  }
  .top-bar-greeting {
    font-size: 0.95rem;
    font-weight: 600;
  }
  .top-bar-dots {
    font-size: 1.5rem;
    padding: 2px 4px;
    font-weight: 700;
  }
}

/* Phase 1C: Hide old header elements (brand + hamburger button) */
.brand { display: none; }
.hamburger-btn { display: none; }
/* ===== END TOP BAR ===== */

/* ===== DESKTOP NAV ===== */
.desktop-nav {
  display: none; /* Hidden on mobile */
  gap: 10px;
  margin-right: 20px;
}
.desktop-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 70px;
  height: 58px;
  padding: 8px 6px 6px;
  background: var(--pd-card);
  border: 1.5px solid #A9C4D2;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(11,53,80,0.14);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--pd-ink);
}
.desktop-nav-btn .label {
  font-size: 9px;
  font-weight: 800;
  color: var(--pd-ink);
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.desktop-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--pd-ink);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.desktop-nav-btn:hover {
  background: var(--pd-brand-soft);
  border-color: var(--pd-brand);
  color: var(--pd-brand-deep);
}
.desktop-nav-btn:hover svg {
  stroke: var(--pd-brand-deep);
}
.desktop-nav-btn:hover .label {
  color: var(--pd-brand-deep);
}
.desktop-nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.desktop-nav-btn.active {
  background: var(--pd-brand-soft);
  border: 1px solid var(--pd-brand);
  color: var(--pd-brand-deep);
}
.desktop-nav-btn.active svg {
  stroke: var(--pd-brand-deep);
}
.desktop-nav-btn.active .label {
  color: var(--pd-brand-deep);
}

/* Show desktop nav on desktop devices only */
.desktop-device .desktop-nav {
  display: flex;
}

/* Narrow desktop - shrink logo and nav */
@media (max-width: 900px) {
  .desktop-device .top-bar-logo {
    font-size: 32px;
    letter-spacing: 2px;
  }
  .desktop-device .desktop-nav {
    gap: 6px;
    margin-right: 12px;
  }
  .desktop-device .desktop-nav-btn {
    width: 60px;
    height: 50px;
    padding: 6px 4px 4px;
  }
  .desktop-device .desktop-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  .desktop-device .desktop-nav-btn .label {
    font-size: 8px;
  }
  .desktop-device .desktop-menu {
    top: 90px;
  }
  .desktop-device .top-bar-right {
    gap: 10px;
  }
  .desktop-device .top-bar-greeting {
    font-size: 0.9rem;
  }
  .desktop-device .top-bar-dots {
    font-size: 1.4rem;
  }
}
@media (max-width: 700px) {
  .desktop-device .top-bar-logo {
    display: none;
  }
  .desktop-device .top-bar-right {
    flex: 1;
    justify-content: flex-end;
  }
}

/* ===== CONTENT NAV BAR ===== */
/* ===== CONTENT NAV - Ultra Compact Single Bar ===== */
.content-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  margin: 0 16px 20px 16px;
}
.content-nav-bar {
  display: flex;
  align-items: center;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: 0 2px 10px rgba(11,53,80,0.09);
}
.content-nav-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--pd-ink-2);
  font-family: var(--pd-font-display);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.content-nav-btn:hover {
  background: var(--pd-brand-soft);
  color: var(--pd-brand-deep);
  border-color: transparent;
}
.content-nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.content-nav-btn.active {
  background: var(--pd-brand);
  color: #fff;
  font-weight: 800;
  border: 2px solid transparent;
}
.content-nav-divider {
  width: 1px;
  height: 20px;
  background: var(--pd-line);
  margin: 0 4px;
}
.content-nav-arrow {
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: var(--pd-brand-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 12px;
}
.content-nav-arrow:hover {
  background: var(--pd-brand-soft);
  color: var(--pd-brand-deep);
}
.content-nav-arrow:active {
  transform: scale(0.95);
}
.content-nav-label {
  font-family: var(--pd-font-display);
  font-size: 13.5px;
  font-weight: 800;
  padding: 0 6px;
  color: var(--pd-ink);
  min-width: 70px;
  text-align: center;
}

/* ===== BOTTOM NAV - Phase 2A ===== */
.bottom-nav {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  z-index: 1000;
}
.bottom-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-panel);
  padding: 5px;
  box-shadow: var(--pd-shadow-float);
}
.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 78px;
  height: 54px;
  padding: 7px 6px 5px;
  background: transparent;
  border: none;
  border-radius: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--pd-sub);
}
.bottom-nav-btn .label {
  font-size: 9px;
  font-weight: 800;
  color: var(--pd-ink);
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.bottom-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--pd-ink);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.bottom-nav-btn:hover {
  background: var(--pd-brand-soft);
  color: var(--pd-brand-deep);
}
.bottom-nav-btn:hover svg {
  stroke: var(--pd-brand-deep);
}
.bottom-nav-btn:hover .label {
  color: var(--pd-brand-deep);
}
.bottom-nav-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}
.bottom-nav-btn.active {
  background: var(--pd-brand-soft);
  box-shadow: none;
  border: none;
  color: var(--pd-brand-deep);
}
.bottom-nav-btn.active svg {
  stroke: var(--pd-brand-deep);
}
.bottom-nav-btn.active .label {
  color: var(--pd-brand-deep);
}
/* Menu button active state when fan is open */
#bottomNavMenu.menu-open {
  background: #22d3ee;
  border-color: #074068;
}
#bottomNavMenu.menu-open svg {
  stroke: #074068;
}
#bottomNavMenu.menu-open .label {
  color: #074068;
}

/* Portrait phones and small tablets */
/* Show bottom nav on touch devices only */
.touch-device .bottom-nav {
  display: block;
}
.touch-device .main-content {
  padding-bottom: 100px;
}

/* Landscape phones - short height adjustment */
@media (max-height: 500px) {
  .touch-device .bottom-nav {
    bottom: 10px;
  }
  .touch-device .main-content {
    padding-bottom: 80px;
  }
  .touch-device .radial-menu {
    bottom: 70px;
  }
}
/* ===== END FLOATING NAV ===== */

/* ===== RADIAL SETTINGS MENU - ROTATION STYLE ===== */
.radial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; /* Invisible - just catches taps */
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
}
.radial-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== VERTICAL MENU STACK ===== */
/* Vertical menu fanning UP from right of nav bar */
.radial-menu {
  position: fixed;
  bottom: 90px;
  right: 20px; /* Default fallback, JS overrides */
  z-index: 1101;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.radial-menu.active {
  pointer-events: auto;
}

/* Menu buttons - rounded rectangles, vertical fan UP */
.menu-stack-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 175px;
  height: auto;
  padding: 10px 12px;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(11,53,80,0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  color: #22d3ee;
}
.menu-stack-btn .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Staggered animation - Setup first (bottom), AI last (top) */
.menu-stack-btn:nth-child(1) { transition-delay: 0s; }    /* Setup - bottom */
.menu-stack-btn:nth-child(2) { transition-delay: 0.05s; } /* Markers */
.menu-stack-btn:nth-child(3) { transition-delay: 0.1s; }  /* Premium Pay */
.menu-stack-btn:nth-child(4) { transition-delay: 0.15s; } /* AI - top */
.menu-stack-btn:nth-child(5) { transition-delay: 0.2s; }
.menu-stack-btn:nth-child(6) { transition-delay: 0.25s; }
.menu-stack-btn:nth-child(7) { transition-delay: 0.3s; }

.menu-stack-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--pd-brand);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

/* When menu is active - buttons fan out */
.radial-menu.active .menu-stack-btn {
  opacity: 1;
  transform: scale(1);
}

/* Hover effect - cyan background, dark text/icon */
.menu-stack-btn:hover {
  background: var(--pd-brand-soft);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
  border-color: transparent;
  color: var(--pd-brand-deep);
}
.menu-stack-btn:hover svg {
  stroke: var(--pd-brand-deep);
}
.menu-stack-btn:hover .label {
  color: var(--pd-brand-deep);
}

/* Active/pressed state */
.menu-stack-btn:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(11,53,80,0.18);
}
/* ===== END MENU ===== */

/* ===== DESKTOP MENU (fans DOWN from header) ===== */
.desktop-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1099;
}
.desktop-menu-overlay.show {
  display: block;
}
.desktop-menu {
  position: fixed;
  top: 105px;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  visibility: hidden;
  /* right value set by JS */
}
.desktop-menu.active {
  visibility: visible;
  pointer-events: auto;
}
.desktop-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 175px;
  height: auto;
  padding: 10px 12px;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(11,53,80,0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--pd-ink);
}
.desktop-menu-btn .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.desktop-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--pd-brand);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}
.desktop-menu.active .desktop-menu-btn {
  opacity: 1;
  transform: scale(1);
}
.desktop-menu-btn:nth-child(1) { transition-delay: 0s; }
.desktop-menu-btn:nth-child(2) { transition-delay: 0.05s; }
.desktop-menu-btn:nth-child(3) { transition-delay: 0.1s; }
.desktop-menu-btn:nth-child(4) { transition-delay: 0.15s; }
.desktop-menu-btn:hover {
  background: var(--pd-brand-soft);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
  border-color: var(--pd-brand-deep);
  color: var(--pd-brand-deep);
}
.desktop-menu-btn:hover svg {
  stroke: var(--pd-brand-deep);
}
.desktop-menu-btn:hover .label {
  color: var(--pd-brand-deep);
}
.desktop-menu-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Desktop menu hidden on touch devices via .desktop-device class */

/* Desktop Menu button active state when fan is open */
#desktopNavMenu.menu-open {
  background: #22d3ee;
  border-color: var(--pd-brand-deep);
}
#desktopNavMenu.menu-open svg {
  stroke: var(--pd-brand-deep);
}
#desktopNavMenu.menu-open .label {
  color: var(--pd-brand-deep);
}
/* ===== END DESKTOP MENU ===== */

/* ===== BETA UPDATES SYSTEM ===== */
.top-bar-dots-wrapper {
  position: relative;
  cursor: pointer;
}
.beta-notification-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 50%;
  border: 2px solid #0f172a;
  display: none;
  animation: betaPulse 2s ease-in-out infinite;
}
@keyframes betaPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}
.beta-updates-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22d3ee !important;
  font-weight: 500;
  position: relative;
}
.beta-updates-btn svg {
  stroke: #22d3ee;
}
.beta-updates-panel-btn {
  color: #4ade80 !important;
}
.beta-updates-panel-btn svg {
  stroke: #4ade80 !important;
}
.beta-menu-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: auto;
  display: none;
  border: 1px solid rgba(0,0,0,0.4);
  animation: betaPulse 2s ease-in-out infinite;
}
.beta-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #22d3ee;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 99999 !important;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.beta-toast.show {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.beta-toast-dot {
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 50%;
  flex-shrink: 0;
}
.beta-toast-text {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.beta-toast-text strong {
  color: #22d3ee;
}
.beta-toast-dismiss {
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  margin-left: 10px;
}
.beta-toast-dismiss:hover {
  color: #94a3b8;
}

/* Required Action pulse animation */
@keyframes requiredActionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.4); }
}
.required-action-pulse {
  animation: requiredActionPulse 1.5s ease-in-out infinite;
}
/* ===== END BETA UPDATES SYSTEM ===== */

/* ===== STAT BUBBLE HOVER LEDGER ===== */
.stat-ledger {
  position: fixed;
  background: #FFFFFF;
  border: 1px solid #E4EEF3;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 200px;
  max-width: 260px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
}
.stat-ledger-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-brand);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EDF3F6;
}
.stat-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: var(--pd-ink);
  border-bottom: 1px solid #F0F5F8;
}
.stat-ledger-row:last-child {
  border-bottom: none;
}
.stat-ledger-date {
  font-weight: 600;
  color: var(--pd-ink);
}
.stat-ledger-tag {
  font-size: 10px;
  color: var(--pd-ink);
}
.stat-ledger-warning {
  font-size: 10px;
  color: var(--pd-warn);
  background: #F7EDDC;
  padding: 2px 6px;
  border-radius: 4px;
}
.stat-ledger-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #EDF3F6;
  font-size: 11px;
  color: var(--pd-brand);
  text-align: center;
}
/* Stat ledger summary - at top below header */
.stat-ledger-summary {
  font-size: 13px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E4EEF3;
}
.stat-ledger-summary .taken { color: var(--pd-ink); font-weight: 700; }
.stat-ledger-summary .planned { color: var(--pd-ink); font-weight: 700; }
.stat-ledger-summary .left { color: var(--pd-ink); font-weight: 700; }
.stat-ledger-summary .muted { color: var(--pd-ink-2); }
.stat-ledger-summary .total { color: var(--pd-ink); font-size: 13px; }
/* Pills */
.stat-ledger-pill {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stat-ledger-pill.taken {
  background: var(--pd-navy-band);
  color: #FFFFFF;
}
.stat-ledger-pill.planned {
  background: var(--pd-brand-soft);
  color: var(--pd-brand-deep);
}
.stat-ledger-pill.fh {
  background: #DBEAFE;
  color: #1D4ED8;
}
.stat-ledger-pill.pto {
  background: var(--pd-brand-soft);
  color: var(--pd-brand-deep);
}
.stat-ledger-pill-group {
  display: flex;
  gap: 5px;
}
/* OT specific styles */
.stat-ledger-ot-summary {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E4EEF3;
}
.stat-ledger-ot-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.stat-ledger-ot-total-label { color: var(--pd-ink); font-size: 12px; }
.stat-ledger-ot-total-value { color: var(--pd-ink); font-size: 18px; font-weight: 700; }
.stat-ledger-ot-goal {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}
.stat-ledger-ot-goal-label { color: var(--pd-ink); }
.stat-ledger-ot-goal-target { color: var(--pd-ink); font-weight: 500; }
.stat-ledger-ot-goal-left { color: var(--pd-ink); font-weight: 600; }
.stat-ledger-ot-goal-pct { color: var(--pd-ink); font-weight: 400; }
.stat-ledger-ot-breakdown-title {
  color: var(--pd-ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.stat-ledger-ot-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 12px;
}
.stat-ledger-ot-type { font-weight: 600; min-width: 24px; }
.stat-ledger-ot-type.ot { color: var(--pd-ink); }
.stat-ledger-ot-type.dt { color: var(--pd-ink); }
.stat-ledger-ot-type.tt { color: var(--pd-ink); }
.stat-ledger-ot-calc { color: var(--pd-ink); }
.stat-ledger-ot-result { color: var(--pd-ink); font-weight: 600; }
/* Row past styling */
.stat-ledger-row.past { color: #94a3b8; }
.stat-ledger-empty {
  font-size: 12px;
  color: var(--pd-ink);
  text-align: center;
  padding: 10px 0;
}
.stat-ledger::-webkit-scrollbar {
  width: 6px;
}
.stat-ledger::-webkit-scrollbar-track {
  background: #F0F5F8;
  border-radius: 3px;
}
.stat-ledger::-webkit-scrollbar-thumb {
  background: #E4EEF3;
  border-radius: 3px;
}
.stat[data-ledger] {
  cursor: pointer;
}
/* ===== END STAT BUBBLE HOVER LEDGER ===== */

/* ===== HELP TOOLTIP SYSTEM ===== */
.help-label {
  cursor: pointer;
}
.help-label:hover {
  color: #22d3ee;
}
.help-label .help-q {
  font-size: inherit;
  color: var(--pd-brand);
  margin-left: 4px;
}
.help-label:hover .help-q {
  color: #22d3ee;
}
.info-trigger {
  cursor: pointer;
}
.info-trigger .help-q {
  font-size: inherit;
  color: var(--pd-brand-deep);
  margin-left: 4px;
}
.info-trigger:hover .help-q {
  color: var(--pd-brand-deep);
}
.help-tooltip {
  position: fixed;
  background: linear-gradient(180deg, #1e3a4c 0%, #162d3a 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 200px;
  max-width: 280px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 10001;
  display: none;
}
.help-tooltip-header {
  font-size: 13px;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.help-tooltip-body {
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
}
.help-tooltip::-webkit-scrollbar {
  width: 6px;
}
.help-tooltip::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.help-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
/* ===== END HELP TOOLTIP SYSTEM ===== */

/* ===== UPLOAD BUTTON STYLES ===== */
.setup-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pd-navy-band);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.4);
  transition: all 0.2s;
}
.setup-upload-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.5);
}
/* ===== END UPLOAD BUTTON STYLES ===== */

/* =============================================
   MODAL DESIGN SYSTEM - Session 215
   Standard classes for interactive modals
   ============================================= */

/* Form Card - Light teal card for inputs */
.modal-form-card {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border: 1px solid rgba(0, 150, 167, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

/* Form Description */
.modal-form-description {
  font-size: 13px !important;
  color: #1e3a4c !important;
  font-weight: 500 !important;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Form Grid */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-form-grid.single-column {
  grid-template-columns: 1fr;
}
.modal-form-field.full-width {
  grid-column: 1 / -1;
}

/* Form Labels */
.modal-form-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 6px;
}
.modal-form-label .help-q {
  color: var(--pd-brand-deep);
  cursor: pointer;
  margin-left: 2px;
}

/* Form Inputs */
.modal-form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #1e293b;
  background: #fff;
  border: 1px solid #B9D6E3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.modal-form-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Form Select */
.modal-form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #1e293b;
  background: #fff;
  border: 1px solid #B9D6E3;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

/* Danger Input (for confirmations) */
.modal-form-input.danger {
  border-color: #fca5a5;
  background: #fef2f2;
}
.modal-form-input.danger:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Warning Card */
.modal-warning-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.modal-warning-card.danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
}
.modal-warning-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}
.modal-warning-card.danger .modal-warning-title {
  color: #991b1b;
}
.modal-warning-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.modal-warning-list li {
  font-size: 13px;
  color: #78350f;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.modal-warning-card.danger .modal-warning-list li {
  color: #7f1d1d;
}
.modal-warning-list li::before {
  content: '\2022';
  position: absolute;
  left: 6px;
  color: #d97706;
}
.modal-warning-card.danger .modal-warning-list li::before {
  color: #dc2626;
}
.modal-warning-text {
  font-size: 13px;
  font-weight: 600;
  color: #78350f;
}
.modal-warning-card.danger .modal-warning-text {
  color: #7f1d1d;
}

/* Preset Group */
.modal-preset-group {
  margin-bottom: 16px;
}
.modal-preset-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.modal-preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-preset-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--pd-navy-band);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-preset-btn:hover {
  background: var(--pd-brand-deep);
  transform: translateY(-1px);
  color: #fff !important;
}
.modal-preset-btn.selected {
  background: linear-gradient(135deg, var(--pd-brand) 0%, #0e7490 100%) !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
  color: #fff !important;
}

/* Preset Settings Row (for Premium Pay Presets modal) */
.modal-preset-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.modal-preset-name {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}
.modal-preset-rate {
  font-size: 14px;
  font-weight: 600;
  color: #059669;
  min-width: 85px;
  text-align: right;
}
.modal-preset-actions {
  display: flex;
  gap: 8px;
}

/* Items Section */
.modal-items-section {
  margin-top: 16px;
}
.modal-items-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.modal-items-box {
  background: rgba(14,116,144,0.08);
  border: 1px solid #B9D6E3;
  border-radius: 8px;
  padding: 16px;
  min-height: 60px;
}
.modal-items-empty {
  font-size: 13px;
  color: #64748b;
}
.modal-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #B9D6E3;
}
.modal-item-row:last-child {
  border-bottom: none;
}
.modal-item-name {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}
.modal-item-value {
  font-size: 14px;
  color: #059669;
  font-weight: 600;
}
.modal-item-actions {
  display: flex;
  gap: 8px;
}
.modal-item-action {
  font-size: 12px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.modal-item-action:hover {
  color: #fff;
}
.modal-item-action.delete:hover {
  color: #ef4444;
}

/* Entries Section */
.modal-entries-section {
  margin-top: 16px;
}
.modal-entries-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-entries-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--pd-brand);
  border-radius: 50%;
}

/* Entry Card */
.modal-entry-card {
  background: var(--pd-field);
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.modal-entry-card.purple {
  background: var(--pd-brand-soft);
  border-color: #B9D6E3;
}
.modal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modal-entry-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.modal-entry-delete {
  font-size: 13px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-entry-delete:hover {
  color: #ef4444;
}
.modal-entry-note {
  font-size: 13px;
  font-style: italic;
  color: #334155;
  margin-bottom: 8px;
}
.modal-entry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.modal-entry-detail {
  font-size: 12px;
  color: #334155;
}
.modal-entry-detail strong {
  font-weight: 700;
}

/* Add Row */
.modal-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.modal-add-row .modal-form-input {
  flex: 1;
}
.modal-add-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.modal-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.modal-add-btn:active {
  transform: scale(0.95);
}

/* Button Row */
.modal-button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* Buttons */
.modal-btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}
.modal-btn-primary:hover {
  transform: translateY(-1px);
}
.modal-btn-primary:active {
  transform: scale(0.97);
}
.modal-btn-primary.purple {
  background: var(--pd-navy-band);
}
.modal-btn-primary.purple:hover {
}
.modal-btn-primary.orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.modal-btn-primary.orange:hover {
}
.modal-btn-secondary {
  background: #e2e8f0;
  color: #475569;
}
.modal-btn-secondary:hover {
  background: #cbd5e1;
  color: #334155;
}
.modal-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff !important;
}
.modal-btn-danger:hover {
  transform: translateY(-1px);
  color: #fff !important;
}
.modal-btn-danger:active {
  transform: scale(0.97);
}

/* Help Icon (brand-soft bubble, ink ?) - PURPLE-HELP-01 */
.modal-help-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  background: var(--pd-brand-soft);
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--pd-ink) !important;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
.custom-modal-title .modal-help-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  font-size: 12px !important;
}

/* Help question mark with circle background - color variants */
.help-q-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
}
.help-q-circle.purple {
  background: var(--pd-brand-soft);
  color: var(--pd-ink) !important;
}
.help-q-circle.cyan {
  background: rgba(34, 211, 238, 0.4);
  color: var(--pd-ink) !important;
}
.help-q-circle.orange {
  background: rgba(249, 115, 22, 0.5);
  color: var(--pd-ink) !important;
}
.help-q-circle.violet {
  background: var(--pd-brand-soft);
  color: var(--pd-ink) !important;
}
/* Override info-trigger default color for circle variants (HELP-Q-INK-01: ink ? on the light fills) */
.info-trigger .help-q.help-q-circle.cyan,
.info-trigger .help-q.help-q-circle.orange,
.help-q.help-q-circle.cyan.info-trigger,
.help-q.help-q-circle.orange.info-trigger {
  color: var(--pd-ink) !important;
}
/* PURPLE-HELP-01: the former purple / violet circles are brand-soft with an ink ? */
.info-trigger .help-q.help-q-circle.purple,
.info-trigger .help-q.help-q-circle.violet,
.help-q.help-q-circle.purple.info-trigger,
.help-q.help-q-circle.violet.info-trigger {
  color: var(--pd-ink) !important;
}

/* Override global modal styles for new design system */
.modal-form-card .modal-form-label {color:var(--pd-ink);font-size:14px;font-weight:700;}
.modal-form-card .modal-form-label strong {color:var(--pd-danger);}
.modal-form-card .modal-form-label .help-q {color:var(--pd-brand-deep);}
.modal-form-card .modal-form-description {color:var(--pd-ink);font-size:13px;font-weight:500;}
.modal-form-card .modal-form-input {color:var(--pd-ink);background:#fff;border:1px solid var(--pd-line);}
.modal-form-card .modal-form-input::placeholder {color:var(--pd-sub);}
.modal-form-card .modal-form-input:focus {border-color:var(--pd-brand);box-shadow:0 0 0 3px var(--pd-brand-soft);}
.modal-form-card .modal-form-input.danger {border-color:#F2CFCC;background:var(--pd-danger-soft);}
.modal-form-card .modal-form-input.danger:focus {border-color:var(--pd-danger);box-shadow:0 0 0 3px var(--pd-danger-soft);}
.modal-form-card .modal-form-select {color:var(--pd-ink);background:#fff;border:1px solid var(--pd-line);}
.modal-form-card .modal-preset-label {color:var(--pd-ink-2);}
.modal-form-card .modal-item-row {border-bottom-color:var(--pd-line);}
.modal-form-card .modal-item-name {color:var(--pd-ink);}
.modal-form-card .modal-item-value {color:var(--pd-money);}
.modal-form-card .modal-item-action {color:var(--pd-ink-2);}
.modal-form-card .modal-item-action:hover {color:var(--pd-ink);}
.modal-form-card .modal-item-action.delete:hover {color:var(--pd-danger);}
.modal-form-card .modal-items-empty {color:var(--pd-ink-2);}
.modal-form-card .modal-preset-row {background:var(--pd-field);}
.modal-form-card .modal-preset-name {color:var(--pd-ink);}
.modal-form-card .modal-preset-rate {color:var(--pd-money);}
.modal-form-card .modal-preset-actions .modal-item-action {color:var(--pd-ink-2);}
.modal-form-card .modal-preset-actions .modal-item-action:hover {color:var(--pd-ink);}
.modal-form-card .modal-preset-actions .modal-item-action.delete:hover {color:var(--pd-danger);}
.modal-warning-card .modal-warning-title {color:#991b1b;}
.modal-warning-card .modal-warning-list li {color:#7f1d1d;}
.modal-warning-card .modal-warning-text {color:#7f1d1d !important;}
.modal-warning-card.danger .modal-warning-title {color:#991b1b !important;}
.modal-warning-card.danger .modal-warning-list li {color:#7f1d1d !important;}
.modal-warning-card.danger .modal-warning-text {color:#7f1d1d !important;}
.modal-items-box .modal-items-empty {color:#64748b !important;}
.modal-items-box .modal-item-row {border-bottom-color:#B9D6E3 !important;}
.modal-items-box .modal-item-name {color:#334155 !important;}
.modal-items-box .modal-item-value {color:#059669 !important;}
.modal-items-box .modal-item-action {color:#64748b !important;}
.modal-items-box .modal-item-action:hover {color:#334155 !important;}
.modal-items-box .modal-item-action.delete:hover {color:#ef4444 !important;}
.modal-entry-card .modal-entry-title {color:var(--pd-ink) !important;}
.modal-entry-card .modal-entry-note {color:var(--pd-ink) !important;}
.modal-entry-card .modal-entry-detail {color:var(--pd-ink) !important;}
.modal-entry-card .modal-entry-detail strong {color:var(--pd-ink) !important;}
.modal-entry-card .modal-entry-total {color:var(--pd-ink) !important;font-weight:700 !important;}
.modal-entry-card .modal-entry-delete {color:#B42318 !important;font-weight:700;}
.modal-entry-card .modal-entry-delete:hover {color:#B42318 !important;text-decoration:underline;}

/* Button overrides for new modal design system */
.modal-button-row .modal-btn-primary {background:var(--pd-navy-band) !important;color:#fff !important;}
.modal-button-row .modal-btn-secondary {background:#e2e8f0 !important;color:#475569 !important;}
.modal-button-row .modal-btn-danger {background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%) !important;color:#fff !important;}

/* Dark UI elements inside light modals - preserve white text */
.ytd-segmented-control,
.ytd-segmented-control *,
.ytd-segmented-control span,
.ytd-segmented-control button,
#paystubUploadZone,
#paystubUploadZone *,
#paystubUploadZone div,
#compareUploadZone,
#compareUploadZone *,
#compareUploadZone div {
  color: inherit !important;
}
#ytdLabelOffCycleBtn, #ytdLabelAdjustBtn, #ytdIconOffCycle, #ytdIconAdjust {
  color: #ffffff !important;
}
#paystubUploadZone .upload-text-title,
#compareUploadZone .upload-text-title {
  color: #22d3ee !important;
}
#paystubUploadZone .upload-text-sub,
#compareUploadZone .upload-text-sub {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== END MODAL DESIGN SYSTEM ===== */

/* ============================================================
   CM-SHEET - Phase 2 sheet variant for showCustomModal
   Applied via config.modalClass:'cm-sheet'. Scoped entirely
   under .custom-modal-overlay.cm-sheet - all other modals
   untouched. Token-driven per UI_MIGRATION.md.
   ============================================================ */
.custom-modal-overlay.cm-sheet {
  align-items: flex-end;
  padding: 0;
  padding-top: max(12px, env(safe-area-inset-top));
  height: 100vh;
  height: 100dvh;
  background: rgba(11,53,80,0.42);
  overflow-y: hidden;
}

/* Adjust Pay sub-menu rows (Session 250) */
.ap-row {
  display: flex; align-items: center; gap: 12px;
  background: #F4FAFC; border: 1px solid #EAF2F6; border-radius: 11px;
  padding: 13px 14px; margin-bottom: 9px; cursor: pointer;
  transition: background 0.15s;
}
.ap-row:hover { background: #E3F5FA; }
.ap-row:active { background: #E3F5FA; transform: scale(0.99); }
.ap-row-icon {
  width: 32px; height: 32px; border-radius: 8px; background: #E3F5FA;
  color: #065E75; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ap-row-icon svg { width: 16px; height: 16px; }
.ap-row-text { flex: 1; min-width: 0; }
.ap-row-name { font-size: 14px; font-weight: 600; color: #0F2733; }
.ap-row-desc { font-size: 11px; color: #7E99A8; margin-top: 1px; }
.ap-row-chev { color: #7E99A8; font-size: 17px; flex-shrink: 0; }
.cm-sheet .custom-modal {
  background: var(--pd-card);
  border: none;
  border-radius: var(--pd-r-panel) var(--pd-r-panel) 0 0;
  max-width: 420px;
  width: 100%;
  max-height: 88vh;
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(11,53,80,0.3);
  animation: cmSheetUp .28s ease;
}
@keyframes cmSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 768px) {
  .custom-modal-overlay.cm-sheet { align-items: center; padding: 24px; }
  .cm-sheet .custom-modal { border-radius: var(--pd-r-panel); max-height: 86vh; }
}
.cm-sheet .custom-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--pd-card);
  border-bottom: 1px solid var(--pd-line);
  border-radius: var(--pd-r-panel) var(--pd-r-panel) 0 0;
  padding: 22px 20px 12px;
}
.cm-sheet .custom-modal-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: #D1DCE2;
  border-radius: 2px;
}
@media (min-width: 768px) {
  .cm-sheet .custom-modal-header { padding-top: 14px; }
  .cm-sheet .custom-modal-header::before { display: none; }
}
.cm-sheet .custom-modal-title {
  font-family: var(--pd-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--pd-ink);
  letter-spacing: -0.3px;
}
.cm-sheet .custom-modal-close { background: #EFF5F8; color: var(--pd-ink-2); }
.cm-sheet .custom-modal-body { padding: 16px 20px 22px; }
.cm-sheet .custom-modal-body,
.cm-sheet .custom-modal-body div,
.cm-sheet .custom-modal-body span,
.cm-sheet .custom-modal-body label { color: var(--pd-ink); }
/* Preset pieces on the sheet */
.cm-sheet .modal-form-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.cm-sheet .modal-form-card .modal-form-description { color: var(--pd-ink-2) !important; font-size: 12.5px !important; font-weight: 500 !important; margin-bottom: 12px; }
.cm-sheet .modal-preset-row,
.cm-sheet .modal-form-card .modal-preset-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pd-field) !important;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-r-card);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.cm-sheet .modal-preset-name,
.cm-sheet .modal-form-card .modal-preset-name { color: var(--pd-ink) !important; font-weight: 700; font-size: 14.5px; flex: 1; }
.cm-sheet .modal-preset-rate,
.cm-sheet .modal-form-card .modal-preset-rate { color: var(--pd-money) !important; font-family: var(--pd-font-mono); font-weight: 700; font-size: 14px; }
.cm-sheet .modal-item-action,
.cm-sheet .modal-form-card .modal-item-action { color: var(--pd-ink-2) !important; font-weight: 700; font-size: 12.5px; background: none; border: none; cursor: pointer; padding: 4px 6px; }
.cm-sheet .modal-item-action.delete { color: var(--pd-danger) !important; }
.cm-sheet .modal-add-row { border-top: 1px solid var(--pd-line) !important; }
.cm-sheet .modal-form-input,
.cm-sheet .modal-form-card .modal-form-input {
  background: var(--pd-field) !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: var(--pd-r-input) !important;
  color: var(--pd-ink) !important;
  font-family: var(--pd-font-body);
  font-weight: 600;
  padding: 11px 13px;
}
.cm-sheet .modal-form-input:focus { border-color: var(--pd-brand) !important; outline: none; }
.cm-sheet .modal-add-btn {
  background: var(--pd-brand);
  color: #fff;
  border: none;
  border-radius: var(--pd-r-input);
  width: 46px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}
.cm-sheet .modal-btn-secondary {
  background: transparent;
  color: var(--pd-ink-2);
  font-family: var(--pd-font-display);
  font-weight: 800;
  font-size: 12.5px;
}
.cm-sheet .modal-btn-secondary:hover { background: #EFF5F8; transform: none; }

/* Phase 7b: year-locked state - toggled by JS on setupCard, previously unstyled */
.setup-panel.year-locked {
  background: var(--pd-field);
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--pd-warn);
}
.setup-panel.year-locked input,
.setup-panel.year-locked select {
  opacity: 0.65;
}
/* ===== END CM-SHEET ===== */

/* ===== PUNCH SLICE: rings, chips, 4-across, greeting ===== */
/* Cap ring dials - --pct fed by updateNextCheckHero */
#oasdiBubble, #k401Bubble { padding-left: 66px; min-height: 74px; justify-content: center; }
#oasdiBubble::after, #k401Bubble::after {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--pd-brand) calc(var(--pct, 0) * 1%), #E4EEF3 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
#oasdiBubble.maxed::after { background: conic-gradient(var(--pd-money) calc(var(--pct, 0) * 1%), #E4EEF3 0); }
#k401Bubble.maxed::after { background: conic-gradient(var(--pd-money) calc(var(--pct, 0) * 1%), #E4EEF3 0); }
/* Time-off compact 4-across on mobile */
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats .stat { grid-column: span 2; }
  #vacStat, #floatStat, #sickStat, #workDaysStat { grid-column: span 1; padding: 9px 7px; text-align: center; align-items: center; }
  #vacStat strong, #floatStat strong, #sickStat strong, #workDaysStat strong { font-size: 15px; }
  #vacStat .stat-info-icon, #floatStat .stat-info-icon, #sickStat .stat-info-icon { top: 0; right: 0; padding: 8px; }
}
/* Greeting: rotating eyebrow over bold name */
.top-bar-greeting { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; gap: 1px; }
.greet-eyebrow { font-family: var(--pd-font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.2px; text-transform: none; color: var(--pd-ink-2); }
.greet-name { font-family: var(--pd-font-display); font-size: 15px; font-weight: 800; color: var(--pd-ink); letter-spacing: -0.2px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greet-name:empty::before { content: ''; }
/* Ring percentage - JS-injected span, centered in dial */
.ring-pct { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: var(--pd-font-display); font-size: 11.5px; font-weight: 900;
  color: var(--pd-ink); pointer-events: none; }
/* Runway: day ticks + period-close marker (vars fed by hero JS) */
#nextCheckStat .nc-runway { background: #E4EEF3; }
#nextCheckStat .nc-runway i { z-index: 1; }
#nextCheckStat .nc-runway::before {
  content: ''; position: absolute; inset: 0 2px 0 0; border-radius: 3px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--tick, 10%) - 1.5px), rgba(11,53,80,0.55) calc(var(--tick, 10%) - 1.5px), rgba(11,53,80,0.55) var(--tick, 10%));
  opacity: 1;
}
#nextCheckStat .nc-runway::after {
  content: ''; position: absolute; top: 50%; left: var(--close, -10%); transform: translate(-50%,-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--pd-danger);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pd-danger); display: var(--closeshow, none); z-index: 3; }
.stat-sub { font-family: var(--pd-font-display); font-size: 11px; font-weight: 700; color: var(--pd-ink); letter-spacing: 0; margin-left: 2px; }
.nc-runway-days { position: relative; height: 13px; margin-top: 4px; width: calc(100% - 20px); }
.nc-runway-days span { position: absolute; transform: translateX(-50%); font-family: var(--pd-font-display); font-size: 9.5px; font-weight: 800; color: var(--pd-ink); line-height: 1; }
.nc-runway-days span:first-child { transform: none; }
.nc-runway-days span:last-child { transform: translateX(-100%); }
.nc-runway-days span.close { color: var(--pd-danger); }
/* Weight hierarchy: heroes carry 800, everything else 700 */
#nextCheckStat strong, #ytdGross, #ytdNet { font-weight: 800; }
/* Quartet tap affordance (B): chevron rides the value */
#vacCounter::after, #floatCounter::after, #sickCounter::after, #otCounter::after {
  content: '\203A'; color: var(--pd-brand); font-weight: 900; margin-left: 4px; font-size: 0.9em;
}
/* Next Check tap affordances (Phase C): amount chevron rides the big number; runway chevron in flex row */
#nextCheckStat .nc-amt-chev {
  display: inline-block; color: var(--pd-brand); font-weight: 900; font-size: 22px;
  line-height: 1; margin-left: 6px; vertical-align: 6px; cursor: pointer;
}
#nextCheckStat .nc-runway-chev {
  flex: 0 0 14px; text-align: right; color: var(--pd-brand); font-weight: 900;
  font-size: 15px; line-height: 1; cursor: pointer;
}
/* Mobile: borderless shadow-floated cards */
@media (max-width: 768px) {
  .stat { border: none; box-shadow: 0 1px 4px rgba(11,53,80,0.08), 0 2px 10px rgba(11,53,80,0.05); }
  .stat.maxed { border: none; }
}
/* Hero: amount dominates, date supports */
#nextCheckStat strong .nc-amt { display: inline-block; font-size: 31px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.05; margin-top: 2px; }
#nextCheckStat strong .nc-date { display: block; font-size: 13.5px; font-weight: 700; color: var(--pd-ink); letter-spacing: -0.1px; margin-top: 5px; }
#nextCheckStat strong .nc-date::before { content: 'Payday '; color: var(--pd-ink-2); font-weight: 600; }
/* Quartet: chevron is the affordance - info circles retired */
#vacStat .stat-info-icon, #floatStat .stat-info-icon, #sickStat .stat-info-icon, #otStat .stat-info-icon { display: none; }
/* Section headers: full-width label rows inside the stats grid */
.stats-sec { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 10px 2px -2px; }
.stats-sec b { font-family: var(--pd-font-display); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pd-ink-2); white-space: nowrap; }
.stats-sec i { flex: 1; height: 1px; background: #D8E4EA; }
/* OT Goal: intentionally full-width with progress bar */
#otStat { grid-column: 1 / -1; text-align: left; align-items: flex-start; padding: 11px 14px 13px; }
#otStat strong { font-size: 15px; }
#otStat::after { content: ''; display: block; width: 100%; height: 5px; border-radius: 3px; margin-top: 8px;
  background: linear-gradient(90deg, var(--pd-brand) calc(var(--otpct, 0) * 1%), #E4EEF3 0); }
/* Cap sub-lines */
.cap-sub { display: block; font-family: var(--pd-font-display); font-size: 11px; font-weight: 700; color: var(--pd-brand-deep); margin-top: 4px; letter-spacing: 0; text-transform: none; }
#oasdiBubble .cap-sub { color: var(--pd-ink); }
/* Session 251: cap pace line - always-visible "On pace to cap ~[date]" with chevron */
.cap-pace { display: inline-flex; align-items: center; gap: 4px; font-family: var(--pd-font-display); font-size: 11px; font-weight: 700; color: #0E7490; margin-top: 3px; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.cap-pace-chev { flex-shrink: 0; opacity: 0.8; vertical-align: -1px; }
.stat-ledger-caption { font-size: 10px; color: var(--pd-ink-2); opacity: 0.8; margin-top: 8px; line-height: 1.4; padding-top: 6px; border-top: 1px solid rgba(11,53,80,0.08); }
.stat-ledger-caption.ot-note { color: #B45309; opacity: 1; border-top: none; padding-top: 0; margin-top: 6px; font-weight: 600; }
/* ===== END PUNCH SLICE ===== */

/* ===== TAKE-HOME TARGET - PHASE A (Session 245) ===== */
.nc-target-line {
  margin-top: 10px;
  background: var(--pd-input-card);
  border: 1px solid #DCEEF5;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pd-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: normal;
}
.nc-target-line.unset { color: var(--pd-ink-2); font-weight: 600; }
.nc-target-line .nc-t-met { color: var(--pd-money); font-weight: 800; }
.nc-target-line .nc-t-chev { color: var(--pd-ink-2); font-weight: 700; font-size: 14px; line-height: 1; }
.tgt-label { display: block; font-size: 12px; font-weight: 700; color: var(--pd-ink-2); margin-bottom: 6px; }
.tgt-scope-row {
  padding: 10px 12px;
  border: 1.5px solid #DCEEF5;
  border-radius: 10px;
  background: var(--pd-input-card);
  color: var(--pd-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.tgt-scope-row.sel { border-color: var(--pd-brand); box-shadow: 0 0 0 1px var(--pd-brand) inset; font-weight: 700; }
.tgt-readout {
  background: var(--pd-input-card);
  border: 1px solid #DCEEF5;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.tgt-readout-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--pd-ink-2); font-weight: 600; padding: 3px 0; }
.tgt-readout-row strong { color: var(--pd-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.tgt-progress { height: 6px; border-radius: 3px; background: #E4EEF3; margin-top: 8px; overflow: hidden; }
.tgt-progress i { display: block; height: 100%; background: var(--pd-brand); border-radius: 3px; }
.tgt-progress.met i { background: var(--pd-money); }
/* Worth card ("What gets you there") - migrated from inline styles Session 246 */
.tgt-worth-card { background: var(--pd-input-card); border: 1px solid #DCEEF5; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.tgt-worth-title { font-size: 13px; font-weight: 800; color: var(--pd-ink); }
.tgt-worth-sub { font-size: 11.5px; color: var(--pd-ink-2); font-weight: 500; margin-bottom: 4px; }
.tgt-worth-row { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px solid #EDF3F6; font-size: 13.5px; }
.tgt-worth-row:last-child { border-bottom: none; }
.tgt-worth-name { color: var(--pd-ink); font-weight: 600; }
.tgt-worth-perhr { display: block; font-size: 11px; color: var(--pd-ink-2); font-weight: 500; margin-top: 2px; }
.tgt-worth-hit { background: var(--pd-money); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; border-radius: 6px; padding: 2px 6px; margin-left: 8px; white-space: nowrap; }
.tgt-worth-delta { margin-left: auto; color: var(--pd-ink); font-weight: 800; font-variant-numeric: tabular-nums; padding-left: 10px; }

/* ============ SMART TARGET PHASE 2: BEST PATH CARD ============ */
.tgt-bp-card { background: linear-gradient(180deg, var(--pd-input-card), #E8F6FB); border: 1.5px solid #BCE3EF; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.tgt-bp-head { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--pd-brand); margin-bottom: 8px; }
.tgt-bp-context { font-size: 12px; color: var(--pd-ink-2); font-weight: 500; margin-bottom: 10px; line-height: 1.5; }
.tgt-bp-rec { font-size: 15px; font-weight: 800; color: var(--pd-ink); line-height: 1.45; }
.tgt-bp-rec-met { font-size: 14px; }
.tgt-bp-money { color: var(--pd-money); }
.tgt-bp-result { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #C8E5EF; font-size: 13px; font-weight: 600; color: var(--pd-ink); }
.tgt-bp-result b { font-weight: 800; }
.tgt-bp-short { color: #B45309; font-weight: 700; font-size: 12px; white-space: nowrap; }
.tgt-bp-toggle { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--pd-brand); cursor: pointer; user-select: none; -webkit-user-select: none; }
.tgt-bp-alts { display: none; margin-top: 8px; }
.tgt-bp-alts.open { display: block; }
.tgt-bp-alt { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid #DCEEF5; font-size: 13px; }
.tgt-bp-alt-nm { font-weight: 600; color: var(--pd-ink); }
.tgt-bp-alt-why { display: block; font-size: 11px; color: var(--pd-ink-2); font-weight: 500; margin-top: 1px; }
.tgt-bp-alt-dl { font-weight: 800; color: var(--pd-ink); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 10px; padding-left: 10px; }

/* ==========================================================================
   INK-TEXT-01 (Mike, Oct 21 2026): text on a filled or tinted surface is ink.
   A fill (pill, chip, badge, menu item, button, banner, box) keeps its color -
   that signals state - but the words on it are --pd-ink, or white on a dark
   fill. Colored text stays only where it has meaning and no tinted fill behind
   it: the green net / earned money, red error and Delete text, links.
   Overrides only; the original rules above are untouched so this block can be
   reverted as one hunk. Plan: docs/plans/INK_TEXT_01_PLAN_v1.md.
   ========================================================================== */
.profile-panel-status.active .profile-status-btn,
.my-account-back,
.my-account-edit-btn,
.my-account-ticket-badge.submitted,
.my-account-ticket-badge.reviewed,
.my-account-ticket-badge.resolved,
.my-account-revoke-btn,
.my-account-grant-btn,
.offcycle-pill-btn:hover,
.update-card-primary .card-btn,
.nav-item:not(.active):hover,
.options-btn,
.options-btn.ai-btn,
.options-item .value.active,
th,
.setup-header,
.info-box,
.calendar-day.work-day,
.modal-action-btn.primary,
.modal-action-btn.secondary,
.modal-btn-primary,
.temp-pay-section summary,
.card-action-btn,
.card-action-btn.mark,
.ai-beta-badge,
.ai-worktype-btn.selected,
.menu-stack-btn,
.stat-ledger-warning,
.stat-ledger-pill.fh,
.ap-row-icon,
.menu-stack-btn:hover,
.menu-stack-btn:hover .label,
.profile-panel-status .profile-status-badge span,
.profile-panel-status .profile-status-detail {
  color: var(--pd-ink) !important;
}
/* Dark fills: white text. */
.options-btn.ai-btn:hover,
.panel-close-btn:hover,
.close-btn-bottom:hover,
#ytdDetails > summary,
#floatedHolidaysDetails > summary,
.shadow-paycheck-banner,
.shadow-banner,
.options-btn:hover,
.card-action-btn:not(.remove):hover,
.card-action-btn:not(.remove):active {
  color: #FFFFFF !important;
}

/* INK-SWEEP-01 (phase 2, Nov 3 2026): the INK-TEXT-01 law above, for the rules cut 1 missed -
   paycheck-card status badges, nav hover / active states, ledger pills. Same-hue text on its own
   tint becomes ink; the fill keeps its colour. Overrides only, one hunk, so it reverts as one.
   Plan: docs/plans/UIFOUND_PLAN_v1.md. */
.holiday-badge,
.shadow-badge,
.current-period-badge,
.desktop-nav-btn:hover,
.desktop-nav-btn.active,
.content-nav-btn:hover,
.content-nav-arrow:hover,
.bottom-nav-btn:hover,
.bottom-nav-btn.active,
.desktop-menu-btn:hover,
.stat-ledger-pill.planned,
.stat-ledger-pill.pto {
  color: var(--pd-ink) !important;
}

/* G-07 INPUT-16 (phase 2, Nov 3 2026): iOS Safari / WKWebView zooms the page when a focused field is
   under 16px. On touch devices every text-like input, select and textarea is 16px. Checkboxes, radios,
   ranges and file pickers are left alone. No input in the app is larger than 16px, so nothing shrinks.
   Plan: docs/plans/UIFOUND_PLAN_v1.md. */
@media (pointer: coarse), (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* INK-JS-01 (phase 2 step 2, Nov 3 2026): INK-TEXT-01 for descendant rules the step-1 guard could not see
   (".card .text" pairs). Text on the tinted card becomes ink; the fill keeps its colour. Overrides only,
   one hunk, so it reverts as one. Plan: docs/plans/UISTEP2_PLAN_v1.md. */
.tax-info-box strong,
.modal-warning-card .modal-warning-title,
.modal-warning-card .modal-warning-list li,
.modal-warning-card .modal-warning-text,
.modal-warning-card.danger .modal-warning-title,
.modal-warning-card.danger .modal-warning-list li,
.modal-warning-card.danger .modal-warning-text,
.modal-items-box .modal-item-value,
.modal-items-box .modal-item-action.delete:hover {
  color: var(--pd-ink) !important;
}

/* FOOTER-NAV-01 (phase 2 step 2, Nov 3 2026): on touch devices the floating bottom nav (bottom 14px,
   ~66px tall) covered the footer links and copyright. Room under the footer for the nav plus the iPhone
   home-indicator inset. !important beats the footer's inline padding shorthand. Desktop unchanged.
   Plan: docs/plans/UISTEP2_PLAN_v1.md. */
.touch-device #appFooter {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}

/* SETUP-LOOK-01 (phase 2 step 2, Nov 3 2026): Setup toward the mock - white groups split by a band of the
   app ground, small uppercase section labels, input-card fields at 16px, 16px gutters. CSS only, scoped
   to #setupCard: no field, id, order or handler changes. The section header's negative side margins equal
   the 16px content padding so the band runs edge to edge. Plan: docs/plans/UISTEP2_PLAN_v1.md. */
#setupCard .setup-content {
  padding: 16px;
}
#setupCard .setup-content .section-header {
  font-family: var(--pd-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pd-ink-2);
  margin: 0 -16px 10px -16px !important;
  padding: 14px 16px 0 16px;
  border-top: 10px solid var(--pd-bg);
}
#setupCard .setup-content > .section-header:first-child {
  padding-top: 0;
  border-top: none;
}
#setupCard .setup-content .section-header::after {
  display: none;
}
#setupCard .field label {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pd-ink);
}
#setupCard .field input:not([type="checkbox"]):not([type="radio"]),
#setupCard .field select {
  background: var(--pd-input-card);
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--pd-ink);
}
#setupCard .field input:not([type="checkbox"]):not([type="radio"]):focus,
#setupCard .field select:focus {
  outline: none;
  border-color: var(--pd-brand);
  box-shadow: 0 0 0 3px var(--pd-brand-soft);
}
#setupCard .help-text {
  font-size: 12.5px;
  color: var(--pd-ink-2);
  font-style: normal;
}
