/* The MAC MEDIA Playground. Built on the site's own tokens (public/styles.css):
   paper and white surfaces, ink type, teal as the accent, blue for products and
   projections, green for "done". Condensed Archivo caps for headings, mono for labels. */

/* ---------- page intro ---------- */
.pg-intro { padding-block: clamp(48px, 7vw, 88px) 32px; display: grid; gap: 14px; justify-items: start; }
.pg-intro .display { font-size: clamp(2.8rem, 6.4vw, 5.2rem); max-width: 14ch; }
.pg-intro .lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 44ch; }
.pg-intro-sub { color: var(--muted); max-width: 62ch; }
.pg-label-pill { display: inline-flex; align-items: center; gap: 8px; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--teal-50); border-radius: 999px; padding: 8px 12px; margin: 0; }
.pg-label-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(25, 195, 125, .2); }

/* ---------- the application frame ---------- */
.pg-stage { width: min(1380px, calc(100% - 32px)); margin: 0 auto clamp(64px, 8vw, 110px); }
.pg-app { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: clip; font-size: 15px; line-height: 1.5; }
.pg-disclaimer { margin-top: 14px; font-size: .85rem; color: var(--faint); text-align: center; }
.pg-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.pg-ws { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-ws-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 800 18px var(--display); flex: none; }
.pg-ws b { display: block; font-weight: 650; font-size: 15px; }
.pg-ws em { display: block; font: 400 11.5px var(--mono); color: var(--muted); font-style: normal; white-space: nowrap; }
.pg-top-note { margin-left: auto; font-size: 13px; color: var(--muted); }
.pg-top-acts { display: flex; gap: 8px; margin-left: 12px; }
.pg-top-note + .pg-top-acts { margin-left: 12px; }
.pg-top-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--body); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.pg-top-btn svg { width: 15px; height: 15px; flex: none; }
.pg-top-btn:hover { border-color: var(--ink); color: var(--ink); }
.pg-top-btn[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: var(--teal-50); }
.pg-top-btn.armed { border-color: var(--warn); color: var(--warn); background: var(--warn-50); }
.pg-root { min-height: 640px; }
.pg-loading { padding: 80px 20px; text-align: center; color: var(--faint); font: 13px var(--mono); }

