/*
 * Morocco Secrets — partner portal design system (Partner Portal 2.0, Phase 2)
 * docs/partner-portal/ui-design.md is the specification; this file is the only
 * stylesheet the portal loads. Calm, editorial, spacious: rules and space
 * instead of boxes, a card only for something you can open.
 *
 * Sections: 1 tokens · 2 base · 3 shell · 4 components · 5 forms and buttons ·
 * 6 pages written before 2.0 (kept working until their phase redesigns them) ·
 * 7 sign-in pages · 8 responsive · 9 motion and print · 10 the house colours
 *
 * The colours and the two faces come from config/theme.json ("partner_portal", 2026-10-28), printed after this
 * sheet by include/theme.php: the values in section 1 are the fallback, the same as the file ships.
 */

/* 1 ─ tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* The house parts the theme file sets (page_background, cards, lines, text, text_soft, text_muted, links_and_icons,
     badges, badges_strong); the tints between them are mixed from those, so they follow the file. */
  --paper: #F7F4ED;  --paper-2: color-mix(in srgb, var(--paper) 45%, #fff);  --surface: #FFFFFF;
  --sand: color-mix(in srgb, var(--pp-brass) 16%, var(--paper));   --sand-2: color-mix(in srgb, var(--pp-brass) 8%, var(--paper));
  --hairline: #E3DCCD;  --line-strong: color-mix(in srgb, var(--pp-brass) 30%, var(--hairline));
  --ink: #163027;    --ink-2: #3F4B44;    --stone: #676255;     --stone-2: color-mix(in srgb, var(--stone) 60%, var(--paper));
  --bronze: #87692F; --bronze-soft: color-mix(in srgb, var(--bronze) 10%, #fff); --bronze-line: color-mix(in srgb, var(--bronze) 35%, #fff);
  --ember: #A85038; --ember-deep: #8F3F2B;   /* white text on either: 5.43:1 and 7.21:1 */
  /* The rail is the website's green court (menu_*), the main action its brass button (buttons, button_text), titles
     its green (titles). */
  --pp-rail-bg: #12352C; --pp-rail-head: #195042; --pp-rail-text: #F7F4ED; --pp-rail-label: #CEB27C;
  --pp-brass: #C4A260; --pp-brass-hover: #A89057; --pp-on-brass: #163027; --pp-title: #195042;
  --ok: #4E6B3B;     --ok-soft: #E8EEE1;  --ok-line: #C6D3BA;
  --warn: #8F570C;   --warn-soft: #F7ECD8; --warn-line: #E6CFA5;   /* --warn 5.07:1 on --warn-soft (was 4.47, DS-10) */
  --live: #A84B24;   --live-soft: #F6E4DA;
  --bad: #9A2F2A;    --bad-soft: #F5E3E1; --bad-line: #E3BDB9;
  --info: #3E5C76;   --info-soft: #E4EAF0; --info-line: #C3D0DC;
  --plum: #6E4F78;   --plum-soft: #EFE7F1;
  --wa: #12805C;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;   /* the website's display face (title_font) */
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 4px; --radius-card: 8px;   /* 4px for every control (owner, 2026-10-21: "avoid pill-shaped controls"); cards 8px */
  --shadow-1: 0 1px 2px color-mix(in srgb, var(--pp-title) 7%, transparent), 0 4px 16px color-mix(in srgb, var(--pp-title) 5%, transparent);
  --shadow-2: 0 2px 6px color-mix(in srgb, var(--pp-title) 9%, transparent), 0 12px 32px color-mix(in srgb, var(--pp-title) 10%, transparent);
  --rail: 248px; --column: 1180px; --gutter: 40px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

/* z-scale: generated from include/design-core.php designZScale(); design-core.test.php keeps every copy equal */
:root {
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-drawer: 300;
    --z-modal: 1050;
    --z-popover: 1200;
    --z-toast: 1500;
    --z-skip: 1600;
}


/* 2 ─ base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 15px/1.6 var(--font-ui);
  color: var(--ink); background: var(--paper);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: var(--bronze); text-decoration: none; }   /* no line under a link (owner, 2026-10-21): bronze marks it, the colour moves on hover */
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--ink); }
h2 { font-size: 21px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { max-width: 72ch; }
strong { font-weight: 600; }
small, .pp-caption { font-size: 13px; line-height: 18px; color: var(--stone); }
.pp-num, td, .stat-card .value { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sand); }
.pp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.pp-skip:focus { top: 12px; color: #fff; }
.pp-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 3 ─ shell: a rail, a header, one column ───────────────────────────────── */
.pp-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.pp-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 16px 20px; background: var(--paper-2); border-inline-end: 1px solid var(--hairline);
}
.pp-brand { display: block; padding: 4px 10px 22px; text-decoration: none; color: var(--ink); }
.pp-brand b { display: block; font: 600 19px/1.15 var(--font-display); letter-spacing: -.01em; }
.pp-brand span { display: block; margin-top: 4px; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.pp-brand .pp-agency { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 500; }
.pp-nav-group { margin-top: 14px; padding: 0 10px 4px; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.pp-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.pp-nav a:hover { background: var(--sand-2); color: var(--ink); }
.pp-nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.pp-nav a[aria-current="page"] .pp-icon { color: var(--bronze); }
.pp-nav .pp-count { margin-inline-start: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pp-rail-foot { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--stone); }
.pp-rail-foot .lang-switch a { color: var(--ink-2); }
.pp-rail-foot .lang-switch strong { color: var(--ink); }

.pp-main { min-width: 0; display: flex; flex-direction: column; }
.pp-top {
  position: sticky; top: 0; z-index: calc(var(--z-sticky) + 1);
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
}
.pp-top.is-scrolled { border-bottom-color: var(--hairline); }
.pp-today { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.pp-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.pp-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 999px; color: var(--ink-2); background: transparent; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.pp-iconbtn:hover { background: var(--sand-2); color: var(--ink); }
.pp-dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ember-deep); color: #fff; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; }
.pp-menu-btn { display: none; }
.pp-content { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); padding: 28px var(--gutter) 72px; }

/* dropdowns are <details>: they work without script */
.pp-pop { position: relative; }
.pp-pop > summary { list-style: none; cursor: pointer; }
.pp-pop > summary::-webkit-details-marker { display: none; }
.pp-pop-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: var(--z-dropdown); min-width: 240px;
  padding: 8px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-2);
}
.pp-pop-panel a, .pp-pop-panel .pp-pop-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 14px; }
.pp-pop-panel a:hover { background: var(--sand-2); }
.pp-pop-panel hr { border: 0; border-top: 1px solid var(--hairline); margin: 6px 0; }
.pp-pop-head { padding: 8px 10px 10px; }
.pp-pop-head b { display: block; font-size: 14px; }
.pp-pop-head span { font-size: 13px; color: var(--stone); }
.pp-pop-panel .lang-switch a { display: inline; padding: 0; border-radius: 0; }
.pp-pop-panel .lang-switch a:hover { background: none; }
.pp-who { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); font-size: 13px; color: var(--ink); }
.pp-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; letter-spacing: .02em; }

