/* ══ PROJECTS ON A PHONE ══════════════════════════════════════════════════════
   His report, 18 Sep 2026, after seeing it at 375px: every job name cut to
   "Servis ...", every customer to "T..", sixteen rows on screen and not one of
   them readable.

   The laptop screen is a five-column table — Name · Status · Team · Who · Due —
   and the existing narrow rules only DROP columns. At 375px that leaves a name
   column of about 150px once the indent, the pick dot, the caret, the colour
   edge and the task count have taken their share, and a name is cut to nothing.

   So on a phone a row stops being a row of columns and becomes a card of lines,
   the same shape Deliveries already uses and he approved:

       name, wrapping as far as it needs            how late it is
       customer · 2/7
       [ status ]

   ⚠ NOTHING HERE IS IN css/projects.css. That file is GENERATED from
   public/_prototype-design.html and is rewritten whenever the pilot is built,
   so a hand-written rule in it does not survive. This file is hand-written, it
   loads after it, and every rule is inside the 760px query — above that width
   this file does nothing at all.
   ⚠ It also loads after chips.css, which is itself loaded late in order to
   reach .pj rules. Anything here that a chip rule fights must stay in this file
   rather than move up. */
@media (max-width:760px){

  /* A two-word heading over cards that are not columns says nothing. */
  .pj .tbl-h{display:none}

  /* ⚠ THE ROW IS A GRID OF LINES NOW, not of columns. Two areas across the top —
     the name and the date — and the status on its own line underneath, so a long
     status pill can never squeeze the name. */
  .pj .tbl-r{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"n due" "st st";
    gap:3px 10px;
    align-items:start;
    min-height:0;
    padding:9px 12px 9px 13px;
  }
  .pj .tbl-n{grid-area:n}
  .pj .tbl-due{grid-area:due;padding-top:2px}
  .pj .tbl-st{grid-area:st}
  /* nothing in the row is empty-but-occupying any more */
  .pj .tbl-st:empty{display:none}

  /* ── line by line ─────────────────────────────────────────────────────────
     .tbl-n is a flex row of small parts — the caret, the colour edge, the name,
     the customer, the task count and the three dots — and on a phone a flex row
     that wraps puts each of them on a line of its own. It is a small grid here
     instead, two lines with named places, so nothing can drift onto a line by
     itself:

         [caret]  name, wrapping as far as it needs
         [caret]  customer            2/7   ...

     ⚠ THE COLOUR EDGE IS THE CARD'S LEFT STRIPE now, taken out of the flow
     altogether. As a flex item it was a 3px bar that claimed a whole line above
     the name — which is what his screenshot showed. */
  .pj .tbl-n{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto auto;
    grid-template-areas:"car name name name" "car cust cnt more";
    column-gap:7px;
    row-gap:2px;
    align-items:center;
  }
  .pj .tbl-n .tbl-car,.pj .tbl-n .tbl-car.empty{grid-area:car;align-self:center}
  .pj .tbl-name{grid-area:name}
  .pj .tbl-cust{grid-area:cust}
  .pj .tbl-cnt{grid-area:cnt}
  .pj .tbl-r .rowmore{grid-area:more}

  /* the stripe, down the left of the whole card */
  .pj .tbl-r{position:relative}
  .pj .tbl-edge{
    position:absolute;left:0;top:6px;bottom:6px;
    width:3px;height:auto;border-radius:0 2px 2px 0;
  }

  /* ⚠ THE THREE THAT CUT THE NAME OFF, all three undone together — a nowrap, a
     hidden overflow and an ellipsis. Undoing two of them still cuts. */
  .pj .tbl-name{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.3;
    word-break:break-word;
  }
  .pj .tbl-cust{
    max-width:none;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.3;
  }

  /* ⚠ PICKING IS A LAPTOP ACTION. The dot only appears on hover and there is no
     hover on a phone, so it was a permanently invisible hole at the start of
     every name. Taking it away gives the name its width back. */
  .pj .tbl-r .rowpick{display:none}
  /* the three dots, on the other hand, are the only way into a row's menu, and
     they too were hover-only — so on a phone they were never once drawn */
  .pj .tbl-r .rowmore{opacity:1;width:30px;height:30px;flex:none}

  /* ── a sub-task under a row ───────────────────────────────────────────────
     Same shape, quieter, and its indent cut to something a 375px screen can
     afford. */
  .pj .tbl-r.sub{padding:8px 14px 8px 30px;grid-template-areas:"n due"}
  .pj .tbl-r.sub .tbl-dent{display:none}
  .pj .tbl-r.sub .tbl-name{flex:1 1 auto}

  /* ── the group heads ──────────────────────────────────────────────────────
     They are what you press to open fifty rows, so they get a thumb-sized
     height rather than the laptop's line height. */
  .pj .tbl-gh{min-height:44px}

  /* The date is the one thing that is read at a glance down the right-hand
     side, so it keeps its own column and never wraps. */
  .pj .tbl-due{white-space:nowrap;font-size:13px}
}

/* ══ SEVEN EQUAL THINGS ARE NOT A HIERARCHY ══════════════════════════════════
   "no hierarchy", 18 Sep 2026, at a job opened from Projects. See the note in the
   patch that wrote this: the facts under the title were seven rows of identical
   weight, divided by identical lines. They are one block now, and a quiet one.

   ⚠ NOTHING IS REORDERED and nothing is hidden. Every row that was there is still
   there, in the same order, saying the same thing — this only changes how loudly
   each part of it speaks. */
@media (max-width:760px){

  /* the title is the loudest thing, and it was competing with a wall of labels */
  .pj .doc-title{font-size:26px;line-height:1.15;margin-bottom:2px}

  /* ── the facts, as ONE block ────────────────────────────────────────────
     A panel holds them together, so the eye reads "the details" rather than
     counting seven rows. Corner 10, which is this app's panel corner. */
  .pj .prow:first-of-type{margin-top:14px;border-radius:10px 10px 0 0;padding-top:12px}
  .pj .prow:last-of-type{border-radius:0 0 10px 10px;padding-bottom:12px;margin-bottom:6px}
  .pj .prow{
    background:var(--paper);
    /* ⚠ THE LINES BETWEEN THEM GO. A rule under every row is what made them read as
       a table of equals; the block's own edge is the only line it needs. */
    border-bottom:0;
    padding:7px 14px;
    gap:12px;
    align-items:baseline;
  }

  /* ── inside the block: the label recedes, the value reads ───────────────
     The label was 13px, semi-bold, wide-tracked and uppercase — as loud as the
     thing it was naming. It is the smallest type in the app now and the value is
     at reading size, so the eye goes to the answer and not to the question. */
  .pj .prow .k{
    width:84px;
    font-size:11px;
    font-weight:500;
    letter-spacing:.06em;
    color:var(--ink-faint);
    padding-top:2px;
  }
  .pj .prow .v{font-size:15px;color:var(--ink);line-height:1.35}

  /* a row whose value is a control needs its own room, not a baseline */
  .pj .prow.wide{display:block}
  .pj .prow.wide .k{width:auto;display:block;margin-bottom:5px}

  /* ── and the sections below stand up ────────────────────────────────────
     Tasks and Messages are the two things you came to do. They were a 13px
     uppercase label the same size as every fact label above them. */
  .pj .mslab{
    font-size:12px;
    margin:26px 0 4px;
    padding-bottom:8px;
    height:auto;
  }
  .pj .mslab .c{font-size:17px}
}

