/* ==========================================================================
   The four demos: Home and the Demos page (the same markup on both).
   Loaded after styles.css. Round 30 (owner, 16 and 17 Nov 2026, with
   screenshots): the demo cards "stop coming in as animations anymore",
   "theres dead space here", "the bg feels kinda empty, no real separation
   between pages and too zoomed-in the perspective isnt really good here",
   "the website looks very plain, needs more proper gradients", and "the
   grid looks cheap".
   So:
   - each demo is a chapter of its own: a band from edge to edge of the
     window with its own light, opening with a numeral, the demo's name and
     a fine bronze-gold rule. The bands take turns, a light cream and a
     deeper one, and meet at a bronze-gold hairline;
   - the whole chapter (header, words, demo) fits one 1000 x 690 window with
     room round it: smaller headings and cards, the words always on the left
     and centred against the card on the right, so no corner is left empty;
     on tablets and phones one column: the title, the demo, then the words;
   - nothing fills space with lines, dots or patterns: light, depth and the
     cards do it;
   - in full motion each card tips up into place as it scrolls in (main.js,
     initStory); in calm mode everything is simply in place.
   Colours keep to the roles in styles.css (Round 29): navy cards framed with
   a fine bronze-gold line; bronze-gold for the main button, the chosen slot,
   the "Demo" chips, the numerals and the rules; on the cream, marks use
   --accent-deep and the words are navy.
   ========================================================================== */

/* ---- The section: the bands run straight on from the opening -------------- */
html section.showcase.on-cream { padding-block: 0 clamp(40px, 7vh, 72px); }
.showcase .demos, .showcase-home .demos { display: block; margin: 0; }

/* ---- A chapter: a band of its own, lit from above ------------------------- */
.showcase .chapter {
  position: relative;
  isolation: isolate;
  padding-block: clamp(22px, 4vh, 48px) clamp(30px, 5.4vh, 60px);
}
/* the band, from edge to edge of the window: warm cream lit from the top, a
   soft daylight over the words, and a pool of light where the card stands */
.showcase .chapter::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-color: #F6EFE3;
  background-image:
    radial-gradient(46% 72% at 10% 4%, rgb(255 255 255 / .78), rgb(255 255 255 / 0) 74%),
    radial-gradient(38% 58% at 74% 52%, rgb(255 252 246 / .7), rgb(255 252 246 / 0) 76%),
    linear-gradient(180deg, #FBF6EC, #F5EDE0 56%, #EFE4D2);
  pointer-events: none;
}
/* every other band a shade deeper, lit the same way */
.showcase .chapter:nth-child(even)::before {
  background-color: #EDE2CF;
  background-image:
    radial-gradient(46% 72% at 10% 4%, rgb(255 253 248 / .55), rgb(255 253 248 / 0) 74%),
    radial-gradient(38% 58% at 74% 52%, rgb(251 245 234 / .62), rgb(251 245 234 / 0) 76%),
    linear-gradient(180deg, #F2E8D8, #EBDFCB 56%, #E5D7C1);
}
/* where two bands meet: a bronze-gold hairline, brightest in the middle,
   with the faintest shade under it so the band beneath sits a step lower.
   On Home the first band meets the navy opening the same way (on the Demos
   page the header above already ends on this rule). */
.showcase .chapter + .chapter::after,
.showcase-home .chapter:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  height: 22px;
  background:
    linear-gradient(90deg, rgb(var(--accent-deep-rgb) / 0) 3%, rgb(var(--accent-deep-rgb) / .34) 24%, rgb(var(--accent-rgb) / .7) 50%, rgb(var(--accent-deep-rgb) / .34) 76%, rgb(var(--accent-deep-rgb) / 0) 97%) 0 0 / 100% 1px no-repeat,
    linear-gradient(180deg, rgb(14 26 56 / .055), rgb(14 26 56 / 0));
  pointer-events: none;
}