/* 4 ─ components ─────────────────────────────────────────────────────────── */
.pp-eyebrow { font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.pp-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.pp-header h1 { font: 500 30px/36px var(--font-display); letter-spacing: -.015em; margin-top: 6px; }
.pp-header .pp-meta { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.pp-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pp-greeting h1 { font: 400 40px/44px var(--font-display); letter-spacing: -.02em; margin-top: 6px; }
.pp-greeting h1 em { font-style: italic; color: var(--bronze); }
.pp-summary { margin-top: 14px; font-size: 17px; line-height: 26px; color: var(--ink-2); max-width: none; }
.pp-summary b { color: var(--ink); font-weight: 600; }
.pp-summary .pp-sep { color: var(--stone-2); margin: 0 8px; }

.pp-section { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.pp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pp-section-head h2 { font: 500 21px/28px var(--font-display); letter-spacing: -.01em; }
.pp-section-head .pp-aside { font-size: 13px; color: var(--stone); }
.pp-section-head .pp-aside a { color: var(--ink-2); }

.pp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.pp-status::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: none; }
.pp-status.is-ready { color: var(--ok); }
.pp-status.is-attention, .pp-status.is-delayed { color: var(--warn); }
.pp-status.is-urgent, .pp-status.is-issue { color: var(--bad); }
.pp-status.is-live { color: var(--live); }
.pp-status.is-live::before { animation: pp-pulse 1.6s var(--ease) 3; }
.pp-status.is-done, .pp-status.is-waiting { color: var(--stone); }
.pp-status.is-done::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@keyframes pp-pulse { 0% { box-shadow: 0 0 0 0 rgba(168,75,36,.45); } 100% { box-shadow: 0 0 0 8px rgba(168,75,36,0); } }

.pp-attention { list-style: none; display: grid; gap: 8px; }
.pp-attention li {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px;
  background: var(--surface); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--warn); border-radius: var(--radius);
}
.pp-attention li.is-urgent { border-inline-start-color: var(--bad); }
.pp-attention .pp-text { flex: 1; min-width: 0; }
.pp-attention .pp-go { flex: none; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }
.pp-attention .pp-go:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.pp-live { list-style: none; }
.pp-live li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 8px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pp-live li:first-child { padding-top: 4px; }
.pp-live .pp-who-trip b { display: block; font-weight: 600; }
.pp-live .pp-who-trip a { color: var(--ink); text-decoration: none; }
.pp-live .pp-who-trip a:hover { color: var(--bronze); }
.pp-live .pp-who-trip span { font-size: 13px; color: var(--stone); }
.pp-now { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.pp-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); width: 44px; flex: none; }
.pp-now-text { min-width: 0; }
.pp-now-text b { font-weight: 500; }
.pp-now-text span { display: block; font-size: 13px; color: var(--stone); }

.pp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pp-trip {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pp-trip:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); color: var(--ink); }
.pp-trip-img { aspect-ratio: 16 / 9; background: var(--sand) center / cover no-repeat; position: relative; }
.pp-trip-when { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 600; color: var(--ink); }
.pp-trip-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pp-trip-body h3 { font: 500 18px/24px var(--font-display); letter-spacing: -.01em; }
.pp-trip-meta { font-size: 13px; color: var(--stone); }
.pp-trip-step { margin-top: auto; padding-top: 12px; }