/* ══ FACTS FIRST, SETTINGS LAST ══════════════════════════════════════════════
   See the note in the patch that wrote this. A setting you touch once a year was
   drawn bigger than the customer's name.

   ⚠ THIS DEPENDS ON EVERY ROW CARRYING ITS NAME (data-row), which the pilot now
   writes. Without it the only way to tell a fact from a setting is to count
   positions, and that breaks the first time somebody adds a row. */
@media (max-width:760px){

  /* the block becomes a column that can be ordered */
  .pj .doc-props{display:flex;flex-direction:column}
  /* ⚠ A DEFAULT PLACE FOR EVERY ROW. Anything not named below has no order of its
     own, which in a flex column means 0 — ahead of everything. That is how "Attach
     a record" ended up above the customer. Middle by default; named rows move. */
  .pj .doc-props .prow{order:2}

  /* ── what the job IS: first, and the values read at full size ───────────── */
  .pj .prow[data-row="cust"],
  .pj .prow[data-row="mach"],
  .pj .prow[data-row="from"]{order:1}
  .pj .prow[data-row="cust"] .v,
  .pj .prow[data-row="mach"] .v{font-size:16px;font-weight:500;color:var(--ink)}

  /* ── who is on it ───────────────────────────────────────────────────────── */
  .pj .prow[data-row="people"]{order:2}

  /* ── set once, and quiet: a line of air above them, then the small stuff ── */
  .pj .prow[data-row="branch"]{order:3;margin-top:10px;border-top:1px solid var(--rule-soft)}
  .pj .prow[data-row="department"]{order:4}
  .pj .prow[data-row="who-can-see-it"]{order:5}
  .pj .prow[data-row="job"]{order:6}

  /* ⚠ AND THEIR CONTROLS COME DOWN TO THE SIZE OF THE WORDS. This is the actual
     answer to his question: a switch at full height is louder than a name however
     small the label beside it is. The hit area stays a thumb's worth — the padding
     does that — but nothing about it shouts. */
  .pj .prow[data-row="branch"] .v,
  .pj .prow[data-row="department"] .v,
  .pj .prow[data-row="who-can-see-it"] .v{font-size:13px;color:var(--ink-soft)}

  .pj .prow[data-row="department"] select,
  .pj .prow[data-row="department"] .inp{
    font-size:13px;min-height:32px;height:32px;padding:0 26px 0 9px;
    border-radius:7px;background-color:transparent;background-size:15px;
    background-position:right 7px center;color:var(--ink-soft);font-weight:400}

  /* the two-button switch: hairline, text-sized, and the chosen one merely darker
     rather than filled with colour */
  .pj .prow[data-row="who-can-see-it"] .v > *{font-size:12px!important}
  .pj .prow[data-row="who-can-see-it"] button,
  .pj .prow[data-row="who-can-see-it"] .seg > *{
    min-height:30px!important;padding:0 10px!important;font-size:12px!important;
    font-weight:500!important}
  .pj .prow[data-row="who-can-see-it"] .on,
  .pj .prow[data-row="who-can-see-it"] [aria-pressed="true"]{
    background:var(--field)!important;color:var(--ink)!important}

  /* the little links inside a setting row — Change, Add someone — stay links */
  .pj .prow[data-row="branch"] .pedit,
  .pj .prow[data-row="department"] .pedit{font-size:12px}
}

/* ══ NOTHING SLIDES SIDEWAYS ═════════════════════════════════════════════════
   His rule, and he has had to say it twice. A phone scrolls one way.

   The timeline is a chart of days and is 760px wide at its narrowest — that is
   fine. What was not fine is that its frames had no width limit, so the frame grew
   to fit the chart instead of the chart scrolling inside the frame, and the whole
   card came with it.

   ⚠ THE LIMIT GOES ON EVERY BOX BETWEEN THE CHART AND THE SHEET, not just the
   outer one. A single min-width:0 anywhere in that chain is undone by the next box
   down that has none, which is exactly how this survived a sweep that printed it. */
@media (max-width:760px){

  /* the rule itself: the body of a sheet goes up and down only */
  .pj .sheet-body{overflow-x:hidden}

  /* every frame between the sheet and the chart, told it may not grow */
  .pj .doc,
  .pj .doc-cal,
  .pj .doc-main,
  .pj .doc-solo,
  .pj .doc-note,
  .pj .tlwrap,
  .pj .tltop{min-width:0;max-width:100%}

  /* ⚠ AND THE TIMELINE IS NOT DRAWN ON A PHONE AT ALL.
     Containing it was the first answer and it does not work: the row of dates along
     the top sits OUTSIDE the frame that scrolls, so clipping the frame leaves the
     dates and the bars sliding independently of each other, which is worse than the
     fault. Letting the frame grow instead is what he is looking at.
     It is a chart of a month of days. At 393px it is 760px of grid squeezed into
     350 — unreadable before it is unusable — and neither ClickUp nor Asana draws a
     chart like it on a phone for the same reason. It stays on the computer, where
     it is worth having. Nothing else about the card changes. */
  .pj .doc-cal,.pj #sec-pcal{display:none}
}

/* ══ THE SECTION STRIP GETS ITS OWN LINE ═════════════════════════════════════
   In his picture the strip reads "Tasks 0/0 · Messages (" and stops — cut off in
   the middle of the second word. It shares a 52px line with the status pill and
   the close button, which leaves it 193px for seven sections, so six of them are
   off the end of a scroll nobody can see the edge of.

   On a phone it takes the full width on a line of its own, under the pill. Which
   is where both ClickUp and Asana put it: the tabs run across the top of the card,
   nothing beside them. */
