/* =====================================================================
   PPS BASE 1.2.2 (17 Nov 2026, Life OS 1.7.1): no dot after calendar day numbers (it read as "+" on phones).
   1.2.1 (15 Nov 2026, evening): no CSS change (pps-cal.js 1.2.1 only).
   1.2.0 (15 Nov 2026): colour pass for the Soft Pebble desks (section 11 at the end), moved chips keep their colour.
   PPS BASE 1.1.0 (15 Nov 2026, with Life OS 1.6.0): calendar item colours by life area + 3 kinds with icons.
   PPS BASE 1.0.0 (15 Nov 2026): the shared look for Ali's apps
   Loads AFTER soft-glass.css. Two looks, chosen on <html>:
     data-pp="pebble"  Soft Pebble: SEO Desk, Studio Desk, Product Desk (SUNDAY DESIGN THEME)
     data-pp="paper"   Paper Planner: Life OS (home + life calendar)
   Plus data-pp-app="seodesk|studiodesk|productdesk|lifeos" for the app's one accent.
   Rules (SUNDAY DECISIONS v2): more colour but soft pastels; never dark fills on calendars, "today",
   active menu items or chips; one dark main button per screen; Doto for numbers, dates, day numbers and
   page titles; Figtree for reading text. Plain CSS only: no images, no animation on load, blur only on
   pop-ups and the Ctrl+K box ("Lite glass" turns that off too).
   ===================================================================== */

