/* MRKT → Stats (2026-10-09) — the AZNA app's Stats-page styles (traffic tiles, Clicky panels,
   range/sub pills, calendar range picker), lifted rule-for-rule from its index.html and
   recoloured like app.css on 2026-09-30: AZNA teal → Mizufox rose gold. */

  @media (max-width: 999px) {
  }
  @media (max-width: 999px) {
  }
  @font-face { font-family: 'Cera'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/Cera-LIGHT.ttf') format('truetype'); }
  @font-face { font-family: 'Cera'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Cera-REGULAR.ttf') format('truetype'); }
  @font-face { font-family: 'Cera'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Cera-MEDIUM.ttf') format('truetype'); }
  @font-face { font-family: 'Cera'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Cera-BOLD.ttf') format('truetype'); }
  @font-face { font-family: 'Cera'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/Cera-BLACK.ttf') format('truetype'); }
  @font-face { font-family: 'CeraChart'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Cera-CHART.ttf') format('truetype'); }
  @media (min-width: 1000px) {
  }
  @media (min-width: 560px) and (max-width: 999px) {
  }
  @media (min-width: 1000px) and (max-width: 1600px) {
  }
  @media (max-width: 999px) {
  }
  .dp-sheet > .sheet-handle { margin-top: -14px; }
  .dp-overlay:not(.hidden) .dp-sheet { animation: sheetUp .28s cubic-bezier(.32,.72,0,1); }
  @media (min-width: 1000px) {
  }
  @media (max-width: 900px) {
  }
  @media (max-width: 900px) { }
  .sales-ranges { display: flex; justify-content: center; gap: 20px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); }
  .sales-ranges button {
    background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 7px 2px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .15s;
    text-transform: uppercase; letter-spacing: .04em;
  }
  .sales-ranges button.active { color: var(--gold); border-bottom-color: var(--gold); }
  .sales-subs { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 8px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
  .sales-subs::-webkit-scrollbar { display: none; }
  .sales-subs:empty { display: none; }
  .sales-subs button {
    flex: 0 0 auto; white-space: nowrap;
    background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
    border-radius: 100px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s;
  }
  .sales-subs button.active { color: var(--gold); border-color: var(--gold); background: rgba(227,167,151,0.08); }
  .sales-crumb { padding: 2px 16px; min-height: 18px; font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: 6px; }
  .sales-crumb .crumb-link { color: var(--gold); cursor: pointer; }
  #salesSection.kind-product .sales-ranges button.active {
    color: #b06f5d; border-bottom-color: #b06f5d;
  }
  #salesSection.kind-product .sales-subs button.active {
    color: #b06f5d; border-color: #b06f5d; background: rgba(46,143,137,0.16);
  }
  #salesSection.kind-product .sales-crumb .crumb-link { color: #b06f5d; }
  #salesSection.kind-service .sales-ranges button.active {
    color: #f0c9bc; border-bottom-color: #f0c9bc;
  }
  #salesSection.kind-service .sales-subs button.active {
    color: #f0c9bc; border-color: #f0c9bc; background: rgba(122,223,216,0.12);
  }
  #salesSection.kind-service .sales-crumb .crumb-link { color: #f0c9bc; }
  .sales-chart-wrap { overflow-x: auto; padding: 4px 16px 8px; }
  .sales-chart svg { display: block; }
  #salesSection .sales-ranges button.active { color: #e3a797; border-bottom-color: #e3a797; }
  #salesSection .sales-subs button.active { color: #e3a797; border-color: #e3a797; background: rgba(227,167,151,0.14); }
  #salesSection .sales-crumb .crumb-link { color: #e3a797; }
  .traffic-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px 4px; }
  .traffic-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 11px 8px 10px; text-align: center; min-width: 0; }
  .traffic-kpi .k-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .traffic-kpi .k-val { font-size: 19px; font-weight: 800; color: var(--gold); letter-spacing: -.5px; text-shadow: 0 0 14px rgba(227,167,151,.4); white-space: nowrap; }
  .traffic-kpi .k-delta { font-size: 11px; font-weight: 700; margin-top: 3px; }
  .traffic-kpi .k-delta.up { color: #46c97e; }
  .traffic-kpi .k-delta.down { color: #e5484d; }
  .traffic-kpi .k-delta.flat { color: var(--ink-soft); }
  .traffic-kpi .k-was { display: block; color: var(--ink-soft); font-weight: 600; font-size: 10px; margin-top: 2px; }
  #trafficSection .traffic-kpi { background: none; border: none; border-radius: 0; padding: 6px 2px 7px; }
  #trafficSection .traffic-kpi .k-label { font-size: 10px; letter-spacing: .4px; text-transform: none; margin-bottom: 0; }
  #trafficSection .traffic-kpi .k-val { font-size: 22px; color: var(--ink); text-shadow: none; margin-top: 3px; }
  #trafficSection .traffic-kpi .k-delta { font-size: 10px; margin-top: 4px; }
  #trafficSection .traffic-kpi .k-fig { display: inline-block; padding: 2.5px 8px; border-radius: 7px; }
  #trafficSection .traffic-kpi .k-delta.up .k-fig { color: #3fbf76; background: rgba(70,201,126,.14); }
  #trafficSection .traffic-kpi .k-delta.down .k-fig { color: var(--clay); background: color-mix(in srgb, var(--clay) 14%, transparent); }
  #trafficSection .traffic-kpi .k-delta.flat .k-fig { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
  #mrktbookSection .traffic-kpi { background: none; border: none; border-radius: 0; padding: 6px 2px 7px; }
  #mrktbookSection .traffic-kpi .k-label { font-size: 10px; letter-spacing: .4px; text-transform: none; margin-bottom: 0; }
  #mrktbookSection .traffic-kpi .k-val { font-size: 22px; color: var(--ink); text-shadow: none; margin-top: 3px; }
  #mrktbookSection .traffic-kpi .k-delta { font-size: 10px; margin-top: 4px; }
  #mrktbookSection .traffic-kpi .k-fig { display: inline-block; padding: 2.5px 8px; border-radius: 7px; }
  #mrktbookSection .traffic-kpi .k-delta.up .k-fig { color: #3fbf76; background: rgba(70,201,126,.14); }
  #mrktbookSection .traffic-kpi .k-delta.down .k-fig { color: var(--clay); background: color-mix(in srgb, var(--clay) 14%, transparent); }
  #mrktbookSection .traffic-kpi .k-delta.flat .k-fig { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
  #mrktbookSection .mb-total .mbt-delta .k-fig { display: inline-block; padding: 2.5px 8px; border-radius: 7px; }
  #mrktbookSection .mb-total .mbt-delta.up .k-fig { color: #3fbf76; background: rgba(70,201,126,.14); }
  #mrktbookSection .mb-total .mbt-delta.down .k-fig { color: var(--clay); background: color-mix(in srgb, var(--clay) 14%, transparent); }
  #mrktbookSection .mb-total .mbt-delta.flat .k-fig { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
  @media (max-width: 520px) {
    .traffic-kpis { gap: 6px; padding: 10px 10px 2px; }
    .traffic-kpi { padding: 9px 4px 8px; border-radius: 11px; }
    .traffic-kpi .k-label { font-size: 8.5px; }
    .traffic-kpi .k-val { font-size: 15px; }
    .traffic-kpi .k-delta { font-size: 10px; }
    .traffic-kpi .k-was { font-size: 9px; }
  }
  .cmp-toggle { margin-left: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 100px; padding: 4px 12px; font-size: 11px; font-weight: 600; cursor: pointer; }
  .cmp-toggle.on { color: #e3a797; border-color: #e3a797; background: rgba(227,167,151,0.12); }
  .traffic-compare { text-align: center; color: var(--ink-soft); font-size: 11.5px; padding: 8px 16px 2px; }
  .traffic-compare b { color: var(--ink); font-weight: 600; }
  .traffic-metric { display: flex; justify-content: safe center; flex-wrap: nowrap; gap: 8px; padding: 12px 16px 2px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; max-width: 100vw; }
  .traffic-metric::-webkit-scrollbar { display: none; }
  .traffic-metric button { flex: 0 0 auto; white-space: nowrap; }
  .traffic-metric button {
    background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
    border-radius: 100px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
  }
  .traffic-metric button.active { color: var(--gold); border-color: var(--gold); background: rgba(227,167,151,0.08); }
  .traffic-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; padding: 0 16px 28px; }
  .traffic-panels .tp-wide { grid-column: 1 / -1; }
  .tp-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px 4px; min-width: 0; }
  .tp-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 9px; border-bottom: 1px solid var(--line); }
  .tp-head i { color: #e3a797; font-size: 16px; line-height: 1; }
  .tp-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
  .tp-meta { margin-left: auto; font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }
  .tp-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 2px; border-bottom: 1px solid var(--line);
    font-size: 12.5px; color: var(--ink); }
  .tp-row:last-child { border-bottom: none; }
  .tp-row.tp-empty { justify-content: center; color: var(--ink-soft); font-size: 12px; }
  .tp-err { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-size: 12.5px; padding: 18px 16px; }
  .tp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .tp-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-sub { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-q { color: var(--ink-soft); }
  .tp-flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; display: block;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
  i.tp-flag { display: inline-flex; align-items: center; justify-content: center; box-shadow: none; color: var(--ink-soft); font-size: 15px; }
  .tp-ico { flex: none; width: 20px; text-align: center; color: #e3a797; font-size: 15px; line-height: 1; }
  .tp-right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
  .tp-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
  .tp-row .k-delta { font-size: 9.5px; font-weight: 700; line-height: 1; }
  .tp-row .k-fig { display: inline-block; min-width: 40px; text-align: center; padding: 3px 6px; border-radius: 6px; }
  .tp-row .k-delta.up .k-fig { color: #3fbf76; background: rgba(70,201,126,.14); }
  .tp-row .k-delta.down .k-fig { color: var(--clay); background: color-mix(in srgb, var(--clay) 14%, transparent); }
  .tp-row .k-delta.flat .k-fig { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
  .tp-row .k-delta.new .k-fig { color: #e3a797; background: rgba(227,167,151,.14); }
  .tp-time { flex: none; width: 44px; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-decoration: none; }
  a.tp-time:hover { color: #e3a797; }
  .tp-who { flex: 0 1 32%; min-width: 0; display: flex; align-items: center; gap: 4px; }
  .tp-who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-me { flex: none; color: #e3a797; font-size: 12px; }
  .tp-landing { flex: 1 1 0; min-width: 0; color: #e3a797; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-dim { color: var(--ink-soft); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .tp-new { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e3a797;
    background: rgba(227,167,151,.14); border-radius: 6px; padding: 3px 6px; line-height: 1; }
  @media (max-width: 899px) {
    .traffic-panels { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; padding: 0 12px 24px; }
  }
  @media (max-width: 520px) {
    .tp-visit .tp-secs { display: none; }
    .tp-who { flex-basis: 36%; }
  }
  #trafficSection .sales-ranges button.active { color: #e3a797; border-bottom-color: #e3a797; }
  #trafficSection .sales-subs button.active { color: #e3a797; border-color: #e3a797; background: rgba(227,167,151,0.12); }
  #trafficSection .traffic-metric button.active { color: #e3a797; border-color: #e3a797; background: rgba(227,167,151,0.12); }
  #salesKpis .k-val { color: #3b3b3b; text-shadow: none; }
  #trafficSection .sales-crumb .crumb-link { color: #e3a797; }
  .dp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 250; display: flex; align-items: flex-end; justify-content: center; }
  .dp-overlay.hidden { display: none; }
  .dp-sheet {
    background: var(--paper-warm); border-radius: 20px 20px 0 0; padding: 18px 16px 28px;
    width: 100%; max-width: 480px; display: flex; flex-direction: column;
  }
  .dp-head { position: relative; display: flex; justify-content: center; align-items: center; padding: 2px 4px 6px; min-height: 44px; }
  .dp-title { font-size: 20px; font-weight: 800; color: var(--ink); text-align: center; }
  .dp-nav { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; }
  .dp-nav button { width: 38px; height: 38px; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 18px; line-height: 1; padding: 0; margin-left: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .dp-nav button:disabled { opacity: .35; cursor: default; }
  .dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 2px 4px; }
  .dp-dow span { text-align: center; color: var(--ink-soft); font-size: 12px; font-weight: 500; }
  .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 42px; row-gap: 2px; padding: 0 2px; }
  .dp-cell { display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 15px; cursor: pointer; }
  .dp-cell.empty { cursor: default; }
  .dp-cell.disabled { color: var(--ink-soft); opacity: .4; cursor: default; }
  .dp-cell.inrange { background: var(--dp-accent-soft, rgba(214,69,93,0.16)); }
  .dp-cell.rstart { background: var(--dp-accent-soft, rgba(214,69,93,0.16)); border-top-left-radius: 22px; border-bottom-left-radius: 22px; }
  .dp-cell.rend { background: var(--dp-accent-soft, rgba(214,69,93,0.16)); border-top-right-radius: 22px; border-bottom-right-radius: 22px; }
  .dp-cell .dp-day { width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 100px; }
  .dp-cell.sel .dp-day { background: var(--dp-accent, #e3a797); color: #fff; font-weight: 700; }
  .dp-rangelbl { text-align: center; color: var(--ink-soft); padding: 14px 8px 4px; font-size: 13px; }
  .dp-rangelbl b { color: var(--dp-accent, #e3a797); }
  .dp-actions { display: flex; gap: 10px; margin-top: 14px; }
  .dp-actions button { flex: 1; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; }
  .dp-cancel { background: var(--card); color: var(--ink-soft); border: 1px solid var(--line) !important; }
  .dp-apply { background: var(--dp-accent, #e3a797); color: #fff; }
  .dp-apply:disabled { opacity: .4; cursor: default; }
  #payrollBody .tp-prev-h { text-align: center; margin-top: 22px; }
  #payrollBody .tp-cur { cursor: pointer; }
  .tp-cur-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11.5px; color: #e3a797; font-weight: 600; }
  .tp-day { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .tp-day:last-of-type { border-bottom: none; }
  .tp-day-d { font-size: 13.5px; color: var(--ink); font-weight: 600; }
  .tp-day-t { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
  .tp-day > span { font-size: 13.5px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  @media (max-width: 999px){
  }
  @media (max-width:999px){
  }
  @media (max-width: 900px) {
  }