@media (max-width:760px){
  .pj .sheet-head{flex-wrap:wrap;height:auto;padding:6px 10px 0 14px;row-gap:2px}
  /* the pill and the close stay on the first line, together */
  .pj .sheet-head > .stpill{order:1}
  .pj .sheet-head > .sheet-x{order:2;margin-left:auto}
  /* and the strip drops below them, full width */
  .pj .sheet-jump{order:3;flex:1 1 100%;height:44px;padding-left:0;
    overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  /* ⚠ AND NO SCROLLBAR DRAWN ACROSS THE CARD. It is a strip you swipe, not a pane. */
  .pj .sheet-jump::-webkit-scrollbar{display:none}
  .pj .sheet-jump{scrollbar-width:none}
}

/* ══ THE NEW LOOK, 9 Nov 2026 (his approved office phone, design-gallery/tries/office-phone) ══
   Look only, office logins only (the technician and the driver never reach it): the parts kit's
   font and colours, each group's rows in one soft panel, a real heading per group, the greeting
   big and on the left, the + as on every other phone app. Projects sits outside the phone hosts
   (no class "kt" here), so the kit's colours are named again below, light and dark, from crm-kit.css.
   Behaviour, rows and words are the generated screen's own (projects.css / projects.js untouched). */
@media (max-width:760px){
  body:not(.role-tech):not(.role-driver) #view-projects.pj{--pq-ink:#111114;--pq-bg:#ffffff;--pq-wash:#f3f3f5;--pq-soft:#ececef;--pq-grey:#5f5f66;--pq-rule:#dedee3;
    --pq-red:#d9252e;--pq-font:"Schibsted Grotesk",system-ui,sans-serif}
  :root[data-theme="dark"] body:not(.role-tech):not(.role-driver) #view-projects.pj{--pq-ink:#f3f3f5;--pq-bg:#1a1a1f;--pq-wash:#131317;--pq-soft:#26262c;--pq-grey:#a3a3ab;--pq-rule:#2c2c33}
  /* one font for the whole screen, the kit's (numbers in a mono face keep theirs) */
  /* ⚠ and no tabular figures: in this font "tnum" also widens the comma and the full stop ("morning , zz") */
  body:not(.role-tech):not(.role-driver) #view-projects.pj :where(*):not(svg *):not([class*="mono"]){font-family:var(--pq-font);font-feature-settings:normal;font-variant-numeric:normal}
  /* the greeting: on the left, big */
  body:not(.role-tech):not(.role-driver) #view-projects .home .as-top{text-align:left}
  body:not(.role-tech):not(.role-driver) #view-projects .home .as-top .dt{font-size:14px;color:var(--pq-grey);letter-spacing:0;text-transform:none}
  body:not(.role-tech):not(.role-driver) #view-projects .home .as-top h2{font-size:28px!important;font-weight:700;letter-spacing:-.01em;color:var(--pq-ink)}
  /* a group: a real heading, its rows in one soft panel held apart by space */
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-gh{font-size:18px;font-weight:700;color:var(--pq-ink);border:0}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-gh .t{font-size:18px;font-weight:700}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-r{background:var(--pq-wash);border-top:0;padding:12px 14px 12px 20px}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-r:not(.tbl-r + .tbl-r){border-top-left-radius:18px;border-top-right-radius:18px;padding-top:16px}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-r:not(:has(+ .tbl-r)){border-bottom-left-radius:18px;border-bottom-right-radius:18px;padding-bottom:16px}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-r:has(+ .tbl-r){box-shadow:0 1px 0 var(--pq-wash)}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-r:active{background:var(--pq-soft)}
  /* the project's colour: a short soft mark at the left, not a thick edge bar */
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-edge{left:8px;top:16px;bottom:auto;height:18px;width:4px;border-radius:2px}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-name{font-size:16px;font-weight:700;color:var(--pq-ink)}
  body:not(.role-tech):not(.role-driver) #view-projects .tbl-cust,body:not(.role-tech):not(.role-driver) #view-projects .tbl-due{font-size:14px;color:var(--pq-grey)}
}

/* ══ THE DECK: PROJECTS ON A PHONE (18 Nov 2026, his pick "A") ════════════════════════════
   Drawn by js/phone-projects.js into #pjDeck, a host inside #view-projects that carries the
   parts kit (kt sp), so every control here is a kit part (k-btn, tb-pill tabs, pp-ov sheets
   and boxes, rings) and the colours are the kit's --sp-* names, light and dark.
   Home, My list and Work are three panes side by side; the pill near the thumb moves between
   them; a project slides in over them from the right.
   ⚠ EVERY RULE HERE STARTS WITH #pjDeck. The prefix pd- is new to the app, and the id keeps
   projects.css's broad .pj rules (button, input) from reaching in.
   ⚠ Above 760px #pjDeck is never shown, and projects.js never asks the deck to draw. */
#pjDeck{display:none}
@media (max-width:760px){
  #view-projects:has(> #pjDeck:not(.is-aside)){padding:0!important;margin:0!important;max-width:none!important}
  #view-projects:has(> #pjDeck:not(.is-aside)) > :not(#pjDeck){display:none!important}
  main:has(> #view-projects:not(.hidden) > #pjDeck:not(.is-aside)){overflow:hidden;scrollbar-gutter:auto}
  /* the page itself never moves under the deck (a few hidden boxes sit below the screen) */
  html:has(#view-projects:not(.hidden) > #pjDeck:not(.is-aside)),body:has(#view-projects:not(.hidden) > #pjDeck:not(.is-aside)){overflow:hidden}
  #pjDeck{display:block;position:relative;height:100vh;height:100dvh;overflow:clip;padding-top:var(--sat,0px);
    background:var(--sp-page);color:var(--sp-ink);font:400 16px/1.45 var(--sp-font);-webkit-text-size-adjust:100%}
  /* Templates and Team are drawn the laptop way; the deck keeps only its pill over them */
  #pjDeck.is-aside{position:static;height:0;padding:0;overflow:visible;background:none}
  #pjDeck.is-aside .pd-deck,#pjDeck.is-aside .pd-rec{display:none}
  #view-projects:has(> #pjDeck.is-aside){padding-bottom:calc(96px + var(--sab,0px))!important}
  #pjDeck :where(p,h1,h2,h3){margin:0;padding:0}
  #pjDeck .k-btn{font-size:16px}
  #pjDeck .k-btn.k-sm{min-height:44px;font-size:14px}
  #pjDeck .k-btn.k-dark{background:var(--sp-ink);color:var(--sp-bg)}
  #pjDeck .k-ic{width:44px;height:44px}
  #pjDeck .k-ic svg{width:22px;height:22px}
  #pjDeck .k-btn svg,#pjDeck .k-ic svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  #pjDeck .tg .tg-mark{display:block;width:16px;height:16px;flex:none;color:var(--m)}
  #pjDeck .pd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #pjDeck svg{flex:none}

  /* ── the three panes, side by side; a finger or the pill moves between them ── */
  #pjDeck .pd-deck{position:absolute;inset:var(--sat,0px) 0 0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    overscroll-behavior:none;scrollbar-width:none}
  #pjDeck .pd-deck::-webkit-scrollbar{display:none}
  #pjDeck .pd-pane{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:clip}
  #pjDeck .pd-scr{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--sp-page)}
  #pjDeck .pd-top{position:relative;z-index:3;flex:none;background:var(--sp-page);transition:box-shadow .2s ease}
  #pjDeck :is(.pd-scr,.pd-rec).is-compact .pd-top{box-shadow:0 8px 16px -14px var(--sp-shadow)}
  :root[data-theme="dark"] #pjDeck :is(.pd-scr,.pd-rec).is-compact .pd-top{box-shadow:0 1px 0 var(--sp-rule)}
  #pjDeck .pd-row1{position:relative;display:flex;align-items:center;gap:4px;min-height:60px;padding:8px calc(var(--capw,150px) + 20px) 8px 16px}
  #pjDeck .pd-ctx,#pjDeck .pd-mini{font-size:14px;color:var(--sp-grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    transition:opacity .18s ease,transform .22s var(--sp-ease-out);pointer-events:none}
  #pjDeck .pd-mini{position:absolute;left:16px;right:calc(var(--capw,150px) + 20px);top:50%;translate:0 -50%;font-size:18px;font-weight:700;
    color:var(--sp-ink);opacity:0;transform:translateY(6px)}
  #pjDeck .pd-back ~ .pd-mini{left:60px}
  #pjDeck :is(.pd-scr,.pd-rec).is-compact .pd-ctx{opacity:0;transform:translateY(-6px)}
  #pjDeck :is(.pd-scr,.pd-rec).is-compact .pd-mini{opacity:1;transform:none}
  #pjDeck .pd-back{margin-left:-10px;color:var(--sp-ink)}
  #pjDeck .pd-fold{display:grid;grid-template-rows:1fr;transition:grid-template-rows .24s var(--sp-ease-out),opacity .18s ease}
  #pjDeck .pd-fold > div{min-height:0;overflow:hidden}
  #pjDeck :is(.pd-scr,.pd-rec).is-compact .pd-fold{grid-template-rows:0fr;opacity:0}
  #pjDeck .pd-h1,#pjDeck .pd-hello{padding:0 16px;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
  #pjDeck .pd-subl{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;padding:10px 16px 2px;font-size:16px;color:var(--sp-grey)}
  #pjDeck .pd-grow{flex:1}
  #pjDeck .pd-pick{padding:0 12px 0 16px}
  #pjDeck .pd-pick svg{width:16px;height:16px;transition:transform .18s var(--sp-ease-out)}
  #pjDeck .pd-pick[aria-expanded="true"] svg{transform:rotate(180deg)}
  #pjDeck .pd-manage{margin-right:-8px}
  #pjDeck .pd-find{padding:14px 16px 0}
  #pjDeck .l-q{width:100%}
  #pjDeck .l-q input{height:48px;font-size:16px;background:var(--sp-wash);border-color:transparent}
  #pjDeck .l-q input:focus-visible{background:var(--sp-bg)}
  #pjDeck .l-q .l-qx{width:44px;height:44px;right:2px}
  #pjDeck .pd-chips{padding:10px 16px 0}
  #pjDeck .l-filt{margin:0}
  #pjDeck .l-filt .tb-list{overflow-x:auto;width:100%}
  #pjDeck .l-filt.tb-pill .tb-tab{height:44px;font-size:16px;padding:0 12px}
  #pjDeck .pd-gap{height:12px}
  #pjDeck .pd-list{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:none;overscroll-behavior-x:auto;padding:8px 16px 150px;scrollbar-width:none}
  /* ⚠ ONLY THE UP-AND-DOWN STOPS DEAD. A list is a scroller sideways too (overflow-y:auto makes it one), so
     overscroll-behavior:none on both axes kept every sideways swipe inside it and the deck never moved. */
  #pjDeck .pd-list::-webkit-scrollbar{display:none}
  #pjDeck .pd-list:focus{outline:none}

  /* sections: a real heading, the rows in one soft panel */
  #pjDeck .pd-sec{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 4px 10px;font-size:18px;font-weight:700;line-height:1.3}
  #pjDeck .pd-sec:first-child{margin-top:10px}
  #pjDeck .pd-sec.is-red{color:var(--tg-red-t)}
  #pjDeck .pd-sec .pd-n{font-size:14px;font-weight:500;color:var(--sp-grey);font-variant-numeric:tabular-nums}
  /* Messages: the count beside the word, the office chat's door at the right (18 Nov 2026) */
  #pjDeck .pd-sec:has(.pd-openchat){justify-content:flex-start;align-items:center}
  #pjDeck .pd-sec .pd-openchat{margin:-8px -8px -8px auto;min-height:40px;font-size:15px;font-weight:600}
  #pjDeck button.pd-sec{width:calc(100% - 8px);min-height:44px;margin-bottom:6px;padding:0;border:0;background:none;color:var(--sp-ink);font:inherit;font-size:18px;font-weight:700;text-align:left;cursor:pointer;align-items:center}
  #pjDeck button.pd-sec svg{width:18px;height:18px;margin-left:auto;fill:none;stroke:var(--sp-grey);stroke-width:2;stroke-linecap:round;transition:transform .2s var(--sp-ease-out)}
  #pjDeck button.pd-sec[aria-expanded="true"] svg{transform:rotate(180deg)}
  #pjDeck button.pd-sec .pd-n{margin-left:8px}
  #pjDeck .pd-sub3{margin:18px 4px 8px;font-size:16px}
  #pjDeck .pd-grp{display:grid;gap:2px;padding:4px;border-radius:18px;background:var(--sp-wash)}
  #pjDeck .pd-empty{margin:32px 8px;font-size:16px;color:var(--sp-grey);text-align:center}
  #pjDeck .pd-free{padding:12px 14px;font-size:16px;color:var(--sp-grey)}
  #pjDeck .pd-narrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 0;padding:4px 4px 4px 14px;border-radius:14px;background:var(--sp-wash);font-size:16px;color:var(--sp-ink)}

  /* the row: a name on one line, the state as a ring and a short line, the date on the right */
  #pjDeck .pd-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 12px;width:100%;min-height:72px;
    padding:10px 12px;border:0;border-radius:14px;background:none;color:var(--sp-ink);font:inherit;text-align:left;cursor:pointer;
    transition:background-color .15s ease,transform .16s var(--sp-ease-out)}
  #pjDeck .pd-row:active{transform:scale(.985);background:var(--sp-soft)}
  #pjDeck .pd-row:focus-visible{outline:2px solid var(--sp-red);outline-offset:-2px}
  #pjDeck .pd-m{display:grid;gap:2px;min-width:0}
  #pjDeck .pd-pt{font-size:16px;font-weight:700;line-height:1.3}
  #pjDeck .pd-st{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:14px;line-height:1.35;color:var(--sp-grey);min-width:0}
  #pjDeck .pd-st > span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  #pjDeck .pd-st .tg{flex:none;height:auto;padding:0;gap:0;background:none;box-shadow:none}
  #pjDeck .pd-st .tg-w{display:none}
  #pjDeck .pd-r{padding-top:1px;font-size:14px;color:var(--sp-grey);font-variant-numeric:tabular-nums;white-space:nowrap}
  #pjDeck .pd-r.is-late{color:var(--tg-red-t);font-weight:600}
  #pjDeck .pd-r.is-soon{color:var(--sp-ink);font-weight:600}
  #pjDeck .pd-is-new{animation:pd-new 1.4s ease}
  @keyframes pd-new{0%,40%{background:color-mix(in srgb,var(--tg-green-m,#1d8a4c) 16%,transparent)}}

  /* one line, a soft fade then "…" only when it is really cut; a press shows all of it */
  #pjDeck .pd-one{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  #pjDeck .pd-one.is-cut{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),rgba(0,0,0,.35) calc(100% - 14px),#000 calc(100% - 13px));
    mask-image:linear-gradient(90deg,#000 calc(100% - 44px),rgba(0,0,0,.35) calc(100% - 14px),#000 calc(100% - 13px))}
  #pjDeck .pd-tip{position:fixed;z-index:90;max-width:min(340px,calc(100vw - 24px));padding:10px 14px;border-radius:12px;background:var(--sp-ink);
    color:var(--sp-bg);font:500 15px/1.35 var(--sp-font);translate:0 -100%;opacity:0;scale:.96;transform-origin:20px 100%;pointer-events:none;
    transition:opacity .14s ease,scale .18s var(--sp-ease-out)}
  #pjDeck .pd-tip.is-on{opacity:1;scale:1}

  /* faces */
  #pjDeck .pd-av{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;font-size:15px;font-weight:600;flex:none;
    background-size:cover;background-position:center;overflow:hidden}
  #pjDeck .pd-av.is-sq{border-radius:14px;background:var(--sp-soft);color:var(--sp-ink)}
  #pjDeck .pd-av.is-sq svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

  /* ticks */
  #pjDeck .pd-tick{display:grid;place-items:center;width:44px;height:44px;margin:-6px 0 -6px -8px;padding:0;border:0;border-radius:50%;background:none;color:var(--sp-grey);cursor:pointer}
  #pjDeck .pd-tick svg{width:26px;height:26px;transition:transform .16s var(--sp-ease-out)}
  #pjDeck .pd-tick .pd-tk{stroke-dasharray:16;stroke-dashoffset:16;transition:stroke-dashoffset .22s var(--sp-ease-out)}
  #pjDeck .pd-tick[aria-checked="true"]{color:var(--tg-green-m)}
  #pjDeck .pd-tick[aria-checked="true"] .pd-tk{stroke-dashoffset:0}
  #pjDeck .pd-tick[aria-checked="true"] circle{fill:currentColor}
  #pjDeck .pd-tick:active svg{transform:scale(.9)}
  #pjDeck .pd-task{grid-template-columns:36px minmax(0,1fr) auto;align-items:center;min-height:60px;cursor:default}
  #pjDeck .pd-task:active{transform:none;background:none}
  #pjDeck .pd-task .pd-m{gap:1px;cursor:pointer}
  #pjDeck .pd-tt{font-size:16px;font-weight:600;line-height:1.35}
  #pjDeck .pd-ts{font-size:14px;color:var(--sp-grey);line-height:1.4;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  #pjDeck .pd-ts.is-late{color:var(--tg-red-t)}
  #pjDeck .pd-task.is-ticked .pd-tt{color:var(--sp-grey);text-decoration:line-through;text-decoration-thickness:1.5px}
  #pjDeck .pd-add{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:60px;margin:0;padding:6px 8px 6px 12px;border-radius:14px}
  #pjDeck .pd-add-i{display:grid;place-items:center;width:26px;height:26px;margin-left:1px;border-radius:50%;box-shadow:inset 0 0 0 1.8px var(--sp-line);color:var(--sp-grey)}
  #pjDeck .pd-add-i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
  #pjDeck .pd-add-in{min-width:0;height:44px;padding:0;border:0;background:none;color:var(--sp-ink);font:400 16px var(--sp-font);outline:none;box-shadow:none}
  #pjDeck .pd-add-in::placeholder{color:var(--sp-grey);opacity:1}
  #pjDeck .pd-add:focus-within{background:var(--sp-bg);box-shadow:inset 0 0 0 1.5px var(--sp-line)}
  #pjDeck .pd-add-b{min-width:64px;transition:opacity .16s ease,transform .14s var(--sp-ease-out)}
  #pjDeck .pd-add-b:disabled{opacity:.35}

  /* ── the pill near the thumb: the + on its left, three words, Inbox on its right ── */
  #pjDeck .pd-pill{position:fixed;z-index:60;left:50%;bottom:calc(18px + var(--sab,0px));translate:-50% 0;display:flex;align-items:center;gap:4px;padding:4px;
    border-radius:999px;background:color-mix(in srgb,var(--sp-bg) 88%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);
    box-shadow:inset 0 0 0 1px var(--sp-rule),0 10px 28px -10px var(--sp-shadow);max-width:calc(100vw - 16px)}
  #pjDeck .pd-seg{position:relative;display:flex}
  #pjDeck .pd-thumb{position:absolute;top:0;bottom:0;left:0;border-radius:999px;background:var(--sp-soft);transform:translateX(var(--tx,0px)) scaleX(var(--sq,1));
    width:var(--tw,80px);transition:transform 90ms linear,width 90ms linear}
  #pjDeck .pd-thumb.snap{transition:transform .38s cubic-bezier(.32,.72,0,1),width .38s cubic-bezier(.32,.72,0,1)}
  #pjDeck .pd-seg button{position:relative;z-index:1;height:48px;min-width:44px;padding:0 var(--pad,15px);border:0;background:none;color:var(--sp-grey);font:600 16px var(--sp-font);
    white-space:nowrap;cursor:pointer;transition:color .18s ease}
  #pjDeck .pd-seg button[aria-selected="true"]{color:var(--sp-ink)}
  #pjDeck .pd-seg button:focus-visible,#pjDeck .pd-inb:focus-visible,#pjDeck .pd-plus:focus-visible{outline:2px solid var(--sp-red);outline-offset:-2px;border-radius:999px}
  #pjDeck .pd-plus{width:48px;min-height:48px;height:48px;padding:0;border-radius:50%;box-shadow:0 6px 16px -6px rgba(217,37,46,.6)}
  #pjDeck .pd-plus svg{width:24px;height:24px}
  #pjDeck .pd-inb{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:var(--sp-ink);color:var(--sp-bg);
    cursor:pointer;transition:transform .14s var(--sp-ease-out),background-color .15s ease}
  #pjDeck .pd-inb:active,#pjDeck .pd-plus:active{transform:scale(.92)}
  #pjDeck .pd-inb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  #pjDeck .pd-badge{position:absolute;top:-3px;right:-3px;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:999px;
    background:var(--sp-red-fill);color:var(--sp-on-red);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--sp-page);
    transition:opacity .16s ease,scale .2s var(--sp-ease-out)}
  #pjDeck .pd-badge.is-gone{opacity:0;scale:.4}
  #pjDeck .pd-inb[aria-expanded="true"]{background:var(--sp-red-fill);color:var(--sp-on-red)}
  /* while a project is open the pill steps back; it comes back with the list */
  #pjDeck.has-rec .pd-pill{opacity:0;pointer-events:none;transform:translateY(24px)}
  #pjDeck .pd-pill{transition:opacity .2s ease,transform .26s var(--sp-ease-out)}
  /* the CRM's corner pills sit above the deck's pill */
  body:has(#view-projects:not(.hidden) > #pjDeck) .k-tell .m-pile{bottom:calc(84px + var(--sab,0px))}

  /* My list: the quick add is the biggest thing on the pane */
  #pjDeck .pd-quick{margin:4px 16px 0;padding:4px;border-radius:18px;background:var(--sp-wash)}
  #pjDeck .pd-quick .pd-add{min-height:56px}
  #pjDeck .pd-qopts{display:flex;flex-wrap:wrap;gap:8px;padding:0 8px 8px 56px}
  #pjDeck .pd-qopts .k-btn{min-height:44px;padding:0 12px 0 14px;font-size:15px;font-weight:500}
  #pjDeck .pd-qopts .k-btn svg{width:16px;height:16px}
  #pjDeck .pd-mrow .pd-ts{font-size:14px}
  #pjDeck .pd-ask{grid-template-columns:minmax(0,1fr) auto;align-items:center}

  /* Work: the board, one column at a time */
  #pjDeck .pd-cols{margin:2px 0 6px}
  #pjDeck .pd-cols .tb-list{width:100%}
  #pjDeck .pd-cols .tb-tab{height:44px;font-size:16px;padding:0 12px}
  #pjDeck .pd-cols .tb-tab[aria-selected="true"] .tb-n{background:var(--sp-soft);color:var(--sp-ink)}
  #pjDeck .pd-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 8px 8px 12px;border-radius:14px}
  #pjDeck .pd-card .pd-row{min-height:0;padding:0;background:none}
  #pjDeck .pd-card .k-btn{min-height:44px}
  #pjDeck .pd-colwrap{overflow:hidden}

  /* the calendar: two weeks of days and that day's work */
  #pjDeck .pd-dayswrap{margin:0 -16px}
  #pjDeck .pd-dayhd{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 8px 0 16px}
  #pjDeck .pd-step-l{font-size:14px;font-weight:500;color:var(--sp-grey)}
  #pjDeck .pd-days{display:grid;grid-auto-flow:column;grid-auto-columns:52px;gap:6px;overflow-x:auto;padding:8px 16px 2px;scrollbar-width:none}
  #pjDeck .pd-days::-webkit-scrollbar{display:none}
  #pjDeck .pd-day{position:relative;display:grid;justify-items:center;align-content:center;gap:0;height:68px;border:0;border-radius:16px;background:var(--sp-wash);
    color:var(--sp-ink);font:inherit;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .16s var(--sp-ease-out)}
  #pjDeck .pd-day:active{transform:scale(.95)}
  #pjDeck .pd-day span{font-size:14px;color:var(--sp-grey);transition:color .18s ease}
  #pjDeck .pd-day b{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
  #pjDeck .pd-day.is-today b{color:var(--tg-red-t)}
  #pjDeck .pd-day.is-past{opacity:.62}
  #pjDeck .pd-day.has::after{content:"";position:absolute;bottom:7px;width:5px;height:5px;border-radius:50%;background:var(--sp-grey)}
  #pjDeck .pd-day[aria-pressed="true"]{background:var(--sp-ink);color:var(--sp-bg);opacity:1}
  #pjDeck .pd-day[aria-pressed="true"] span,#pjDeck .pd-day[aria-pressed="true"] b{color:var(--sp-bg)}
  #pjDeck .pd-day[aria-pressed="true"]::after{background:var(--sp-bg)}

  /* ── one project: slides in from the right ── */
  #pjDeck .pd-rec{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;padding-top:var(--sat,0px);background:var(--sp-page);
    box-shadow:-14px 0 32px -18px var(--sp-shadow);touch-action:pan-y}
  #pjDeck .pd-rec .pd-list{padding:4px 16px 48px}
  #pjDeck .pd-rec .pd-row1{min-height:56px}
  #pjDeck .pd-hero{padding:4px 4px 0}
  #pjDeck .pd-hero .pd-h1{padding:0;cursor:text}
  #pjDeck .pd-meta{margin-top:6px;font-size:16px;color:var(--sp-grey)}
  #pjDeck .pd-meta b{font-weight:600;color:var(--sp-ink)}
  #pjDeck .pd-meta b.is-late{color:var(--tg-red-t)}
  #pjDeck .pd-status{margin:18px 0 0}
  #pjDeck .pd-status .tb-list,#pjDeck .pd-see .tb-list,#pjDeck .pd-kinds .tb-list{display:grid;width:100%;grid-auto-columns:1fr!important}
  #pjDeck .pd-status .tb-tab{height:44px;font-size:15px;padding:0 6px}
  #pjDeck .pd-wait{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:8px;font-size:16px}
  #pjDeck .pd-wait[hidden]{display:none}
  #pjDeck .pd-wait .pd-av{width:28px;height:28px;font-size:14px}
  #pjDeck .pd-wait .k-btn{margin-left:auto}
  #pjDeck .pd-wait > span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  #pjDeck .pd-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 4px}
  #pjDeck .pd-act{display:grid;justify-items:center;align-content:center;gap:4px;min-height:68px;padding:8px 4px;border:0;border-radius:16px;background:var(--sp-wash);
    color:var(--sp-ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:transform .16s var(--sp-ease-out),background-color .15s ease}
  #pjDeck .pd-act:active{transform:scale(.96)}
  #pjDeck .pd-act svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  #pjDeck .pd-rec .pd-sec{margin-top:28px}
  #pjDeck .pd-rec .pd-sec .pd-n{font-weight:500}
  #pjDeck .pd-from{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;font-size:16px;color:var(--sp-grey)}

  /* messages */
  #pjDeck .pd-msgcard{display:grid;gap:14px;padding:14px;border-radius:18px;background:var(--sp-wash)}
  #pjDeck .pd-msgs{display:grid;gap:12px}
  #pjDeck .pd-msg{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:end;max-width:92%}
  #pjDeck .pd-msg .pd-av{width:32px;height:32px;font-size:14px}
  #pjDeck .pd-msg.is-mine{grid-template-columns:minmax(0,1fr);justify-self:end}
  #pjDeck .pd-bub{padding:10px 14px 12px;border-radius:18px 18px 18px 6px;background:var(--sp-bg)}
  #pjDeck .pd-msg.is-mine .pd-bub{border-radius:18px 18px 6px 18px;background:var(--sp-soft)}
  #pjDeck .pd-mw{display:block;font-size:14px;color:var(--sp-grey);margin-bottom:2px}
  #pjDeck .pd-bub p{margin:0;font-size:16px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
  #pjDeck .pd-bub .men{font-weight:600}
  #pjDeck .pd-none{margin:4px 0;font-size:16px;color:var(--sp-grey)}
  #pjDeck .pd-older{justify-self:center;min-height:44px}
  #pjDeck .pd-send{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:end;gap:8px;margin:0}
  #pjDeck .pd-send-in{display:block;width:100%;min-height:48px;max-height:120px;padding:12px 16px;border:1px solid transparent;border-radius:24px;background:var(--sp-bg);
    color:var(--sp-ink);font:400 16px/1.4 var(--sp-font);resize:none;outline:none;box-shadow:none;transition:border-color .15s ease}
  #pjDeck .pd-send-in::placeholder{color:var(--sp-grey);opacity:1}
  #pjDeck .pd-send-in:focus{border-color:var(--sp-line)}
  #pjDeck .pd-send-b{width:48px;min-height:48px;padding:0;transition:opacity .16s ease,transform .14s var(--sp-ease-out)}
  #pjDeck .pd-send-b svg{width:20px;height:20px}
  #pjDeck .pd-send-b:disabled{opacity:.4}

  /* people */
  #pjDeck .pd-whos{display:flex;flex-wrap:wrap;gap:8px}
  #pjDeck .pd-who{cursor:default;padding:0 16px 0 6px;min-height:44px;gap:8px;font-weight:500}
  #pjDeck .pd-who:active{transform:none}
  #pjDeck .pd-who .pd-av{width:32px;height:32px;font-size:14px}
  #pjDeck .pd-addwho{padding:0 14px 0 10px;color:var(--sp-ink)}
  #pjDeck .pd-addwho svg{width:18px;height:18px}

  /* files */
  #pjDeck .pd-fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #pjDeck .pd-file{position:relative;display:grid;gap:8px;align-content:start;min-width:0;padding:8px 8px 12px;border:0;border-radius:16px;background:var(--sp-wash);
    color:var(--sp-ink);font:inherit;text-align:left;cursor:pointer;transition:transform .16s var(--sp-ease-out)}
  #pjDeck .pd-file:active{transform:scale(.97)}
  #pjDeck .pd-fpic{display:grid;place-items:center;aspect-ratio:4/3;border-radius:10px;background:var(--sp-bg);overflow:hidden;color:var(--sp-grey);font-size:14px;font-weight:600}
  #pjDeck .pd-fpic img{width:100%;height:100%;object-fit:cover}
  #pjDeck .pd-fn{padding:0 4px;font-size:14px;font-weight:600;line-height:1.3}
  #pjDeck .pd-file > span:last-child{padding:0 4px;font-size:14px;color:var(--sp-grey)}
  #pjDeck .pd-addfile .pd-fpic{box-shadow:inset 0 0 0 1.5px var(--sp-line);background:none}
  #pjDeck .pd-addfile .pd-fpic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  #pjDeck .pd-addfile b{padding:0 4px;font-size:14px}
  #pjDeck .pd-file.is-loading .pd-fpic{opacity:.55}
  #pjDeck .pd-up{position:absolute;left:16px;right:16px;top:calc(8px + (100% - 66px) / 2);height:6px;border-radius:3px;background:var(--sp-soft);overflow:hidden}
  #pjDeck .pd-up i{display:block;width:0;height:100%;background:var(--sp-ink);transition:width .16s linear}

  /* details */
  #pjDeck .pd-facts{display:grid;gap:2px;padding:4px;border-radius:18px;background:var(--sp-wash)}
  #pjDeck .pd-fact{display:grid;grid-template-columns:116px minmax(0,1fr) 20px;align-items:center;gap:10px;min-height:56px;padding:6px 12px;border:0;border-radius:14px;
    background:none;color:var(--sp-ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .15s ease,transform .16s var(--sp-ease-out)}
  #pjDeck .pd-fact:active{transform:scale(.985);background:var(--sp-soft)}
  #pjDeck .pd-fact > span:first-child{font-size:15px;color:var(--sp-grey)}
  #pjDeck .pd-fact b{font-size:16px;font-weight:600;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  #pjDeck .pd-fact svg{width:18px;height:18px;fill:none;stroke:var(--sp-grey);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  #pjDeck .pd-see{padding:6px 4px 4px}
  #pjDeck .pd-see .pd-step-l{display:block;padding:6px 8px 8px}

  /* note, history, delete */
  #pjDeck .pd-note{position:relative}
  #pjDeck .pd-note .ck-area{min-height:96px;font-size:16px;background:var(--sp-bg)}
  #pjDeck .pd-saved{position:absolute;right:12px;bottom:10px;font-size:14px;color:var(--sp-ok,var(--tg-green-t));opacity:0}
  #pjDeck .pd-saved.is-on{animation:pd-saved 1.8s ease forwards}
  @keyframes pd-saved{0%{opacity:0;transform:translateY(4px)}12%,75%{opacity:1;transform:none}100%{opacity:0}}
  #pjDeck .pd-hist{display:grid}
  #pjDeck .pd-h{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0}
  #pjDeck .pd-h .pd-av{width:28px;height:28px;font-size:14px}
  #pjDeck .pd-ht{font-size:15px;line-height:1.4;color:var(--sp-ink);overflow-wrap:anywhere}
  #pjDeck .pd-ht b{font-weight:600}
  #pjDeck .pd-hw{font-size:14px;color:var(--sp-grey);white-space:nowrap;padding-top:1px}
  #pjDeck .pd-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s var(--sp-ease-out)}
  #pjDeck .pd-more > div{min-height:0;overflow:hidden}
  #pjDeck .pd-hist.is-open .pd-more{grid-template-rows:1fr}
  #pjDeck .pd-showall{justify-self:start;margin:4px 0 0 -10px;min-height:44px}
  #pjDeck .pd-del{width:100%;min-height:52px;margin-top:32px;color:var(--tg-red-t);font-size:16px}

  /* ── sheets from the bottom and the box in the middle (the kit's) ── */
  #pjDeck .pp-ov{z-index:400}
  #pjDeck .pp-ov.is-sheet .pp-box{max-height:88%;border-radius:24px 24px 0 0;padding-bottom:var(--sab,0px);will-change:transform}
  #pjDeck .pp-ov.is-sheet .pp-grab{height:28px}
  #pjDeck .pp-ov.is-sheet .pp-hd{cursor:grab;touch-action:none;padding:4px 20px 10px;align-items:center}
  #pjDeck .pp-t{font-size:24px;font-weight:700}
  #pjDeck .pp-bd{gap:16px;padding:4px 20px 24px}
  #pjDeck .pp-box{width:min(440px,100%)}
  #pjDeck .pp-x{width:44px;height:44px}
  #pjDeck .ck-in,#pjDeck .ck-area{font-size:16px}
  #pjDeck .ck-area{min-height:88px}
  #pjDeck .pd-ft{display:flex;gap:10px;align-items:center;padding:10px 20px calc(16px + var(--sab,0px))}
  #pjDeck .pd-wide{width:100%;min-height:52px}
  #pjDeck .pd-opts{display:grid;gap:2px;margin:0 -8px}
  #pjDeck .pd-opt{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;min-height:56px;padding:8px 12px;border:0;border-radius:14px;
    background:none;color:var(--sp-ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .15s ease,transform .16s var(--sp-ease-out)}
  #pjDeck .pd-opt.has-av{grid-template-columns:44px minmax(0,1fr) auto}
  #pjDeck .pd-opt:active{transform:scale(.985);background:var(--sp-soft)}
  #pjDeck .pd-opt b{font-size:16px;font-weight:600;min-width:0;overflow-wrap:anywhere}
  #pjDeck .pd-opt .pd-s{grid-column:1;font-size:14px;color:var(--sp-grey)}
  #pjDeck .pd-opt.has-av .pd-s{grid-column:2}
  #pjDeck .pd-opt .pd-tk2{grid-row:1 / span 2;grid-column:-2;width:22px;height:22px;color:var(--sp-red);opacity:0;transform:scale(.6);
    transition:opacity .16s ease,transform .2s var(--sp-ease-out);fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
  #pjDeck .pd-opt[aria-checked="true"] .pd-tk2{opacity:1;transform:none}
  #pjDeck .pd-opt .pd-av{grid-row:1 / span 2}
  #pjDeck .pd-opt:focus-visible{outline:2px solid var(--sp-red);outline-offset:-2px}
  #pjDeck .pd-other{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
  #pjDeck .pd-qd{display:flex;flex-wrap:wrap;gap:8px}
  #pjDeck .pd-dp{min-height:420px}
  #pjDeck .dp-d{width:44px;height:44px;font-size:16px}
  #pjDeck .dp-nav{width:44px;height:44px}

  /* the New sheet */
  #pjDeck .pd-new .pp-bd{gap:14px}
  #pjDeck .pd-kinds .tb-tab{height:44px;font-size:16px}
  #pjDeck .pd-new .ck-in{min-height:52px;font-size:17px;font-weight:600;background:var(--sp-bg)}
  #pjDeck .pd-new .ck-area{min-height:88px;font-size:16px;background:var(--sp-bg)}
  #pjDeck .pd-nopts{display:flex;flex-wrap:wrap;gap:8px}
  #pjDeck .pd-nopts .k-btn{min-height:44px;padding:0 14px 0 8px;font-size:15px;font-weight:500;gap:8px}
  #pjDeck .pd-nopts .k-btn.no-av{padding-left:14px}
  #pjDeck .pd-nopts .k-btn .pd-av{width:30px;height:30px;font-size:14px}
  #pjDeck .pd-nopts .k-btn svg{width:16px;height:16px}
  #pjDeck .pd-new .pd-ft .k-red{flex:1;min-height:52px;font-size:16px}
  #pjDeck .pd-new .pd-ft .k-ghost{min-height:52px}
  #pjDeck .pd-new .k-red:disabled{opacity:.45}

  /* the Inbox sheet */
  #pjDeck .pd-inbox .pp-box{height:86%;max-height:86%}
  #pjDeck .pd-inbox .pp-bd{padding:0 12px 24px;gap:0}
  #pjDeck .pd-inbox .pd-opts{align-content:start}
  #pjDeck .pd-irow .pd-it{font-size:16px;font-weight:700;line-height:1.3}
  #pjDeck .pd-irow{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:4px 12px;width:100%;min-height:68px;padding:10px 12px;border:0;
    border-radius:14px;background:none;color:var(--sp-ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .15s ease,transform .16s var(--sp-ease-out)}
  #pjDeck .pd-irow:active{transform:scale(.985);background:var(--sp-soft)}
  #pjDeck .pd-irow .pd-m b{font-size:16px;font-weight:700}
  #pjDeck .pd-irow .pd-s{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;color:var(--sp-ink);overflow-wrap:anywhere}
  #pjDeck .pd-irow .pd-k{font-size:14px;color:var(--sp-grey)}
  #pjDeck .pd-irow .pd-r{display:grid;justify-items:end;gap:8px}
  #pjDeck .pd-dot{width:10px;height:10px;border-radius:50%;background:var(--sp-red-fill);transition:opacity .16s ease,scale .2s var(--sp-ease-out)}
  #pjDeck .pd-dot.is-gone{opacity:0;scale:.3}
  #pjDeck .pd-irow.is-read .pd-s{color:var(--sp-grey)}
  #pjDeck .pd-ask .pp-box,#pjDeck .pd-askbox .pp-box{width:min(360px,100%)}
  #pjDeck .pd-askp{margin:0;font-size:16px;line-height:1.45}
  #pjDeck .pd-askbox .pp-ft .k-btn{flex:1;min-height:48px;font-size:16px}

  @media (prefers-reduced-motion:reduce){
    #pjDeck .pd-thumb,#pjDeck .pd-thumb.snap,#pjDeck .pd-seg button,#pjDeck .pd-more,#pjDeck .pd-fold,#pjDeck .pd-ctx,#pjDeck .pd-mini{transition:none}}
}
