/* Product Desk 1.0.0: layout on top of soft-glass.css + pps-base.css (Soft Pebble, Blush + Peach, gold accent).
   No inline styles anywhere (the CSP blocks style=""). Widths that change are set through el.style in app.js. */
body { margin: 0; font-family: var(--sg-font); color: var(--sg-ink); background: var(--sg-bg); }
p { max-width: 70ch; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

.pd { display: flex; gap: 24px; align-items: flex-start; padding: 24px; max-width: 1440px; margin: 0 auto; }
.pd-side { position: sticky; top: 24px; flex: 0 0 236px; min-height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 18px 12px;
  background: linear-gradient(180deg, var(--sg-surface), var(--sg-surface) 70%, #f3e1ae 260%); }
#nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pd-brand { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; font-weight: 600; font-size: 1rem; }
.pd-mark { width: 28px; height: 28px; border-radius: 10px; background: linear-gradient(135deg, #f6c7cd, #ffcfa8); box-shadow: inset 0 0 0 2px #f3e1ae; }
.pd-side a svg, .pd-bar a svg, .pd-menu a svg { flex: none; }
.pd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.pd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; }
.pd-grow { flex: 1; }
.pd-hours { font-size: .8125rem; }
.pd-bellbtn { position: relative; }
.pd-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f8d3d9; color: #6e1c2b; font-size: .6875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pd-page { display: flex; flex-direction: column; gap: 20px; outline: none; min-height: 60vh; }
.pd-banner { background: #fbe3cc; color: #5c2b00; border-radius: 18px; padding: 10px 16px; font-size: .875rem; }

.pd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; }
.pd-head .pp-title { margin-right: auto; }
.pd-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.pd-sec { font-size: 1.125rem; font-weight: 600; margin: 0 0 12px; }
.pd-col { display: flex; flex-direction: column; gap: 14px; }
.pd-note { font-size: .8125rem; color: var(--sg-ink-2); margin: 0; }
.pd-empty { color: var(--sg-ink-2); font-size: .9375rem; margin: 0; }
.pd-glow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pd-glow-row .pp-chip { background: #fff; }
.pd-glow .pp-lbl, .pd-glow .pp-sub { color: #4e2a2f; }
.pp-glow--peach .pp-lbl, .pp-glow--peach .pp-sub { color: #4f2f14; }
.pd-thumb { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--sg-ink-2); }
.pp-li .pp-chip { flex: none; }
.pp-li button.pd-rowbtn { all: unset; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 44px; justify-content: center; }
.pp-li button.pd-rowbtn:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 4px; border-radius: 8px; }
.pp-li button.pd-rowbtn b { font-weight: 600; } .pp-li button.pd-rowbtn span { font-size: .8125rem; color: var(--sg-ink-2); }

/* forms */
.pd-form { display: flex; flex-direction: column; gap: 10px; }
.pd-form label, .pd-lbl { font-size: .8125rem; font-weight: 600; color: var(--sg-ink-2); }
.pd-in, .pd-form input, .pd-form select, .pd-form textarea, .pd-line input {
  min-height: 44px; border-radius: 999px; border: 1px solid #d9d0ca; background: #fff; padding: 0 18px; font: inherit; font-size: .9375rem; color: var(--sg-ink); width: 100%; }
.pd-form textarea { border-radius: 18px; padding: 12px 16px; min-height: 88px; resize: vertical; }
.pd-form select { appearance: auto; }
.pd-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pd-line input { flex: 1 1 320px; width: auto; }
.pd-line select { min-height: 44px; border-radius: 999px; border: 1px solid #d9d0ca; background: #fff; padding: 0 14px; font: inherit; }
.pd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.pd-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; }
.pd-check input { width: 22px; height: 22px; min-height: 0; }
.pd-soft { background: var(--sg-bg) !important; }
.pd-wide { width: 100%; }
.pd-danger { color: #8e1f33; }
.pd-err { color: #8e1f33; font-size: .875rem; margin: 0; }

/* progress bar (payout, outreach week) */
.pd-bar-track { height: 12px; border-radius: 999px; background: rgba(36, 32, 29, .08); overflow: hidden; }
.pd-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f6c7cd, #ffcfa8, #f3e1ae); }

/* tables (money lines, import log) */
.pd-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.pd-table th, .pd-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, .06); vertical-align: top; }
.pd-table th { font-size: .75rem; color: var(--sg-ink-2); font-weight: 600; }
.pd-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-scroll { overflow-x: auto; }
.pd-neg { color: #8e2b3b; }

/* dialog (frosted: one of the two layers allowed to blur) */
.pd-dlg { border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--sg-glass); color: var(--sg-ink); box-shadow: var(--sg-shadow-lift); }
.pp-blur .pd-dlg { -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.pp-lite .pd-dlg { background: var(--sg-surface-solid); }
.pd-dlg::backdrop { background: rgba(40, 30, 30, .2); }
.pd-dlg__in { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pd-dlg h2 { font-size: 1.25rem; margin: 0; }
.pd-dlg .pd-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 720px) { .pd-dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; } }

.pd-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: #fff; color: var(--sg-ink); border-radius: 999px; padding: 12px 20px; box-shadow: var(--sg-shadow-lift); font-size: .9375rem; max-width: calc(100vw - 32px); }
.pd-toast.is-bad { background: #fbe1e5; color: #6e1c2b; }

/* evidence chips + help cards */
.pd-ev { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pd-ev li { background: #fff; border-radius: 16px; padding: 10px 14px; font-size: .875rem; }
.pd-help { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pd-help article { background: var(--sg-surface); border-radius: 24px; box-shadow: var(--sg-shadow); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pd-help h3 { font-family: var(--pp-dots); font-weight: 700; font-size: 1.125rem; margin: 0; }
.pd-help p { margin: 0; font-size: .9375rem; }
.pd-help ol { margin: 0; padding-left: 20px; font-size: .875rem; color: var(--sg-ink-2); }

/* stat chips: the stat row uses pps-base rainbow chips */
.pd-stats .pp-stat .pp-chip { align-self: flex-start; color: #1f2226; }

/* phone: bottom bar + Menu sheet */
.pd-bar { display: none; }
.pd-menu { display: flex; flex-direction: column; gap: 4px; }
.pd-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 999px; color: var(--sg-ink); text-decoration: none; font-size: 1rem; }
.pd-menu a[aria-current="page"] { background: var(--pp-acc-bg); color: var(--pp-acc-ink); font-weight: 600; }

@media (max-width: 1100px) { .pd-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pd { padding: 16px 14px 96px; gap: 0; }
  .pd-side { display: none; }
  .pd-hide-sm { display: none; }
  .pd-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 68px; padding-bottom: env(safe-area-inset-bottom); background: var(--sg-surface); box-shadow: 0 -6px 24px rgba(70, 45, 35, .07); }
  .pd-bar a, .pd-bar button { all: unset; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .75rem; color: var(--sg-ink-2); cursor: pointer; min-height: 44px; }
  .pd-bar a[aria-current="page"] { color: var(--pp-acc-ink); font-weight: 700; }
  .pd-bar a[aria-current="page"] svg { background: var(--pp-acc-bg); border-radius: 999px; padding: 2px 10px; box-sizing: content-box; }
  .pd-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .pd-grid2, .pd-grid3 { grid-template-columns: minmax(0, 1fr); } .pd-line input { flex-basis: 100%; } }

/* sign-in page */
.pd-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pd-loginbox { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.pd-why { background: #fbe3cc; color: #5c2b00; border-radius: 16px; padding: 10px 14px; margin: 0; font-size: .875rem; }
.pd-backup .pd-form { padding-top: 4px; }

@media print { .pd-side, .pd-top, .pd-bar { display: none !important; } }

/* fixes after the browser check (15 Nov) */
.pp-li select.pd-in { width: auto; flex: none; max-width: 46%; }
.pd-line input[type="file"] { padding: 8px 12px; border-radius: 18px; }
.pd-top { flex-wrap: nowrap; }
@media (max-width: 520px) {
  .pd-hours { display: none; }
  .pd-top [data-pp-clock] { min-width: 0; overflow: hidden; }
  .pd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-li { flex-wrap: wrap; }
  .pp-li button.pd-rowbtn { flex-basis: 60%; }
}
.pd-col > .pp-btn, .pd-col > a.pp-btn { align-self: flex-start; }

/* ---------- 15 Nov evening: brand header, version, more colour (Ali's look rules) ---------- */
.pd-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; }
.pd-markimg { flex: none; filter: drop-shadow(0 6px 14px rgba(201, 120, 140, .25)); }
.pd-brand__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-brand__name { font-family: var(--pp-dots); font-weight: 700; font-size: 1.375rem; line-height: 1.05; color: #4a2a30; }
.pd-brand__ver { font-size: .75rem; color: var(--sg-ink-2); font-variant-numeric: tabular-nums; }
.pd-brand--sheet { padding: 0 6px 8px; }
.pd-ver { align-self: center; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; color: #6b4a00; }
.pd-head .pp-title { font-size: 3rem; color: #3a2228; }
@media (max-width: 720px) { .pd-head .pp-title { font-size: 2.125rem; } }

/* a soft blush + peach ground instead of plain grey (never dark) */
[data-pp-app="productdesk"] body {
  background: radial-gradient(900px 520px at 0% 0%, #f9dfe3 0%, rgba(249, 223, 227, 0) 70%),
              radial-gradient(900px 600px at 100% 0%, #ffe6d3 0%, rgba(255, 230, 211, 0) 70%),
              radial-gradient(900px 700px at 50% 100%, #f7ecc9 0%, rgba(247, 236, 201, 0) 70%), #efe7e3;
  background-attachment: fixed;
}
.pd-side { background: linear-gradient(180deg, #fffaf7 0%, #fff4ee 60%, #fbebc7 140%); }
/* each section heading gets a small pastel dot, cycling through the five stat colours */
.pd-sec::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: middle; background: #f4b9c3; }
.pd-page > :nth-child(5n+2) .pd-sec::before { background: #ffc79b; }
.pd-page > :nth-child(5n+3) .pd-sec::before { background: #ecd577; }
.pd-page > :nth-child(5n+4) .pd-sec::before { background: #a9dcc0; }
.pd-page > :nth-child(5n+5) .pd-sec::before { background: #b1cdf0; }
details.pp-acc > summary b { color: #4a2a30; }
.pp-tile.pp-cal { padding: 0; overflow: hidden; }
.pp-cal__key .pp-chip { background: #fff; }
.pd-loginname { font-size: 2rem; } .pd-login .pd-markimg { border-radius: 14px; }
.pd-side .pd-brand__name { font-size: 1.1875rem; white-space: nowrap; }