/* ---------- shell ---------- */
.pg-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: start; min-height: 720px; }
.pg-side { position: sticky; top: 84px; padding: 18px 14px 20px; display: grid; gap: 22px; }
.pg-nav { display: grid; gap: 4px; }
.pg-nav-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: var(--ink-2); transition: background .2s; }
.pg-nav-item:hover { background: rgba(14, 17, 19, .04); }
.pg-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--white); display: grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--ease); }
.pg-mark svg { width: 20px; height: 20px; }
.pg-nav-item:hover .pg-mark { transform: rotate(-4deg); }
.pg-nav-text b { display: block; font-weight: 650; font-size: 14.5px; }
.pg-nav-text em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-nav-n { font: 400 10.5px var(--mono); color: var(--faint); font-style: normal; }
.pg-nav-item.on { background: var(--white); box-shadow: 0 1px 0 rgba(14, 17, 19, .04), 0 8px 20px -14px rgba(14, 17, 19, .25); }
.pg-nav-item.on .pg-mark { background: var(--teal); color: var(--white); }
.pg-nav-item.on .pg-nav-n { color: var(--teal); }
.pg-cta { background: var(--ink); color: var(--white); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.pg-cta-k { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.pg-cta-t { font-size: 13px; color: #aab4b9; margin-bottom: 6px; }
.pg-cta .pg-btn { justify-content: center; }
.pg-cta .pg-btn-primary:hover { background: var(--white); color: var(--ink); }
.pg-cta-foot { display: none; margin-top: 26px; }

.pg-main { min-width: 0; padding: 30px clamp(18px, 3vw, 40px) 44px; background: var(--paper); border-left: 1px solid var(--line); min-height: 720px; animation: pg-in .45s var(--ease); }
@keyframes pg-in { from { opacity: 0; transform: translateY(6px); } }
.pg-mhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 26px; }
.pg-mhead-copy { display: grid; gap: 8px; max-width: 620px; }
.pg-eyebrow { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.pg-mhead h2 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: .94; letter-spacing: -.005em; }
.pg-value { font-size: 16.5px; color: var(--ink-2); max-width: 50ch; }
.pg-fits { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-fits::before { content: "Useful for"; font: 500 11px/24px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.pg-fits li { font-size: 12px; color: var(--muted); background: var(--white); border-radius: 999px; padding: 3px 10px; }
.pg-mhead-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pg-body { display: grid; gap: 18px; }

/* ---------- atoms ---------- */
.pg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; font: 600 14px/1.1 var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.pg-btn:active:not(:disabled) { transform: translateY(1px); }
.pg-btn:disabled { opacity: .42; cursor: not-allowed; }
.pg-btn-primary { background: var(--teal); color: var(--white); }
.pg-btn-primary:hover:not(:disabled) { background: var(--ink); }
.pg-btn-soft { background: var(--teal-50); color: var(--teal); }
.pg-btn-soft:hover { background: var(--teal); color: var(--white); }
.pg-btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.pg-btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.pg-btn-danger { background: var(--danger); color: var(--white); }
.pg-btn-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pg-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.pg-btn-wide { width: 100%; justify-content: center; padding-block: 12px; }
.pg-ico { width: 16px; height: 16px; flex: none; }
.pg-arrow { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.pg-btn:hover .pg-arrow { transform: translateX(3px); }
.pg-icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.pg-icon-btn:hover { background: var(--line); color: var(--ink); }
.pg-card { background: var(--white); border-radius: 18px; padding: 22px; min-width: 0; }
.pg-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-card-head h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.pg-card-head h3 em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; }
.pg-muted { color: var(--muted); font-size: 13.5px; }
.pg-small { font-size: 12.5px; }
.pg-foot { font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.pg-label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.pg-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.pg-alert { background: var(--danger-50); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.pg-link { color: var(--teal); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.pg-link:hover { text-decoration: underline; }
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-empty { text-align: center; padding: 26px 12px; display: grid; gap: 12px; justify-items: center; color: var(--muted); font-size: 14px; }
.pg-more { background: none; border: 0; padding: 6px 0; color: var(--teal); font: 600 13.5px var(--body); cursor: pointer; justify-self: start; }
.pg-more:hover { text-decoration: underline; }
.pg-who { display: inline-flex; align-items: center; gap: 8px; }
.pg-av { --c: var(--teal); width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: var(--white); display: inline-grid; place-items: center; font: 600 11px var(--body); flex: none; }
.pg-av.sm { width: 24px; height: 24px; font-size: 9.5px; }
.pg-av.xs { width: 20px; height: 20px; font-size: 8.5px; }
.pg-pill { display: inline-block; font: 600 11.5px/1 var(--body); padding: 5px 9px; border-radius: 999px; white-space: nowrap; background: var(--paper); color: var(--ink-2); justify-self: start; }
.pg-pill-booked, .pg-pill-new { background: var(--blue-50); color: var(--blue); }
.pg-pill-confirmed, .pg-pill-active, .pg-pill-ready { background: var(--teal-50); color: var(--teal); }
.pg-pill-completed, .pg-stock-ok { background: var(--green-50); color: var(--green-ink); }
.pg-pill-no-show, .pg-pill-packed, .pg-stock-low { background: var(--warn-50); color: var(--warn); }
.pg-pill-cancelled, .pg-pill-inactive { color: var(--faint); text-decoration: line-through; }
.pg-pill-inactive { text-decoration: none; }
.pg-pill-vip { background: var(--ink); color: var(--white); }
.pg-stock-out { background: var(--danger-50); color: var(--danger); }
.pg-seg, .pg-months { display: inline-flex; background: rgba(14, 17, 19, .05); border-radius: 12px; padding: 3px; gap: 2px; }
.pg-months { background: var(--white); }
.pg-seg button, .pg-months button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 600 13px var(--body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pg-seg button:hover, .pg-months button:hover { color: var(--ink); }
.pg-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 17, 19, .1); }
.pg-months button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: var(--white); border-radius: 999px; padding: 7px 12px; font: 600 13px var(--body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pg-chips button:hover { color: var(--ink); }
.pg-chips button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.pg-chips i[style] { width: 8px; height: 8px; border-radius: 50%; }
.pg-chips i:not([style]) { font: 400 11px var(--mono); font-style: normal; opacity: .65; }
.pg-chips-tight { margin: 12px 0; }
.pg-chips-tight button { background: var(--paper); padding: 6px 10px; font-size: 12.5px; }
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pg-range { font-weight: 650; }
.pg-inline-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-left: auto; }
.pg-inline-sel select, .pg-dir-meta select { font: 500 13px var(--body); border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; background: var(--white); color: var(--ink); }
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.pg-panel { display: grid; gap: 18px; position: sticky; top: 84px; }
.pg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.flash { animation: pg-flash 2.4s var(--ease); }
@keyframes pg-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(25, 195, 125, .55); background-color: var(--green-50); } }

/* tooltips */
.pg-tip { position: relative; display: inline-flex; color: var(--faint); cursor: help; vertical-align: -2px; border-radius: 50%; }
.pg-tip [role="tooltip"] { position: absolute; left: -8px; bottom: calc(100% + 8px); width: 240px; background: var(--ink); color: var(--white); font: 400 12.5px/1.45 var(--body); text-transform: none; letter-spacing: 0; padding: 10px 12px; border-radius: 10px; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s; z-index: 20; }
.pg-tip:hover [role="tooltip"], .pg-tip:focus [role="tooltip"] { opacity: 1; transform: none; }

/* forms */
.pg-form { display: grid; gap: 14px; }
.pg-form .pg-card-head { margin-bottom: 0; }
.pg-form-tight { gap: 10px; }
.pg-form-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.pg-form-btns { display: flex; gap: 8px; }
.pg-field { display: grid; gap: 6px; }
.pg-field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pg-field > em { font-style: normal; font-size: 12px; color: var(--faint); }
.pg-field input, .pg-field select, .pg-field textarea, .pg-notes textarea, .pg-search input, .pg-status-sel select {
  font: 400 14.5px var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus, .pg-notes textarea:focus, .pg-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 163, 154, .18); }
.pg-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.pg-total b { font-size: 20px; }
.pg-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; flex: none; }
.pg-stepper button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--ink); }
.pg-stepper button:hover:not(:disabled) { background: var(--paper); }
.pg-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.pg-stepper output { min-width: 28px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pg-table th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.pg-table td { padding: 12px; border-bottom: 1px solid var(--paper); vertical-align: middle; }
.pg-table tbody tr[data-act] { cursor: pointer; transition: background .15s; }
.pg-table tbody tr[data-act]:hover { background: var(--paper); }
.pg-table tbody tr.on { background: var(--teal-50); }
.pg-table a { color: inherit; text-decoration: none; }
.pg-table a.pg-link { color: var(--teal); }
.pg-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.pg-table-sm td { padding: 8px 12px; }
.pg-sub { display: block; font-size: 12px; color: var(--muted); }
.pg-trunc { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pg-list { list-style: none; margin: 0; padding: 0; }
.pg-list li + li { border-top: 1px solid var(--paper); }
.pg-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: none; border: 0; padding: 10px 8px; border-radius: 10px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pg-row:hover { background: var(--paper); }
.pg-row b { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; min-width: 62px; }
.pg-row span { font-size: 14px; }
.pg-row span em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.pg-dl { margin: 14px 0 0; }
.pg-dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--paper); }
.pg-dl dt { font-size: 12.5px; color: var(--muted); }
.pg-dl dd { margin: 0; font-size: 14px; }
.pg-dl a { color: var(--teal); font-weight: 600; text-decoration: none; }
.pg-dl a:hover { text-decoration: underline; }
.pg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-history { list-style: none; margin: 0; padding: 0; }
.pg-history li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; }
.pg-history time { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.pg-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-slot { border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 7px 10px; font: 600 13px var(--body); cursor: pointer; color: var(--ink); }
.pg-slot:hover { border-color: var(--teal); }
.pg-slot.on { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ================================================================== analytics */
.pg-kpis { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg-kpi { background: var(--white); border-radius: 18px; padding: 20px 22px; display: grid; gap: 8px; align-content: start; transition: box-shadow .4s; }
.pg-kpi.bump { animation: pg-bump 1.2s var(--ease); }
@keyframes pg-bump { 0%, 40% { box-shadow: 0 0 0 3px rgba(20, 163, 154, .45); } }
.pg-kpi-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pg-kpi > b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pg-kpi-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; color: var(--muted); }
.pg-delta { font: 600 12px var(--body); border-radius: 999px; padding: 3px 8px; background: var(--paper); color: var(--faint); }
.pg-delta.good { background: var(--green-50); color: var(--green-ink); }
.pg-delta.bad { background: var(--danger-50); color: var(--danger); }
.pg-kpi-hero { background: var(--ink); color: var(--white); }
.pg-kpi-hero > b { font-size: clamp(2.3rem, 3.4vw, 3.1rem); }
.pg-kpi-hero .pg-kpi-k, .pg-kpi-hero .pg-kpi-sub { color: #aab4b9; }
.pg-kpi-hero .pg-tip { color: #6b767c; }
.pg-kpi-hero .pg-delta.good { background: rgba(25, 195, 125, .16); color: var(--green); }
.pg-kpi-hero .pg-delta.bad { background: rgba(240, 68, 56, .16); color: #ff8a80; }
.pg-kpi-split { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: #c7cfd3; margin-top: 4px; padding-top: 12px; border-top: 1px solid #2b3236; }
.pg-kpi-split span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sw-teal { background: var(--teal-bright); } .sw-blue { background: #7fa6e8; }
.pg-projected { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; background: var(--blue-50); border: 1px dashed rgba(36, 99, 196, .35); border-radius: 18px; padding: 16px 22px; }
.pg-projected .pg-kpi-k { color: var(--blue); }
.pg-projected-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.pg-projected-v b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: 28px; color: var(--blue); letter-spacing: -.02em; }
.pg-projected-v span { font-size: 13.5px; color: var(--ink-2); }
.pg-projected-total { text-align: right; display: grid; }
.pg-projected-total span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.pg-projected-total b { font-size: 20px; font-variant-numeric: tabular-nums; }

.pg-chart { position: relative; overflow-x: auto; }
.pg-chart svg { display: block; width: 100%; min-width: 560px; height: auto; touch-action: pan-y; }
.pg-gridline { stroke: var(--line); stroke-dasharray: 2 5; }
.pg-axis { fill: var(--faint); font: 11px var(--mono); }
.pg-bar-a { fill: var(--teal); transform-box: fill-box; transform-origin: bottom; animation: pg-grow .7s var(--ease) both; animation-delay: calc(var(--i) * 14ms); }
@keyframes pg-grow { from { transform: scaleY(0); } }
.pg-hover-band { fill: var(--ink); opacity: 0; transition: opacity .12s; }
.pg-hover-band.on { opacity: .05; }
.pg-today-line { stroke: var(--teal); stroke-dasharray: 2 3; opacity: .6; }
.pg-today-t { fill: var(--teal); }
.pg-prevline { fill: none; stroke: #9aa5ab; stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linejoin: round; }
.pg-proj { fill: var(--blue-50); stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 2; opacity: .85; }
.pg-tooltip { position: absolute; top: 0; left: 0; display: grid; gap: 3px; min-width: 160px; background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.pg-tooltip.on { opacity: 1; }
.pg-tooltip span { display: flex; align-items: center; gap: 7px; color: #c7cfd3; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pg-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-line { width: 10px; height: 10px; border-radius: 2px; background: var(--teal); display: inline-block; }
.pg-tooltip .lg-line { background: var(--teal-bright); }
.lg-proj { width: 10px; height: 10px; border-radius: 2px; background: var(--blue-50); border: 1px dashed var(--blue); display: inline-block; }
.lg-prev { width: 16px; border-top: 2px dashed #9aa5ab; display: inline-block; }
.pg-table-toggle { margin-top: 12px; }
.pg-table-toggle summary { cursor: pointer; font-size: 13px; color: var(--teal); font-weight: 600; width: fit-content; }
.pg-table-toggle .pg-table { margin-top: 10px; }
.pg-table-toggle[open] { max-height: 340px; overflow: auto; }

.pg-mbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pg-mbar { border: 0; background: none; border-radius: 14px; padding: 10px 6px 8px; display: grid; gap: 6px; justify-items: center; cursor: pointer; font: inherit; color: inherit; transition: background .2s; }
.pg-mbar:hover { background: var(--paper); }
.pg-mbar.on { background: var(--teal-50); }
.pg-mbar-v { font: 500 12px var(--mono); color: var(--ink-2); }
.pg-mbar-track { height: 110px; width: min(56px, 100%); display: flex; align-items: flex-end; }
.pg-mbar-track span { width: 100%; border-radius: 8px 8px 4px 4px; background: #b9dfdb; transition: height .6s var(--ease), background .2s; }
.pg-mbar.on .pg-mbar-track span { background: var(--teal); }
.pg-mbar-track span.partial { background: repeating-linear-gradient(135deg, #b9dfdb 0 6px, #d6ece9 6px 10px); }
.pg-mbar.on .pg-mbar-track span.partial { background: repeating-linear-gradient(135deg, var(--teal) 0 6px, var(--teal-bright) 6px 10px); }
.pg-mbar-l { font-weight: 650; font-size: 13px; }
.pg-mbar-g { font: 500 11px var(--mono); min-height: 14px; color: var(--faint); }
.pg-mbar-g.good { color: var(--green-ink); } .pg-mbar-g.bad { color: var(--danger); }
.pg-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pg-hbars li { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; }
.pg-hb-l { font-size: 13.5px; font-weight: 600; display: grid; line-height: 1.25; }
.pg-hb-l em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.pg-hb-t { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.pg-hb-t span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .7s var(--ease); }
.pg-hbars-blue .pg-hb-t span { background: var(--blue); }
.pg-hbars b { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pg-wd { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 150px; align-items: end; }
.pg-wd div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 4px; text-align: center; }
.pg-wd span { align-self: end; background: var(--teal-50); border-radius: 8px 8px 4px 4px; min-height: 4px; transition: height .6s var(--ease); }
.pg-wd b { font-size: 12.5px; }
.pg-wd em { font: 400 11px var(--mono); color: var(--muted); font-style: normal; }
.pg-insights { animation: pg-in .35s var(--ease); }
.pg-activity { list-style: none; margin: 0; padding: 0; }
.pg-activity li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--paper); font-size: 14px; animation: pg-in .4s var(--ease); }
.pg-activity time { font: 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.pg-activity a { font-size: 13px; color: var(--teal); font-weight: 600; text-decoration: none; }
.pg-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pg-act-booking { background: var(--teal); } .pg-act-order { background: var(--blue); } .pg-act-task { background: var(--green); } .pg-act-client { background: var(--ink-2); } .pg-act-stock { background: var(--warn); }

/* ================================================================== scheduling */
.pg-cal-card { padding: 0 0 14px; }
.pg-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 16px 16px 0; }
.pg-wday { border: 0; background: var(--paper); border-radius: 14px; padding: 10px 12px; display: grid; gap: 1px; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .2s, transform .2s var(--ease); }
.pg-wday:hover { transform: translateY(-2px); }
.pg-wday span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pg-wday b { font-size: 20px; font-weight: 650; line-height: 1.15; }
.pg-wday.is-today b { color: var(--teal); }
.pg-wday em { font-style: normal; font-size: 12px; color: var(--muted); }
.pg-wday-bar { display: block; height: 4px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pg-wday-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .5s var(--ease); }
.pg-wday.on { background: var(--ink); color: var(--white); }
.pg-wday.on span, .pg-wday.on em { color: #aab4b9; }
.pg-wday.on.is-today b { color: var(--teal-bright); }
.pg-wday.on .pg-wday-bar { background: #2b3236; }
.pg-wday.on .pg-wday-bar i { background: var(--teal-bright); }
.pg-day { padding: 18px 16px 4px; }
.pg-day-head, .pg-day-grid { display: grid; grid-template-columns: 50px repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.pg-day-head { margin-bottom: 10px; }
.pg-day-head p { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
.pg-day-head .pg-av { grid-row: span 2; }
.pg-day-head b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-day-head em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pg-day-grid { position: relative; height: calc(var(--hours) * var(--hp)); }
.pg-cal-times { position: relative; height: 100%; }
.pg-cal-times span { position: absolute; right: 4px; transform: translateY(-50%); font: 10.5px var(--mono); color: var(--faint); }
.pg-cal-times span:first-child { transform: none; }
.pg-cal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.pg-lane { position: relative; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--paper) 0 7px, #eef2f3 7px 8px); }
.pg-hours { position: absolute; left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; pointer-events: none; }
.pg-lane[data-act] { cursor: cell; }
.pg-lane[data-act]:hover .pg-hours { border-color: var(--teal-bright); background: #fbfefe; }
.pg-off-label { position: absolute; inset: 0; display: grid; place-items: center; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.pg-ev { position: absolute; left: 6px; right: 6px; border: 0; border-left: 3px solid var(--c); border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, white); padding: 6px 9px; text-align: left; font: inherit; color: var(--ink); overflow: hidden; display: grid; align-content: start; gap: 1px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pg-ev:hover { z-index: 2; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(14, 17, 19, .35); }
.pg-ev b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.pg-ev span { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-ev em { position: absolute; top: 6px; right: 6px; font: 600 9.5px var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); background: var(--blue-50); border-radius: 99px; padding: 2px 6px; }
.pg-ev.is-short { padding: 3px 8px; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; align-content: center; }
.pg-ev.is-short b { padding-right: 0; }
.pg-ev.is-short em { top: 50%; transform: translateY(-50%); }
.pg-ev-booked { background: var(--white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, white); }
.pg-ev-completed, .pg-ev-no-show { opacity: .55; }
.pg-ev-no-show b { text-decoration: line-through; }
.pg-ev.on { outline: 2px solid var(--c); outline-offset: 1px; z-index: 3; }
.pg-ev.flash { animation: pg-evflash 2.4s var(--ease); z-index: 3; }
@keyframes pg-evflash { 0%, 40% { box-shadow: 0 0 0 4px rgba(25, 195, 125, .6); transform: scale(1.03); } }
.pg-now { position: absolute; left: 50px; right: 0; height: 2px; background: var(--danger); pointer-events: none; z-index: 4; }
.pg-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.pg-cal-list { display: none; list-style: none; margin: 0; padding: 10px 8px 0; }
.pg-cal-list-day { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.pg-cal-hint { padding: 0 18px; }
.pg-detail .pg-pill { margin-bottom: 4px; }

/* ================================================================== clients */
.pg-split-clients { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.pg-dir { padding: 18px; }
.pg-search input { background: var(--paper); border-color: transparent; padding: 11px 14px; }
.pg-dir-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pg-dir-meta label { display: inline-flex; gap: 6px; align-items: center; }
.pg-dir-list { list-style: none; margin: 0 -8px; padding: 0; max-height: 620px; overflow: auto; }
.pg-dir-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
.pg-dir-list a:hover { background: var(--paper); }
.pg-dir-list a.on { background: var(--teal-50); }
.pg-cav { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink-2); display: grid; place-items: center; font: 650 13px var(--body); flex: none; }
.pg-dir-list a.on .pg-cav { background: var(--teal); color: var(--white); }
.pg-cav.lg { width: 64px; height: 64px; font-size: 21px; background: var(--teal); color: var(--white); }
.pg-dir-main b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-dir-main em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.pg-profile-wrap { position: sticky; top: 84px; }
.pg-pick { text-align: center; padding: 70px 24px; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.pg-pick svg { width: 44px; height: 44px; color: var(--teal); }
.pg-pick p { max-width: 32ch; }
.pg-back { display: none; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.pg-prof-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.pg-prof-head h3 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.pg-status-sel select { padding: 8px 10px; font-weight: 600; font-size: 13.5px; }
.pg-prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 6px; }
.pg-prof-stats div { background: var(--paper); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.pg-prof-stats span { font-size: 12px; color: var(--muted); }
.pg-prof-stats b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: 22px; letter-spacing: -.01em; }
.pg-prof-stats b.sm { font-family: var(--body); font-variation-settings: normal; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.pg-dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 16px; }
.pg-dl-row div { grid-template-columns: 56px minmax(0, 1fr); }
.pg-dl-row dd { overflow-wrap: anywhere; }
.pg-notes { display: grid; gap: 8px; }
.pg-notes > div { display: flex; gap: 12px; align-items: center; }
.pg-timeline { list-style: none; margin: 0; padding: 0; }
.pg-timeline li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 10px 18px; border-top: 1px solid var(--paper); position: relative; }
.pg-timeline li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--teal); }
.pg-timeline li.is-order::before { background: var(--blue); border-radius: 2px; }
.pg-timeline a { display: grid; text-decoration: none; color: inherit; min-width: 0; }
.pg-timeline a:hover b { color: var(--teal); }
.pg-timeline b { font-size: 13px; font-weight: 650; }
.pg-timeline span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================== tasks */
.pg-team { background: var(--white); border-radius: 18px; padding: 18px 22px; display: grid; grid-template-columns: auto minmax(180px, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: center; }
.pg-ring { position: relative; width: 96px; height: 96px; }
.pg-ring svg { width: 96px; height: 96px; }
.pg-ring-bg { fill: none; stroke: var(--paper); stroke-width: 8; }
.pg-ring-fg { fill: none; stroke: var(--teal); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; transition: stroke-dashoffset .8s var(--ease); }
.pg-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.pg-ring b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: 22px; }
.pg-ring span { font-size: 10.5px; color: var(--muted); max-width: 60px; }
.pg-team-copy p { font-size: 15px; }
.pg-late { color: var(--danger); font-weight: 600; font-size: 13.5px !important; margin-top: 4px; }
.pg-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-people button { width: 100%; display: flex; gap: 10px; align-items: center; background: var(--paper); border: 0; border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: box-shadow .2s; }
.pg-people button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--teal); }
.pg-people button > span:not(.pg-av) { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; flex: 1; align-items: center; }
.pg-people b { font-size: 13px; font-weight: 650; }
.pg-people em { font: 400 11px var(--mono); color: var(--muted); font-style: normal; grid-row: 1; grid-column: 2; }
.pg-bar { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; display: block; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.pg-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pg-col { background: rgba(14, 17, 19, .035); border-radius: 18px; padding: 12px; display: grid; gap: 10px; }
.pg-col h3 { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 650; padding: 4px 6px; }
.pg-col h3 span { font: 400 11px var(--mono); background: var(--white); border-radius: 99px; padding: 2px 8px; color: var(--muted); }
.pg-col-done h3 { color: var(--green-ink); }
.pg-task { background: var(--white); border-radius: 14px; padding: 12px 10px 12px 12px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; border-left: 3px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; animation: pg-in .35s var(--ease); }
.pg-task:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(14, 17, 19, .4); }
.pg-task.pri-high { border-left-color: var(--danger); }
.pg-task.pri-medium { border-left-color: var(--blue); }
.pg-task.pri-low { border-left-color: #c7cfd3; }
.pg-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c7cfd3; background: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.pg-check svg { width: 13px; height: 13px; }
.pg-check:hover { border-color: var(--teal); color: var(--teal); }
.pg-check.on { background: var(--green); border-color: var(--green); color: var(--white); animation: pg-pop .35s var(--ease); }
@keyframes pg-pop { 50% { transform: scale(1.25); } }
.pg-task-t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.pg-col-done .pg-task-t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.pg-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.pg-due.late { color: var(--danger); font-weight: 600; }
.pg-due.today { color: var(--teal); font-weight: 600; }
.pg-pri { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.pg-task-link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--blue); font-weight: 600; text-decoration: none; }
.pg-task-move { display: grid; gap: 4px; }
.pg-task-move button { width: 24px; height: 24px; border-radius: 7px; border: 0; background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-2); }
.pg-task-move button:hover:not(:disabled) { background: var(--teal-50); color: var(--teal); }
.pg-task-move button:disabled { opacity: .3; cursor: not-allowed; }
.pg-col-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 18px 10px; border: 1.5px dashed var(--line); border-radius: 12px; }

/* ================================================================== orders & inventory */
.pg-tabs { display: inline-flex; gap: 4px; background: rgba(14, 17, 19, .05); padding: 4px; border-radius: 14px; justify-self: start; }
.pg-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.pg-tabs a[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 17, 19, .1); }
.pg-tabs i { font: 400 11px var(--mono); font-style: normal; background: var(--paper); color: var(--muted); border-radius: 99px; padding: 2px 7px; }
.pg-tabs i.warn { background: var(--warn-50); color: var(--warn); }
.pg-orders { padding: 18px 10px 12px; overflow-x: auto; }
.pg-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-mini-stats div { background: var(--paper); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.pg-mini-stats span { font-size: 12px; color: var(--muted); }
.pg-mini-stats b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: 24px; }
.pg-stock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.pg-steps { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pg-steps li { display: grid; gap: 6px; font-size: 11px; color: var(--faint); line-height: 1.2; }
.pg-steps span { height: 4px; border-radius: 99px; background: var(--line); transition: background .4s; }
.pg-steps li.done span { background: var(--teal); }
.pg-steps li.now span { background: var(--teal-bright); }
.pg-steps li.now, .pg-steps li.done { color: var(--ink-2); }
.pg-steps li.now { font-weight: 650; }
.pg-lines { list-style: none; margin: 14px 0; padding: 0; }
.pg-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--paper); font-size: 14px; }
.pg-lines-total { font-weight: 650; border-bottom: 0 !important; }
.pg-pick-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.pg-pick-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--paper); }
.pg-pick-list b { display: block; font-size: 14px; font-weight: 600; }
.pg-pick-list em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.pg-pick-list li.is-out { opacity: .5; }
.pg-inv { padding: 18px 10px 14px; overflow-x: auto; }
.pg-inv .pg-table { min-width: 640px; }
.pg-inv tr.pg-inv-low td:first-child { box-shadow: inset 3px 0 0 #e0b04a; }
.pg-inv tr.pg-inv-out td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.pg-inv-acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.pg-inv .pg-foot { padding: 0 12px; }

/* ================================================================== customer previews */
.cp { padding: 24px clamp(14px, 3vw, 36px) 40px; animation: pg-in .45s var(--ease); }
.cp-banner { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); border-radius: 16px; padding: 12px 14px 12px 18px; flex-wrap: wrap; }
.cp-banner p { flex: 1; min-width: 220px; font-size: 13.5px; color: #c7cfd3; }
.cp-banner b { color: var(--white); }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25, 195, 125, .25); animation: pg-pulse 2s ease-in-out infinite; flex: none; }
@keyframes pg-pulse { 50% { box-shadow: 0 0 0 8px rgba(25, 195, 125, .08); } }
.cp-window { margin-top: 18px; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -45px rgba(14, 17, 19, .45); }
.cp-bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; background: #eef2f3; }
.cp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6d9; }
.cp-bar span { margin-left: 10px; font: 11.5px var(--mono); color: var(--muted); background: var(--white); border-radius: 8px; padding: 4px 10px; }
.cp-site { max-width: 900px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); }
.cp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.cp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.cp-logo i { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 800 16px var(--display); font-style: normal; }
.cp-head-k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cp-title { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.8rem); line-height: .95; margin-bottom: 26px; }
.cp-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; transition: opacity .3s; }
.cp-step:disabled { opacity: .4; }
.cp-step legend { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15.5px; margin-bottom: 14px; padding: 0; }
.cp-step legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font: 500 12px var(--mono); }
.cp-step:disabled legend span { background: var(--faint); }
.cp-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cp-opt { text-align: left; background: var(--paper); border: 1.5px solid transparent; border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.cp-opt:hover { border-color: var(--teal-bright); transform: translateY(-2px); }
.cp-opt.on { border-color: var(--teal); background: var(--teal-50); }
.cp-opt b { font-weight: 650; font-size: 15px; }
.cp-opt span { font-size: 12.5px; color: var(--muted); }
.cp-opt em { font-style: normal; color: var(--teal); font-weight: 650; font-size: 14px; }
.cp-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cp-day { flex: none; width: 66px; background: var(--paper); border: 1.5px solid transparent; border-radius: 14px; padding: 9px 4px; display: grid; justify-items: center; gap: 1px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s; }
.cp-day span { font: 500 10.5px var(--mono); text-transform: uppercase; color: var(--muted); }
.cp-day b { font-size: 20px; font-weight: 700; }
.cp-day em { font-style: normal; font-size: 10.5px; color: var(--teal); }
.cp-day:hover:not(:disabled) { border-color: var(--teal-bright); }
.cp-day.on { background: var(--teal); color: var(--white); }
.cp-day.on span, .cp-day.on em { color: rgba(255, 255, 255, .85); }
.cp-day:disabled { opacity: .4; cursor: not-allowed; }
.cp-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cp-time { background: var(--white); border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 14px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); transition: border-color .2s; }
.cp-time:hover { border-color: var(--teal); }
.cp-time.on { background: var(--teal); border-color: var(--teal); color: var(--white); }
.cp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.cp-submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 8px; white-space: normal; text-align: center; }
.cp-muted { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cp-fine { font-size: 12px; color: var(--faint); text-align: center; margin-top: 30px; }
.cp-done { text-align: center; padding: 20px 0 6px; display: grid; justify-items: center; gap: 12px; }
.cp-check { width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; animation: pg-burst .7s var(--ease); }
.cp-check svg { width: 34px; height: 34px; }
@keyframes pg-burst { 0% { transform: scale(.4); opacity: 0; box-shadow: 0 0 0 0 rgba(25, 195, 125, .5); } 60% { transform: scale(1.08); opacity: 1; } 100% { box-shadow: 0 0 0 22px rgba(25, 195, 125, 0); } }
.cp-done h3 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 38px; line-height: 1; }
.cp-done > p { font-size: 15.5px; color: var(--ink-2); }
.cp-next { margin-top: 16px; background: var(--teal-50); border-radius: 18px; padding: 18px 22px; display: grid; gap: 12px; justify-items: center; max-width: 520px; }
.cp-next p { font-size: 14.5px; color: var(--ink-2); }
.cp-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cp-prod { background: var(--paper); border-radius: 16px; padding: 14px; display: grid; gap: 4px; justify-items: start; transition: box-shadow .2s; }
.cp-prod.in-bag { box-shadow: inset 0 0 0 2px var(--teal); }
.cp-prod.is-out { opacity: .55; }
.cp-prod-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--white); display: grid; place-items: center; margin-bottom: 6px; }
.cp-prod-img i { font: 800 30px var(--display); font-variation-settings: "wdth" 62; color: var(--teal); font-style: normal; }
.cp-prod b { font-size: 14.5px; font-weight: 650; }
.cp-prod > em { font-style: normal; color: var(--teal); font-weight: 650; }
.cp-stock { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cp-checkout { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.cp-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 4px; font-size: 14px; color: var(--muted); }
.cp-total b { font-size: 22px; color: var(--ink); }

/* ================================================================== kit chrome: toasts and tour */
.mm-toasts { position: fixed; z-index: 1000; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.mm-toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border-radius: 14px; padding: 11px 14px 11px 12px; font: 600 14px var(--body); box-shadow: 0 18px 40px -16px rgba(14, 17, 19, .55); animation: pg-toast .35s var(--ease); transition: opacity .4s, transform .4s; }
.mm-toast::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mm-toast-info::before { background: #4f8fe8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7v4M8 4.8v.2' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mm-toast-error::before { background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mm-toast.has-action { pointer-events: auto; }
.mm-toast button { background: rgba(255, 255, 255, .1); border: 0; border-radius: 9px; padding: 6px 10px; color: #6fe3b0; font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.mm-toast button:hover { background: rgba(255, 255, 255, .18); }
.mm-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes pg-toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.mm-guide { position: fixed; z-index: 1001; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(350px, calc(100vw - 28px)); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 30px 70px -26px rgba(14, 17, 19, .45); font: 400 14px/1.5 var(--body); animation: pg-toast .35s var(--ease); }
.mm-guide-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.mm-x { background: var(--paper); border: 0; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.mm-x:hover { background: var(--line); color: var(--ink); }
.mm-guide-title { font-weight: 650; font-size: 17px; margin: 8px 0 4px; }
.mm-guide-text { color: var(--muted); }
.mm-guide-action { margin-top: 12px; width: 100%; border: 0; background: var(--teal-50); color: var(--teal); border-radius: 11px; padding: 10px; font: 600 14px var(--body); cursor: pointer; }
.mm-guide-action:hover { background: var(--teal); color: var(--white); }
.mm-guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.mm-guide-nav button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 10px; padding: 7px 14px; font: 600 13px var(--body); cursor: pointer; }
.mm-guide-nav button.primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.mm-guide-nav button:disabled { opacity: .35; cursor: default; }
.mm-dots { display: flex; gap: 5px; }
.mm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mm-dots i.on { background: var(--teal); }
.mm-spot { outline: 2px solid var(--teal-bright) !important; outline-offset: 4px; box-shadow: 0 0 0 9px rgba(20, 163, 154, .14) !important; animation: pg-spot 1.8s ease-in-out infinite; }
@keyframes pg-spot { 50% { box-shadow: 0 0 0 14px rgba(20, 163, 154, .05) !important; } }

/* ================================================================== responsive */
@media (max-width: 1180px) {
  .pg-top-note { display: none; }
  .pg-top-acts { margin-left: auto !important; }
  .pg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-panel, .pg-profile-wrap { position: static; }
  .pg-team { grid-template-columns: auto minmax(0, 1fr); }
  .pg-people { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .pg-shell { grid-template-columns: minmax(0, 1fr); }
  .pg-side { position: static; padding: 10px 10px 0; background: var(--paper); }
  .pg-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .pg-nav::-webkit-scrollbar { display: none; }
  .pg-nav-item { grid-template-columns: 30px auto; gap: 8px; padding: 6px 12px 6px 6px; flex: none; }
  .pg-mark { width: 30px; height: 30px; border-radius: 9px; }
  .pg-mark svg { width: 17px; height: 17px; }
  .pg-nav-text em, .pg-nav-n { display: none; }
  .pg-nav-text b { font-size: 13.5px; white-space: nowrap; }
  .pg-cta-side { display: none; }
  .pg-cta-foot { display: grid; }
  .pg-main { border-left: 0; padding-top: 18px; min-height: 0; }
  .pg-split-clients { grid-template-columns: minmax(0, 1fr); }
  .pg-split-clients.has-sel .pg-dir { display: none; }
  .pg-back { display: inline-block; }
  .pg-split-clients:not(.has-sel) .pg-profile-wrap { display: none; }
  .pg-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pg-stage { width: calc(100% - 20px); }
  .pg-app { border-radius: 16px; }
  .pg-top { padding: 10px 12px; gap: 10px; }
  .pg-ws em { display: none; }
  .pg-top-btn { padding: 8px 10px; }
  .pg-top-btn span { display: none; }
  .pg-main { padding: 18px 12px 28px; }
  .pg-mhead { margin-bottom: 18px; }
  .pg-mhead-acts { width: 100%; }
  .pg-card { padding: 16px; border-radius: 16px; }
  .pg-kpi { padding: 16px; }
  .pg-kpi-hero { grid-column: 1 / -1; }
  .pg-day { display: none; }
  .pg-cal-list { display: block; }
  .pg-week { display: flex; overflow-x: auto; scrollbar-width: none; }
  .pg-wday { flex: none; width: 92px; }
  .pg-cal-card { padding-bottom: 12px; overflow: visible; }
  .pg-cal-hint { display: none; }
  .pg-board { grid-template-columns: minmax(0, 1fr); }
  .pg-team { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pg-hbars li { grid-template-columns: minmax(0, 1fr) 70px; }
  .pg-hb-t { grid-column: 1 / -1; grid-row: 2; }
  .pg-hbars b { grid-row: 1; grid-column: 2; }
  .pg-mbars { gap: 2px; }
  .pg-mbar-v { font-size: 10.5px; }
  .pg-prof-head { grid-template-columns: 48px minmax(0, 1fr); }
  .pg-cav.lg { width: 48px; height: 48px; font-size: 16px; }
  .pg-status-sel { grid-column: 1 / -1; }
  .pg-prof-stats, .pg-dl-row { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .pg-inline-sel { margin-left: 0; }
  .cp-fields { grid-template-columns: minmax(0, 1fr); }
  .cp { padding: 14px 10px 24px; }
  .pg-projected-total { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-app *, .pg-app *::before, .pg-app *::after, .mm-toast, .mm-guide, .mm-spot { animation: none !important; transition: none !important; }

}
.pg-row-2 b i { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.pg-row .pg-arrow { color: var(--faint); }
.pg-row:hover .pg-arrow { color: var(--teal); transform: translateX(2px); }
