/* ============================================================
   WorkLink SA — Design tokens
   Warm & Menslik palette — import BEFORE app.css
   ============================================================ */

:root {
  /* Brand */
  --brand-dark:     #2d4a3e;
  --brand-mid:      #3d6b57;
  --brand-light:    #eaf3de;
  --brand-accent:   #5DCAA5;

  /* Text */
  --text-primary:   #2c2c2a;
  --text-secondary: #5F5E5A;
  --text-muted:     #888780;
  --text-hint:      #b4b2a9;

  /* Surfaces */
  --surface-white:  #ffffff;
  --surface-warm:   #fdfcfa;
  --surface-soft:   #f5f0e8;
  --surface-border: #e8e2d9;
  --surface-hover:  #f0ede8;

  /* Semantic */
  --urgent-bg:      #FAECE7;
  --urgent-text:    #712B13;
  --new-bg:         #eaf3de;
  --new-text:       #3B6D11;
  --info-bg:        #e6f1fb;
  --info-text:      #185FA5;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 2px 12px rgba(0,0,0,0.10);
}

/* ============================================================
   Base overrides (Warm & Menslik)
   ============================================================ */

body {
  background: var(--surface-warm);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   Topbar (dark brand)
   ============================================================ */

.topbar {
  background: var(--brand-dark);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-logo { color: #fff; font-size: 15px; font-weight: 500; flex: 1; }
.topbar-sub  { color: rgba(255,255,255,0.45); font-size: 11px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--surface-white);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--text-hint); }

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.btn-primary:hover  { background: var(--brand-mid); color: #fff; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-dark);
  border: 0.5px solid var(--brand-dark);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
}
.btn-secondary:hover { background: var(--surface-hover); color: var(--brand-dark); }

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline-sm:hover { border-color: var(--text-muted); color: var(--text-secondary); }

.btn-sm { padding: 7px 14px; font-size: 13px; width: auto; }

/* ============================================================
   Badges
   ============================================================ */

.badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; }
.badge-new     { background: var(--new-bg);    color: var(--new-text); }
.badge-urgent  { background: var(--urgent-bg); color: var(--urgent-text); }
.badge-info    { background: var(--info-bg);   color: var(--info-text); }
.badge-muted   { background: var(--surface-soft); color: var(--text-muted); }

/* ============================================================
   Tags row
   ============================================================ */

.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag  {
  display: inline-block;
  font-size: 10px; padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-secondary);
}

/* ============================================================
   Job card (jcard)
   ============================================================ */

.jcard {
  background: var(--surface-white);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s;
}
.jcard:hover           { border-color: var(--text-hint); }
.jcard--urgent         { border-left: 3px solid var(--urgent-text); }
.jcard--gated          { opacity: 0.92; }

.jcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.jcard-title  { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.jcard-meta   { font-size: 12px; color: var(--text-muted); }
.jcard-company{ font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.jcard-contact{ font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.jcard-desc   { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.jcard-badges { display: flex; gap: 4px; flex-wrap: wrap; flex-shrink: 0; }

.jcard-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.jcard-actions .btn-primary,
.jcard-actions .btn-secondary { width: auto; padding: 8px 16px; font-size: 13px; }

.jcard-own-notice {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Gated / blur rows */
.blur-rows { margin: 8px 0; }
.blur-row  { background: var(--surface-soft); border-radius: 6px; height: 11px; margin-bottom: 5px; }
.blur-row--short { width: 60%; }
.blur-hint { font-size: 9px; color: var(--text-hint); font-style: italic; margin-top: 6px; }

/* Gate prompt box */
.gate-box {
  background: var(--surface-soft);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
}
.gate-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.gate-sub   { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.gate-box .btn-primary,
.gate-box .btn-secondary { margin-bottom: 6px; }

/* Share button */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-hint);
  padding: 4px 0;
  margin-top: 6px;
  transition: color 0.15s;
}
.share-btn:hover { color: var(--text-secondary); }

/* ============================================================
   Registration tiles
   ============================================================ */

.reg-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 480px) {
  .reg-tiles { grid-template-columns: 1fr; }
}
.reg-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 18px;
  background: var(--surface-white);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: var(--shadow-card);
}
.reg-tile:hover {
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.reg-tile__icon  { font-size: 2rem; margin-bottom: 10px; }
.reg-tile__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--brand-dark); }
.reg-tile__desc  { font-size: 13px; color: var(--text-muted); flex: 1; margin-bottom: 12px; }
.reg-tile__cta   { font-size: 12px; color: var(--brand-accent); font-weight: 600; }

/* ============================================================
   Share sheet overlay
   ============================================================ */

.share-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0 0 env(safe-area-inset-bottom);
}
.share-sheet-inner {
  background: var(--surface-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px 28px;
  width: 100%;
  max-width: 480px;
}
.share-sheet-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); text-align: center; }
.share-apps { display: flex; gap: 16px; justify-content: center; margin-bottom: 18px; }
.share-app  { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text-secondary); font-size: 11px; }
.share-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.share-icon--wa    { background: #25D366; color: #fff; }
.share-icon--fb    { background: #1877F2; color: #fff; font-size: 20px; font-weight: 700; }
.share-icon--email { background: var(--surface-soft); }
.share-link-row { display: flex; gap: 8px; align-items: center; background: var(--surface-soft); border-radius: var(--radius-sm); padding: 8px 12px; }
.share-link-url { font-size: 12px; color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-copy-btn { flex-shrink: 0; background: var(--brand-dark); color: #fff; border: none; border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12px; cursor: pointer; }

/* ============================================================
   Discovery — Miller columns (desktop)
   ============================================================ */

.discovery-wrap {
  display: flex;
  height: calc(100vh - var(--nav-height, 56px) - 44px);
  overflow: hidden;
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  box-shadow: var(--shadow-card);
}
.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 0.5px solid var(--surface-border);
  overflow: hidden;
}
.col:last-child { flex: 1.6; border-right: none; }
.col-hdr {
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--surface-border);
  background: var(--surface-soft);
  flex-shrink: 0;
}
.col-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.col-body { flex: 1; overflow-y: auto; }

.col-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--surface-border);
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.12s;
  text-decoration: none;
}
.col-item:hover   { background: var(--surface-hover); }
.col-item.active  { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.col-item__count  { font-size: 11px; color: var(--text-hint); }
.col-item__arrow  { font-size: 14px; color: var(--text-hint); margin-left: 6px; }
.col-item--job    { text-decoration: none; color: var(--text-primary); }
.col-item--job:hover { background: var(--surface-hover); text-decoration: none; }
.col-loading      { padding: 16px 14px; font-size: 12px; color: var(--text-hint); }

/* ============================================================
   Discovery — Mobile stepper
   ============================================================ */

@media (max-width: 767px) {
  .discovery-wrap { display: none; }
  .mobile-stepper { display: flex; flex-direction: column; min-height: calc(100vh - 100px); }
}
@media (min-width: 768px) {
  .discovery-wrap { display: flex; }
  .mobile-stepper { display: none; }
}

.trail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.trail-chip {
  font-size: 12px;
  background: var(--surface-soft);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.12s;
}
.trail-chip:hover  { background: var(--surface-hover); }
.trail-chip.current{ background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); cursor: default; }
.trail-sep         { color: var(--text-hint); font-size: 12px; }

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.tile {
  background: var(--surface-white);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tile:hover       { border-color: var(--brand-mid); box-shadow: var(--shadow-card); }
.tile__icon       { font-size: 22px; }
.tile__label      { font-size: 13px; font-weight: 600; }
.tile__count      { font-size: 11px; color: var(--text-hint); }

.stepper-heading  { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }

/* ============================================================
   Employer post steps
   ============================================================ */

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1.5px solid var(--surface-border);
}
.step-dot.done    { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.step-dot.current { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--surface-border);
  margin-top: 13px;
  border-radius: 1px;
}
.step-line.done { background: var(--brand-accent); }

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-soft);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.addon-card:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-light); }
.addon-card input[type=checkbox] { margin-top: 2px; }
.addon-card__body h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.addon-card__body p  { font-size: 12px; color: var(--text-muted); margin: 0; }
.addon-card__price { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

.post-total {
  background: var(--brand-light);
  border: 0.5px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.post-total__label { font-size: 13px; color: var(--text-secondary); }
.post-total__amount{ font-size: 18px; font-weight: 700; color: var(--brand-dark); }

/* ============================================================
   Employer dashboard — listing rows
   ============================================================ */

.listing-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--surface-border);
}
.listing-row:last-child { border-bottom: none; }
.lr-info  { flex: 1; min-width: 0; }
.lr-title { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.lr-status { min-width: 120px; }
.days-bar  { height: 4px; background: var(--surface-soft); border-radius: 2px; margin: 6px 0 3px; overflow: hidden; }
.days-bar-fill { height: 100%; background: var(--brand-accent); border-radius: 2px; transition: width 0.3s; }
.days-label { font-size: 10px; color: var(--text-hint); }

.lr-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   Form helpers
   ============================================================ */

.form-group    { margin-bottom: 16px; }
.form-label    { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(61,107,87,0.1); }
.form-hint   { font-size: 11px; color: var(--text-hint); margin-top: 4px; }
.form-error  { font-size: 11px; color: var(--urgent-text); margin-top: 4px; }
.form-textarea { resize: vertical; min-height: 100px; }

/* Checkbox group */
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-item  { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check-item input { width: 16px; height: 16px; accent-color: var(--brand-dark); }

/* Checkbox group (post form) */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.checkbox-option { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.checkbox-option input { accent-color: var(--brand-dark); }

/* ============================================================
   Step indicator — BEM
   ============================================================ */
.step-indicator {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
}
.step-indicator__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}
.step-indicator__item + .step-indicator__item::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--surface-border);
  z-index: 0;
}
.step-indicator__item--done + .step-indicator__item::before,
.step-indicator__item--done::before { background: var(--brand-accent); }
.step-indicator__num {
  position: relative;
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--text-muted);
  border: 1.5px solid var(--surface-border);
  margin-bottom: 5px;
}
.step-indicator__item--done  .step-indicator__num { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.step-indicator__item--active .step-indicator__num { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.step-indicator__label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.step-indicator__item--active .step-indicator__label { color: var(--brand-dark); font-weight: 700; }

/* ============================================================
   Addon card — BEM (wraps existing .addon-card)
   ============================================================ */
.addon-card--selected { border-color: var(--brand-dark); background: var(--brand-light); }
.addon-card__label { display: flex; align-items: flex-start; gap: 12px; width: 100%; cursor: pointer; }
.addon-card__content { flex: 1; min-width: 0; }
.addon-card__name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.addon-card__desc { display: block; font-size: 12px; color: var(--text-muted); }
.addon-card__price { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

/* ============================================================
   Price summary / payment summary
   ============================================================ */
.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-light);
  border: 0.5px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.price-summary strong { font-size: 16px; color: var(--brand-dark); }
.payment-summary {
  background: var(--surface-soft);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.payment-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 0.5px solid var(--surface-border);
}
.payment-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  font-size: 15px;
}
.payment-summary__total strong { font-size: 20px; color: var(--brand-dark); font-weight: 700; }
.payment-notice { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.payment-secure { font-size: 11px; color: var(--text-hint); text-align: center; margin-top: 10px; }

/* ============================================================
   Preview card (step 3)
   ============================================================ */
.preview-card {
  background: var(--surface-white);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.preview-card__title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.preview-card__meta  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.preview-card__salary { font-size: 13px; font-weight: 600; color: var(--brand-dark); margin-bottom: 8px; }
.preview-divider { border: none; border-top: 0.5px solid var(--surface-border); margin: 12px 0; }
.preview-card__body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.preview-card__contact { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Success state
   ============================================================ */
.success-state {
  text-align: center;
  padding: 3rem 1rem;
}
.success-state__icon {
  font-size: 52px;
  color: var(--brand-accent);
  background: var(--brand-light);
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}
.success-state__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--brand-dark); }
.success-state__body  { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; max-width: 380px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Listing rows — BEM
   ============================================================ */
.listing-rows { }
.listing-row--warning { background: var(--urgent-bg); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 4px; }
.listing-row__main   { flex: 1; min-width: 0; }
.listing-row__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.listing-row__title  { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.listing-row__title a { color: inherit; text-decoration: none; }
.listing-row__title a:hover { color: var(--brand-mid); }
.listing-row__meta   { font-size: 12px; color: var(--text-muted); }

.days-bar         { height: 4px; background: var(--surface-soft); border-radius: 2px; margin: 6px 0 2px; overflow: hidden; }
.days-bar__fill   { height: 100%; background: var(--brand-accent); border-radius: 2px; transition: width 0.3s; }
.days-bar__fill--warn { background: #e85d3a; }
.days-label       { font-size: 10px; color: var(--text-hint); }
.days-label--warn { color: #c0391a; font-weight: 600; }
.days-warning     { font-size: 11px; color: #c0391a; font-weight: 600; margin-top: 4px; }

/* ============================================================
   Share sheet — JS-injected
   ============================================================ */
.share-sheet {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface-white);
  border: 0.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 18px;
  min-width: 220px;
  z-index: 9999;
}
.share-sheet__close {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: none;
  font-size: 16px; cursor: pointer;
  color: var(--text-muted);
}
.share-sheet__title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.share-sheet__opt {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-soft);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 6px;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
}
.share-sheet__opt:hover { background: var(--surface-hover); }

/* ============================================================
   Section helpers
   ============================================================ */
.section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.section-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.page-header__sub { font-size: 14px; color: var(--text-muted); margin-top: -8px; margin-bottom: 20px; }