@font-face { font-family: "Doto"; src: url("fonts/doto-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---------- 1. Soft Pebble tokens (re-point the soft-glass variables) ---------- */
[data-pp="pebble"] {
  --sg-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pp-dots: "Doto", ui-monospace, monospace;
  --sg-bg: #e7e8ea; --sg-bg-a: #e7e8ea; --sg-bg-b: #eceaf0;
  --sg-surface: #f9f9f8; --sg-surface-solid: #ffffff; --sg-surface-2: #f1f2f3;
  --sg-border: transparent;
  --sg-ink: #1f2226; --sg-ink-2: #545a62;
  --sg-shadow: 0 12px 40px rgba(30, 40, 55, .07); --sg-shadow-lift: 0 16px 48px rgba(30, 40, 55, .11);
  --sg-glass: rgba(249, 249, 248, .78);
  --sg-r-card: 28px; --sg-r-sheet: 28px; --sg-r-input: 999px;
  --pp-ink-dark: #1f2226;
  /* the one accent per app: only tags, active pill and highlights */
  --pp-acc-bg: #e3e5e8; --pp-acc-ink: #1f2226;
}
[data-pp="pebble"][data-pp-app="seodesk"]     { --pp-acc-bg: #cdebe3; --pp-acc-ink: #0b4a43; --sg-accent: #1a6f60; --sg-accent-soft: #cdebe3; }
[data-pp="pebble"][data-pp-app="studiodesk"]  { --pp-acc-bg: #dedff6; --pp-acc-ink: #33378f; --sg-accent: #3f44a8; --sg-accent-soft: #dedff6; }
[data-pp="pebble"][data-pp-app="productdesk"] { --pp-acc-bg: #f3e1ae; --pp-acc-ink: #5a4000; --sg-accent: #8a6400; --sg-accent-soft: #f3e1ae;
  --sg-bg: #e9e4e1; --sg-surface: #fbf8f6; --sg-ink: #24201d; --sg-ink-2: #5d554f; --sg-shadow: 0 12px 40px rgba(70, 45, 35, .07); }
[data-pp="pebble"][data-sg-theme="night"] {
  --sg-bg: #1b1d21; --sg-surface: #24272c; --sg-surface-solid: #2b2e34; --sg-surface-2: #2b2e34;
  --sg-ink: #eceef1; --sg-ink-2: #b4bac2; --sg-shadow: 0 12px 40px rgba(0, 0, 0, .35); --sg-glass: rgba(36, 39, 44, .85);
  --pp-acc-bg: #34383f; --pp-acc-ink: #eceef1; --pp-ink-dark: #eceef1;
}

/* ---------- 2. Paper Planner tokens (Life OS) ---------- */
[data-pp="paper"] {
  --sg-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pp-dots: "Doto", ui-monospace, monospace;
  --sg-bg: #f7f1e6; --sg-bg-a: #f7f1e6; --sg-bg-b: #f3ece0;
  --sg-surface: #fffbf3; --sg-surface-solid: #fffdf8; --sg-surface-2: #f6efe2;
  --sg-border: #e8dcc8;
  --sg-ink: #2e2620; --sg-ink-2: #5e5246;
  --sg-shadow: 0 6px 20px rgba(110, 80, 40, .08); --sg-shadow-lift: 0 12px 32px rgba(110, 80, 40, .12);
  --sg-glass: rgba(255, 251, 243, .86);
  --sg-accent: #6a4fb8; --sg-accent-soft: #ece4fa;
  --pp-acc-bg: #ece4fa; --pp-acc-ink: #4a3384; --pp-ink-dark: #2e2620;
  --pp-line: #eadfcb;
  /* the four calendar washes (Life OS key): important dates, family/events, tasks/notes, Islamic dates */
  --pp-rose: #f9e1e4; --pp-rose-ink: #7a2e3b;
  --pp-sage: #e3eedf; --pp-sage-ink: #2f5a2c;
  --pp-sand: #f6ead2; --pp-sand-ink: #6b4f14;
  --pp-sky:  #e3eef8; --pp-sky-ink: #24507e;
  /* one colour per life area (SUNDAY DECISIONS v2) */
  --pp-personal: #dcefdc; --pp-personal-ink: #2a5e2c;
  --pp-work: #e7e1f6;     --pp-work-ink: #4a3384;
  --pp-business: #fbe0d8; --pp-business-ink: #8a3a22;
  --pp-growth: #fde5cc;   --pp-growth-ink: #84400f;
  --pp-money: #f6e7b4;    --pp-money-ink: #5e4500;
  --pp-food: #dcebf8;     --pp-food-ink: #1f4a80;
}
[data-pp="paper"][data-sg-theme="night"] {
  --sg-bg: #1d1a17; --sg-surface: #262220; --sg-surface-solid: #2d2926; --sg-surface-2: #2d2926;
  --sg-border: #3a342e; --sg-ink: #f1ebe2; --sg-ink-2: #c3b8aa; --pp-line: #3a342e; --pp-ink-dark: #f1ebe2;
  --pp-rose: #44262b; --pp-rose-ink: #f3c1c9; --pp-sage: #26352a; --pp-sage-ink: #bfe0bd;
  --pp-sand: #3d3220; --pp-sand-ink: #ecd29a; --pp-sky: #22303f; --pp-sky-ink: #b8d4f2;
}
/* the paper: a faint ruled texture in CSS only */
[data-pp="paper"] body { background: var(--sg-bg) repeating-linear-gradient(180deg, transparent 0 31px, rgba(150, 120, 80, .05) 31px 32px); }
[data-pp="pebble"] body { background: var(--sg-bg); }

/* ---------- 3. Type: dotted numbers and titles ---------- */
.pp-title { font-family: var(--pp-dots); font-weight: 700; font-size: 2.5rem; line-height: 1.1; margin: 0; letter-spacing: 0; }
.pp-num, .pp-big { font-family: var(--pp-dots); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-num { font-size: 3.25rem; }
.pp-big { font-size: 4.5rem; }
@media (max-width: 720px) { .pp-title { font-size: 1.75rem; } .pp-num { font-size: 2.25rem; } .pp-big { font-size: 2.75rem; } }

/* ---------- 4. Tiles, stat row, glow cards, strip ---------- */
.pp-tile { background: var(--sg-surface); border-radius: var(--sg-r-card); box-shadow: var(--sg-shadow); padding: 24px; }
[data-pp="paper"] .pp-tile { border: 1px solid var(--sg-border); border-radius: 20px; }
.pp-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; }
.pp-stats--3 { --n: 3; } .pp-stats--5 { --n: 5; }
@media (max-width: 720px) { .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pp-stat .pp-lbl { font-size: .875rem; color: var(--sg-ink-2); }
/* rainbow-pastel stat chips (soft fills, dark ink) */
.pp-stat:nth-child(5n+1) .pp-chip { background: #f8d3d9; } .pp-stat:nth-child(5n+1) .pp-num { color: #8e2b3b; }
.pp-stat:nth-child(5n+2) .pp-chip { background: #ffddbe; } .pp-stat:nth-child(5n+2) .pp-num { color: #8a4300; }
.pp-stat:nth-child(5n+3) .pp-chip { background: #f5e6a3; } .pp-stat:nth-child(5n+3) .pp-num { color: #6b5300; }
.pp-stat:nth-child(5n+4) .pp-chip { background: #cdebdc; } .pp-stat:nth-child(5n+4) .pp-num { color: #1e5a3b; }
.pp-stat:nth-child(5n+5) .pp-chip { background: #d2e2f6; } .pp-stat:nth-child(5n+5) .pp-num { color: #1f4a80; }
[data-sg-theme="night"] .pp-stat .pp-num { color: var(--sg-ink) !important; }

.pp-glows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pp-glow { border-radius: 32px; padding: 24px; min-height: 176px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sg-shadow); color: #2a2320; }
@media (max-width: 720px) { .pp-glows { gap: 12px; } .pp-glow { border-radius: 22px; padding: 16px; min-height: 128px; } }
.pp-glow--pink  { background: radial-gradient(120% 100% at 15% 0%, #f6c7cd 0%, #f9e0dc 55%, #fcf1ee 100%); }
.pp-glow--peach { background: radial-gradient(120% 100% at 85% 0%, #ffcfa8 0%, #ffe5d1 55%, #fff4eb 100%); }
.pp-glow--mint  { background: radial-gradient(120% 100% at 15% 0%, #bfe6cf 0%, #dcf1e5 55%, #f0f9f4 100%); }
.pp-glow--sky   { background: radial-gradient(120% 100% at 85% 0%, #c4dbf4 0%, #dde9f8 55%, #f0f5fc 100%); }
.pp-glow--lav   { background: radial-gradient(120% 100% at 15% 0%, #d9ccf3 0%, #e9e2f8 55%, #f6f2fc 100%); }
.pp-glow--butter{ background: radial-gradient(120% 100% at 85% 0%, #f4e08f 0%, #f9edbf 55%, #fdf8e6 100%); }
[data-sg-theme="night"] .pp-glow { filter: brightness(.55) saturate(.8); color: #fff; }
.pp-glow .pp-lbl { color: inherit; opacity: .85; font-size: .875rem; }
.pp-ticks { height: 14px; margin-top: auto; background: repeating-linear-gradient(90deg, rgba(31, 34, 38, .36) 0 1px, transparent 1px 9px); border-radius: 2px; }
.pp-ticks > i { display: block; height: 100%; background: rgba(31, 34, 38, .14); border-radius: 2px; }

.pp-strip { position: relative; height: 40px; border-radius: 999px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
  background: linear-gradient(90deg, #fce4e8, #ffebda, #fbf2cf, #e1f3e8, #e2eefb, #ede6fa, #fbe3ee); }
.pp-strip__float { position: absolute; left: 50%; transform: translateX(-50%); top: -14px; background: var(--sg-surface-solid); border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 600; box-shadow: var(--sg-shadow); white-space: nowrap; }
.pp-dot { width: 14px; height: 14px; border-radius: 50%; background: #b7bcc3; border: 2px solid #fff; }
.pp-dot--done { background: #3f7a4f; } .pp-dot--missed { background: #fff; box-shadow: inset 0 0 0 2px #b4540a; }
.pp-dot--plan { background: #c9a43a; } .pp-dot--due { background: #b35a00; }
.pp-strip__days { display: flex; justify-content: space-between; padding: 6px 14px 0; font-size: .75rem; color: var(--sg-ink-2); }

/* ---------- 5. Pills, rows, chips, accordions, quick actions ---------- */
.pp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sg-surface-2); color: var(--sg-ink); white-space: nowrap; }
.pp-chip--acc { background: var(--pp-acc-bg); color: var(--pp-acc-ink); }
.pp-chip--warn { background: #fbe3cc; color: #6b3300; } .pp-chip--ok { background: #dceedf; color: #1f5130; } .pp-chip--urgent { background: #fbe1e5; color: #8e1f33; }
/* app chips: the same colours in every app's bell */
.pp-app { flex: none; font-size: .6875rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pp-app--seodesk { background: #cdebe3; color: #0b4a43; } .pp-app--studiodesk { background: #dedff6; color: #33378f; }
.pp-app--productdesk { background: #f3e1ae; color: #5a4000; } .pp-app--lifeos { background: #e7e1f4; color: #3e3270; }
.pp-app--claude { background: #f6e3d6; color: #6b3300; } .pp-app--takhti { background: #dcefdc; color: #2a5e2c; }

.pp-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp-li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 16px; border-radius: 999px; background: #fff; color: var(--sg-ink); }
@media (max-width: 720px) { .pp-li { border-radius: 18px; min-height: 52px; } }
.pp-list > .pp-li:nth-child(6n+1) { background: #fff1f3; } .pp-list > .pp-li:nth-child(6n+2) { background: #fff4ea; }
.pp-list > .pp-li:nth-child(6n+3) { background: #fff8e0; } .pp-list > .pp-li:nth-child(6n+4) { background: #eef8f2; }
.pp-list > .pp-li:nth-child(6n+5) { background: #eef4fc; } .pp-list > .pp-li:nth-child(6n+6) { background: #f4f0fc; }
[data-sg-theme="night"] .pp-list > .pp-li { background: var(--sg-surface-2) !important; }
.pp-li__grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-li__grow b { font-weight: 600; } .pp-li__grow span { font-size: .8125rem; color: var(--sg-ink-2); }
.pp-count { margin-left: auto; font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: var(--sg-bg); color: var(--sg-ink); }

details.pp-acc { background: var(--sg-surface); border-radius: 22px; box-shadow: var(--sg-shadow); }
details.pp-acc > summary { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 20px; cursor: pointer; list-style: none; }
details.pp-acc > summary::-webkit-details-marker { display: none; }
details.pp-acc > summary b { font-weight: 600; } details.pp-acc > summary span { color: var(--sg-ink-2); font-size: .875rem; }
details.pp-acc > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--sg-ink-2); border-bottom: 2px solid var(--sg-ink-2); transform: rotate(45deg); }
details.pp-acc[open] > summary::after { transform: rotate(-135deg); }
details.pp-acc > .pp-acc__body { padding: 0 20px 20px; }
.pp-qa { display: flex; flex-wrap: wrap; gap: 8px; }

/* text tabs (Month / This week) */
.pp-tabs { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.pp-tab { font: inherit; font-size: 1.625rem; font-weight: 500; color: #6f757d; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; }
.pp-tab[aria-selected="true"], .pp-tab.is-on { color: var(--sg-ink); }
@media (max-width: 720px) { .pp-tab { font-size: 1.125rem; } }

/* sidebar: grouped pills, active = pastel accent, never dark */
.pp-side { display: flex; flex-direction: column; gap: 4px; }
.pp-side__grp { font-size: .75rem; font-weight: 600; color: var(--sg-ink-2); margin: 14px 14px 4px; letter-spacing: .03em; text-transform: uppercase; }
.pp-side a, .pp-side button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--sg-ink); text-decoration: none; font: inherit; font-size: .9375rem; background: none; border: 0; cursor: pointer; text-align: left; }
.pp-side a[aria-current="page"], .pp-side .is-on { background: var(--pp-acc-bg); color: var(--pp-acc-ink); font-weight: 600; }
.pp-side__spacer { flex: 1; min-height: 32px; }

/* ---------- 6. Buttons: soft white pills, round icon buttons, ONE dark delight button ---------- */
.pp-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--sg-surface-solid); font: inherit; font-size: .875rem; font-weight: 500; color: var(--sg-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(30, 40, 55, .06); text-decoration: none; }
.pp-btn--icon { width: 44px; padding: 0; }
.pp-kbd { font-size: .6875rem; padding: 2px 6px; border-radius: 6px; background: var(--sg-bg); color: var(--sg-ink-2); font-family: var(--sg-font); }
/* Delight: on hover/focus the label changes to the win and the icon moves. CSS only, never on load. */
.pp-delight { background: var(--pp-ink-dark); color: #fff; }
[data-sg-theme="night"] .pp-delight { color: #1b1d21; }
.pp-delight .pp-alt { display: none; }
.pp-delight:hover .pp-def, .pp-delight:focus-visible .pp-def { display: none; }
.pp-delight:hover .pp-alt, .pp-delight:focus-visible .pp-alt { display: inline; }
.pp-delight svg { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pp-delight:hover svg, .pp-delight:focus-visible svg { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) { .pp-delight svg { transition: none; } .pp-delight:hover svg, .pp-delight:focus-visible svg { transform: none; } }
:where([data-pp]) :focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }

/* ---------- 7. Ctrl+K quick-actions box and the shared bell (the only frosted layers) ---------- */
.pp-cmd { border: 0; padding: 0; border-radius: 24px; width: min(600px, calc(100vw - 32px)); max-height: min(70vh, 560px); background: var(--sg-glass); color: var(--sg-ink); box-shadow: var(--sg-shadow-lift); overflow: hidden; }
.pp-cmd::backdrop { background: rgba(30, 30, 40, .18); }
.pp-blur .pp-cmd, .pp-blur .pp-bellpop { -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
@media (prefers-reduced-transparency: reduce) { .pp-cmd, .pp-bellpop { background: var(--sg-surface-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
.pp-lite .pp-cmd, .pp-lite .pp-bellpop { background: var(--sg-surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pp-cmd__in { width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .06); background: transparent; padding: 0 20px; font: inherit; font-size: 1.0625rem; color: var(--sg-ink); }
.pp-cmd__in:focus { outline: none; }
.pp-cmd__list { list-style: none; margin: 0; padding: 8px; max-height: calc(min(70vh, 560px) - 100px); overflow: auto; }
.pp-cmd__grp { font-size: .75rem; font-weight: 600; color: var(--sg-ink-2); padding: 8px 12px 4px; }
.pp-cmd__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: none; font: inherit; color: var(--sg-ink); text-align: left; cursor: pointer; }
.pp-cmd__item[aria-selected="true"], .pp-cmd__item:hover { background: var(--pp-acc-bg); color: var(--pp-acc-ink); }
.pp-cmd__item small { margin-left: auto; color: var(--sg-ink-2); font-size: .75rem; }
.pp-cmd__foot { font-size: .75rem; color: var(--sg-ink-2); padding: 8px 20px 12px; border-top: 1px solid rgba(0, 0, 0, .06); }
@media (max-width: 720px) { .pp-cmd { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; } }

.pp-bellpop { position: absolute; right: 16px; top: 64px; z-index: 50; width: min(440px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--sg-glass); border-radius: 24px; box-shadow: var(--sg-shadow-lift); padding: 16px 20px; }
.pp-n { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid rgba(0, 0, 0, .06); }
.pp-n:first-child { border-top: 0; }
.pp-n__body { flex: 1; min-width: 0; }
.pp-n b { font-weight: 600; font-size: .875rem; display: block; }
.pp-n span.pp-n__why { font-size: .8125rem; color: var(--sg-ink-2); }
.pp-hours { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--sg-ink-2); }
.pp-hours b { font-family: var(--pp-dots); font-weight: 700; font-size: 1rem; color: var(--sg-ink); }

/* ---------- 8. Calendar (pps-cal.js) ---------- */
.pp-cal { padding: 0; overflow: hidden; }
.pp-cal__wk, .pp-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pp-cal__wk span { padding: 10px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
/* a soft pastel band per weekday (Mon..Sun): pink, peach, butter, mint, sky, lavender, rose */
.pp-cal__wk span:nth-child(1) { background: #fce4e8; color: #7a2e3b; } .pp-cal__wk span:nth-child(2) { background: #ffebda; color: #7a4210; }
.pp-cal__wk span:nth-child(3) { background: #fbf2cf; color: #6b5300; } .pp-cal__wk span:nth-child(4) { background: #e1f3e8; color: #24583a; }
.pp-cal__wk span:nth-child(5) { background: #e2eefb; color: #24507e; } .pp-cal__wk span:nth-child(6) { background: #ede6fa; color: #4a3384; }
.pp-cal__wk span:nth-child(7) { background: #fbe3ee; color: #7a2e58; }
.pp-cal__cell { min-height: 104px; padding: 8px; border-top: 1px solid var(--pp-line, #ecedef); border-right: 1px solid var(--pp-line, #ecedef); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-cal__cell:nth-child(7n) { border-right: 0; }
.pp-cal__cell.is-out { background: rgba(0, 0, 0, .025); }
.pp-cal__cell.is-out .pp-cal__n { opacity: .45; }
.pp-cal__top { display: flex; align-items: baseline; gap: 6px; }
.pp-cal__n { font-family: var(--pp-dots); font-weight: 700; font-size: 1.25rem; }
/* 1.2.2: no dot after the day number (it read as a "+" on phones). */
.pp-cal__h { margin-left: auto; font-size: .6875rem; color: var(--sg-ink-2); }
.pp-cal__cell.is-today { box-shadow: inset 0 0 0 2px #c9b8f0; background: rgba(255, 255, 255, .85); }
.pp-cal__cell.is-today .pp-cal__n { color: #4a3384; }
[data-sg-theme="night"] .pp-cal__cell.is-today { background: rgba(255, 255, 255, .06); }
[data-sg-theme="night"] .pp-cal__cell.is-today .pp-cal__n { color: #d4c6f7; }
/* whole-cell washes (Paper Planner key) */
.pp-cal__cell.w-rose { background: var(--pp-rose); } .pp-cal__cell.w-sage { background: var(--pp-sage); }
.pp-cal__cell.w-sand { background: var(--pp-sand); } .pp-cal__cell.w-sky { background: var(--pp-sky); }
/* event chips and the five marks: planned = pale tint, done = tick, missed = orange outline,
   moved = dashed outline, seasonal = solid with a moon, bold = her own task */
.pp-ev { display: flex; align-items: center; gap: 4px; font-size: .75rem; line-height: 1.25; padding: 4px 7px; border-radius: 8px; background: #f1f2f6; color: var(--sg-ink); border: 1px solid rgba(255, 255, 255, .9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.pp-ev--seodesk { background: #cfefe8; color: #0b5a52; } .pp-ev--studiodesk { background: #e0e1fb; color: #33378f; }
.pp-ev--productdesk { background: #f9ebc0; color: #5a4000; } .pp-ev--lifeos { background: #ece4fa; color: #4a3384; }
.pp-ev.is-done { background: #fff; } .pp-ev.is-done::before { content: "\2713"; font-weight: 700; }
.pp-ev.is-missed { background: #fff; box-shadow: inset 0 0 0 2px #b4540a; color: #6b3300; }
.pp-ev.is-moved { border: 1.5px dashed currentColor; } /* 1.2.0: keeps its own colour (was white) */
.pp-ev.is-seasonal { background: #e9e2f8; color: #3e2470; font-weight: 700; } .pp-ev.is-seasonal::before { content: "\263D"; }
.pp-ev.is-mine { font-weight: 700; }
.pp-cal__more { font-size: .6875rem; color: var(--sg-ink-2); }
.pp-cal__key { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .pp-cal__cell { min-height: 64px; padding: 4px; }
  .pp-cal__h { display: none; }
  .pp-cal__cell .pp-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .pp-cal__cell .pp-ev::before { content: none !important; }
}

/* ---------- 9. Clock (every app's top bar): 24-hour time, day, date, dotted font ---------- */
.pp-clock { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--pp-dots); font-weight: 700; color: var(--sg-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-clock__day, .pp-clock__date { font-size: .9375rem; color: var(--sg-ink-2); }
.pp-clock__time { font-size: 1.375rem; letter-spacing: .02em; }
@media (max-width: 720px) { .pp-clock__day { display: none; } .pp-clock__date { font-size: .8125rem; } .pp-clock__time { font-size: 1.125rem; } }

/* ---------- 10. Small helpers ---------- */
.pp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp-sub { font-size: .8125rem; color: var(--sg-ink-2); }
.pp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-importlog td, .pp-importlog th { padding: 8px 10px; text-align: left; font-size: .8125rem; border-bottom: 1px solid rgba(0, 0, 0, .06); vertical-align: top; }
.pp-importlog { border-collapse: collapse; width: 100%; }


/* ---------- 1.1.0: calendar item colours by LIFE AREA (all calendar views, every app) ----------
   Soft pastels with dark text, never dark fills. Colours that could be confused also differ in lightness
   (growth lightest, then work, personal, money, business darkest), and every chip keeps its words, so colour
   is never the only clue. Three kinds keep their own colour and a thin line icon. */
.pp-ev.pp-ev--a-growth   { background: #ffefdc; color: #7a3d0c; }
.pp-ev.pp-ev--a-work     { background: #e8e2f9; color: #42307a; }
.pp-ev.pp-ev--a-personal { background: #c9e6c5; color: #1f4d22; }
.pp-ev.pp-ev--a-money    { background: #ecd581; color: #4a3600; }
.pp-ev.pp-ev--a-business { background: #f1b9a6; color: #5e2210; }
.pp-ev.pp-ev--t-birthday { background: #f9d9de; color: #6e2433; }
.pp-ev.pp-ev--t-bill     { background: #efe1c2; color: #5c4210; }
.pp-ev.pp-ev--t-islamic  { background: #dbe9f7; color: #1f4673; font-weight: 600; }
.pp-ev.pp-ev--t-birthday::before, .pp-ev.pp-ev--t-bill::before, .pp-ev.pp-ev--t-islamic::before {
  content: ""; flex: none; width: 11px; height: 11px; background: currentColor;
  -webkit-mask: var(--pp-ico) center / contain no-repeat; mask: var(--pp-ico) center / contain no-repeat;
}
.pp-ev.pp-ev--t-birthday { --pp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.pp-ev.pp-ev--t-bill { --pp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.pp-ev.pp-ev--t-islamic { --pp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.pp-ev.pp-ev--t-islamic.is-seasonal::before { content: ""; }
.pp-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-key .pp-ev { font-size: .8125rem; padding: 6px 10px; border-radius: 999px; }
[data-sg-theme="night"] .pp-ev.pp-ev--a-growth   { background: #4a3522; color: #ffe2c2; }
[data-sg-theme="night"] .pp-ev.pp-ev--a-work     { background: #3a3255; color: #e4dcfb; }
[data-sg-theme="night"] .pp-ev.pp-ev--a-personal { background: #263f27; color: #cfeccc; }
[data-sg-theme="night"] .pp-ev.pp-ev--a-money    { background: #4a3f18; color: #f5e3a2; }
[data-sg-theme="night"] .pp-ev.pp-ev--a-business { background: #552c22; color: #ffd3c4; }
[data-sg-theme="night"] .pp-ev.pp-ev--t-birthday { background: #4a2a31; color: #f8cdd5; }
[data-sg-theme="night"] .pp-ev.pp-ev--t-bill     { background: #43381f; color: #f1dcae; }
[data-sg-theme="night"] .pp-ev.pp-ev--t-islamic  { background: #22344a; color: #c8def5; }

/* =====================================================================
   1.2.0 COLOUR PASS for the Soft Pebble desks (SEO Desk, Studio Desk, Product Desk), 15 Nov 2026.
   Moved here from SEO Desk 2.2.0 ("2.2.0 colour pass") and reviewed with Impeccable + Taste.
   Ali (15 Nov): the desks were dull apart from the calendar and the font, the title icon was poor, the
   version belongs under the app name, the header font must be dotted and bigger.
   Rules: soft pastels with dark text (every pair below is WCAG AA, most AAA); no dark fills except the one
   delight button; flat tints (the one gradient is the brand mark, Ali's choice); no resting shadows on
   header cards or panels. Paper Planner (Life OS) is not touched: everything is scoped to data-pp="pebble".

   How to use (plain classes, any desk's markup):
     <a class="pp-brand" href="/"><span class="pp-mark" aria-hidden="true"></span>
        <span class="pp-brand__txt"><b class="pp-brand__name">SEO Desk</b><span class="pp-brand__ver">v2.2.0</span></span></a>
     <body data-pp-tint="butter">  (or on <main>/.pp-page): the page's own pastel
     <header class="pp-phead"><h1 class="pp-title">Articles</h1><p class="pp-sub">…</p></header>
     <section class="pp-panel"><h2>Due this week</h2>…</section>     (.pp-tile works too; h2 gets Doto)
     <a href="/articles" data-pp-tint="rose"><span class="pp-ic"><svg…></svg></span>Articles</a>  (sidebar)
   Tints: butter, rose, lilac, peach, mint, sky, stone. Each desk maps its pages to them once.
   ===================================================================== */

/* the seven page tints: wash (header card), chip (icon tile, small fills) and ink (text on them) */
[data-pp="pebble"] { --pp-tint: #eceef1; --pp-tint-chip: #dde1e6; --pp-tint-ink: #353b43; }
[data-pp="pebble"] [data-pp-tint="butter"], [data-pp="pebble"][data-pp-tint="butter"] { --pp-tint: #fff3cf; --pp-tint-chip: #ffe7a3; --pp-tint-ink: #5c4500; }
[data-pp="pebble"] [data-pp-tint="rose"],   [data-pp="pebble"][data-pp-tint="rose"]   { --pp-tint: #fde4ea; --pp-tint-chip: #f9cdd8; --pp-tint-ink: #7d2236; }
[data-pp="pebble"] [data-pp-tint="lilac"],  [data-pp="pebble"][data-pp-tint="lilac"]  { --pp-tint: #ebe6fb; --pp-tint-chip: #dcd3f8; --pp-tint-ink: #43307f; }
[data-pp="pebble"] [data-pp-tint="peach"],  [data-pp="pebble"][data-pp-tint="peach"]  { --pp-tint: #ffe7d6; --pp-tint-chip: #ffd2b3; --pp-tint-ink: #7a3a0a; }
[data-pp="pebble"] [data-pp-tint="mint"],   [data-pp="pebble"][data-pp-tint="mint"]   { --pp-tint: #dcf2e8; --pp-tint-chip: #c2e8d6; --pp-tint-ink: #17533a; }
[data-pp="pebble"] [data-pp-tint="sky"],    [data-pp="pebble"][data-pp-tint="sky"]    { --pp-tint: #e0eefb; --pp-tint-chip: #c9e0f6; --pp-tint-ink: #1c4677; }
[data-pp="pebble"] [data-pp-tint="stone"],  [data-pp="pebble"][data-pp-tint="stone"]  { --pp-tint: #eceef1; --pp-tint-chip: #dde1e6; --pp-tint-ink: #353b43; }

/* (1) brand mark: a pastel gradient tile with a clear line icon; name in Doto 1.5rem, version under it */
.pp-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sg-ink); text-decoration: none; min-height: 44px; }
.pp-brand__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
[data-pp="pebble"] .pp-brand__name { font-family: var(--pp-dots); font-weight: 700; font-size: 1.5rem; line-height: 1.05; letter-spacing: 0; white-space: nowrap; }
[data-pp="pebble"] .pp-brand__ver { font-family: var(--pp-dots); font-weight: 700; font-size: .8125rem; line-height: 1; color: var(--sg-ink-2); }
.pp-mark { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: var(--pp-mark-ink, #1f2226); background: var(--pp-mark-bg, linear-gradient(135deg, #d9d3fb, #fbd6e0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(30, 40, 55, .06); }
.pp-mark svg { width: 24px; height: 24px; }
/* built-in icon when the mark is empty (no inline SVG): one per app, 2px line, drawn for these desks */
.pp-mark:empty::before { content: ""; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--pp-mark-ico) center / contain no-repeat; mask: var(--pp-mark-ico) center / contain no-repeat; }
[data-pp-app="seodesk"] { --pp-mark-bg: linear-gradient(135deg, #bfeadd 0%, #d9d3fb 55%, #fbd6e0 100%); --pp-mark-ink: #0b4a43;
  --pp-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m20.5 20.5-5-5'/%3E%3Cpath d='m7 12.5 2.5-2.5 2 1.5 3-3.5'/%3E%3C/svg%3E"); }
[data-pp-app="studiodesk"] { --pp-mark-bg: linear-gradient(135deg, #d9d6fb 0%, #cfe3f8 55%, #fbd6e6 100%); --pp-mark-ink: #33378f;
  --pp-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='15' height='16' rx='3'/%3E%3Cpath d='m9 9 4 3-4 3z'/%3E%3Cpath d='M21 4v4M19 6h4'/%3E%3C/svg%3E"); }
[data-pp-app="productdesk"] { --pp-mark-bg: linear-gradient(135deg, #f8e6a6 0%, #ffd6bd 55%, #f9cdd8 100%); --pp-mark-ink: #5a3d00;
  --pp-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4.5A1.5 1.5 0 0 1 4.5 3H12l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3C/svg%3E"); }
[data-pp-app="lifeos"] { --pp-mark-bg: linear-gradient(135deg, #e7e1f6 0%, #dcefdc 60%, #f9e1e4 100%); --pp-mark-ink: #3e3270;
  --pp-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
@media (max-width: 720px) { .pp-mark { width: 36px; height: 36px; border-radius: 12px; } .pp-mark svg, .pp-mark:empty::before { width: 20px; height: 20px; }
  [data-pp="pebble"] .pp-brand__name { font-size: 1.25rem; } [data-pp="pebble"] .pp-brand__ver { font-size: .6875rem; } }

/* (2) page header card: Doto title ~2.75rem desktop / 2rem phone on the page's own flat pastel */
[data-pp="pebble"] .pp-phead { background: var(--pp-tint); color: var(--sg-ink); border-radius: var(--sg-r-card); padding: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
[data-pp="pebble"] .pp-phead > :first-child { flex: 1 1 320px; min-width: 0; }
[data-pp="pebble"] .pp-phead .pp-title, [data-pp="pebble"] .pp-phead h1 { font-family: var(--pp-dots); font-weight: 700; font-size: 2.75rem; line-height: 1.05; letter-spacing: 0; margin: 0; color: var(--pp-tint-ink); text-wrap: balance; }
[data-pp="pebble"] .pp-phead .pp-sub, [data-pp="pebble"] .pp-phead p { color: var(--sg-ink); margin: 8px 0 0; font-size: .9375rem; max-width: 65ch; }
@media (max-width: 720px) { [data-pp="pebble"] .pp-phead { padding: 16px 20px; border-radius: 22px; }
  [data-pp="pebble"] .pp-phead .pp-title, [data-pp="pebble"] .pp-phead h1 { font-size: 2rem; } }

/* (3) section headings in panels and cards: Doto 1.5rem / 1.25rem phone */
[data-pp="pebble"] .pp-h2, [data-pp="pebble"] .pp-panel > h2, [data-pp="pebble"] .pp-tile > h2, [data-pp="pebble"] .pp-panel > header h2, [data-pp="pebble"] .pp-tile > header h2 {
  font-family: var(--pp-dots); font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: 0; margin: 0 0 16px; color: var(--sg-ink); text-wrap: balance; }
@media (max-width: 720px) { [data-pp="pebble"] .pp-h2, [data-pp="pebble"] .pp-panel > h2, [data-pp="pebble"] .pp-tile > h2, [data-pp="pebble"] .pp-panel > header h2, [data-pp="pebble"] .pp-tile > header h2 { font-size: 1.25rem; } }

/* (4) one pastel colour chip per sidebar item (and per page, via the same tint names) */
[data-pp="pebble"] .pp-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--pp-tint-chip); color: var(--pp-tint-ink); }
[data-pp="pebble"] .pp-ic svg { width: 18px; height: 18px; }
[data-pp="pebble"] .pp-side a { min-height: 48px; padding: 0 12px 0 8px; gap: 12px; }
/* active page: a white sheet with a soft lift and the bold label; never a dark fill */
[data-pp="pebble"] .pp-side a[aria-current="page"], [data-pp="pebble"] .pp-side a.is-on { background: var(--sg-surface-solid); color: var(--sg-ink); font-weight: 700; box-shadow: 0 4px 14px rgba(30, 40, 55, .07); }
[data-pp="pebble"] .pp-side a:hover:not([aria-current="page"]) { background: color-mix(in srgb, var(--pp-tint) 60%, transparent); }
[data-pp="pebble"] .pp-side__grp { font-family: var(--pp-dots); font-weight: 700; font-size: .8125rem; letter-spacing: .02em; text-transform: none; }
/* a page chip for headers, cards or tabs that name a page */
[data-pp="pebble"] .pp-chip--tint { background: var(--pp-tint-chip); color: var(--pp-tint-ink); }

/* (5) panels lightly tinted in the page colour: a flat tint, no gradient, no resting shadow */
[data-pp="pebble"] .pp-panel { background: var(--sg-surface); background: color-mix(in srgb, var(--pp-tint) 28%, var(--sg-surface)); border-radius: var(--sg-r-card); padding: 24px; }
@media (max-width: 720px) { [data-pp="pebble"] .pp-panel { padding: 16px; border-radius: 22px; } }

/* (6) secondary buttons: white lifted pills (the delight button stays the one dark fill) */
[data-pp="pebble"] .pp-btn:not(.pp-delight):not(.pp-btn--quiet) { background: #fff; color: var(--sg-ink); box-shadow: 0 2px 8px rgba(30, 40, 55, .08);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1); }
[data-pp="pebble"] .pp-btn:not(.pp-delight):not(.pp-btn--quiet):hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 40, 55, .1); }
[data-pp="pebble"] .pp-btn:not(.pp-delight):not(.pp-btn--quiet):active { transform: translateY(0); box-shadow: 0 1px 4px rgba(30, 40, 55, .08); }
[data-pp="pebble"] .pp-btn--quiet { background: transparent; box-shadow: none; color: var(--sg-ink-2); }
[data-pp="pebble"] .pp-btn--quiet:hover { background: var(--sg-surface-2); color: var(--sg-ink); }
@media (prefers-reduced-motion: reduce) { [data-pp="pebble"] .pp-btn { transition: none !important; } [data-pp="pebble"] .pp-btn:hover { transform: none !important; } }

/* the browser parts: selection and caret take the page's pastel */
[data-pp="pebble"] ::selection { background: var(--pp-tint-chip); color: var(--pp-tint-ink); }
[data-pp="pebble"] input, [data-pp="pebble"] textarea { caret-color: var(--pp-tint-ink); }

/* Night theme: tints step back to neutral surfaces; text stays light; chips keep a quiet tone */
[data-pp="pebble"][data-sg-theme="night"] .pp-phead, [data-pp="pebble"][data-sg-theme="night"] .pp-panel { background: var(--sg-surface); }
[data-pp="pebble"][data-sg-theme="night"] .pp-phead .pp-title, [data-pp="pebble"][data-sg-theme="night"] .pp-phead h1 { color: var(--sg-ink); }
[data-pp="pebble"][data-sg-theme="night"] .pp-ic { background: #34383f; color: #eceef1; }
[data-pp="pebble"][data-sg-theme="night"] .pp-btn:not(.pp-delight):not(.pp-btn--quiet) { background: var(--sg-surface-solid); color: var(--sg-ink); }

/* (7) calendar: kinds and the moved mark (pps-cal.js 1.2.0) */
/* e.kind -> .pp-ev--k-<kind>. Six kinds are styled here (SEO Desk's content calendar); desks may add their own. */
.pp-ev.pp-ev--k-planned   { background: #dedff6; color: #33378f; }
.pp-ev.pp-ev--k-refresh   { background: #fde5cc; color: #7a3a0c; }
.pp-ev.pp-ev--k-draft     { background: #f5e6a3; color: #5c4700; }
.pp-ev.pp-ev--k-task      { background: #e2eefb; color: #1f4a80; }
.pp-ev.pp-ev--k-published { background: #cdebdc; color: #1e5a3b; }
.pp-ev.pp-ev--k-late      { background: #fbe1e5; color: #7f1d2e; }
/* moved keeps the chip's own colour (1.0/1.1 turned it white) and adds a dashed outline in its ink */
@media (max-width: 720px) {
  /* phone chips are 6px bars: the dash goes outside so it stays visible */
  .pp-cal__cell .pp-ev.is-moved { border: 0; outline: 1.5px dashed #4b5058; outline-offset: 1px; }
}
[data-pp="pebble"][data-sg-theme="night"] { --pp-line: #34383f; } /* 1.2.0: calendar grid lines were near-white on Night */