/* ---- The chapter's header: numeral, name, a bronze-gold rule, which of four - */
.showcase .chapter-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(14px, 2.6vh, 30px);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(14 26 56 / .8);
}
.showcase .chapter-head .chapter-num {
  display: block;
  position: static;
  height: auto;
  padding: .06em .1em .04em;
  margin-inline: -.1em -.04em;
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--accent-deep);
  -webkit-text-stroke: 0;
  transform: none;
  will-change: auto;
}
/* the numeral in lit metal: light bronze-gold at the top, deep at the foot */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html:not(.bp) .showcase .chapter-head .chapter-num {
    background-image: linear-gradient(180deg, var(--accent) 14%, var(--accent-deep) 86%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.showcase .chapter-name { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; white-space: nowrap; }
.showcase .chapter-name::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: linear-gradient(90deg, rgb(var(--accent-deep-rgb) / .62), rgb(var(--accent-deep-rgb) / .1)); }
.showcase .chapter-head .chapter-dots { display: flex; gap: 6px; margin: 0; }
.showcase .chapter-head .chapter-dots i { width: 8px; height: 8px; border-radius: 2px !important; background: rgb(14 26 56 / .16); }
.showcase .chapter-head .chapter-dots i.on { background: var(--accent-deep); }

/* ---- The words ---------------------------------------------------------------- */
/* (the card carries its own perspective as it arrives: main.js, initStory) */
.showcase .chapter-stage { align-items: center; row-gap: 22px; perspective: none; }
/* every title on two balanced lines, so the four chapters read alike */
.showcase .chapter-title { max-width: 9em; font-size: clamp(1.875rem, 1.1rem + 1.6vw, 2.625rem); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; color: #0E1A38; }
.showcase .chapter-points { margin-top: 18px; border-top: 1px solid rgb(14 26 56 / .12); }
.showcase .chapter-points li { padding: 10px 0; border-bottom: 1px solid rgb(14 26 56 / .12); font-size: 1rem; line-height: 1.45; color: rgb(14 26 56 / .8); }
/* "Try it": navy words after a short bronze-gold rule */
.showcase .chapter-try { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 0.9375rem; font-weight: 500; line-height: 1.5; color: #0E1A38; }
.showcase .chapter-try .promise-mark { display: block; flex: none; width: 22px; height: 1px; margin-top: .75em; border-radius: 0 !important; background: var(--accent-deep); }

/* ---- The demo cards: navy, lit from the top, framed in fine bronze-gold ------- */
html .on-cream .demo {
  background-color: #0E1A38;
  background-image:
    radial-gradient(90% 46% at 50% 0%, rgb(255 255 255 / .06), rgb(255 255 255 / 0) 100%),
    linear-gradient(180deg, #1B2E5E, #15274F 30%, #0F1D40 68%, #0C1734);
  border: 1px solid rgb(var(--accent-rgb) / .32);
  box-shadow:
    inset 0 1px 0 rgb(245 238 226 / .12),
    inset 0 -1px 0 rgb(0 0 0 / .22),
    0 1px 2px rgb(14 26 56 / .16),
    0 14px 24px -14px rgb(14 26 56 / .38),
    0 46px 74px -38px rgb(14 26 56 / .52);
}
/* lighter mode: one plain shadow */
html.lite:not(.bp) .on-cream .demo { box-shadow: inset 0 1px 0 rgb(245 238 226 / .12), 0 20px 34px -22px rgb(14 26 56 / .5); }
.showcase .demo { gap: 12px; }
.showcase .demo-title { font-size: 1.375rem; line-height: 1.15; }
.showcase .demo-note { font-size: 0.875rem; line-height: 1.5; max-width: 52ch; }
.showcase .tag { background: var(--accent); background-image: linear-gradient(180deg, var(--accent-hi) -60%, var(--accent) 70%); color: #0E1A38; }
/* on a pointer the card lifts a little and its bronze-gold frame brightens */
.showcase .demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgb(var(--accent-rgb) / .75);
  border-radius: inherit !important;
  box-shadow: inset 0 1px 0 rgb(var(--accent-hi-rgb) / .3);
  opacity: 0;
  transition: opacity 420ms var(--ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .showcase .demo { transition: translate 520ms var(--ease); }
  .showcase .demo:hover { translate: 0 -3px; }
  .showcase .demo:hover::before { opacity: 1; }
  .calm .showcase .demo:hover { translate: none; }
}

/* The wrapper is observed at its layout position. Only the panel moves. */
.reveal-on:not(.story) .chapter-device > .demo {
  --demo-entry-x: 76px;
  opacity: 0.15;
  transform: translateX(var(--demo-entry-x));
  transition: transform 620ms var(--ease), opacity 420ms var(--ease), translate 520ms var(--ease);
}
@media (max-width: 899px) {
  .reveal-on:not(.story) .chapter-device > .demo { --demo-entry-x: 24px; }
  .reveal-on:not(.story) .chapter:nth-child(even) .chapter-device > .demo { --demo-entry-x: -24px; }
}
.reveal-on:is(.calm, .lite):not(.story) .chapter-device > .demo {
  transform: none;
  transition: opacity 240ms var(--ease);
}
.reveal-on:not(.story) .chapter-device:is(.is-in, :focus-within) > .demo {
  opacity: 1;
  transform: none;
}
.reveal-on:not(.story) .chapter-device:focus-within > .demo { transition-duration: 0ms; }

/* ---- Wide screens: the words on the left, the card on the right, centred on
        each other; one window per chapter ------------------------------------ */
@media (min-width: 900px) {
  .showcase .chapter-text,
  .showcase .chapter:nth-child(even) .chapter-text { grid-column: 1 / span 5; grid-row: 1; align-self: center; padding-right: clamp(0px, 2vw, 28px); }
  .showcase .chapter-device,
  .showcase .chapter:nth-child(even) .chapter-device { grid-column: 6 / span 7; grid-row: 1; }
  .showcase .chapter-device > .demo { width: 100%; max-width: 540px; margin-inline: auto 0; }
  .showcase .demo { padding: 20px 22px 22px; }
  /* a) before and after: a wider frame, so the card is no taller than the window allows */
  .showcase .demo-ba .ba { aspect-ratio: 3 / 2; }
  /* b) booking: tighter rows */
  .showcase .book-form { gap: 12px; grid-template-rows: auto auto minmax(66px, 1fr) auto; }
  .showcase .book-set legend { margin-bottom: 8px; }
  .showcase .chip span { min-height: 40px; padding-block: 5px; }
  .showcase .book-ticket { padding: 10px 14px; }
  /* c) dashboard: a shorter chart (the peak line follows: 110 px inside its padding) */
  .showcase .dash { gap: 14px; }
  .showcase .chart-plot { height: 118px; }
  .showcase .peak { transform: translateY(calc(var(--peak, .8) * -110px)); }
  /* d) layers: a shorter stage */
  .showcase .stack { height: 292px; }
}
/* a large window: half and half, the words a little larger, so they carry as
   much weight as the card beside them and the gap between stays small */
@media (min-width: 1200px) {
  .showcase .chapter-text,
  .showcase .chapter:nth-child(even) .chapter-text { grid-column: 1 / span 6; padding-right: clamp(28px, 4vw, 64px); }
  .showcase .chapter-device,
  .showcase .chapter:nth-child(even) .chapter-device { grid-column: 7 / span 6; }
  .showcase .chapter-device > .demo { max-width: 600px; }
  .showcase .chapter-title { font-size: clamp(2.5rem, 1.2rem + 1.7vw, 3rem); }
  .showcase .chapter-points { margin-top: 22px; }
  .showcase .chapter-points li { padding: 12px 0; font-size: 1.0625rem; }
  .showcase .chapter-try { margin-top: 22px; font-size: 1rem; }
  .showcase .stack { height: 320px; }
}

/* ---- Tablets and phones: one column, the title, the demo, then the words ---- */
@media (max-width: 899px) {
  .showcase .chapter { padding-block: 30px 40px; }
  .showcase .chapter-head, .showcase .chapter-stage { max-width: 600px; margin-inline: auto; }
  .showcase .chapter-head { gap: 12px; letter-spacing: 0.16em; }
  .showcase .chapter-head .chapter-num { font-size: 2rem; }
  .showcase .chapter-name { gap: 12px; }
  /* the words' box steps aside, so the title, the card, the points and the
     "Try it" line can be put in that order */
  .showcase .chapter-stage { display: flex; flex-direction: column; align-items: stretch; }
  .showcase .chapter-text { display: contents; }
  .showcase .chapter-title { order: 1; max-width: 18em; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.25rem); }
  .showcase .chapter-device { order: 2; margin-top: 2px; }
  .showcase .chapter-points { order: 3; margin-top: 4px; }
  .showcase .chapter-try { order: 4; margin-top: -4px; }
  .showcase .chapter-device > .demo { width: 100%; max-width: none; margin-inline: 0; }
  /* the pool of light follows the card to the middle of the band */
  .showcase .chapter::before { background-image: radial-gradient(70% 40% at 12% 2%, rgb(255 255 255 / .78), rgb(255 255 255 / 0) 74%), radial-gradient(60% 34% at 50% 50%, rgb(255 252 246 / .7), rgb(255 252 246 / 0) 76%), linear-gradient(180deg, #FBF6EC, #F5EDE0 56%, #EFE4D2); }
  .showcase .chapter:nth-child(even)::before { background-image: radial-gradient(70% 40% at 12% 2%, rgb(255 253 248 / .55), rgb(255 253 248 / 0) 74%), radial-gradient(60% 34% at 50% 50%, rgb(251 245 234 / .62), rgb(251 245 234 / 0) 76%), linear-gradient(180deg, #F2E8D8, #EBDFCB 56%, #E5D7C1); }
}
@media (max-width: 420px) {
  .showcase .chapter-head .chapter-dots { display: none; }
}

/* ---- After the demos: the closing row, on a light band of its own ----------- */
/* The last band closes with the same hairline. Below it only the section's own
   cream shows (the bands cover the rest), lit like a light band. */
.showcase .chapter:last-child::before {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgb(var(--accent-deep-rgb) / 0) 3%, rgb(var(--accent-deep-rgb) / .34) 24%, rgb(var(--accent-rgb) / .7) 50%, rgb(var(--accent-deep-rgb) / .34) 76%, rgb(var(--accent-deep-rgb) / 0) 97%) 1;
}
html:not(.bp) section.showcase.on-cream:not(.contact):not(.contact-page) {
  background-color: #FBF6EC;
  background-image: linear-gradient(180deg, #FBF6EC, #F6EEE1 46%, #F0E6D5);
  background-size: 100% 380px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.showcase .more-row, .showcase .next-row { border-top: 0; padding-top: 0; margin-top: clamp(30px, 5vh, 52px); }
.showcase .more-text, .showcase .next-text { color: #0E1A38; }
@media (min-width: 900px) {
  /* the sentence and its button side by side */
  .showcase .next-row { flex-wrap: nowrap; }
  .showcase .next-text { max-width: 34rem; text-wrap: balance; }
}

/* ---- Inside the demos: bronze-gold where the accent was ----------------------- */
/* a) the old page is a page from another decade: its own dated yellow flash */
.showcase .old-flash { background: #F2D33C; color: #0E1A38; }
/* a) a press on the bakery's photographs moves the divider like anywhere else
   in the frame: the browser's own picture drag (or, on a phone, the picture's
   long-press menu) used to take the press over and stop the divider */
.showcase .ba img, .showcase .ba svg { pointer-events: none; -webkit-user-drag: none; }
.showcase .ba { -webkit-touch-callout: none; }
/* b) booking: the Book button lights up once a day and a time are chosen */
html .on-cream .demo .book-submit[aria-disabled="true"] { background-color: transparent; background-image: none; border-color: rgb(245 238 226 / .42); color: rgb(245 238 226 / .88); box-shadow: none; }
.showcase .book-ticket.is-ready { border-color: rgb(var(--accent-rgb) / .8); background-color: rgb(10 20 48 / .7); }
.showcase .book-hint.is-nudge { color: #F5EEE2; font-weight: 500; }
.showcase .book-hint.is-nudge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 2px !important; background: var(--accent-hi); vertical-align: 1px; }
.showcase .book-done { background-color: #14244D; background-image: linear-gradient(160deg, #22386E, #14244D 70%); border: 1px solid rgb(var(--accent-rgb) / .45); }
.showcase .book-check rect { stroke: rgb(var(--accent-hi-rgb) / .5); }
.showcase .burst i { background: var(--accent); }
.showcase .burst i:nth-child(3n) { background: #F5EEE2; }
.showcase .burst i:nth-child(3n + 1) { background: var(--accent-hi); }
/* c) dashboard: cream bars, this hour in bronze-gold */
.showcase .fig { border-left-color: var(--accent); }
.showcase .fig:nth-child(2) { border-left-color: rgb(245 238 226 / .55); }
.showcase .fig:nth-child(3) { border-left-color: rgb(245 238 226 / .3); }
.showcase .chart-plot { background-color: #0A1430; background-image: linear-gradient(180deg, #0A1430, #0E1A38); }
.showcase .bar { background: linear-gradient(180deg, #EFE6D6, #B9AE9B); }
.showcase .bar.is-now { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.showcase .peak b { color: rgb(245 238 226 / .82); }
.showcase .live-dot { background: var(--accent-hi); }

/* ---- Blueprint view keeps its drawing-office look ------------------------------ */
html.bp .showcase .chapter::before, html.bp .showcase .chapter::after, html.bp .showcase .demo::before { display: none; }
html.bp .showcase .chapter + .chapter { border-top: 1px dashed var(--chalk-40); }
html.bp .showcase .chapter-head, html.bp .showcase .chapter-head .chapter-num, html.bp .showcase .chapter-title, html.bp .showcase .chapter-try { color: var(--chalk); }
html.bp .showcase .chapter-points, html.bp .showcase .chapter-points li { border-color: var(--chalk-24); color: var(--fg-2); }
html.bp .showcase .chapter-name::after, html.bp .showcase .chapter-try .promise-mark { background: var(--chalk-60); }
html.bp .showcase .chapter-head .chapter-dots i { background: transparent; outline: 1px solid var(--chalk-60); }
html.bp .showcase .chapter-head .chapter-dots i.on { background: var(--chalk); }
html.bp .showcase .more-text, html.bp .showcase .next-text { color: var(--chalk); }
html.bp .showcase .tag { background-image: none; }
html.bp .showcase .chart-plot, html.bp .showcase .bar, html.bp .showcase .book-done { background: transparent; }

.build-note {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: start;
  margin-block: clamp(40px, 7vw, 88px);
  padding-block: clamp(22px, 3vw, 42px);
  border-block: 1px solid currentColor;
  color: #172347;
}
.build-kicker { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.build-note h2 { margin-top: .5rem; font: 400 clamp(2.1rem, 4vw, 3.5rem)/1.05 var(--font-display); }
.build-story { max-width: 54ch; font-size: 1.125rem; line-height: 1.55; }
.build-story .text-link { display: inline-block; margin-top: .85rem; color: inherit; }
.bp .build-note { color: var(--chalk); }
@media (max-width: 699px) { .build-note { grid-template-columns: 1fr; gap: 16px; } }

/* ==========================================================================
   e) Client portal (Demos page, owner's idea, 19 Nov 2026): a portal with
   this month's figures, a to-do list and an assistant that is part of the
   page, not a bubble in a corner. "Expand full view" and "See customers"
   open the whole portal in a dialog (#portal-full). Behaviour: main.js,
   initPortal. Navy glass, cream words, bronze-gold for what you can press.
   ========================================================================== */
.pt {
  --pt-line: rgb(245 238 226 / .1);
  --pt-glass: rgb(245 238 226 / .035);
  --pt-dim: rgb(245 238 226 / .66);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--pt-line);
  border-radius: 16px !important;
  background:
    radial-gradient(60% 50% at 100% 0%, rgb(var(--accent-rgb) / .12), rgb(var(--accent-rgb) / 0) 70%),
    linear-gradient(180deg, rgb(4 10 28 / .5), rgb(4 10 28 / .28));
  color: #F5EEE2;
  font-variant-numeric: tabular-nums;
}
.pt-bar { display: flex; align-items: center; gap: 10px; padding: 0 2px; font-size: 0.8125rem; color: var(--pt-dim); }
.pt-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; color: #F5EEE2; }
.pt-logo { display: block; flex: none; width: 14px; height: 14px; border-radius: 50% !important; border: 1.5px solid var(--accent-hi); box-shadow: inset 0 0 0 2.5px rgb(4 10 28), inset 0 0 0 10px var(--accent); }
.pt-date { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50% !important; background: linear-gradient(160deg, var(--accent-hi), var(--accent)); color: #0E1A38; font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; }

.pt-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.pt-kpi { grid-column: span 5; }
.pt-todo { grid-column: span 4; }
.pt-ai { grid-column: span 6; }
.pt-todo .pt-due { display: none; }   /* the card is narrow; the full view shows when each is due */
.pt-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--pt-line);
  border-radius: 12px !important;
  background: var(--pt-glass);
  box-shadow: inset 0 1px 0 rgb(245 238 226 / .05);
}
.pt-label { display: flex; align-items: center; gap: 8px; font-size: 0.78125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-dim); }
.pt-count { margin-left: auto; letter-spacing: .04em; text-transform: none; color: var(--accent-hi); }
.pt-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.pt-up { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--accent-hi); }
.pt-sub { font-size: 0.8125rem; line-height: 1.4; color: var(--pt-dim); }
.pt-spark { display: block; width: 100%; height: 30px; overflow: visible; }
.pt-spark .sp-line { fill: none; stroke: var(--accent-hi); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pt-spark .sp-dot { fill: #F5EEE2; }
.pt-kpi .pt-go { margin-top: auto; }

/* the buttons inside the portal: a thin bronze-gold pill that fills on hover */
.pt-go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgb(var(--accent-rgb) / .55);
  border-radius: 999px !important;
  background: rgb(var(--accent-rgb) / .08);
  color: var(--accent-hi);
  font: 500 0.8125rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.pt-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-go:hover { background: var(--accent); border-color: var(--accent); color: #0E1A38; }
.pt-go:focus-visible, .pt-chip:focus-visible, .pt-send:focus-visible, .ptx-tab:focus-visible, .ptx-close:focus-visible, .ptx-row:focus-visible, .ptx-bars:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* the to-do list */
.pt-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.pt-todo .pt-list { max-height: 214px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pt-list li { border-top: 1px solid rgb(245 238 226 / .07); }
.pt-list li:first-child { border-top: 0; }
.pt-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.875rem; line-height: 1.35; cursor: pointer; }
.pt-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-box { position: relative; flex: none; width: 17px; height: 17px; margin-top: 1px; border: 1.5px solid rgb(245 238 226 / .45); border-radius: 5px !important; transition: background-color 200ms var(--ease), border-color 200ms var(--ease); }
.pt-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #0E1A38; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 200ms var(--ease); }
.pt-item input:checked + .pt-box { background: var(--accent); border-color: var(--accent); }
.pt-item input:checked + .pt-box::after { transform: rotate(45deg) scale(1); }
.pt-item input:focus-visible + .pt-box { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.pt-text { flex: 1; min-width: 0; transition: color 200ms var(--ease); }
.pt-item input:checked ~ .pt-text { color: rgb(245 238 226 / .45); text-decoration: line-through; text-decoration-color: rgb(245 238 226 / .35); }
.pt-due { flex: none; padding: 1px 7px; border: 1px solid rgb(245 238 226 / .16); border-radius: 999px !important; font-size: 0.78125rem; color: var(--pt-dim); }
.pt-list li.is-new { animation: pt-new 1600ms var(--ease); }
@keyframes pt-new { 0%, 30% { background: rgb(var(--accent-rgb) / .22); } 100% { background: rgb(var(--accent-rgb) / 0); } }

/* the assistant */
.pt-orb { display: block; flex: none; width: 12px; height: 12px; border-radius: 50% !important; background: radial-gradient(circle at 35% 30%, var(--accent-glint), var(--accent-hi) 35%, var(--accent) 70%); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .16), 0 0 14px rgb(var(--accent-rgb) / .55); }
.is-thinking .pt-orb { animation: pt-orb 1100ms ease-in-out infinite; }
@keyframes pt-orb { 50% { box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .12), 0 0 22px rgb(var(--accent-rgb) / .8); } }
.pt-ai { gap: 8px; }
.pt-log { display: flex; flex-direction: column; gap: 8px; min-height: 64px; max-height: 132px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.pt-msg { max-width: 92%; font-size: 0.875rem; line-height: 1.45; white-space: pre-line; }
.pt-msg.me { align-self: flex-end; padding: 6px 11px; border-radius: 12px 12px 3px 12px !important; background: rgb(245 238 226 / .12); }
.pt-msg.ai { align-self: flex-start; padding-left: 10px; border-left: 1.5px solid rgb(var(--accent-rgb) / .7); color: rgb(245 238 226 / .92); }
.pt-msg .pt-go { margin-top: 8px; min-height: 30px; padding-block: 4px; }
.pt-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.pt-dots i { width: 6px; height: 6px; border-radius: 50% !important; background: var(--accent-hi); opacity: .3; animation: pt-dot 900ms ease-in-out infinite; }
.pt-dots i:nth-child(2) { animation-delay: 150ms; }
.pt-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes pt-dot { 40% { opacity: 1; transform: translateY(-2px); } }
.pt-asks { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip {
  padding: 5px 11px;
  border: 1px solid rgb(245 238 226 / .2);
  border-radius: 999px !important;
  background: rgb(245 238 226 / .04);
  color: #F5EEE2;
  font: 400 0.8125rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.pt-chip:hover { border-color: var(--accent-hi); background: rgb(var(--accent-rgb) / .14); }
.pt-busy .pt-chip, .pt-busy .pt-send { opacity: .5; cursor: progress; }
.pt-ask { display: flex; gap: 6px; margin-top: auto; }
.pt-input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgb(245 238 226 / .16);
  border-radius: 10px !important;
  background: rgb(2 6 18 / .35);
  color: #F5EEE2;
  font: 400 0.875rem/1.3 var(--font-body);
}
.pt-input::placeholder { color: rgb(245 238 226 / .5); }
.pt-input:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .2); }
.pt-send { display: grid; place-items: center; flex: none; width: 38px; border: 0; border-radius: 10px !important; background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 70%); color: #0E1A38; cursor: pointer; }
.pt-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .showcase .demo-portal .demo-note { display: none; }   /* the words beside the card already say it; the card keeps to one window */
}
@media (max-width: 559px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-grid > .pt-tile { grid-column: auto; }
  .pt-input { font-size: 1rem; }   /* 16 px: phones do not zoom in on it */
}

/* ---- The full view ---------------------------------------------------------- */
html.pt-lock { overflow: hidden; }
.ptx {
  --pt-line: rgb(245 238 226 / .1);
  --pt-glass: rgb(245 238 226 / .035);
  --pt-dim: rgb(245 238 226 / .66);
  width: min(1180px, calc(100vw - 48px));
  height: min(800px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--accent-rgb) / .38);
  border-radius: 22px !important;
  background:
    radial-gradient(50% 40% at 100% 0%, rgb(var(--accent-rgb) / .13), rgb(var(--accent-rgb) / 0) 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(36 64 130 / .35), rgb(36 64 130 / 0) 70%),
    linear-gradient(180deg, #14244D, #0E1A38 60%, #0B1530);
  color: #F5EEE2;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / .7), inset 0 1px 0 rgb(245 238 226 / .1);
}
.ptx::backdrop { background: rgb(5 10 24 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lite .ptx::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
.ptx[open] { animation: ptx-in 420ms var(--ease); }
@keyframes ptx-in { from { opacity: 0; transform: translateY(14px) scale(.975); } }
.calm .ptx[open] { animation: none; }
.ptx-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 100%; }

.ptx-rail { display: flex; flex-direction: column; gap: 26px; padding: 24px 16px 20px; border-right: 1px solid var(--pt-line); background: rgb(2 6 18 / .25); }
.ptx-brand { display: flex; align-items: center; gap: 10px; padding-inline: 8px; font-weight: 500; line-height: 1.2; }
.ptx-brand small { display: block; font-size: 0.78125rem; font-weight: 400; color: var(--pt-dim); }
.ptx-nav { display: flex; flex-direction: column; gap: 4px; }
.ptx-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px !important;
  background: transparent;
  color: rgb(245 238 226 / .78);
  font: 400 0.9375rem/1.2 var(--font-body);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.ptx-tab svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ptx-tab:hover { background: rgb(245 238 226 / .06); color: #F5EEE2; }
.ptx-tab[aria-current="page"] { background: rgb(var(--accent-rgb) / .14); color: #F5EEE2; }
.ptx-tab[aria-current="page"] svg { stroke: var(--accent-hi); }
.ptx-tab[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 2px; background: var(--accent-hi); }
.ptx-rail-note { margin-top: auto; padding-inline: 8px; font-size: 0.8125rem; line-height: 1.45; color: rgb(245 238 226 / .55); }

.ptx-main { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(18px, 2.6vw, 32px) 28px; }
.ptx-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ptx-hello { font-size: 0.875rem; color: var(--pt-dim); }
.ptx-title { margin-top: 2px; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.4vw, 2.625rem); font-weight: 400; line-height: 1; color: #F5EEE2; outline: none; }
.ptx-close { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border: 1px solid rgb(245 238 226 / .22); border-radius: 999px !important; background: rgb(245 238 226 / .04); color: #F5EEE2; font: 400 0.875rem/1.2 var(--font-body); cursor: pointer; }
.ptx-close:hover { border-color: var(--accent-hi); }
.ptx-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.ptx-view { display: flex; flex-direction: column; gap: 14px; }
.ptx-view[hidden] { display: none; }
.ptx-view.is-shown { animation: ptx-view 360ms var(--ease); }
@keyframes ptx-view { from { opacity: 0; transform: translateY(6px); } }
.calm .ptx-view.is-shown { animation: none; }
.ptx-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 18px; border: 1px solid var(--pt-line); border-radius: 14px !important; background: var(--pt-glass); box-shadow: inset 0 1px 0 rgb(245 238 226 / .05); }
.ptx-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.ptx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ptx-kpi { padding: 14px 16px; border: 1px solid var(--pt-line); border-radius: 14px !important; background: var(--pt-glass); }
.ptx-kpi:first-child { border-color: rgb(var(--accent-rgb) / .4); background: linear-gradient(160deg, rgb(var(--accent-rgb) / .14), rgb(var(--accent-rgb) / .02)); }
.ptx-kpi dt { font-size: 0.78125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-dim); }
.ptx-kpi dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 0; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 300; line-height: 1.1; }

.ptx-readout { font-size: 0.9375rem; color: #F5EEE2; }
.ptx-readout b { font-weight: 500; color: var(--accent-hi); }
.ptx-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--pt-line); border-radius: 4px !important; }
.ptx-bar { flex: 1; height: calc(var(--v, .5) * 100%); min-height: 3px; border-radius: 4px 4px 1px 1px !important; background: linear-gradient(180deg, rgb(245 238 226 / .55), rgb(245 238 226 / .16)); cursor: pointer; transform-origin: 50% 100%; transition: background 200ms var(--ease), transform 600ms var(--ease); }
.ptx-bar.is-weekend { background: linear-gradient(180deg, rgb(245 238 226 / .78), rgb(245 238 226 / .22)); }
.ptx-bar.is-today { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.ptx-bar.is-on { background: linear-gradient(180deg, #FFF6EA, var(--accent-hi)); box-shadow: 0 0 18px rgb(var(--accent-rgb) / .45); }
.ptx-bars.is-growing .ptx-bar { transform: scaleY(0); transition: none; }
.calm .ptx-bars .ptx-bar { transition: background 200ms var(--ease); }
.ptx-axis { display: flex; justify-content: space-between; font-size: 0.8125rem; color: rgb(245 238 226 / .55); }

.ptx-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.ptx-feed, .ptx-day { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.ptx-feed li, .ptx-day li { display: grid; gap: 2px 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgb(245 238 226 / .07); font-size: 0.9375rem; line-height: 1.35; }
.ptx-feed li:first-child, .ptx-day li:first-child { border-top: 0; }
.ptx-feed li { grid-template-columns: minmax(0, 1fr) auto; }
.ptx-feed small, .ptx-day small { font-size: 0.8125rem; color: var(--pt-dim); }
.ptx-feed b { font-weight: 500; text-align: right; }
.ptx-day li { grid-template-columns: 82px minmax(0, 1fr); }
.ptx-day time { font-size: 0.875rem; color: var(--accent-hi); }

.ptx-cust { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ptx-table { display: flex; flex-direction: column; }
.ptx-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-top: 1px solid rgb(245 238 226 / .07);
  border-radius: 10px !important;
  background: transparent;
  color: #F5EEE2;
  font: 400 0.9375rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.ptx-table > div:first-child .ptx-row { border-top-color: transparent; }
.ptx-row:hover { background: rgb(245 238 226 / .05); }
.ptx-row[aria-pressed="true"] { background: rgb(var(--accent-rgb) / .14); border-top-color: transparent; }
.ptx-ini { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% !important; background: rgb(245 238 226 / .1); font-size: 0.8125rem; font-weight: 500; }
.ptx-row[aria-pressed="true"] .ptx-ini { background: linear-gradient(160deg, var(--accent-hi), var(--accent)); color: #0E1A38; }
.ptx-row small { display: block; font-size: 0.8125rem; color: var(--pt-dim); }
.ptx-row b { font-weight: 500; text-align: right; }
.ptx-row b small { font-weight: 400; }
.ptx-detail { gap: 14px; }
.ptx-detail h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; line-height: 1.1; color: #F5EEE2; }
.ptx-detail .ptx-kind { margin-top: 2px; font-size: 0.875rem; color: var(--pt-dim); }
.ptx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ptx-facts div { padding: 10px 12px; border: 1px solid var(--pt-line); border-radius: 10px !important; }
.ptx-facts dt { font-size: 0.78125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-dim); }
.ptx-facts dd { margin: 4px 0 0; font-size: 1rem; }
.ptx-note { padding-left: 12px; border-left: 1.5px solid rgb(var(--accent-rgb) / .7); font-size: 0.9375rem; line-height: 1.5; color: rgb(245 238 226 / .88); }
.ptx-detail .pt-go { margin-top: 2px; }

#portal-full [data-pt-panel="todo"] { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
#portal-full [data-pt-panel="todo"][hidden] { display: none; }
.ptx-todo .pt-item { font-size: 0.9375rem; padding-block: 10px; }
.ptx-add { margin-top: 0; }
#portal-full [data-pt-panel="assistant"] { flex: 1; min-height: 0; }
.ptx-ai { flex: 1; min-height: 0; }
.ptx-ai .pt-log { flex: 1; max-height: none; min-height: 220px; }
.ptx-ai .pt-msg { max-width: 75%; font-size: 0.9375rem; }

/* tablets: the rail folds into a row of tabs along the top */
@media (max-width: 899px) {
  .ptx { width: 100vw; height: 100dvh; border: 0; border-radius: 0 !important; }
  .ptx-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .ptx-rail { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--pt-line); overflow-x: auto; scrollbar-width: none; }
  .ptx-brand small, .ptx-rail-note { display: none; }
  .ptx-brand { padding-inline: 4px; white-space: nowrap; }
  .ptx-nav { flex-direction: row; }
  .ptx-tab { min-height: 38px; padding: 6px 12px; }
  .ptx-tab[aria-current="page"]::before { left: 12px; right: 12px; top: auto; bottom: -11px; width: auto; height: 2px; }
  .ptx-kpis { grid-template-columns: 1fr 1fr; }
  .ptx-split, .ptx-cust, #portal-full [data-pt-panel="todo"] { grid-template-columns: 1fr; }
  .ptx-ai .pt-msg { max-width: 88%; }
}
@media (max-width: 559px) {
  .ptx-tab svg { display: none; }
  .ptx-brand span { display: none; }
  .ptx-close span { display: none; }
  .ptx-close { padding: 6px 11px; }
  .ptx-main { padding: 16px 16px 24px; }
  .ptx-kpi { padding: 12px; }
  .ptx-kpi dd { font-size: 1.375rem; }
  .ptx-bars { height: 120px; gap: 2px; }
  .ptx .pt-input { font-size: 1rem; }
}

/* calm: nothing pulses or bounces */
.calm .pt-orb, .calm .pt-dots i, .calm .pt-list li.is-new { animation: none; }
.calm .pt-dots i { opacity: .7; }

/* Blueprint view: the portal in outline */
html.bp .pt, html.bp .pt-tile { background: transparent; }

/* ---- The card's own tabs (owner, 19 Nov: "a square you can operate the
        whole thing through"): the whole portal works inside the card ------- */
.pt-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--pt-line); border-radius: 12px !important; background: rgb(2 6 18 / .3); overflow-x: auto; scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tab {
  flex: 1 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px !important;
  background: transparent;
  color: rgb(245 238 226 / .74);
  font: 500 0.8125rem/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.pt-tab:hover { color: #F5EEE2; background: rgb(245 238 226 / .06); }
.pt-tab[aria-current="page"] { background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 70%); color: #0E1A38; }
.pt-tab:focus-visible, .pt-back:focus-visible, .pt-full:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.pt-stage { display: grid; }
.pt-stage > .pt-view { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pt-view[hidden], .pt-tile[hidden] { display: none; }
/* on wider screens every tab keeps the card the same size: the hidden ones
   stay in place, unseen, so switching never makes the page jump */
@media (min-width: 560px) {
  .pt-stage > .pt-view[hidden] { display: flex; visibility: hidden; }
}
.pt-view.is-shown { animation: ptx-view 320ms var(--ease); }
.calm .pt-view.is-shown { animation: none; }

/* Sales */
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.pt-readout { font-size: 0.875rem; color: #F5EEE2; }
.pt-readout b { font-weight: 500; color: var(--accent-hi); }
.pt-bars { height: 128px; gap: 3px; }
.pt-feed li { font-size: 0.875rem; padding-block: 7px; }
.pt-feed li:nth-child(n + 5) { display: none; }

/* Customers */
.pt-custs .ptx-row { padding: 8px; font-size: 0.875rem; }
.pt-custs .ptx-ini { width: 30px; height: 30px; }
.pt-detail { gap: 12px; }
.pt-detail h3 { font-size: 1.5rem; }
.pt-back { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 2px 0; border: 0; background: none; color: var(--accent-hi); font: 500 0.8125rem/1.2 var(--font-body); cursor: pointer; }
.pt-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-back:hover { color: #F5EEE2; }

/* To-do */
.pt-add { margin-top: 0; }
.pt-day li { font-size: 0.875rem; padding-block: 7px; grid-template-columns: 76px minmax(0, 1fr); }
.pt-day time { font-size: 0.8125rem; }

/* Assistant, given the whole card */
.pt-ai-full { flex: 1; }
.pt-ai-full .pt-log { flex: 1; max-height: none; min-height: 180px; }
.pt-stage .pt-ai-full .pt-log { max-height: 340px; }

/* the full-screen view, now an extra */
.pt-full { display: inline-flex; align-items: center; align-self: flex-end; gap: 8px; padding: 2px 4px; border: 0; background: none; color: rgb(245 238 226 / .72); font: 400 0.8125rem/1.2 var(--font-body); cursor: pointer; }
.pt-full svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-full:hover { color: var(--accent-hi); }
/* keep every tab within the Overview's height, so the card never has a gap */
.pt-bars { height: 112px; }
.pt-feed li:nth-child(n + 4) { display: none; }
.pt-view[data-pt-cpanel="overview"] .pt-grid { flex: 1; grid-template-rows: auto 1fr; }
@media (min-width: 560px) {
  .pt-stage > .pt-view[data-pt-cpanel="todo"] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}

/* ---- 19 Nov, later: the tab bar down the left side of the card (owner: "can
        the change bar be on the left"), a morning and evening brief, and a
        note under the assistant's questions that there is no typing -------- */
.pt-tab svg { display: none; flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pt-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 560px) {
  .pt-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: stretch; }
  .pt-tabs { flex-direction: column; gap: 2px; padding: 5px; overflow: visible; }
  .pt-tab { display: flex; align-items: center; gap: 10px; flex: none; min-height: 38px; padding: 6px 10px; text-align: left; }
  .pt-tab svg { display: block; }
  /* the Overview's lower row: the to-do list and the assistant share it evenly */
  .pt-grid .pt-todo, .pt-grid .pt-ai { grid-column: span 5; }
}
/* the card is wider in this chapter, so the column of tabs has room beside it */
@media (min-width: 900px) {
  .showcase #demo-5 .chapter-text { grid-column: 1 / span 4; }
  .showcase #demo-5 .chapter-device { grid-column: 5 / span 8; }
  .showcase #demo-5 .chapter-device > .demo { max-width: 680px; }
}
@media (min-width: 1200px) {
  .showcase #demo-5 .chapter-text { grid-column: 1 / span 5; }
  .showcase #demo-5 .chapter-device { grid-column: 6 / span 7; }
  .showcase #demo-5 .chapter-device > .demo { max-width: 720px; }
}

/* the brief */
.pt-brief { gap: 12px; }
.pt-brief-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-seg { display: inline-flex; padding: 2px; border: 1px solid rgb(245 238 226 / .16); border-radius: 999px !important; background: rgb(2 6 18 / .3); }
.pt-seg button { padding: 4px 12px; border: 0; border-radius: 999px !important; background: transparent; color: rgb(245 238 226 / .74); font: 500 0.8125rem/1.3 var(--font-body); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.pt-seg button:hover { color: #F5EEE2; }
.pt-seg button[aria-pressed="true"] { background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 70%); color: #0E1A38; }
.pt-seg button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.pt-brief-h { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; line-height: 1.1; color: #F5EEE2; }
.pt-brief-lead { margin-top: 2px; font-size: 0.875rem; color: rgb(245 238 226 / .7); }
.pt-brief-parts { display: grid; gap: 10px; }
.pt-brief-parts section { padding-top: 9px; border-top: 1px solid rgb(245 238 226 / .08); }
.pt-brief-k { font-size: 0.78125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.pt-brief-parts ul { list-style: none; margin: 4px 0 0; padding: 0; }
.pt-brief-parts li { font-size: 0.875rem; line-height: 1.45; color: rgb(245 238 226 / .92); }
@media (min-width: 560px) {
  /* in the card the brief never sets the card's height: it fills what the
     Overview gives it and scrolls inside */
  .pt-stage > .pt-view[data-pt-cpanel="brief"] { contain: size; }
  .pt-stage .pt-brief { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .pt-brief-parts { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
.ptx-brief .pt-brief-parts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 20px; }
.ptx-brief .pt-brief-h { font-size: 2rem; }
.ptx-brief li { font-size: 0.9375rem; }

/* under the assistant's questions */
.pt-nontype { flex-basis: 100%; margin-top: 2px; font-size: 0.78125rem; line-height: 1.4; text-align: right; color: rgb(245 238 226 / .58); }

/* ==========================================================================
   19 Nov 2026, evening: the portal as an instrument (owner: "doesn't look
   cool enough ... un-modern and un-technological"). A darker glass panel on
   a fine dot grid with a light running along its top edge; a status bar
   with a live mark, a clock and a bell; tiles with bracketed corners; lit
   figures, meters under them, a glowing trend line; a rail whose chosen tab
   glows; a status line along the foot. And the notification that the brief
   is ready ("Hey Jack, here's your morning brief").
   ========================================================================== */
.pt {
  padding: 14px;
  overflow: hidden;
  border-color: rgb(var(--accent-rgb) / .3);
  background:
    radial-gradient(70% 55% at 100% 0%, rgb(var(--accent-rgb) / .17), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgb(56 96 190 / .24), transparent 70%),
    linear-gradient(180deg, #070E22, #0A1430 60%, #081027);
  box-shadow: inset 0 1px 0 rgb(245 238 226 / .08), 0 0 0 1px rgb(var(--accent-rgb) / .08), 0 0 40px -18px rgb(var(--accent-rgb) / .5);
}
.pt::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgb(245 238 226 / .14) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(95% 85% at 88% 0%, #000, transparent 75%);
  mask-image: radial-gradient(95% 85% at 88% 0%, #000, transparent 75%);
  pointer-events: none;
}
.pt::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-hi), transparent);
  animation: pt-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes pt-scan { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.pt > * { position: relative; z-index: 1; }

/* the status bar */
.pt-bar { gap: 10px; padding: 0 2px 10px; border-bottom: 1px solid var(--pt-line); }
.pt-live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid rgb(var(--accent-rgb) / .5); border-radius: 999px !important; background: rgb(var(--accent-rgb) / .1); font-size: 0.78125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.pt-live i { width: 6px; height: 6px; border-radius: 50% !important; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); animation: pt-live 1.6s ease-in-out infinite; }
@keyframes pt-live { 50% { opacity: .3; } }
.pt-date { display: inline-flex; align-items: baseline; gap: 10px; }
.pt-clock { letter-spacing: .08em; color: #F5EEE2; }
.pt-bell { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--pt-line); border-radius: 9px !important; background: rgb(245 238 226 / .05); color: #F5EEE2; cursor: pointer; transition: border-color 200ms var(--ease); }
.pt-bell:hover, .pt-bell[aria-expanded="true"] { border-color: var(--accent-hi); }
.pt-bell:focus-visible, .pt-toast button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.pt-bell svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pt-badge { position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50% !important; background: var(--accent-hi); box-shadow: 0 0 0 2px #0A1430, 0 0 10px var(--accent-hi); animation: pt-live 1.6s ease-in-out infinite; }
.pt-bell.is-read .pt-badge { display: none; }
.pt-who { box-shadow: 0 0 0 2px #0A1430, 0 0 0 3px rgb(var(--accent-rgb) / .6); }

/* tiles: glass, with a bracket at two corners */
.pt-tile, .ptx-card, .ptx-kpi { position: relative; }
.pt-tile { border-radius: 10px !important; background: linear-gradient(180deg, rgb(245 238 226 / .06), rgb(245 238 226 / .02)); box-shadow: inset 0 1px 0 rgb(245 238 226 / .07); }
:is(.pt-tile, .ptx-card, .ptx-kpi)::before, :is(.pt-tile, .ptx-card, .ptx-kpi)::after { content: ""; position: absolute; width: 11px; height: 11px; border: solid rgb(var(--accent-hi-rgb) / .8); pointer-events: none; }
:is(.pt-tile, .ptx-card, .ptx-kpi)::before { left: -1px; top: -1px; border-width: 1.5px 0 0 1.5px; border-radius: 10px 0 0 0 !important; }
:is(.pt-tile, .ptx-card, .ptx-kpi)::after { right: -1px; bottom: -1px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 10px 0 !important; }

/* figures, lit */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  :is(.pt-kpi, .ptx-kpi) .pt-num {
    background-image: linear-gradient(180deg, #FFFFFF 12%, var(--accent-hi) 125%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgb(var(--accent-rgb) / .4));
  }
}
.pt-up { padding: 2px 8px; border: 1px solid rgb(var(--accent-rgb) / .38); border-radius: 999px !important; background: rgb(var(--accent-rgb) / .15); font-size: 0.78125rem; }
.pt-spark .sp-line { filter: drop-shadow(0 0 4px rgb(var(--accent-rgb) / .95)); }
.pt-spark .sp-dot { filter: drop-shadow(0 0 5px #FFF); }
.pt-meter { display: flex; align-items: center; gap: 8px; font-size: 0.78125rem; line-height: 1.3; white-space: nowrap; color: var(--pt-dim); }
.pt-meter-bar { flex: 1; min-width: 28px; height: 4px; border-radius: 999px !important; background: rgb(245 238 226 / .1); }
.pt-meter-bar i { display: block; height: 100%; border-radius: 999px !important; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 0 10px rgb(var(--accent-hi-rgb) / .9); }
.pt-meter-goal i { width: 69%; }
.pt-meter-split { background: rgb(245 238 226 / .34); }
.pt-meter-split i { width: 58%; }
.pt-kpi .pt-go { min-height: 30px; padding-block: 4px; }

/* the rail: the chosen tab glows */
.pt-tabs { border-radius: 10px !important; background: rgb(2 6 18 / .5); }
.pt-tab[aria-current="page"] { background: linear-gradient(90deg, rgb(var(--accent-rgb) / .34), rgb(var(--accent-rgb) / .07)); color: #FFF6EA; box-shadow: inset 0 -2px 0 var(--accent-hi), 0 0 18px -4px rgb(var(--accent-rgb) / .7); }
.pt-tab[aria-current="page"] svg { stroke: var(--accent-hi); filter: drop-shadow(0 0 4px rgb(var(--accent-hi-rgb) / .9)); }
@media (min-width: 560px) {
  .pt-tab[aria-current="page"] { box-shadow: inset 2px 0 0 var(--accent-hi), 0 0 18px -4px rgb(var(--accent-rgb) / .7); }
}

/* the assistant: a ring turns round its light; questions as command chips */
.pt-orb { position: relative; }
.pt-orb::after { content: ""; position: absolute; inset: -5px; border: 1px dashed rgb(var(--accent-hi-rgb) / .75); border-radius: 50% !important; animation: pt-turn 7s linear infinite; }
.is-thinking .pt-orb::after { animation-duration: 1.2s; }
@keyframes pt-turn { to { transform: rotate(360deg); } }
.pt-label:has(.pt-orb) { gap: 12px; }
.pt-chip { border-color: rgb(var(--accent-rgb) / .38); border-radius: 8px !important; background: rgb(var(--accent-rgb) / .07); }
.pt-chip::before { content: "› "; color: var(--accent-hi); }

/* the foot: status on the left, the full-screen view on the right */
.pt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px 0; border-top: 1px solid var(--pt-line); }
.pt-status { display: flex; align-items: center; gap: 7px; font-size: 0.78125rem; letter-spacing: .04em; color: rgb(245 238 226 / .64); }
.pt-status i { width: 6px; height: 6px; border-radius: 50% !important; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); }
.pt-foot .pt-full { align-self: auto; }

/* the notification */
.pt > .pt-toast {
  position: absolute;
  z-index: 6;
  top: 56px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(350px, calc(100% - 28px));
  padding: 10px 10px 10px 16px;
  border: 1px solid rgb(var(--accent-rgb) / .6);
  border-radius: 12px !important;
  background: linear-gradient(180deg, #1D3162, #101E44);
  box-shadow: inset 0 1px 0 rgb(245 238 226 / .14), 0 18px 40px -14px rgb(0 0 0 / .85), 0 0 28px -6px rgb(var(--accent-rgb) / .55);
}
.pt > .pt-toast[hidden] { display: none; }
.pt-toast:not([hidden]) { animation: pt-toast-in 520ms var(--ease); }
@keyframes pt-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.pt-toast-t { flex: 1; min-width: 0; }
.pt-toast-t b { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: #F5EEE2; }
.pt-toast-t small { display: block; margin-top: 1px; font-size: 0.78125rem; line-height: 1.35; color: rgb(245 238 226 / .72); }
.pt-toast-go { flex: none; padding: 5px 13px; border: 0; border-radius: 999px !important; background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 70%); color: #0E1A38; font: 500 0.8125rem/1.3 var(--font-body); cursor: pointer; }
.pt-toast-x { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px !important; background: transparent; color: rgb(245 238 226 / .7); cursor: pointer; }
.pt-toast-x:hover { color: #F5EEE2; background: rgb(245 238 226 / .08); }
.pt-toast-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* the note above the card is shown at every size again: it says what the demo leaves out */
@media (min-width: 900px) {
  .showcase .demo-portal .demo-note { display: block; max-width: none; }
}
@media (max-width: 559px) {
  .pt-date, .pt-status span { display: none; }
  .pt-bell { margin-left: auto; }
  .pt > .pt-toast { top: 52px; right: 10px; width: calc(100% - 20px); }
}
:is(.calm, .lite) .pt::after, .calm :is(.pt-live i, .pt-badge, .pt-orb::after), .calm .pt-toast:not([hidden]) { animation: none; }
:is(.calm, .lite) .pt::after { display: none; }
html.bp .pt::before, html.bp .pt::after { display: none; }

/* 19 Nov 2026: the demo cards rise into place like everything else on the
   site (they used to slide in from the side); see styles.css, "one way in". */
.reveal-on:not(.story) .chapter-device > .demo {
  opacity: 0;
  transform: translateY(var(--m-rise, 14px));
  transition: transform var(--m-in, 520ms) var(--ease), opacity var(--m-fade, 440ms) var(--ease), translate 520ms var(--ease);
}

/* 19 Nov 2026: the inbox line at the top of the Overview. The assistant has
   sorted the mail: how many important ones wait, how many it cleared. */
.pt-mail { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding-block: 9px; }
.pt-mail-ic { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pt-mail-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 0.9375rem; line-height: 1.35; }
.pt-mail-text b { font-weight: 500; color: #F5EEE2; }
.pt-mail-text span { font-size: 0.8125rem; color: var(--pt-dim); }
.pt-mail .pt-go { flex: none; align-self: center; min-height: 30px; padding-block: 4px; }
.pt-view[data-pt-cpanel="overview"] .pt-grid { grid-template-rows: auto auto 1fr; }
.ptx-view > .pt-mail { margin-bottom: 12px; }
@media (max-width: 420px) {
  .pt-mail { flex-wrap: wrap; }
  .pt-mail-text { flex-basis: calc(100% - 32px); }
}

/* the two important emails in the brief: an envelope each, the sender's name
   on it and a small "unread" dot; pressing one opens it in the assistant */
.pt-brief-parts .pt-mails { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 7px; }
.pt-mail-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px 4px 9px;
  border: 1px solid rgb(var(--accent-rgb) / .55);
  border-radius: 9px !important;
  background: rgb(var(--accent-rgb) / .1);
  color: #F5EEE2;
  font: 500 0.8125rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.pt-mail-chip svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 200ms var(--ease); }
.pt-mail-chip::after { content: ""; position: absolute; left: 22px; top: 5px; width: 7px; height: 7px; border-radius: 50% !important; background: var(--accent-hi); box-shadow: 0 0 0 2px #101C3C; }
.pt-mail-chip:hover { background: var(--accent); border-color: var(--accent); color: #0E1A38; }
.pt-mail-chip:hover svg { stroke: #0E1A38; }
.pt-mail-chip:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
html.bp .pt-mail-chip { background: none; }
html.bp .pt-mail-chip::after { box-shadow: none; }