.pp-progress { display: grid; gap: 6px; }
.pp-progress-bar { height: 4px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.pp-progress-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.pp-progress span { font-size: 13px; color: var(--ink-2); }

.pp-feed { list-style: none; }
.pp-feed li { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pp-feed li:last-child { border-bottom: 0; }
.pp-feed time { flex: none; width: 92px; font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
.pp-feed a { color: var(--ink); text-decoration: none; }
.pp-feed a:hover { color: var(--bronze); }
.pp-feed .is-unread a { font-weight: 600; }

.pp-empty { padding: 28px 0; color: var(--ink-2); }
.pp-empty p { margin-bottom: 12px; }
.pp-empty.is-boxed { padding: 28px; background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); text-align: center; }
.pp-empty.is-boxed p { margin-inline: auto; }

.pp-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.pp-aside-card { padding: 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.pp-aside-card + .pp-aside-card { margin-top: 16px; }
.pp-aside-card h3 { font: 500 17px/24px var(--font-display); margin: 6px 0 10px; }
.pp-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.pp-kv:last-child { border-bottom: 0; }
.pp-kv span { color: var(--ink-2); }

/* 4b ─ the trip workspace and the bookings list (Phase 3) ─────────────────── */
.pp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; margin-bottom: 16px; }
.pp-back:hover { color: var(--ink); }
.pp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-1); }
.pp-hero.no-img { grid-template-columns: 1fr; }
.pp-hero-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-hero-body h1 { font: 500 32px/38px var(--font-display); letter-spacing: -.015em; }
.pp-hero-body .pp-meta { color: var(--ink-2); }
.pp-hero-state { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.pp-hero-body .pp-header-actions { margin-top: 18px; }
.pp-hero-img { background: var(--sand) center / cover no-repeat; min-height: 220px; }
.pp-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px 20px; border-radius: var(--radius-card); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.pp-banner b { display: block; }
.pp-banner p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.pp-banner form { display: inline; }
.pp-subnav { position: sticky; top: 64px; z-index: var(--z-sticky); margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.pp-subnav div { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pp-subnav div::-webkit-scrollbar { display: none; }
.pp-subnav a { flex: none; padding: 12px 12px 11px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.pp-subnav a:hover { color: var(--ink); }
.pp-subnav a.is-here { color: var(--ink); border-bottom-color: var(--bronze); }
.pp-section { scroll-margin-top: 124px; }

.pp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 28px; margin-top: 22px; }
.pp-facts dt { font-size: 11px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.pp-facts dd { font-size: 15px; overflow-wrap: anywhere; }
.pp-facts dd span { display: block; font-size: 13px; color: var(--ink-2); }
.pp-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.pp-check b { display: block; font-weight: 500; margin-bottom: 8px; }

.pp-cps { list-style: none; }
.pp-cps li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.pp-cps li:last-child { border-bottom: 0; }
.pp-cps .pp-cp-text b { font-weight: 500; }
.pp-cps .pp-cp-text span { display: block; font-size: 13px; color: var(--stone); }
.pp-cps li.is-done .pp-cp-text b { color: var(--ink-2); }
.pp-cps li.is-live { background: linear-gradient(90deg, var(--live-soft), transparent 70%); margin: 0 -12px; padding-inline: 12px; border-radius: var(--radius); }
.pp-live-meta { font-size: 13px; color: var(--stone); }

.pp-days { list-style: none; }
.pp-day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pp-day:last-child { border-bottom: 0; }
.pp-day-n { font: 500 15px/22px var(--font-display); }
.pp-day-n span { display: block; font: 400 13px/18px var(--font-ui); color: var(--stone); }
.pp-day h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pp-day ul { list-style: none; display: grid; gap: 4px; }
.pp-day li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.pp-day li .pp-time { width: 44px; flex: none; }
.pp-day .pp-stay { margin-top: 6px; font-size: 13px; color: var(--stone); }
.pp-day.is-past { opacity: .62; }
.pp-day.is-today { background: var(--bronze-soft); margin: 0 -16px; padding-inline: 16px; border-radius: var(--radius); border-bottom-color: transparent; }
.pp-changes { list-style: none; margin-bottom: 20px; padding: 14px 18px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.pp-changes li { display: flex; gap: 14px; align-items: baseline; padding: 6px 0; font-size: 14px; }
.pp-changes time { flex: none; width: 92px; font-size: 13px; color: var(--stone); }
.pp-changes .is-new { font-weight: 600; }
.pp-new { display: inline-block; margin-inline-start: 8px; padding: 0 7px; border-radius: 999px; background: var(--ember-deep); color: #fff; font-size: 11px; line-height: 18px; font-weight: 600; vertical-align: 1px; }

.pp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.pp-table { width: 100%; border-collapse: collapse; }
.pp-table th { background: var(--paper-2); }
.pp-table td { vertical-align: top; }
.pp-table td small { display: block; }
.pp-table a.pp-row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.pp-table a.pp-row-link:hover { color: var(--bronze); }
.pp-table .pp-num { text-align: end; white-space: nowrap; }
.pp-ref { font: 500 12px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--stone); letter-spacing: .02em; }
.pp-copy { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; font: 500 12px/18px var(--font-ui); cursor: pointer; white-space: nowrap; }
.pp-copy:hover { border-color: var(--ink); color: var(--ink); }
.pp-inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.pp-inline-form .form-group { margin: 0; flex: 1 1 200px; }
.pp-more { margin-top: 14px; }
.pp-more summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--bronze); padding: 6px 0; }

.pp-thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 14px; }
.pp-msg { align-self: flex-start; max-width: min(600px, 88%); padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: var(--surface); border: 1px solid var(--hairline); }
.pp-msg.is-mine { align-self: flex-end; background: var(--bronze-soft); border-color: var(--bronze-line); border-radius: 12px 12px 4px 12px; }
.pp-msg.is-new { border-color: var(--bronze); }
.pp-msg header { font-size: 12px; color: var(--stone); margin-bottom: 4px; }
.pp-msg p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; max-width: none; }
.pp-composer { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.pp-composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.pp-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--hairline); margin-bottom: 18px; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.pp-tabs a:hover { color: var(--ink); }
.pp-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.pp-tab-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.pp-tabs a[aria-current="page"] .pp-tab-count { background: var(--ink); color: #fff; }
.pp-search { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pp-search input[type=search] { flex: 1 1 260px; }
.pp-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.pp-unread { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--bronze); text-decoration: none; }

/* 4c ─ your account: credits and what is open (TR-06) ─────────────────────── */
.pp-subhead { font: 600 12px/16px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-block: 24px 10px; }
.pp-credit { display: grid; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.pp-credit-figure { display: flex; align-items: baseline; gap: 10px; }
.pp-credit-figure b { font: 500 40px/44px var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pp-credit-figure span { color: var(--ink-2); }
.pp-credit .pp-progress-bar { height: 6px; }
.pp-ent { list-style: none; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.pp-ent li { display: flex; gap: 14px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.pp-ent li:last-child { border-bottom: 0; }
.pp-ent li > .pp-status { flex: none; width: 120px; }
.pp-ent li span b { font-weight: 500; }
.pp-ent li span small { display: block; font-size: 13px; color: var(--stone); }
.pp-ent li.is-off span b { color: var(--ink-2); }

/* 4d ─ the Sales Studio ──────────────────────────────────────────────────── */
.st-sources { list-style: none; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.st-sources li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.st-sources li:last-child { border-bottom: 0; }
.st-src-img { width: 64px; height: 44px; border-radius: 6px; background: var(--sand) center / cover no-repeat; }
.st-src-text b { display: block; font-weight: 500; }
.st-src-text small { color: var(--stone); font-size: 13px; }
.st-src-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.st-src-form select { padding: 6px 10px; font-size: 13px; }
.st-presets { list-style: none; }
.st-presets li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.st-presets small { display: block; color: var(--stone); font-size: 13px; }
.st-inline { display: inline-flex; gap: 8px; align-items: center; }
.st-editor { display: flex; flex-direction: column; gap: 16px; }
.st-editor [hidden] { display: none !important; }   /* a class with display: grid must not beat the hidden attribute */
.st-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-top .pp-back { margin-bottom: 0; flex-basis: 100%; }
.st-top-title h1 { font: 500 24px/30px var(--font-display); letter-spacing: -.01em; }
.st-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-cost { font-size: 13px; color: var(--ink-2); }
.st-cost.is-short { color: var(--bad); font-weight: 600; }
.st-preset-panel { display: grid; gap: 8px; min-width: 240px; }
.st-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 4px 16px 16px; max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 16px; }
.st-panel .pp-tabs { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.st-field { margin-bottom: 12px; }
.st-field select, .st-field input { width: 100%; }
.st-secs { list-style: none; display: grid; gap: 8px; }
.st-sec { border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper-2); }
.st-sec.is-on { background: var(--surface); border-color: var(--line-strong); }
.st-sec.is-dragging, .st-item-list li.is-dragging { opacity: .45; }
.st-sec-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.st-grip { cursor: grab; color: var(--stone-2); letter-spacing: -2px; user-select: none; }
.st-sec-name { flex: 1; display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; cursor: pointer; }
.st-sec-body { padding: 0 12px 12px 30px; display: grid; gap: 10px; }
.st-fields { border: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.st-fields legend { font-size: 12px; color: var(--stone); margin-bottom: 4px; }
.st-fields label, .st-item-list label, .st-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.st-items-bar { display: flex; align-items: center; gap: 4px; }
.st-items-bar .pp-label { margin: 0 auto 0 0; }
.st-item-list { list-style: none; display: grid; gap: 2px; font-size: 13px; max-height: 260px; overflow: auto; }
.st-item-list li { padding: 3px 4px; border-radius: 6px; color: var(--stone); }
.st-item-list li.is-on { color: var(--ink); cursor: grab; }
.st-item-list.is-images { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-thumb { display: inline-block; width: 72px; height: 48px; border-radius: 6px; background: var(--sand) center / cover no-repeat; }
.st-templates, .st-photos, .st-places, .st-sig { border: 0; margin: 12px 0; }
.st-templates { display: flex; gap: 8px; }
.st-tpl { flex: 1; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; }
.st-tpl-atlas { background: #fff; }
.st-tpl-riad { background: #FAF6EE; }
.st-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.st-photo { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; font-size: 12px; }
.st-photo.is-none span { display: inline-flex; width: 72px; height: 48px; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: 6px; text-align: center; padding: 2px; }
.st-focal { position: relative; cursor: crosshair; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.st-focal img { display: block; width: 100%; height: auto; }
.st-focal-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); pointer-events: none; }
.st-stage { min-width: 0; }
.st-stage-bar { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; flex-wrap: wrap; }
.st-zoom { margin-inline-start: auto; display: inline-flex; gap: 8px; align-items: center; }
.st-messages { display: grid; gap: 8px; margin-bottom: 10px; }
.st-msg { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.st-msg ul { margin: 4px 0 0; padding-inline-start: 18px; }
.st-msg.is-error { background: #FBEDEA; color: #8C2F1E; border: 1px solid #F0CFC7; }
.st-msg.is-warn { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--hairline); }
.st-canvas { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 18px; background: #8E8A84; border-radius: var(--radius-card); overflow: auto; max-height: calc(100vh - 160px); }
.st-canvas .sd-page { flex: none; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.st-email-frame { width: 100%; min-height: 720px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; }
.st-web-frame { background: #fff; width: 100%; }
.st-raster { display: grid; gap: 12px; justify-items: start; }
.st-raster-canvas { max-width: min(540px, 100%); height: auto; box-shadow: var(--shadow-2); }
.st-raster-status.is-error { color: var(--bad); }
.st-doc-img { max-width: min(540px, 100%); height: auto; box-shadow: var(--shadow-2); }
.st-doc-pdf { width: 100%; height: 760px; border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.st-email-text pre { white-space: pre-wrap; font-size: 13px; background: var(--paper-2); padding: 12px; border-radius: 8px; }
.st-versions { list-style: none; margin-bottom: 14px; }
.st-versions li { padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.st-versions li[aria-current] a { font-weight: 700; }
.st-versions small { display: block; color: var(--stone); font-size: 12px; }
.st-qr { margin: 12px 0; }
.st-qr svg { width: 168px; height: 168px; display: block; }
.st-brand-form { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 18px; margin-bottom: 10px; }
.st-brand-logo, .st-brand-sig { display: block; max-width: 180px; max-height: 60px; object-fit: contain; margin-bottom: 8px; background: #fff; }
.st-brand-actions { display: flex; justify-content: flex-end; }

/* 4e ─ the request centre (PP-04) ────────────────────────────────────────── */
.pp-attention-note { padding: 12px 16px; border-radius: var(--radius-card); background: #FFF6E6; border: 1px solid #F0DDB8; color: #7A4E12; margin-bottom: 16px; font-size: 14px; }
.rq-answer { padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--ember-deep); border-radius: var(--radius-card); white-space: normal; }
.rq-text { white-space: normal; }
.rq-details { margin-top: 12px; }
.rq-history { list-style: none; }
.rq-history li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.rq-history li:last-child { border-bottom: 0; }
.rq-history time { font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
.rq-history small { color: var(--stone); margin-inline-start: 6px; }
.rq-history p { margin-top: 6px; color: var(--ink-2); }
.rq-history li.is-staff b { color: var(--ember-deep); }
.rq-reply { display: grid; gap: 8px; max-width: 640px; }
.rq-form { max-width: 760px; }
.rq-form [hidden] { display: none !important; }
.rq-extra { border: 0; }
.rq-check { display: inline-flex; gap: 6px; align-items: center; margin-block: 4px; margin-inline: 0 14px; font-size: 14px; }
@media (max-width: 640px) { .rq-history li { grid-template-columns: 1fr; gap: 2px; } }

/* 4f ─ one product and its versions (PP-05) ─────────────────────────────── */
.pd-list { list-style: none; display: grid; gap: 4px; }
.pd-list li { position: relative; padding-inline-start: 16px; }
.pd-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; background: var(--ember-deep); }
.pd-list.is-muted li { color: var(--ink-2); }
.pd-list.is-muted li::before { background: var(--line-strong); }
.pd-days { list-style: none; }
.pd-days li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.pd-days li:last-child { border-bottom: 0; }
.pd-day-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-deep); padding-top: 2px; }
.pd-days p { color: var(--ink-2); margin-top: 4px; }
.pd-adapted { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }
.pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pd-versions { list-style: none; margin: 8px 0 12px; }
.pd-versions li { padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.pd-versions li[aria-current] a { font-weight: 700; color: var(--ink); }
.pd-versions small { display: block; color: var(--stone); font-size: 12px; }
@media (max-width: 640px) { .pd-cols { grid-template-columns: 1fr; } }

/* 4g ─ documents (PP-06) ─────────────────────────────────────────────────── */
.dc-list { list-style: none; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.dc-list li { padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.dc-list li:last-child { border-bottom: 0; }
.dc-list a { color: var(--ink); text-decoration: none; }
.dc-list a:hover b { color: var(--bronze); }
.dc-list b { font-weight: 500; }
.dc-list small { display: block; color: var(--stone); font-size: 13px; }
.dc-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dc-list.is-grid li { border-bottom: 0; border-inline-end: 1px solid var(--hairline); }

/* 4h ─ finance and sales tools (PP-07) ──────────────────────────────────── */
.fn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.fn-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); display: grid; gap: 4px; }
.fn-card span { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.fn-card b { font: 500 24px/30px var(--font-display); font-variant-numeric: tabular-nums; }
.fn-card small { color: var(--ink-2); font-size: 13px; }
.fn-card.is-late { border-color: var(--bad-line); background: var(--bad-soft); }
.fn-card.is-late b { color: var(--bad); }
.stl-tools { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.stl-tools a { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); color: var(--ink); text-decoration: none; height: 100%; }
.stl-tools a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.stl-tools b { display: block; font-weight: 500; }
.stl-tools small { display: block; color: var(--stone); font-size: 13px; margin-top: 2px; }

/* 4i ─ notifications (PP-09) ────────────────────────────────────────────── */
.nt-list { list-style: none; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.nt-list li { border-bottom: 1px solid var(--hairline); border-inline-start: 3px solid transparent; }
.nt-list li:last-child { border-bottom: 0; }
.nt-list a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.nt-list a:hover { background: var(--sand); }
.nt-list a:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; }
.nt-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sand-2); color: var(--ink-2); }
.nt-icon svg { width: 17px; height: 17px; }
.nt-text { display: grid; gap: 3px; min-width: 0; }
.nt-text b { font-weight: 500; overflow-wrap: anywhere; }
.nt-body { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nt-text small { color: var(--stone); font-size: 13px; }
.nt-list li.is-unread { border-inline-start-color: var(--ember-deep); }
.nt-list li.is-unread b { font-weight: 600; }
.nt-list li.is-unread .nt-icon { background: var(--ink); color: #fff; }
.nt-list li.is-alert .nt-icon { background: var(--bad-soft); color: var(--bad); }
.nt-new { color: var(--ember-deep); font-weight: 600; }
.nt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.nt-check input[disabled] + span { color: var(--stone); }

/* 4j ─ calendar and performance (PP-11) ─────────────────────────────────── */
.cl-nav { display: flex; gap: 6px; align-items: center; }
.cl-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.cl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cl-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--stone-2); }
.cl-dot.is-ready { background: var(--ok); }
.cl-dot.is-attention { background: var(--bronze); }
.cl-dot.is-urgent { background: var(--bad); }
.cl-dot.is-quiet { background: var(--stone-2); }
.cl-grid { border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; margin-bottom: 8px; }
.cl-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cl-row + .cl-row { border-top: 1px solid var(--hairline); }
.cl-head span { padding: 8px 10px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.cl-day { min-height: 104px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-day + .cl-day { border-inline-start: 1px solid var(--hairline); }
.cl-day.is-out { background: var(--sand); }
.cl-day.is-out .cl-num { color: var(--stone); }   /* a number to read, not decoration (DS-10: --stone-2 was 2.88:1) */
.cl-num { font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; align-self: flex-start; }
.cl-day.is-today .cl-num { background: var(--ink); color: #fff; }
.cl-tour { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--stone); }
.cl-tour .pp-icon { width: 12px; height: 12px; }
.cl-chip { display: block; padding: 2px 6px; border-radius: 5px; font-size: 12px; line-height: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--sand-2); border-inline-start: 3px solid var(--stone-2); }
.cl-chip:hover { background: var(--hairline); }
.cl-chip.is-ready { border-inline-start-color: var(--ok); }
.cl-chip.is-attention { border-inline-start-color: var(--bronze); }
.cl-chip.is-urgent { border-inline-start-color: var(--bad); background: var(--bad-soft); }
.cl-more { font-size: 12px; color: var(--ink-2); }
.cl-agenda { list-style: none; display: grid; gap: 14px; }
.cl-agenda h3 { font: 500 15px/22px var(--font-ui); margin-bottom: 6px; }
.cl-agenda > li.is-today h3 { color: var(--ember-deep); }
.cl-agenda ul { list-style: none; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.cl-agenda ul li + li { border-top: 1px solid var(--hairline); }
.cl-agenda a { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.cl-agenda a:hover { background: var(--sand); }
.cl-agenda small { display: block; font-size: 12px; color: var(--stone); }
.cl-agenda b { font-weight: 500; }
.cl-agenda em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .cl-grid { display: none; } }
.pf-bars { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; block-size: 220px; padding: 12px 14px 8px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.pf-bars li { display: grid; grid-template-rows: 18px 1fr 18px; align-items: end; justify-items: center; block-size: 100%; min-width: 0; }
.pf-bar { inline-size: min(28px, 100%); background: var(--bronze); border-radius: 4px 4px 0 0; align-self: end; }
.pf-bar-n { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pf-bar-m { font-size: 11.5px; color: var(--stone); white-space: nowrap; }

/* 5 ─ forms and buttons ──────────────────────────────────────────────────── */
.btn, .pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 500 14px/20px var(--font-ui); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover, .pp-btn:hover { border-color: var(--ink); color: var(--ink); }
/* The main action is the website's brass button: charcoal words on the gold (5.84:1, 4.57:1 on the hover). */
.btn-primary, .pp-btn.is-primary { background: var(--pp-brass); border-color: var(--pp-brass); color: var(--pp-on-brass); }
.btn-primary:hover, .pp-btn.is-primary:hover { background: var(--pp-brass-hover); border-color: var(--pp-brass-hover); color: var(--pp-on-brass); }
.pp-btn.is-accent { background: var(--ember-deep); border-color: var(--ember-deep); color: #fff; }
.pp-btn.is-accent:hover { background: color-mix(in srgb, var(--ember-deep) 85%, #000); border-color: color-mix(in srgb, var(--ember-deep) 85%, #000); color: #fff; }
.btn-outline { background: transparent; }
.btn-sm, .pp-btn.is-sm { padding: 6px 12px; font-size: 13px; }
.pp-btn.is-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.pp-btn.is-quiet:hover { background: var(--sand-2); color: var(--ink); }
.btn[disabled], .pp-btn[disabled] { opacity: .5; cursor: not-allowed; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-group { margin-bottom: 16px; }
.form-full { grid-column: 1 / -1; }
.form-group label, .pp-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea,
.form-group input, .form-group select, .form-group textarea {
  max-width: 100%; padding: 10px 12px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font: 400 15px/22px var(--font-ui);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
/* full width inside a labelled field; a filter bar keeps the widths its page gives it */
.form-group input, .form-group select, .form-group textarea, .pp-auth-panel input, textarea { width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(138,90,43,.14); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--stone); }   /* 5.56:1 on white (DS-10) */
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
select option { background: var(--surface); color: var(--ink); }

/* 6 ─ pages written before 2.0 ───────────────────────────────────────────── */
/* Their inline colours were turned into the tokens above (2026-10-01); these
   classes keep their structure readable until each page's phase redesigns it. */
.content { max-width: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 18px 20px; }
.stat-card .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.stat-card .value { font: 500 28px/1.1 var(--font-display); color: var(--ink); }
.stat-card .value.orange { color: var(--bronze); } .stat-card .value.green { color: var(--ok); } .stat-card .value.blue { color: var(--info); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-header h3 { font: 500 17px/24px var(--font-display); color: var(--ink); }
.card-body { padding: 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; padding: 10px 16px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); border-bottom: 1px solid var(--hairline); }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--hairline); }
tbody tr:hover td { background: var(--paper-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 18px; background: var(--sand-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge.confirmed, .badge.fully_paid, .badge.paid, .badge.completed_form { background: var(--ok-soft); color: var(--ok); }
.badge.in_progress { background: var(--live-soft); color: var(--live); }
.badge.completed { background: var(--sand-2); color: var(--stone); }
.badge.cancelled, .badge.unpaid, .badge.refunded { background: var(--bad-soft); color: var(--bad); }
.badge.deposit_paid, .badge.partial, .badge.partial_refund, .badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.draft { background: var(--sand-2); color: var(--ink-2); }
.flash, .pp-flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius); font-size: 14px; border: 1px solid; }
.flash.success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.flash.error { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.flash.info { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.empty { text-align: center; padding: 48px 20px; color: var(--stone); }
.empty i { font-size: 32px; margin-bottom: 12px; display: block; color: var(--stone-2); }
.lang-switch { font-size: 13px; color: var(--stone); }
.lang-switch a { color: var(--ink-2); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch strong { color: var(--ink); }
.pp-locked { padding: 40px; text-align: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); color: var(--ink-2); }
/* legacy pages wrote their own heading sizes; give them the display face */
.pp-content > h2:first-child, .pp-legacy > h2:first-child { font: 500 26px/32px var(--font-display); letter-spacing: -.01em; }

/* 6b ─ pages moved onto the components (ecosystem DS-12, 2026-10-28) ────── */
/* The pages written before 2.0 drew themselves with inline styles. Their title,
   sections, empty states and states now come from partner/includes/ui.php; these
   classes carry the measures their inline styles had, so a moved page keeps its
   look. After section 5 on purpose: they win over the base field styles, as the
   inline styles did. */
.pp-ico { color: var(--bronze); margin-inline-end: 6px; }
.pp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; align-items: end; }
.pp-more .pp-fields { margin-top: 10px; }
.pp-field { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.pp-field input, .pp-field select, .pp-field textarea { width: 100%; padding: 8px 12px; background: var(--sand-2); border: 1px solid var(--hairline); border-radius: 6px; font-size: 13px; font-family: inherit; color-scheme: light; }
/* the catalog */
.cat-search { margin-bottom: 0; }
.cat-search input[type=search] { flex: 1 1 200px; }
.cat-rate { margin-top: -20px; font-size: 13px; color: var(--stone); }
.cat-rate .is-info { color: var(--info); }
.cat-rate .is-ok { color: var(--ok); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-card { margin-bottom: 0; }
.cat-img { position: relative; height: 160px; background-color: var(--sand); background-image: var(--cat-img, none); background-position: center; background-size: cover; background-repeat: no-repeat; }
.cat-dur { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; padding: 4px 10px; border-radius: 6px; background: var(--surface); font-size: 11px; font-weight: 600; }
.cat-body { padding: 16px; }
.cat-body h3 { font-size: 14px; margin-bottom: 8px; }
.cat-body h3 a { color: var(--ink); }
.cat-tagline { font-size: 12px; color: var(--stone); margin-bottom: 12px; line-height: 1.5; }
.cat-public { margin-bottom: 12px; font-size: 15px; }
.cat-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cat-price s { font-size: 11px; color: var(--stone); }
.cat-price b { font-size: 20px; font-weight: 700; color: var(--ok); }
.cat-off { padding: 2px 8px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 11px; }
.cat-save { font-size: 11px; color: var(--stone); margin-bottom: 12px; }
.cat-ask { margin-bottom: 12px; font-size: 13px; color: var(--warn); }
.cat-actions { display: flex; gap: 8px; }
.cat-actions .btn { font-size: 12px; padding: 8px 12px; }
.cat-actions .cat-book { flex: 1; padding: 8px; }
.cat-actions .cat-public-link { padding-inline: 10px; }
.cat-feed { margin-top: 24px; }
.cat-feed-body { display: grid; gap: 12px; padding: 16px 20px; }
.cat-feed-body form { margin: 0; }
.cat-feed-intro { font-size: 13px; color: var(--ink-2); max-width: 760px; }
.cat-feed-when { font-size: 12.5px; color: var(--ink-2); }
.cat-feed-once { padding: 12px; border: 1px solid var(--bronze-line); border-radius: 8px; background: var(--bronze-soft); }
.cat-feed-once b { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--bronze); }
.cat-feed-urls { display: grid; gap: 6px; }
.cat-feed-field { display: block; font-size: 11px; color: var(--ink-2); }
.cat-feed-field input { width: 100%; padding: 8px 10px; background: var(--sand-2); border: 1px solid var(--hairline); border-radius: 6px; color: var(--ink); font-size: 12px; font-family: monospace; }
.cat-feed-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* fam trips and webinars */
.ev-card { padding: 18px 20px; margin-bottom: 14px; }
.ev-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.ev-main { flex: 1 1 320px; min-width: 0; }
.ev-kind { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--bronze); font-weight: 700; }
.ev-title { margin: 4px 0; font-size: 17px; font-weight: 700; }
.ev-when { font-size: 12.5px; color: var(--ink-2); }
.ev-summary { margin-top: 10px; font-size: 13px; color: var(--ink); white-space: pre-line; }
.ev-places { text-align: end; font-size: 12.5px; color: var(--ink-2); }
.ev-places strong { color: var(--ink); font-size: 15px; }
.ev-mine { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.ev-mine .pp-eyebrow { margin-bottom: 6px; }
.ev-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.ev-person form { margin: 0; }
.ev-mail { color: var(--stone); font-size: 12px; }
.ev-join { margin-top: 8px; }
.ev-card .pp-more { margin-top: 12px; }
.ev-closed { margin-top: 12px; font-size: 12.5px; color: var(--stone); }
/* the marketing library */
.kit-note { display: flex; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.kit-note p { max-width: none; font-size: 12.5px; color: var(--ink-2); }
.kit-note i, .kit-note a { color: var(--plum); }
.kit-item { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin-bottom: 0; }
.kit-item-head { display: flex; gap: 10px; align-items: flex-start; }
.kit-item-head > i { margin-top: 2px; font-size: 22px; color: var(--stone); }
.kit-item-head > div { min-width: 0; }
.kit-item h3 { font-size: 14px; font-weight: 700; }
.kit-meta { font-size: 11px; color: var(--stone); }
.kit-yours { color: var(--ok); }
.kit-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.kit-actions { display: flex; gap: 8px; margin-top: auto; align-items: center; flex-wrap: wrap; }
.kit-logo { font-size: 11px; color: var(--plum); }
/* the team */
.tm-sub { font-size: 11.5px; color: var(--stone); }
.tm-quiet { font-size: 12px; color: var(--stone); }
.tm-you { font-size: 11px; color: var(--bronze); }
.tm-role { display: flex; gap: 6px; align-items: center; margin: 0; }
.tm-role select { padding: 5px 8px; background: var(--sand-2); border: 1px solid var(--hairline); border-radius: 6px; font-size: 13px; font-family: inherit; color-scheme: light; }
.tm-expired { font-size: 11px; color: var(--bad); }
.tm-num { font-size: 12.5px; }
.tm-acts { white-space: nowrap; }
.tm-acts form { display: inline; margin: 0; }
.tm-invite { padding: 16px 20px; }
.tm-roles { display: grid; gap: 3px; margin-top: 14px; padding-inline-start: 18px; font-size: 12.5px; color: var(--ink-2); }
.tm-roles strong { color: var(--ink); }
/* new booking: the commission model in the header's action slot */
.nb-model { padding: 10px 16px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper-2); font-size: 12px; }
.nb-model .pp-eyebrow { font-size: 10px; margin-bottom: 2px; }
.nb-model span { color: var(--stone); }
.nb-model .is-info { color: var(--info); }
.nb-model .is-warn { color: var(--warn); }
/* request a custom programme: the line under the title, which holds a link */
.rqb-intro { max-width: 640px; margin: -20px 0 20px; font-size: 13px; color: var(--stone); }

/* 7 ─ sign-in pages ──────────────────────────────────────────────────────── */
.pp-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }
.pp-auth-art {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px;
  /* the colour belongs to the last layer only; written first, it voids the whole declaration */
  background: linear-gradient(180deg, color-mix(in srgb, var(--pp-rail-bg) 8%, transparent) 0%, color-mix(in srgb, var(--pp-rail-bg) 38%, transparent) 45%, color-mix(in srgb, var(--pp-rail-bg) 86%, transparent) 100%), var(--auth-img, none) center / cover no-repeat var(--pp-rail-bg);
  color: #fff;
}
.pp-auth-art .pp-eyebrow { color: rgba(255,255,255,.75); }
.pp-auth-art h2 { font: 400 38px/44px var(--font-display); letter-spacing: -.02em; color: #fff; max-width: 15ch; margin-top: 10px; }
.pp-auth-art p { margin-top: 14px; color: rgba(255,255,255,.82); max-width: 44ch; }
.pp-auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 64px); background: var(--paper); }
.pp-auth-panel .pp-brand { padding: 0 0 28px; }
.pp-auth-panel h1 { font: 500 28px/34px var(--font-display); letter-spacing: -.015em; margin-bottom: 6px; }
.pp-auth-panel .pp-lede { color: var(--ink-2); margin-bottom: 28px; }
.pp-auth-panel form .pp-btn { width: 100%; padding: 12px 16px; margin-top: 6px; }
.pp-auth-links { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--stone); }
.pp-auth-links a { color: var(--ink-2); }
.pp-pass { position: relative; }
.pp-pass input { padding-inline-end: 64px; }
.pp-pass button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-2); font: 500 12px var(--font-ui); padding: 6px 8px; cursor: pointer; border-radius: var(--radius); }
.pp-pass button:hover { background: var(--sand-2); }

/* 8 ─ responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --gutter: 28px; }
  .pp-two { grid-template-columns: 1fr; gap: 32px; }
  .st-body { grid-template-columns: 1fr; }
  .st-panel { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .st-sources li { grid-template-columns: 48px minmax(0, 1fr); }
  .st-src-form { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .pp-shell { display: block; }
  .pp-rail {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: calc(var(--z-drawer) + 1); width: min(300px, 86vw); height: 100%;
    transform: translateX(-102%); transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  }
  [dir="rtl"] .pp-rail { transform: translateX(102%); }
  .pp-rail:target, body.pp-nav-open .pp-rail { transform: none; box-shadow: var(--shadow-2); }
  .pp-scrim { display: none; position: fixed; inset: 0; z-index: var(--z-drawer); background: color-mix(in srgb, var(--pp-rail-bg) 40%, transparent); }
  body.pp-nav-open .pp-scrim { display: block; }
  .pp-menu-btn { display: inline-flex; }
  .pp-top { height: 56px; }
  .pp-today { display: none; }
  .pp-top-brand { font: 500 17px var(--font-display); color: var(--pp-title); text-decoration: none; }
  .pp-who .pp-who-name { display: none; }
  .pp-who { padding: 3px; }
  .pp-content { padding-top: 20px; }
  .pp-greeting h1 { font-size: 32px; line-height: 38px; }
  .pp-header h1 { font-size: 26px; line-height: 32px; }
  .pp-live li { grid-template-columns: 1fr auto; }
  .pp-live .pp-now { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .pp-auth { grid-template-columns: 1fr; }
  .pp-auth-art { min-height: 220px; padding: 28px 20px; }
  .pp-auth-art h2 { font-size: 28px; line-height: 34px; }
}
@media (min-width: 901px) { .pp-top-brand { display: none; } .pp-scrim { display: none; } }
@media (max-width: 560px) {
  .pp-attention li { flex-wrap: wrap; }
  .pp-attention .pp-go { margin-inline-start: auto; }
  .pp-summary .pp-sep { display: none; }
  .pp-summary > span { display: block; }
  .pp-feed time { width: 72px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card .value { font-size: 22px; }
  .card-header { flex-direction: column; align-items: flex-start; }
  .table-wrap table { min-width: 460px; }
}

@media (max-width: 900px) {
  .pp-hero { grid-template-columns: 1fr; }
  .pp-hero-img { order: -1; min-height: 160px; }
  .pp-hero-body { padding: 20px; }
  .pp-hero-body h1 { font-size: 26px; line-height: 32px; }
  .pp-subnav { top: 56px; }
  .pp-day { grid-template-columns: 1fr; gap: 4px; }
  .pp-cps li { grid-template-columns: 48px minmax(0, 1fr); }
  .pp-cps li .pp-status { grid-column: 2; }
}

/* 9 ─ motion and print ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .pp-rail, .pp-top, .pp-scrim, .pp-header-actions { display: none !important; }
  .pp-shell { display: block; }
  body { background: #fff; }
}

/* 10 ─ the house colours (owner, 2026-10-28: "colour and shapes brilliant, identity everywhere") ─────────────── */
/* The rail is the website's green court with the logo's eight-point star as a faint lattice; the page you are on
   is a brass band marked with that star; titles are the display face in the green. Every colour is a part of
   config/theme.json. Words on the rail: ivory at 78% (7.9:1), group names in the menu gold (6.54:1). */
.pp-rail {
  background-color: var(--pp-rail-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6 8.5 10.5-1-1 10.5L52 28l-8.5 6 1 10.5-10.5-1L28 52l-6-8.5-10.5 1 1-10.5L4 28l8.5-6-1-10.5 10.5 1z' fill='none' stroke='%23F7F4ED' stroke-opacity='.05'/%3E%3C/svg%3E"); background-size: 56px 56px;
  border-inline-end: 0; color: var(--pp-rail-text);
  scrollbar-color: color-mix(in srgb, var(--pp-rail-label) 35%, transparent) transparent;
}
.pp-rail a { color: color-mix(in srgb, var(--pp-rail-text) 80%, transparent); }
.pp-rail a:hover { color: var(--pp-rail-text); }
.pp-rail :focus-visible { outline-color: var(--pp-rail-label); }
.pp-brand, .pp-rail .pp-brand { color: var(--pp-rail-text); }
.pp-brand b { font-weight: 500; }
.pp-rail .pp-brand span { color: var(--pp-rail-label); }
.pp-rail .pp-brand .pp-agency { border-top-color: color-mix(in srgb, var(--pp-rail-label) 22%, transparent); color: color-mix(in srgb, var(--pp-rail-text) 80%, transparent); }
.pp-nav-group { color: var(--pp-rail-label); font-weight: 600; }
.pp-nav a { color: color-mix(in srgb, var(--pp-rail-text) 78%, transparent); position: relative; }
.pp-nav a .pp-icon { color: var(--pp-rail-label); }
.pp-nav a:hover { background: color-mix(in srgb, var(--pp-rail-text) 8%, transparent); color: var(--pp-rail-text); }
.pp-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--pp-brass) 20%, transparent); color: var(--pp-rail-text); font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pp-rail-label) 28%, transparent);
}
.pp-nav a[aria-current="page"] .pp-icon { color: var(--pp-brass); }
.pp-nav a[aria-current="page"]::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 50%; width: 7px; height: 7px; transform: translateY(-50%);
  background: var(--pp-brass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3.2 4.3L20.5 5l-.3 5.3L24 12l-3.8 1.7.3 5.3-5.3-.3L12 23l-3.2-4.3-5.3.3.3-5.3L0 12l3.8-1.7L3.5 5l5.3.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3.2 4.3L20.5 5l-.3 5.3L24 12l-3.8 1.7.3 5.3-5.3-.3L12 23l-3.2-4.3-5.3.3.3-5.3L0 12l3.8-1.7L3.5 5l5.3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pp-nav .pp-count { background: var(--pp-brass); color: var(--pp-on-brass); }
.pp-rail-foot { border-top-color: color-mix(in srgb, var(--pp-rail-label) 22%, transparent); color: color-mix(in srgb, var(--pp-rail-text) 66%, transparent); }
.pp-rail-foot .lang-switch a { color: color-mix(in srgb, var(--pp-rail-text) 80%, transparent); }
.pp-rail-foot .lang-switch strong { color: var(--pp-rail-text); }
.pp-top.is-scrolled { border-bottom-color: color-mix(in srgb, var(--pp-brass) 45%, transparent); }
:focus-visible { outline-color: var(--pp-title); }
.pp-header h1, .pp-greeting h1, .pp-hero-body h1, .pp-auth-panel h1, .st-top-title h1 { font-weight: 400; color: var(--pp-title); }
.pp-section-head h2, .card-header h3, .pp-aside-card h3, .pp-content > h2:first-child, .pp-legacy > h2:first-child { color: var(--pp-title); }
.pp-greeting h1 em { color: var(--bronze); }
.stat-card .value, .pp-credit-figure b, .fn-card b { color: var(--pp-title); }
.pp-avatar { background: var(--pp-title); color: var(--pp-rail-text); }

/* 11 ─ house controls (owner, 2026-10-28: "all forms need css") ──────────────────────────────────────────────── */
/* Every control writes in the house face; a field's edge is the green at 3.5:1 (--line-strong was 1.5:1, under the
   3:1 a field edge needs) and its focus the green with a brass halo; checkboxes and radios take the green; the open
   list of a select is drawn in the house look where the browser allows it (with a mouse). Theme vars throughout
   (config/theme.json "partner_portal"). */
:root { --pp-field-border: color-mix(in srgb, var(--pp-title) 55%, var(--hairline)); }
:where(button, input, select, textarea, optgroup) { font-family: inherit; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea,
.form-group input, .form-group select, .form-group textarea { border-color: var(--pp-field-border); }
input:focus, select:focus, textarea:focus { border-color: var(--pp-title); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-brass) 24%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--pp-title); }
@supports (appearance: base-select) {
  @media (hover: hover) and (pointer: fine) {
    html body select:not([multiple], [size]) { appearance: base-select; background-image: none; }
    html body select:not([multiple], [size])::picker-icon {
      content: ""; inline-size: 12px; block-size: 12px; align-self: center; margin-inline-start: auto; padding-inline-start: 10px;
      background: var(--bronze);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat content-box;
              mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat content-box;
      transition: rotate .15s var(--ease);
    }
    html body select:not([multiple], [size]):open::picker-icon { rotate: 180deg; }
    html body select:not([multiple], [size])::picker(select) {
      appearance: base-select; margin-block: 4px; padding: 5px;
      border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-2);
      max-block-size: min(380px, 60vh);
    }
    html body select:not([multiple], [size]) option { display: flex; align-items: center; gap: 8px; min-block-size: 36px; padding: 7px 10px; border-radius: var(--radius); color: var(--ink); font-size: 14px; cursor: pointer; }
    html body select:not([multiple], [size]) option:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--pp-brass) 16%, var(--surface)); color: var(--pp-title); outline: none; }
    html body select:not([multiple], [size]) option:checked { background: color-mix(in srgb, var(--pp-title) 9%, var(--surface)); color: var(--pp-title); font-weight: 600; }
    html body select:not([multiple], [size]) option::checkmark { order: 1; margin-inline-start: auto; color: var(--bronze); }
    html body select:not([multiple], [size]) option:disabled { color: var(--stone); opacity: .6; cursor: default; }
  }
}
