/* ==========================================================================
   Portal Assistant 02 — shared theme, app shell & components
   Every page uses the same shell: full-width header (brand on the left),
   sidebar under it, page content in a white panel (.pa-main). Copy the
   header + sidebar markup from v02/home/ and load js/app-02.js in <head>
   (it applies the saved color palette before first paint and renders the
   Style selector).
   Load after tokens.css and before the page stylesheet (home-02.css,
   requests-02.css). Do not load together with components.css — class names
   overlap.
   ========================================================================== *//* ---------- Color palettes ----------
   Calm, low-saturation palettes for lawyers, pharmacies and middle-aged
   users. <html data-palette="…"> picks one: navy (default), teal or sage. Palettes only set
   raw --pa-p-* values; components use the --pa-brand-* tokens computed below,
   which also apply the intensity (data-tone). Any element with data-palette
   re-scopes the colors — the Style selector swatches rely on that. Each
   palette keeps 600/700 at >= 4.5:1 on white since they carry text and
   button labels. Palette colors are the brand only: no status takes a palette color, and no
   palette color stands for a status (see Status pills and Badges below, fixed in every palette). */


[data-palette="teal"] {/* Teal Clinic — pharmacy, clean & reassuring */          
  --pa-p-25: #F4FAFB;/* row hover / selected row */        
  --pa-p-50: #E7F5F7;/* icon tiles, soft logos */        
  --pa-p-100: #D2EDF1;/* active nav, expanded work card */       
  --pa-p-200: #B9E1E7;/* expanded card border, table frame */       
  --pa-p-400: #58B6C2;/* solid logos */       
  --pa-p-500: #2A9DAB;/* icons, selected chip, current page */       
  --pa-p-600: #177F8C;/* selected tab text, current page */       
  --pa-p-700: #0F6D7A;/* primary buttons, active nav text */       
  --pa-p-900: #0B3640;/* headings on tinted surfaces */       
  --pa-p-shell: #07323B;/* Dark menu: what Deepest used to give, white text 13.7:1 */     
  --pa-p-bg: #F2F6F8;/* shell behind the content panel */          
  --pa-p-workspace: #F5F7F8;/* a sunken work area: white cards lift off it with a soft shadow */   
  --pa-line: #DDE5E9;
  --pa-line-soft: #EBF0F2;
  --pa-chip-bg: #EEF2F4;
  --pa-p-hero-1: #EEF8FA; --pa-p-hero-2: #E0F2F5; --pa-p-hero-3: #CBE9EE;
}

/* The default: :where() keeps it under [data-palette], so a page or swatch that names another palette gets it */
:where(:root),
[data-palette="navy"] {/* Navy Counsel — lawyer, trustworthy, steady */          
  --pa-p-25: #F5F8FC;
  --pa-p-50: #EAF0F8;
  --pa-p-100: #D7E2F1;
  --pa-p-200: #BCCDE6;
  --pa-p-400: #7193C2;
  --pa-p-500: #4069A8;
  --pa-p-600: #30568F;
  --pa-p-700: #244575;
  --pa-p-900: #152A4A;
  --pa-p-shell: #10233F;/* Dark menu: what Deepest used to give, white text 15.7:1 */     
  --pa-p-bg: #F2F5F9;
  --pa-p-workspace: #F6F7FA;
  --pa-line: #DCE3EC;
  --pa-line-soft: #EAEFF5;
  --pa-chip-bg: #EDF1F6;
  --pa-p-hero-1: #F1F5FB; --pa-p-hero-2: #E3EBF6; --pa-p-hero-3: #CDDAEE;
}/* Navy Sage — Navy #244575 (core brand), Sage #719382 (healing accent), Mist #D7E2D8, Canvas
   #F2F5F2 and Text #263448. Neutral-led: the work area stays white on the Canvas frame, and the
   brand shows only where it matters. Navy takes everything you press or that marks a choice
   (buttons, the current page, icons, focus, checked boxes), so a choice never reads as a status;
   Sage is the accent only (400: accent lines, quiet icons) and never stands for Success, which
   keeps its own --pa-status-approved. Mist and its lighter steps are the tints. Deep Teal
   (--pa-p-industry) tells the user's own pharmacy apart from partners. */


[data-palette="sage"] {
  --pa-p-25: #F4F7F4;/* row hover / selected row */            
  --pa-p-50: #E9F0EA;/* icon tiles, soft logos */            
  --pa-p-100: #D7E2D8;/* Mist · active nav, expanded work card: brand text 6.2:1 on it */           
  --pa-p-200: #BCCFC0;/* expanded card border, table frame */           
  --pa-p-400: #719382;/* Sage · the accent: 3.4:1 on white */           
  --pa-p-500: #3F6599;/* icons, focus, checked boxes: navy, 5.9:1 */           
  --pa-p-600: #2B4F82;/* brand text: 8.3:1 on white */           
  --pa-p-700: #244575;/* Navy · buttons: white text 9.6:1 */           
  --pa-p-900: #1C2B41;/* headings on tints */           
  --pa-p-shell: #263448;/* Text #263448 · Dark menu, darker than the buttons: white text 12.6:1 */         
  --pa-p-bg: #F2F5F2;/* Canvas */            
  --pa-p-workspace: #F5F7F5;/* Soft Neutral work area */     
  --pa-p-industry: #2D6466;/* Deep Teal · the user's own pharmacy: 5.8:1 on its tile */      
  --pa-line: #DCE3DD;
  --pa-line-soft: #EAEFEA;
  --pa-chip-bg: #EDF1ED;
  --pa-p-hero-1: #F1F5F1; --pa-p-hero-2: #E2EBE3; --pa-p-hero-3: #C3D5C7;
}/* ---------- Intensity ----------
   <html data-tone="-2…2"> shifts the active palette. Lighter washes tints,
   surfaces and icons toward white but leaves 600–900 alone, so text and
   buttons keep their contrast. Deeper enriches tints and darkens accents. */


:root {
  --tone-wash: 0%;/* tints, surfaces → white   (lighter) */   
  --tone-glow: 0%;/* 400/500 accents → white   (lighter) */   
  --tone-tint: 0%;/* tints, surfaces → palette (deeper)  */   
  --tone-deep: 0%;/* 400–900 accents → black   (deeper)  */   
}
:root[data-tone="-2"] { --tone-wash: 65%; --tone-glow: 24%; }
:root[data-tone="-1"] { --tone-wash: 35%; --tone-glow: 12%; }
:root[data-tone="1"]  { --tone-tint: 9%;  --tone-deep: 9%; }
:root[data-tone="2"]  { --tone-tint: 18%; --tone-deep: 18%; }

:root,
[data-palette] {
  --pa-brand-25: color-mix(in oklab, color-mix(in oklab, var(--pa-p-25), var(--pa-p-200) var(--tone-tint)), white var(--tone-wash));
  --pa-brand-50: color-mix(in oklab, color-mix(in oklab, var(--pa-p-50), var(--pa-p-200) var(--tone-tint)), white var(--tone-wash));
  --pa-brand-100: color-mix(in oklab, color-mix(in oklab, var(--pa-p-100), var(--pa-p-400) var(--tone-tint)), white var(--tone-wash));
  --pa-brand-200: color-mix(in oklab, color-mix(in oklab, var(--pa-p-200), var(--pa-p-400) var(--tone-tint)), white var(--tone-wash));
  --pa-brand-400: color-mix(in oklab, color-mix(in oklab, var(--pa-p-400), white var(--tone-glow)), black var(--tone-deep));
  --pa-brand-500: color-mix(in oklab, color-mix(in oklab, var(--pa-p-500), white var(--tone-glow)), black var(--tone-deep));
  --pa-brand-600: color-mix(in oklab, var(--pa-p-600), black var(--tone-deep));
  --pa-brand-700: color-mix(in oklab, var(--pa-p-700), black var(--tone-deep));
  --pa-brand-900: color-mix(in oklab, var(--pa-p-900), black var(--tone-deep));
  --pa-app-bg: color-mix(in oklab, color-mix(in oklab, var(--pa-p-bg), var(--pa-p-200) var(--tone-tint)), white var(--tone-wash));
  --pa-workspace: color-mix(in oklab, var(--pa-p-workspace), white var(--tone-wash));
  --pa-hero-1: color-mix(in oklab, color-mix(in oklab, var(--pa-p-hero-1), var(--pa-p-200) var(--tone-tint)), white var(--tone-wash));
  --pa-hero-2: color-mix(in oklab, color-mix(in oklab, var(--pa-p-hero-2), var(--pa-p-200) var(--tone-tint)), white var(--tone-wash));
  --pa-hero-3: color-mix(in oklab, color-mix(in oklab, var(--pa-p-hero-3), var(--pa-p-400) var(--tone-tint)), white var(--tone-wash));/* Industry accent: a palette may give the user's own pharmacy its own color (Navy Sage: Deep
     Teal); the others keep their brand color for it */
  
  --pa-industry: color-mix(in oklab, var(--pa-p-industry, var(--pa-p-600)), black var(--tone-deep));
}/* ---------- Fonts ----------
   The product's type, fixed, one family: IBM Plex Sans for text, IBM Plex Mono for identifiers and
   values (.pa-mono: case and request numbers, phone numbers, dates as they are typed). Every page
   links both from Google Fonts (weights 400 to 700 and 400 to 600); both are under the SIL Open
   Font License 1.1. */


:root { --pa-font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif; --pa-font-heading: var(--pa-font-sans); --pa-font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; }

:root {
  --pa-violet-500: #6E59D9;
  --pa-surface: #FFFFFF;/* Text colors: neutral greys with no tint, so words read black on every palette. The palette
     colors backgrounds (buttons, the chosen menu item and tab), not text; links in running text
     keep --pa-link. Anything that carries information stays >= 4.5:1 on the app background and
     on brand-100 tints, so use ink-muted at the lightest. ink-subtle is for decoration and
     disabled states only. */

  
  --pa-ink-strong: #1A1A1A;
  --pa-ink: #262626;
  --pa-ink-soft: #404040;
  --pa-ink-muted: #5C5C5C;/* 6.1:1 on app bg, 5.4:1 on brand-100 */       
  --pa-ink-placeholder: #6B6B6B;/* inputs sit on white: 5.3:1 */ 
  --pa-ink-subtle: #A3A3A3;
  /* The border of a control you type in or press (field, select, checkbox, outline and secondary button): 3:1 or more
     on white (3.6), the workspace (3.4), an unread row (3.3) and brand-50 (3.2); --pa-line stays for dividers and
     cards (audit of 11/11/2026, round 5: field borders were 1.2–1.6:1) */
  --pa-control-line: #7E8892;
  --pa-priority-high: var(--pa-status-pending);/* High priority: the icon of .pa-priority (css/list-02.css), never a tint behind a label */
  --pa-link: #1565C9;/* overrides tokens.css #1877F2 (4.2:1) — 5.6:1 *//* ---------- Status pills ---------- (text >= 5:1 on its own tint) */            

  
  --pa-status-open: #8A5A00;      --pa-status-open-bg: #FFF5D6;
  --pa-status-progress: #17679A;  --pa-status-progress-bg: #E4F3FB;
  --pa-status-pending: #A8460F;   --pa-status-pending-bg: #FFECE1;
  --pa-status-approved: #2D6E18;  --pa-status-approved-bg: #E9F7E1;
  --pa-status-cancelled: #2C3740; --pa-status-cancelled-bg: #ECEFF2;/* Solid fills for graphics only (icon tiles, accent bars), never for text: brighter than the text
     colors above so orange and yellow look orange and yellow. Pending: white icon 3.6:1. Open:
     a dark icon, 7.5:1 (white on a yellow this bright would not read). */
  
  --pa-status-pending-solid: #E8590C;
  --pa-status-open-solid: #F2B100;   --pa-status-open-on: #3A2800;/* ---------- Badges ---------- fixed by what they mean, the same in every palette and
     intensity, so "New" or an unread count never changes color with the Style selector.
     New: something arrived that nobody opened yet. Alert: unread items and the notification
     dot (#C0102E, the product's error red). Count: a plain number (tab totals, filters in use);
     the strong one marks the open tab. */

  
  --pa-badge-new: #15803D;/* white text 5.0:1 */             
  --pa-badge-new-bg: #E7F5EC;/* its tint, for icons: 4.5:1 */          
  --pa-badge-alert: #B12537;/* new and unread (badges, counts, dots): a red between the softer #A83540 and the error red, oklch(0.50 0.175 20), chosen 24/10/2026; white numbers 6.6:1 */
  --pa-danger-strong: #C0102E;/* errors and what went wrong keep the product's strong red: white text 6.0:1 */           
  --pa-badge-count: #EDF0F3;/* with --pa-badge-count-ink 8.9:1 */           
  --pa-badge-count-ink: #404040;
  --pa-badge-count-strong: #3B4752;/* white text 9.4:1 */
  /* ---------- Star ---------- a starred request (Starred, asked 12/11/2026): the one yellow that doesn't mean
     waiting, as a star is gold in every mail app. A bright fill, oklch(0.82 0.17 82), inside a deeper edge of the
     same hue, oklch(0.60 0.14 80): the fill alone is 1.8:1 on white, the edge is 3.1:1 or more on every row colour
     (white 4.0, unread 3.5, selected 3.1) and 3.9:1 on the navy frame. Fixed in every palette, like the badges. */
  --pa-star: #FAB700;
  --pa-star-edge: #AB7400;
  /* ---------- Logo ---------- the mint of the Portal Assistant bee (header and sign-in), fixed in every
     palette and intensity like the badges. For the logo and the few touches that echo it on the dark
     frame (a tile, a short line of text), never for status, buttons or links. As text on the navy frame
     8.1:1. A tile with a white icon takes the same mint made deeper (--pa-logo-strong, oklch 0.58, same
     hue): white on it 4.1:1, and the tile 3.1:1 against a card on the dark frame (white on the plain mint
     would be 1.9:1). */
  --pa-logo: #3DD0B0;   --pa-logo-strong: #268D76;/* ---------- Kinds of record ---------- one color per kind wherever its icon shows (Home quick
     actions, record icons in lists and on Home), fixed in every palette like the badges. Requests
     take the product's request blue (each request type keeps its own color, tokens.css); a case is
     violet, a client rose, a business slate. Icon on its tint 5.3:1 or more, white on it 6.1:1 or more. */    

  
  --pa-kind-request: #1F5FBF;   --pa-kind-request-bg: #E8F0FC;
  --pa-kind-case: #5E43B8;      --pa-kind-case-bg: #F1ECFC;
  --pa-kind-client: #A3266B;    --pa-kind-client-bg: #FBE9F2;
  --pa-kind-business: #3B4752;  --pa-kind-business-bg: #ECEFF2;/* ---------- Chart outcomes ---------- (Insights reports: qualified / unqualified / pending.
     Checked with the dataviz validator against the status colors: apart for
     colour-blind readers too. Pending stays this violet in every palette.) */

  
  --pa-chart-qualified: var(--pa-status-progress);
  --pa-chart-unqualified: var(--pa-status-pending);
  --pa-chart-pending: #6E59D9;
  /* How long a request has waited (Aging Request Report), youngest to oldest, as in the Insights
     designs: gray, then the status yellow, orange and the error red. Graphics only, each mark
     with its number and the age in words, since yellow and gray are under 3:1 on white. */
  --pa-chart-age-1: var(--pa-ink-subtle);
  --pa-chart-age-2: var(--pa-status-open-solid);
  --pa-chart-age-3: var(--pa-status-pending-solid);
  --pa-chart-age-4: #C0102E;

  --pa-avatar-initials: #F2B01E;
  --pa-avatar-initials-ink: #4A3300;/* white on the amber was 1.9:1 *//* Derived from the active palette */ 

  
  --pa-hover-tint: color-mix(in srgb, var(--pa-brand-500) 9%, transparent);
  /* Pointing at something that has a brand-tinted "current" next to it (a sub-nav item, a page number): grey, so the
     hover never reads as the current one (audit of 12/11/2026, round 5: hover-tint and brand-50 were ΔE 0.01 apart) */
  --pa-hover-neutral: color-mix(in srgb, var(--pa-ink-strong) 6%, transparent);/* A card on the sunken workspace: no outline, a faint ring and a wide, very soft shadow */
  
  --pa-shadow-card: 0 0 0 1px rgb(18 38 63 / 0.05), 0 12px 24px rgb(18 38 63 / 0.04);
  --pa-shadow-lift: 0 6px 20px 0 color-mix(in srgb, var(--pa-brand-700) 9%, transparent);
  --pa-focus-ring: 0 0 0 3px color-mix(in srgb, var(--pa-brand-500) 20%, transparent);/* ---------- Layout ---------- */

  
  --pa-header-h: 56px;/* the top bar: the logo, search, notifications and the account *//* Corners in three small steps (overrides tokens.css on the 02 pages). Rounder shapes read as
     casual to the doctors and lawyers who use this. Avatars stay round, and pill-shaped parts
     (tags, counts, status, the profile button) keep --pa-radius-pill from tokens.css. */     

  
  --pa-radius-md: 6px;/* buttons, inputs, tabs, menu items, icon tiles */     
  --pa-radius-lg: 8px;/* cards, panels, popovers, dialogs */     
  --pa-radius-panel: 12px;/* top corners of the content panel */ 
  --pa-style-bar-space: 0px;/* room kept free under the page for the Style selector *//* Where bars that stay at the bottom of the screen sit (form footer, list footer, action bar):
     above the Style selector, or clear of the round Style and Guidelines buttons when it's hidden */     
  
  --pa-dock-bottom: calc(var(--pa-style-bar-space) + 8px);
}/* ---------- Base ---------- */


*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

/* The frame stays put (macOS trackpads, iOS). Scrolling past the page's top or bottom bounced the whole
   page, header and menu with it, and a sideways swipe at the end of a row went Back. The page doesn't
   bounce; an area that scrolls on its own keeps the scroll at its ends instead of moving the page behind
   it (menus, lists, panels) or leaving it (rows that scroll sideways). An area with nothing to scroll
   still passes the scroll to the page. */
html, body { overscroll-behavior: none; }
:is(.pa-sidebar, .pa-subnav, .pa-popover, .pa-lookup__list, .pa-listbox, .pa-modal__body, .pa-side-panel__body,
  .pa-menu__section--scroll, .pa-popover--scroll, .pa-hpanel__body, .pa-hcompose__mentions, .pa-auth__proto-pop, .pa-hsearch__list) { overscroll-behavior-y: contain; }
:is(.pa-list-scroll, .pa-tabs, .pa-hs__chips, .pa-r3-pins__list, .pa-code-block) { overscroll-behavior-x: contain; }

body {
  font-family: var(--pa-font-sans);
  font-size: var(--pa-text-base);
  line-height: var(--pa-leading-20);/* the prototype's body: 400 14px/20px */
  color: var(--pa-ink);
  background: var(--pa-app-bg);
  -webkit-font-smoothing: antialiased;
}
/* Table headers are semibold, as the prototype's (600), not the browser's bold */
th { font-weight: var(--pa-weight-semibold); }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pa-brand-500); outline-offset: 2px; }

.ti { font-size: var(--pa-icon-md); line-height: 1; }/* ---------- Breadcrumb ---------- */


.pa-crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--pa-text-13); color: var(--pa-ink-muted); line-height: var(--pa-leading-18); font-weight: var(--pa-weight-regular); }/* min-height + negative margin: a 40px target without a taller breadcrumb row */

.pa-crumbs a { display: inline-flex; align-items: center; gap: 4px; min-height: var(--pa-control-md); margin: -10px 0; color: var(--pa-ink-soft); }
.pa-crumbs a:hover { color: var(--pa-ink-strong); text-decoration: underline; }
.pa-crumbs .ti { font-size: var(--pa-icon-sm); }
.pa-crumbs [aria-current] { color: var(--pa-ink-strong); font-weight: var(--pa-weight-medium); }

.pa-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}/* Identifiers and values: request/case numbers, dates, phone numbers */


.pa-mono { font-family: var(--pa-font-mono); font-variant-numeric: tabular-nums; }/* ---------- App shell ---------- */


.pa-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--pa-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--pa-header-h) 1fr;
  grid-template-areas: "header header" "sidebar main";
}

.pa-main {
  --pa-main-gap: var(--pa-space-5);/* a page that spaces its sections differently sets this, not gap *//* The work area's margins: above the page, and at its sides. A set of pages that wants more room sets
     these, not padding, so what reaches the panel's edges (the corner strip, a band, .pa-dmini) follows */ 
  
  --pa-main-pad-top: var(--pa-space-4);
  --pa-main-pad-x: var(--pa-space-4);
  /* Each side can differ (the 03 set: more room next to the menu); left and right follow --pa-main-pad-x, and the
     bottom keeps clear of the round buttons and the bars at the foot, unless a set of pages says otherwise */
  --pa-main-pad-left: var(--pa-main-pad-x);
  --pa-main-pad-right: var(--pa-main-pad-x);
  --pa-main-pad-bottom: max(var(--pa-space-8) + var(--pa-style-bar-space), var(--pa-dock-bottom) + var(--pa-space-2));
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pa-main-gap);/* At the end of the page nothing stays under the round buttons, and a list's footer settles back in place */
  
  padding: var(--pa-main-pad-top) var(--pa-main-pad-right) var(--pa-main-pad-bottom) var(--pa-main-pad-left);
  background: var(--pa-surface);
  border-top-left-radius: var(--pa-radius-panel);/* Above the menu, with a soft shadow on its left edge, so the menu tabs read as tucked
     under the work area instead of glued to it. Stays under the sticky header. */
  
  position: relative;
  z-index: 31;
  box-shadow: var(--pa-main-shadow);
}/* The panel's round corner stays while the page scrolls under the header: a strip as tall as the
   corner, stuck under the header, paints the frame's color outside the curve (both top corners
   where the panel spans the screen). Like .pa-dmini it takes no room in the page (its height and the
   gap after it are given back), and it takes no clicks. */

.pa-main::before {
  --pa-corner: var(--pa-app-bg);
  --pa-corner-fill: transparent calc(var(--pa-radius-panel) - 0.5px), var(--pa-corner) var(--pa-radius-panel);
  content: "";
  position: sticky; top: var(--pa-header-h); z-index: 35;
  flex: none;
  height: var(--pa-radius-panel);
  margin: calc(-1 * var(--pa-main-pad-top)) calc(-1 * var(--pa-main-pad-right)) calc(var(--pa-main-pad-top) - var(--pa-radius-panel) - var(--pa-main-gap)) calc(-1 * var(--pa-main-pad-left));
  background: radial-gradient(circle at 100% 100%, var(--pa-corner-fill)) left top / var(--pa-radius-panel) var(--pa-radius-panel) no-repeat;
  pointer-events: none;
}
@media (max-width: 991px) {
  .pa-main::before {
    background:
      radial-gradient(circle at 100% 100%, var(--pa-corner-fill)) left top / var(--pa-radius-panel) var(--pa-radius-panel) no-repeat,
      radial-gradient(circle at 0 100%, var(--pa-corner-fill)) right top / var(--pa-radius-panel) var(--pa-radius-panel) no-repeat;
  }
}/* A work area made of cards (Home) sits on a very light neutral grey, lighter than the frame, and
   its white cards lift off it with --pa-shadow-card instead of an outline (frame → workspace →
   card), so the page has no hard lines. Being tried on Home first. *//* --pa-panel: the work area's color, so the current menu item on the Dark menu runs into it */


:root { --pa-panel: var(--pa-surface); }
:root:has(.pa-main--sunken) { --pa-panel: var(--pa-workspace); }
.pa-main--sunken { background: var(--pa-panel); }/* The work area's grid (tokens.css): 12 columns, 8 on a tablet, 4 on a phone; closer gutters from 760px */

@media (max-width: 991px) { :root { --pa-grid-columns: 8; } }
@media (max-width: 760px) { :root { --pa-grid-gutter: 16px; } }
@media (max-width: 640px) { :root { --pa-grid-columns: 4; } }/* ---------- Header ---------- */


.pa-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 32;/* the work area (31) scrolls under it */ 
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  padding: 0 var(--pa-space-6) 0 var(--pa-space-4);
  background: var(--pa-app-bg);
}/* The product logo: the mark (img/brand/portal-assistant-mark.svg) and the name, set in the product font. */


.pa-brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; border-radius: var(--pa-radius-md); color: var(--pa-ink-strong); }
.pa-brand__mark { flex: none; display: block; width: 28px; height: 28px; }
.pa-brand__word {
  font-family: var(--pa-font-sans);
  font-size: var(--pa-text-16); font-weight: var(--pa-weight-semibold); line-height: 22px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.pa-brand__word b { font-weight: inherit; }/* The older lockup (business tile, business name, product name), kept for the examples in the docs */

.pa-brand__logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--pa-radius-full);
  display: grid;
  place-items: center;
  background: var(--pa-surface);
  box-shadow: 0 0 0 1px var(--pa-line);
  color: var(--pa-brand-600);
}
.pa-brand__logo .ti { font-size: var(--pa-icon-lg); }
.pa-brand__text { min-width: 0; }
.pa-brand__name {
  font-size: var(--pa-text-16);
  font-weight: var(--pa-weight-medium);
  line-height: var(--pa-leading-24);
  color: var(--pa-ink-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pa-brand__sub { font-size: var(--pa-text-12); line-height: var(--pa-leading-16); color: var(--pa-ink-muted); }

.pa-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--pa-space-3); }/* ---------- Header controls ---------- */


.pa-icon-btn {
  position: relative;
  flex: none;
  width: var(--pa-control-md); height: var(--pa-control-md); padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--pa-radius-md);
  background: none; color: var(--pa-ink);
  transition: background var(--pa-duration) var(--pa-ease);
}/* Something new is waiting (notifications): the alert badge color, ringed so it stays clear on
   any header, light or dark */

.pa-badge-dot { position: absolute; top: 7px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--pa-badge-alert); box-shadow: 0 0 0 2px var(--pa-surface); pointer-events: none; }
.pa-icon-btn:hover { background: var(--pa-hover-tint); }
.pa-icon-btn .ti { font-size: var(--pa-icon-md); }/* In the top bar the icons are a size smaller; the buttons keep the header's 40px (--pa-control-lg) */

.pa-header .pa-icon-btn .ti { font-size: var(--pa-icon-lg); }
.pa-header .pa-icon-btn { width: var(--pa-control-lg); height: var(--pa-control-lg); }
.pa-menu-btn { display: none; }/* The account: the avatar and the first name. The whole name and the business are in the button's
   accessible name (aria-label), which still starts from the name people see. */


.pa-user {
  display: inline-flex; align-items: center; gap: var(--pa-space-2);
  height: 36px; margin-left: var(--pa-space-1); padding: 4px 10px 4px 4px;
  border: 0; border-radius: var(--pa-radius-pill);
  background: var(--pa-surface);
  font-size: var(--pa-text-14); line-height: var(--pa-leading-20); color: var(--pa-ink-strong);
  box-shadow: 0 0 0 1px var(--pa-line-soft);
}
.pa-user .pa-avatar { width: 28px; height: 28px; font-size: var(--pa-text-12); }
.pa-user__name { font-size: var(--pa-text-14); font-weight: var(--pa-weight-medium); line-height: var(--pa-leading-20); white-space: nowrap; }
.pa-user > .ti { font-size: var(--pa-icon-md); color: var(--pa-ink-muted); }/* ---------- Popup and menu ----------
   .pa-popover under its button inside .pa-popover-wrap, opened by PaOverlay.popup (js/overlay-02.js),
   which flips it above or lets it scroll when the window is short. .pa-menu lists actions in it. */


.pa-popover-wrap { position: relative; }
.pa-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  min-width: 240px;
  max-width: min(360px, calc(100vw - 16px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--pa-space-2);
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-surface);
  box-shadow: var(--pa-shadow-dropdown);
}
.pa-popover[hidden] { display: none; }
.pa-popover__foot { display: flex; justify-content: flex-end; margin-top: var(--pa-space-2); padding-top: var(--pa-space-2); border-top: 1px solid var(--pa-line-soft); }/* Bottom sheet: what a popup becomes on a phone or a short window when it doesn't fit whole
   (PaOverlay adds pa-popover--sheet and shows it in the top layer, over the scrim) */


.pa-popover.pa-popover--sheet {
  position: fixed; inset: auto 0 0 0; z-index: auto;
  width: min(560px, 100%); min-width: 0; max-width: none; max-height: min(85dvh, calc(100dvh - 48px));
  margin: 0 auto; padding: 0 var(--pa-space-3) calc(var(--pa-space-4) + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; border-bottom: 0;
  color: var(--pa-ink); box-shadow: 0 -12px 32px rgb(0 0 0 / 0.18);

}
.pa-popover--sheet::backdrop { background: var(--pa-scrim); }
.pa-popover.pa-popover--sheet:not([hidden]) { transform-origin: bottom center; animation: pa-sheet-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }
@keyframes pa-sheet-in { from { opacity: 0; transform: translateY(32px); } }
.pa-sheet__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--pa-space-2); margin: 0 calc(-1 * var(--pa-space-3)) var(--pa-space-2); padding: 12px var(--pa-space-3) 8px var(--pa-space-4); border-bottom: 1px solid var(--pa-line-soft); background: var(--pa-surface); }
.pa-sheet__title { flex: 1; margin: 0; font-size: var(--pa-text-md); line-height: var(--pa-leading-24); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-strong); }
.pa-popover--sheet .pa-menu button { min-height: 48px; }

.pa-menu { list-style: none; margin: 0; padding: 0; }
.pa-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: var(--pa-item-height); padding: 0 var(--pa-space-3);
  border: 0; border-radius: var(--pa-radius-md);
  background: none; color: var(--pa-ink); font-size: var(--pa-text-14); text-align: left; line-height: var(--pa-leading-20); font-weight: var(--pa-weight-regular); }
.pa-menu button:hover { background: var(--pa-brand-50); }
.pa-menu button[aria-disabled="true"] { color: var(--pa-ink-muted); cursor: not-allowed; }
.pa-menu button[aria-disabled="true"]:hover { background: none; }
.pa-menu .ti { color: var(--pa-ink-soft); }
/* A choice inside a menu (Rows in a list's More menu, Text size in the account menu): its label,
   then the options as a segmented control. Choosing keeps the menu open, so the change shows at once */
.pa-menu__choice { display: flex; align-items: center; justify-content: space-between; gap: var(--pa-space-2); min-height: 40px; padding-left: var(--pa-space-3); }
.pa-menu__choice > span:first-child { display: inline-flex; align-items: center; gap: 10px; font-size: var(--pa-text-14); line-height: var(--pa-leading-20); color: var(--pa-ink); white-space: nowrap; }
.pa-menu .pa-menu__choice .pa-seg button { width: auto; height: 32px; min-height: 0; justify-content: center; padding: 0 var(--pa-space-3); }
.pa-menu .pa-menu__choice .pa-seg button:hover { background: none; }
.pa-menu__choice .pa-seg button[aria-pressed="true"] { color: var(--pa-ink-strong); }
.pa-menu__choice .pa-seg:not(.has-thumb) button[aria-pressed="true"] { background: var(--pa-surface); box-shadow: 0 0 0 1px var(--pa-line); }
.pa-menu__label { margin: 0; padding: 10px var(--pa-space-3) 4px; font-size: var(--pa-text-12); line-height: var(--pa-leading-16); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-muted); }
.pa-menu li + li:has(> .pa-menu__label) { margin-top: 4px; border-top: 1px solid var(--pa-line-soft); }
/* A separator already drew the line above a heading: no second one (12/11/2026) */
.pa-menu li:is([role="separator"], .pa-hmenu__sep, .pa-umenu__sep) + li:has(> .pa-menu__label) { margin-top: 0; border-top: 0; }/* A group heading inside a menu's options (the step over its statuses) */

.pa-menu__group { margin: 0; padding: 8px var(--pa-space-3) 2px; font-size: var(--pa-text-12); line-height: var(--pa-leading-16); color: var(--pa-ink-muted); }
.pa-menu__note { margin: 0; padding: 2px var(--pa-space-3) 8px; font-size: var(--pa-text-12); color: var(--pa-ink-soft); line-height: var(--pa-leading-16); font-weight: var(--pa-weight-regular); }/* ---------- Sidebar ---------- */


.pa-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: var(--pa-header-h);
  z-index: 30;
  height: calc(100vh - var(--pa-header-h));
  display: flex;
  flex-direction: column;/* Top: the first tab starts below the work area's 20px corner, so it meets a straight edge.
     Bottom: the footer stays clear of the Style bar. */
  
  padding: var(--pa-space-5) 0 calc(var(--pa-space-4) + var(--pa-style-bar-space)) var(--pa-space-3);
  overflow-y: auto;
  overflow-x: hidden;/* no sideways scrollbar while the menu narrows or widens */ 
  background: var(--pa-app-bg);/* On a phone it slides in (and out, a little quicker to start) */
  
  transition: transform var(--pa-duration-long) var(--pa-ease-exit);
}

.pa-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pa-nav--footer { margin-top: auto; padding-top: var(--pa-space-6); }

.pa-nav__label {
  padding: var(--pa-space-4) 0 6px;
  font-size: var(--pa-text-11);
  line-height: var(--pa-leading-16);
  text-transform: uppercase;
  color: var(--pa-ink-muted); font-weight: var(--pa-weight-semibold); letter-spacing: 0.08em; }

.pa-nav__link {
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  width: 100%;
  height: var(--pa-item-height);
  padding: 0 36px 0 var(--pa-space-3);
  border: 0;
  border-radius: var(--pa-radius-md) 0 0 var(--pa-radius-md);/* runs flush into the content panel */ 
  background: transparent;
  color: var(--pa-ink);
  font-size: var(--pa-text-14);
  text-align: left;
  white-space: nowrap;
  transition: background var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease); line-height: var(--pa-leading-20); font-weight: var(--pa-weight-medium); }
.pa-nav__link .ti { flex: none; font-size: var(--pa-icon-md); color: var(--pa-ink-soft); }
.pa-nav__link:hover { background: var(--pa-hover-tint); }

.pa-nav__link[aria-current="page"] {
  background: var(--pa-brand-100);
  color: var(--pa-ink-strong);
  font-weight: var(--pa-weight-medium);
}
.pa-nav__link[aria-current="page"] .ti { color: var(--pa-ink-strong); }

.pa-nav__caret { margin-left: auto; font-size: var(--pa-icon-sm) !important; transition: transform var(--pa-duration) var(--pa-ease); }
.pa-nav__link[aria-expanded="true"] .pa-nav__caret { transform: rotate(180deg); }

.pa-nav__sub { list-style: none; margin: 2px 0 0; padding: 0 0 0 var(--pa-space-8); display: none; }
.pa-nav__link[aria-expanded="true"] + .pa-nav__sub { display: block; }/* <html data-nav-groups> (the 03 set): js/app-02.js grows and folds the items (height, fade);
   while they move they stay shown, even once closed, and clipped to the height so far */

.pa-nav__sub.is-sliding { display: block; overflow: hidden; }
:root[data-nav-groups] .pa-nav__link[aria-expanded="true"] + .pa-nav__sub { animation: none; }
.pa-nav__sub .pa-nav__link { height: var(--pa-control-md); font-size: var(--pa-text-14); line-height: var(--pa-leading-20); font-weight: var(--pa-weight-medium); }
.pa-nav__sub .pa-nav__link .ti { font-size: var(--pa-icon-md); }

.pa-scrim { display: none; }
.pa-nav-close { display: none; }/* ---------- Dark menu (Style bar) ----------
   <html data-shell="dark">: the header and the sidebar take the palette's menu color
   (--pa-p-shell, a step deeper than the buttons), made deeper still by the Deeper and Deepest
   intensities. White text on it is 10:1 or more in every palette. The current page becomes a
   white tab running into the white work area, whose rounded corner shows against the dark frame. */


:root { --pa-main-shadow: -6px 0 14px -8px rgba(14, 26, 34, 0.24); }
:root[data-shell="dark"] {
  --pa-main-shadow: -8px 0 18px -8px rgba(0, 0, 0, 0.45);
  --pa-shell-bg: color-mix(in oklab, var(--pa-p-shell, var(--pa-p-700)), black var(--tone-deep));
  --pa-shell-ink: #FFFFFF;
  --pa-shell-ink-soft: color-mix(in srgb, #FFFFFF 86%, transparent);/* 4.6:1 or more */ 
  --pa-shell-hover: color-mix(in srgb, #FFFFFF 12%, transparent);
  --pa-shell-link: oklch(from var(--pa-link) 0.82 calc(c * 0.7) h);/* a link on the dark frame: --pa-link made light, 8:1 or more */
}
:root[data-shell="dark"] body,
:root[data-shell="dark"] .pa-header,
:root[data-shell="dark"] .pa-sidebar { background: var(--pa-shell-bg); }
:root[data-shell="dark"] .pa-nav-close .pa-icon-btn { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-nav-close .pa-icon-btn:hover { background: var(--pa-shell-hover); }
:root[data-shell="dark"] .pa-main::before { --pa-corner: var(--pa-shell-bg); }
:root[data-shell="dark"] .pa-brand,
:root[data-shell="dark"] .pa-brand__name { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-brand__sub,
:root[data-shell="dark"] .pa-nav__label { color: var(--pa-shell-ink-soft); }
:root[data-shell="dark"] .pa-brand__logo,
:root[data-shell="dark"] .pa-user { box-shadow: none; }
:root[data-shell="dark"] .pa-header .pa-icon-btn,
:root[data-shell="dark"] .pa-nav__link,
:root[data-shell="dark"] .pa-nav__link .ti { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-header .pa-icon-btn:hover,
:root[data-shell="dark"] .pa-nav__link:hover { background: var(--pa-shell-hover); }
:root[data-shell="dark"] .pa-nav__link[aria-current="page"] { background: var(--pa-panel); color: var(--pa-ink-strong); }
:root[data-shell="dark"] .pa-nav__link[aria-current="page"] .ti { color: var(--pa-ink-strong); }
:root[data-shell="dark"] :is(.pa-header, .pa-sidebar) :focus-visible { outline: 2px solid var(--pa-shell-ink); outline-offset: 2px; box-shadow: none; }/* ---------- Menu collapsed to icons (rail) ----------
   js/app-02.js adds the button at the top of the menu and keeps <html data-nav="full | rail">.
   From 992px up, rail narrows the menu to its icons (72px): each name stays for screen readers
   and shows in a tooltip, the section labels become dividers, and a group opens its items in a
   small menu beside its icon. Below 992px the menu is the drawer and the button is hidden.
   The rail sits above the work area (so those menus can overlap it) with no background of its
   own, so the work area's edge shadow still shows. */


:root { --pa-rail-width: 72px; }
.pa-nav-toggle {
  flex: none; align-self: flex-end;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; margin: -8px var(--pa-space-2) var(--pa-space-2) 0; padding: 0 10px;
  border: 0; border-radius: var(--pa-radius-md);
  background: none; color: var(--pa-ink-muted);
  font-size: var(--pa-text-12); line-height: var(--pa-leading-16); font-weight: var(--pa-weight-medium); white-space: nowrap;
  transition: background var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease);
}
.pa-nav-toggle .ti { font-size: var(--pa-icon-md); }
.pa-nav-toggle:hover { background: var(--pa-hover-tint); color: var(--pa-ink-strong); }
.pa-nav-tip {
  position: fixed; z-index: 2;
  padding: 6px 10px;
  border-radius: var(--pa-radius-md);
  background: var(--pa-ink-strong); color: var(--pa-text-inverse);
  font-size: var(--pa-text-13); font-weight: var(--pa-weight-semibold); white-space: nowrap;
  pointer-events: none; line-height: var(--pa-leading-18); }
:root[data-shell="dark"] .pa-nav-toggle { color: var(--pa-shell-ink-soft); }
:root[data-shell="dark"] .pa-nav-toggle:hover { background: var(--pa-shell-hover); color: var(--pa-shell-ink); }
/* Foot toggle (<html data-nav-toggle="foot">, the 03 set): the very last thing in the menu, at its bottom (under
   its foot where it has one: the personal pages' Upgrade card and Help & Support; the business pages have none
   since Shared with me left, 11/11/2026), on the right, centred once the menu is a rail. The sub-navigation's «
   of the 02 pages: a square icon button (--pa-control-md, the menu's corners), « to collapse, » to expand; a
   one-word tip beside it, Collapse or Expand (.pa-nav-tip--over, over the work area). The sub-navigation has
   the same button at its own foot (.pa-subnav__foot below). */
.pa-nav-toggle--foot { align-self: flex-end; justify-content: center; width: var(--pa-control-md); height: var(--pa-control-md); margin: auto var(--pa-space-3) 0 0; padding: 0; border-radius: var(--pa-radius-md); }
.pa-nav--footer + .pa-nav-toggle--foot { margin-top: var(--pa-space-2); }
.pa-nav-toggle--foot .ti { font-size: var(--pa-icon-md); }
.pa-nav-tip--over { z-index: 60; display: inline-flex; align-items: center; }
.pa-nav-tip--over[hidden] { display: none; }

@media (min-width: 992px) {
  #app.pa-app { transition: grid-template-columns var(--pa-duration-long) var(--pa-ease); }
  :root[data-nav="rail"] #app.pa-app { grid-template-columns: var(--pa-rail-width) minmax(0, 1fr); }
  :root[data-nav="rail"] #app .pa-sidebar { z-index: 33; padding: var(--pa-space-5) 14px calc(var(--pa-space-4) + var(--pa-style-bar-space)); background: transparent; }

  :root[data-nav="rail"] #app .pa-sidebar .pa-nav-toggle { align-self: center; justify-content: center; width: 44px; height: var(--pa-control-lg); margin: -8px 0 var(--pa-space-2); padding: 0; }
  :root[data-nav="rail"] #app .pa-sidebar .pa-nav-toggle .ti { font-size: var(--pa-icon-md); }
  /* At the rail's bottom too (12/11/2026: it rose under Settings once Shared with me left, the sub-navigation's with it) */
  :root[data-nav="rail"] #app .pa-sidebar .pa-nav-toggle--foot { width: var(--pa-control-md); height: var(--pa-control-md); margin: auto 0 0; border-radius: var(--pa-radius-md); }
  :root[data-nav="rail"] #app .pa-sidebar .pa-nav--footer + .pa-nav-toggle--foot { margin-top: var(--pa-space-2); }
  :root[data-nav="rail"] #app :is(.pa-nav-toggle__text, .pa-nav > li > .pa-nav__link .pa-nav__text) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  :root[data-nav="rail"] #app .pa-nav > li > .pa-nav__link { justify-content: center; width: 44px; height: var(--pa-control-lg); margin: 0 auto; padding: 0; border-radius: var(--pa-radius-md); }
  :root[data-nav="rail"] #app .pa-nav__caret { display: none; }
  :root[data-nav="rail"] #app .pa-nav__label { height: 1px; margin: var(--pa-space-3) 6px; padding: 0; overflow: hidden; background: var(--pa-line); color: transparent; font-size: 0; }/* A group whose page is open shows as chosen */
  
  :root[data-nav="rail"] #app .pa-nav > li:has(> .pa-nav__sub [aria-current="page"]) > .pa-nav__link { background: var(--pa-brand-100); }
  :root[data-nav="rail"] #app .pa-nav > li:has(> .pa-nav__sub [aria-current="page"]) > .pa-nav__link .ti { color: var(--pa-ink-strong); }/* A group's items, beside its icon (js/app-02.js places it) */

  
  :root[data-nav="rail"] #app .pa-nav__sub {
    position: fixed; z-index: 1;
    min-width: 208px; margin: 0; padding: var(--pa-space-2);
    border-radius: var(--pa-radius-lg);
    background: var(--pa-surface);
    box-shadow: var(--pa-shadow-dropdown);
    animation: pa-drop-in var(--pa-duration) var(--pa-ease-enter);
  }
  :root[data-nav="rail"] #app .pa-nav__sub::before {
    content: attr(data-title);
    display: block; margin-bottom: 4px; padding: 6px var(--pa-space-3) 10px;
    border-bottom: 1px solid var(--pa-line-soft);
    font-size: var(--pa-text-base); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-strong);
  }
  :root[data-nav="rail"] #app .pa-nav__sub .pa-nav__link { height: var(--pa-item-height); padding: 0 var(--pa-space-3); border-radius: var(--pa-radius-md); background: transparent; color: var(--pa-ink); }
  :root[data-nav="rail"] #app .pa-nav__sub .pa-nav__link .ti { color: var(--pa-ink-soft); }
  :root[data-nav="rail"] #app .pa-nav__sub .pa-nav__link:hover { background: var(--pa-hover-tint); }
  :root[data-nav="rail"] #app .pa-nav__sub .pa-nav__link[aria-current="page"] { background: var(--pa-brand-100); color: var(--pa-ink-strong); }
  :root[data-nav="rail"] #app .pa-nav__sub .pa-nav__link[aria-current="page"] .ti { color: var(--pa-ink-strong); }/* Dark menu: dividers in the light ink, the open page's group as a white tile */

  
  :root[data-shell="dark"][data-nav="rail"] #app .pa-nav__label { background: var(--pa-shell-hover); }
  :root[data-shell="dark"][data-nav="rail"] #app .pa-nav > li:has(> .pa-nav__sub [aria-current="page"]) > .pa-nav__link { background: var(--pa-panel); color: var(--pa-ink-strong); }
}
@media (max-width: 991px) {
  .pa-nav-toggle, .pa-nav-tip { display: none; }
}/* ---------- Sub-navigation ----------
   A second column between the menu and the work area, on pages that have one (<aside class=
   "pa-subnav">, js/app-02.js: initSubnav). Sections of cards (Requests: Pinned, Recent) that open
   and close; the button at its top narrows it to a strip of the sections' icons with their counts
   (<html data-subnav="closed">). From 992px up; the drawer of smaller screens goes without it.
   Below 1280px it starts narrowed, with the menu as a rail, so the work area keeps its room. */


:root { --pa-subnav-width: 248px; --pa-subnav-folded: 68px; }
:root[data-subnav="closed"] { --pa-subnav-width: var(--pa-subnav-folded); }
.pa-subnav { display: none; }
@media (min-width: 992px) {
  #app.pa-app:has(> .pa-subnav) { grid-template-columns: var(--pa-sidebar-width) var(--pa-subnav-width) minmax(0, 1fr); grid-template-areas: "header header header" "sidebar subnav main"; }
  :root[data-nav="rail"] #app.pa-app:has(> .pa-subnav) { grid-template-columns: var(--pa-rail-width) var(--pa-subnav-width) minmax(0, 1fr); }
  .pa-subnav {
    grid-area: subnav;
    position: sticky; top: var(--pa-header-h); z-index: 30;
    height: calc(100vh - var(--pa-header-h));
    display: flex; flex-direction: column; gap: var(--pa-space-1);
    padding: var(--pa-space-5) var(--pa-space-3) calc(var(--pa-space-4) + var(--pa-style-bar-space));
    overflow-y: auto; overflow-x: hidden;
    border-left: 1px solid var(--pa-line);
  }
}
.pa-subnav__toggle { width: 32px; padding: 0; justify-content: center; }
/* The foot toggle of the sub-navigation (the 03 set; js/app-02.js › initSubnav): kept at the foot while the
   column scrolls, on the right (centred in the strip), level with the menu's: --gap is the room the menu
   leaves under its own button, measured */
.pa-subnav:has(> .pa-subnav__foot) { padding-bottom: 0; }
.pa-subnav__foot { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; margin-top: auto; padding: var(--pa-space-2) 0 var(--gap, var(--pa-space-3)); background: inherit; }
:root[data-subnav="closed"] .pa-subnav__foot { justify-content: center; }
.pa-subnav > .pa-subnav__foot > .pa-subnav__toggle.pa-nav-toggle--foot { width: var(--pa-control-md); height: var(--pa-control-md); margin: 0; }
.pa-subnav__section { display: flex; flex-direction: column; gap: var(--pa-space-2); }
.pa-subnav__heading { margin: 0; font-size: inherit; }
.pa-subnav__head {
  display: flex; align-items: center; gap: var(--pa-space-2);
  width: 100%; height: var(--pa-item-height); padding: 0 var(--pa-space-2);
  border: 0; border-radius: var(--pa-radius-md);
  background: none; color: var(--pa-ink-strong);
  font-size: var(--pa-text-md); line-height: var(--pa-leading-24); font-weight: var(--pa-weight-semibold); text-align: left; white-space: nowrap;
  transition: background var(--pa-duration) var(--pa-ease);
}
.pa-subnav__head:hover { background: var(--pa-hover-tint); }
.pa-subnav__head > .ti:first-child { flex: none; font-size: var(--pa-icon-md); color: var(--pa-ink-soft); }
.pa-subnav__count { padding: 1px 8px; border-radius: var(--pa-radius-pill); background: var(--pa-badge-count); font-size: var(--pa-text-12); line-height: var(--pa-leading-18); font-weight: var(--pa-weight-medium); color: var(--pa-badge-count-ink); }
.pa-subnav__caret { margin-left: auto; font-size: var(--pa-icon-sm); color: var(--pa-ink-soft); transition: transform var(--pa-duration) var(--pa-ease); }
.pa-subnav__head[aria-expanded="true"] .pa-subnav__caret { transform: rotate(180deg); }
.pa-subnav__list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--pa-space-3); padding: 0; }
.pa-subnav__list[hidden] { display: none; }
.pa-subnav__empty { padding: 0 var(--pa-space-2); font-size: var(--pa-text-base); line-height: var(--pa-leading-20); color: var(--pa-ink-muted); }
.pa-subnav__list li[hidden] { display: none; }/* Links above the sections (the three report lists) */

.pa-subnav__nav { margin-bottom: var(--pa-space-2); padding-bottom: var(--pa-space-2); border-bottom: 1px solid var(--pa-line); }
.pa-subnav__nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.pa-subnav__link { display: flex; align-items: center; gap: var(--pa-space-2); height: var(--pa-item-height); padding: 0 var(--pa-space-2); border-radius: var(--pa-radius-md); font-size: var(--pa-text-14); line-height: var(--pa-leading-20); color: var(--pa-ink); white-space: nowrap; transition: background var(--pa-duration) var(--pa-ease); }
.pa-subnav__link .ti { flex: none; font-size: var(--pa-icon-md); color: var(--pa-ink-soft); }
.pa-subnav__link:hover { background: var(--pa-hover-tint); }
.pa-subnav__link[aria-current="page"] { background: var(--pa-brand-100); font-weight: var(--pa-weight-medium); color: var(--pa-ink-strong); }
.pa-subnav__link[aria-current="page"] .ti { color: var(--pa-ink-strong); }
:root[data-subnav="closed"] .pa-subnav__nav { align-self: stretch; }
:root[data-subnav="closed"] .pa-subnav__link { justify-content: center; width: 44px; height: var(--pa-control-lg); margin: 0 auto; padding: 0; }
.pa-subnav__more { width: 100%; }/* A request: two lines in a flat row, client first (with the type's icon), then number and date of
   injury; the whole row opens the request. No box around each one: a list of boxes reads as layers.
   Neutral greys only (icon, hover, the request on screen), so the column never pulls the eye from
   the page beside it. */


.pa-subnav-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--pa-space-2) 10px;
  border-radius: var(--pa-radius-md);
  color: var(--pa-ink);
  transition: background var(--pa-duration) var(--pa-ease);
}
.pa-subnav-card:hover { background: color-mix(in srgb, var(--pa-ink-strong) 5%, transparent); }/* The request on screen (v02/request-detail/): a slightly deeper grey, no accent color */

.pa-subnav-card[aria-current="page"] { background: color-mix(in srgb, var(--pa-ink-strong) 9%, transparent); }
.pa-subnav-card__name { display: flex; align-items: center; gap: var(--pa-space-2); font-size: var(--pa-text-14); font-weight: var(--pa-weight-medium); line-height: 20px; color: var(--pa-ink-strong); }
.pa-subnav-card__name .ti { flex: none; font-size: var(--pa-icon-md); color: var(--pa-ink-muted); }
.pa-subnav-card__meta { font-size: var(--pa-text-13); line-height: var(--pa-leading-18); color: var(--pa-ink-muted); white-space: nowrap; }
.pa-subnav-card__meta .pa-mono { color: var(--pa-ink-soft); }/* Narrowed: the sections' icons with their counts; a click widens the column */


:root[data-subnav="closed"] .pa-subnav { align-items: center; padding-left: 10px; padding-right: 10px; }
:root[data-subnav="closed"] .pa-subnav__toggle { align-self: center; width: 44px; height: var(--pa-control-lg); margin-right: 0; }
:root[data-subnav="closed"] .pa-subnav__head { position: relative; justify-content: center; width: 44px; height: var(--pa-control-lg); padding: 0; }
:root[data-subnav="closed"] .pa-subnav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-subnav="closed"] .pa-subnav__caret { display: none; }
:root[data-subnav="closed"] .pa-subnav__count { position: absolute; top: -2px; right: -6px; padding: 0 5px; font-size: var(--pa-text-12); line-height: 18px; background: var(--pa-badge-count-strong); color: var(--pa-text-inverse); }/* Dark menu: the column belongs to the dark frame; the cards stay white */


:root[data-shell="dark"] .pa-subnav { border-left-color: var(--pa-shell-hover); }
:root[data-shell="dark"] .pa-subnav__head,
:root[data-shell="dark"] .pa-subnav__head .ti { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-subnav__head:hover { background: var(--pa-shell-hover); }
:root[data-shell="dark"] .pa-subnav__count { background: var(--pa-shell-hover); color: var(--pa-shell-ink); }
:root[data-shell="dark"][data-subnav="closed"] .pa-subnav__count { background: var(--pa-surface); color: var(--pa-ink-strong); }
:root[data-shell="dark"] .pa-subnav__empty { color: var(--pa-shell-ink-soft); }
:root[data-shell="dark"] .pa-subnav__nav { border-bottom-color: var(--pa-shell-hover); }
:root[data-shell="dark"] :is(.pa-subnav__link, .pa-subnav__link .ti) { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-subnav__link:hover { background: var(--pa-shell-hover); }
:root[data-shell="dark"] .pa-subnav__link[aria-current="page"] { background: var(--pa-surface); }
:root[data-shell="dark"] :is(.pa-subnav__link[aria-current="page"], .pa-subnav__link[aria-current="page"] .ti) { color: var(--pa-ink-strong); }/* Rows sit on the dark frame: light ink and neutral overlays, no accent color */

:root[data-shell="dark"] .pa-subnav-card:hover { background: var(--pa-shell-hover); }/* The request on screen goes a shade darker: white text keeps its contrast on every palette and intensity */

:root[data-shell="dark"] .pa-subnav-card[aria-current="page"] { background: color-mix(in srgb, var(--pa-ink-strong) 22%, transparent); }
:root[data-shell="dark"] .pa-subnav-card .pa-subnav-card__name { color: var(--pa-shell-ink); }
:root[data-shell="dark"] .pa-subnav-card :is(.pa-subnav-card__meta, .pa-mono, .pa-subnav-card__name .ti) { color: var(--pa-shell-ink-soft); }
:root[data-shell="dark"] .pa-subnav__more { --ink: var(--pa-shell-ink); --ink-h: var(--pa-shell-ink); --ink-p: var(--pa-shell-ink); --bg-h: var(--pa-shell-hover); --bg-p: var(--pa-shell-hover); }/* ---------- Buttons ---------- */


.pa-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--pa-space-2);
  height: var(--pa-control-md); padding: 0 var(--pa-space-3);
  border: 1px solid transparent; border-radius: var(--pa-radius-md);
  font-size: var(--pa-text-14); font-weight: var(--pa-weight-medium); line-height: var(--pa-leading-20); white-space: nowrap;
  transition: background var(--pa-duration) var(--pa-ease), border-color var(--pa-duration) var(--pa-ease);
}
.pa-btn .ti { font-size: var(--pa-icon-md); }
.pa-btn--primary { padding: 0 var(--pa-space-4); background: var(--pa-brand-700); color: var(--pa-text-inverse); }
.pa-btn--primary:hover { background: var(--pa-brand-900); }
.pa-btn--outline { background: var(--pa-surface); border-color: var(--pa-control-line); color: var(--pa-ink-strong); }
.pa-btn--outline:hover { border-color: var(--pa-brand-500); background: var(--pa-brand-25); }
.pa-btn--outline[aria-expanded="true"] { border-color: var(--pa-brand-500); }
.pa-btn--ghost { height: var(--pa-control-md); padding: 0 var(--pa-space-3); background: none; color: var(--pa-ink-strong); }
.pa-btn--ghost:hover { background: var(--pa-brand-50); }
.pa-btn--square { width: var(--pa-control-md); padding: 0; }
.pa-btn--sm { height: var(--pa-control-md); padding: 0 var(--pa-space-3); font-size: var(--pa-text-base); line-height: var(--pa-leading-20); }
.pa-btn--sm .ti { font-size: var(--pa-icon-md); }
.pa-btn--sm.pa-btn--square { width: var(--pa-control-md); }
/* Large: one-task screens (sign-in, a wizard's footer). --sm is the default size now, kept for the markup that has it */
.pa-btn--lg { height: var(--pa-control-lg); padding: 0 var(--pa-space-5); }
.pa-btn--lg.pa-btn--square { width: var(--pa-control-lg); padding: 0; padding: 0; }
.pa-btn__caret { font-size: var(--pa-icon-md) !important; color: var(--pa-ink-muted); }
.pa-btn__count {
  min-width: 20px; padding: 2px 6px;
  border-radius: var(--pa-radius-pill);
  background: var(--pa-badge-count-strong); color: var(--pa-text-inverse);/* a count, not the brand: same in every palette */ 
  font-size: var(--pa-text-12); line-height: var(--pa-leading-18); text-align: center; font-weight: var(--pa-weight-medium); }
.pa-btn__count[hidden], .pa-btn[hidden] { display: none; }/* ---------- Button library (Figma "Button", Fluent 2 structure in Portal Assistant colors) ----------
   <button class="pa-btn" data-appearance="secondary | primary | outline | subtle | transparent"
           data-size="small | large">       medium (32px) when data-size is left out
   Sizes 24 / 32 / 40px and label sizes 12 / 14 / 16px, as in Figma.
   Icon only: add pa-btn--square. Toggle: aria-pressed="true" shows Selected; a menu button with
   aria-expanded="true" does too. Menu button: <i class="ti ti-chevron-down pa-btn__chevron"> after the
   label. Split button: two of these buttons in .pa-split, the second with pa-split__menu.
   data-state="hover | pressed" draws a state without the pointer, for the design system pages only.
   The modifiers above (--primary, --outline, --ghost, --sm) keep the existing pages as they are. */


.pa-btn[data-appearance] {/* Secondary is the default; each appearance sets its own rest / hover / pressed / selected colors */
  
  --bg: var(--pa-surface);   --bg-h: var(--pa-brand-50);   --bg-p: var(--pa-brand-200); --bg-s: var(--pa-brand-100);
  --line: var(--pa-control-line); --line-h: var(--pa-brand-500); --line-p: var(--pa-brand-600); --line-s: var(--pa-brand-500);
  --ink: var(--pa-ink-strong); --ink-h: var(--ink); --ink-p: var(--ink); --ink-s: var(--ink);
  --icon: currentColor;      --icon-h: var(--icon);         --icon-p: var(--icon);        --icon-s: var(--pa-brand-700);
  --icon-now: var(--icon);
  height: var(--pa-control-md); gap: 6px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: var(--pa-text-14); font-weight: var(--pa-weight-medium); line-height: var(--pa-leading-20);
  transition: background var(--pa-duration) var(--pa-ease), border-color var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease), box-shadow var(--pa-duration) var(--pa-ease);
}
.pa-btn[data-appearance] .ti { font-size: var(--pa-icon-md); color: var(--icon-now); }
.pa-btn[data-appearance="primary"] {
  --bg: var(--pa-brand-700); --bg-h: color-mix(in oklab, var(--pa-brand-700), black 14%);
  --bg-p: var(--pa-brand-900); --bg-s: color-mix(in oklab, var(--pa-brand-700), black 28%);
  --line: transparent; --line-h: transparent; --line-p: transparent; --line-s: transparent;
  --ink: var(--pa-text-inverse); --icon-s: currentColor;
}
.pa-btn[data-appearance="outline"] { --bg: transparent; --bg-h: transparent; --bg-p: transparent; --bg-s: transparent; }
.pa-btn[data-appearance="subtle"] {
  --bg: transparent; --line: transparent; --line-h: transparent; --line-p: transparent; --line-s: transparent;
  --ink: var(--pa-ink-soft); --ink-h: var(--pa-ink-strong); --ink-p: var(--pa-ink-strong); --ink-s: var(--pa-ink-strong);
  --icon: var(--pa-ink-soft); --icon-h: var(--pa-brand-600); --icon-p: var(--pa-brand-700); --icon-s: var(--pa-brand-600);
}
.pa-btn[data-appearance="transparent"] {
  --bg: transparent; --bg-h: transparent; --bg-p: transparent; --bg-s: transparent;
  --line: transparent; --line-h: transparent; --line-p: transparent; --line-s: transparent;
  --ink: var(--pa-ink-soft); --ink-h: var(--pa-brand-600); --ink-p: var(--pa-brand-700); --ink-s: var(--pa-brand-600);
  --icon-s: currentColor;
}/* Sizes */


.pa-btn[data-appearance][data-size="small"] { height: var(--pa-control-sm); gap: 4px; padding: 0 8px; border-radius: var(--pa-radius-md); font-size: var(--pa-text-14); font-weight: var(--pa-weight-semibold); line-height: var(--pa-leading-18); }
.pa-btn[data-appearance][data-size="large"] { height: var(--pa-control-lg); padding: 0 16px; font-size: var(--pa-text-16); line-height: 22px; }
.pa-btn[data-appearance][data-size="large"] .ti { font-size: var(--pa-icon-lg); }
.pa-btn[data-appearance].pa-btn--square { width: var(--pa-control-md); padding: 0; }
.pa-btn[data-appearance][data-size="small"].pa-btn--square { width: var(--pa-control-sm); }
.pa-btn[data-appearance][data-size="large"].pa-btn--square { width: var(--pa-control-lg); }/* States: hover, then selected (a toggle that's on stays on under the pointer), then pressed */


.pa-btn[data-appearance]:not(:disabled):not([aria-disabled="true"]):hover,
.pa-btn[data-appearance][data-state="hover"] { background: var(--bg-h); border-color: var(--line-h); color: var(--ink-h); --icon-now: var(--icon-h); }
.pa-btn[data-appearance]:is([aria-pressed="true"], [aria-expanded="true"]) { background: var(--bg-s); border-color: var(--line-s); color: var(--ink-s); --icon-now: var(--icon-s); }
.pa-btn[data-appearance="outline"]:is([aria-pressed="true"], [aria-expanded="true"]) { box-shadow: inset 0 0 0 1px var(--line-s); }/* 2px, as in Figma */ 
.pa-btn[data-appearance]:not(:disabled):not([aria-disabled="true"]):active,
.pa-btn[data-appearance][data-state="pressed"] { background: var(--bg-p); border-color: var(--line-p); color: var(--ink-p); --icon-now: var(--icon-p); }
.pa-btn[data-appearance]:is(:disabled, [aria-disabled="true"]) {
  border-color: var(--pa-line-soft); background: var(--pa-chip-bg); color: var(--pa-ink-subtle); --icon-now: currentColor;
  box-shadow: none; cursor: not-allowed;
}
.pa-btn[data-appearance="outline"]:is(:disabled, [aria-disabled="true"]) { background: transparent; }
.pa-btn[data-appearance]:is([data-appearance="subtle"], [data-appearance="transparent"]):is(:disabled, [aria-disabled="true"]) { border-color: transparent; background: transparent; }/* Menu button: a 12px chevron, 4px after the label */


.pa-btn[data-appearance] .pa-btn__chevron { font-size: var(--pa-icon-sm); margin-left: -2px; color: currentColor; }
.pa-btn[data-appearance][data-size="small"] .pa-btn__chevron { margin-left: 0; }
.pa-btn[data-appearance].pa-btn--square:has(.pa-btn__chevron) { width: auto; padding: 0 6px; }
.pa-btn[data-appearance][data-size="small"].pa-btn--square:has(.pa-btn__chevron) { padding: 0 2px; }
.pa-btn[data-appearance][data-size="large"].pa-btn--square:has(.pa-btn__chevron) { padding: 0 8px; }/* Split button: the main action, then a 24px part with a chevron that opens the menu */


.pa-split { display: inline-flex; vertical-align: middle; }/* [data-appearance] in each selector so these win over the size rules above */

.pa-split > .pa-btn[data-appearance]:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pa-split > .pa-btn[data-appearance].pa-split__menu { width: 24px; padding: 0; border-left-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pa-split > .pa-btn[data-appearance].pa-split__menu .ti { font-size: var(--pa-icon-sm); }
.pa-split > .pa-btn[data-appearance="primary"]:first-child:not(:disabled) { box-shadow: inset -1px 0 0 color-mix(in srgb, var(--pa-text-inverse) 70%, transparent); }/* the divider, kept on hover */ 
.pa-split > .pa-btn:focus-visible { z-index: 1; }/* ---------- Folder tab (concept "Bàn hồ sơ": every record is a paper folder) ----------
   .pa-ftab is the tab of a folder: straight on the left with a rounded top corner, and on the
   right a rounded shoulder, a gentle slope and a foot that curves out into the folder's edge.
   Three mask pieces draw it: a left cap, a stretching middle and a right cap (SVG). ::before is
   the 1px outline (--tab-line) and ::after the fill (--tab-fill), so every curve keeps its line.
   The caps take their size from --tab-h, so one shape serves every tab height; leave room on the
   right for the slope (--tab-cap). A tab stands on the folder's top border; an open one
   (.is-open, aria-selected or aria-expanded "true") runs its fill over that border to join the
   folder. An open tab that isn't the first in its group takes --tab-left-foot, a small foot on
   the left as well. */


.pa-ftab {
  --tab-h: var(--pa-tab-height);
  --tab-line: var(--pa-line-soft); --tab-fill: color-mix(in srgb, var(--pa-brand-50) 50%, var(--pa-surface));
  --tab-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 48' preserveAspectRatio='none'%3E%3Cpath d='M20 0V48H8V12A12 12 0 0 1 20 0Z'/%3E%3C/svg%3E");
  --tab-left-foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 48' preserveAspectRatio='none'%3E%3Cpath d='M20 0V48H0A8 8 0 0 0 8 40V12A12 12 0 0 1 20 0Z'/%3E%3C/svg%3E");
  --tab-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H3C7 0 9.1 1.7 10.3 5L19.6 41C21 45.2 23.6 48 30 48H0Z'/%3E%3C/svg%3E");
  --tab-foot: calc(var(--tab-h) / 6);
  --tab-cap: calc(var(--tab-h) * 0.625);
  position: relative; isolation: isolate;
}
.pa-ftab::before,
.pa-ftab::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  --l: calc(var(--h) * 0.4167); --r: calc(var(--h) * 0.625);
  -webkit-mask: var(--tab-left) left / var(--l) 100% no-repeat, linear-gradient(#000 0 0) calc(var(--l) - 1px) 0 / calc(100% - var(--l) - var(--r) + 2px) 100% no-repeat, var(--tab-right) right / var(--r) 100% no-repeat;
          mask: var(--tab-left) left / var(--l) 100% no-repeat, linear-gradient(#000 0 0) calc(var(--l) - 1px) 0 / calc(100% - var(--l) - var(--r) + 2px) 100% no-repeat, var(--tab-right) right / var(--r) 100% no-repeat;
  transition: background-color var(--pa-duration) var(--pa-ease);
}
.pa-ftab::before { --h: var(--tab-h); top: 0; right: 0; bottom: 1px; left: calc(-1 * var(--tab-foot)); background: var(--tab-line); }
.pa-ftab::after { --h: calc(var(--tab-h) - 1px); top: 1px; right: 1px; bottom: 1px; left: calc(1px - var(--tab-foot)); background: var(--tab-fill); }
.pa-ftab:is(.is-open, [aria-selected="true"], [aria-expanded="true"])::before,
.pa-ftab:is(.is-open, [aria-selected="true"], [aria-expanded="true"])::after { bottom: 0; }
[role="tablist"] > .pa-ftab[aria-selected="true"]:not(:first-child) { --tab-left: var(--tab-left-foot); }

/* ---------- Text dropdown (.pa-text-select) ----------
   A dropdown whose trigger reads as words: the current choice and a small chevron, no border, no box, as
   the product's filters over Home's Monitor ("All requests ⌄  Last 7 Days ⌄"). For one to three filters
   that sit over the content they change; in a form, use a select. It opens a .pa-popover
   (PaOverlay.popup gives it aria-expanded and aria-controls); a visually hidden prefix names what it
   picks ("Requested by: All requests"). 36px tall like every control (40px on touch screens). */
.pa-text-select {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--pa-control-md); padding: 0 6px 0 8px;
  border: 0; border-radius: var(--pa-radius-md); background: none;
  font: inherit; font-size: var(--pa-text-14); font-weight: var(--pa-weight-regular); line-height: var(--pa-leading-20); color: var(--pa-ink-strong);
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--pa-duration-short) var(--pa-ease);
}
.pa-text-select:hover, .pa-text-select[aria-expanded="true"] { background: var(--pa-hover-tint); }
.pa-text-select > .ti { font-size: var(--pa-icon-sm); color: var(--pa-ink-muted); transition: transform var(--pa-duration-short) var(--pa-ease); }
.pa-text-select[aria-expanded="true"] > .ti { transform: rotate(180deg); }
.pa-text-select:disabled { color: var(--pa-ink-subtle); cursor: default; background: none; }
/* A row of them, on the right over what they filter */
.pa-text-selects { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }/* ---------- Search field ---------- */


.pa-field { position: relative; display: flex; align-items: center; min-width: 0; }
.pa-field > .ti { position: absolute; left: 14px; font-size: var(--pa-icon-md); color: var(--pa-ink-muted); pointer-events: none; }
.pa-field input {
  width: 100%;
  height: var(--pa-control-md);
  padding: 0 var(--pa-space-3) 0 44px;
  border: 1px solid var(--pa-control-line);
  border-radius: var(--pa-radius-md);
  background: var(--pa-surface);
  font: inherit; font-size: var(--pa-text-input); line-height: var(--pa-leading-20);
  color: var(--pa-ink-strong);
  transition: border-color var(--pa-duration) var(--pa-ease), box-shadow var(--pa-duration) var(--pa-ease);
}
.pa-field input::placeholder { color: var(--pa-ink-placeholder); }
.pa-field input:focus { outline: none; border-color: var(--pa-brand-500); box-shadow: var(--pa-focus-ring); }
.pa-field input::-webkit-search-cancel-button { cursor: pointer; }
.pa-field kbd {
  position: absolute; right: 10px;
  padding: 3px 7px;
  border-radius: var(--pa-radius-sm);
  background: var(--pa-chip-bg);
  font: var(--pa-weight-medium) var(--pa-text-sm)/1.2 var(--pa-font-mono);
  color: var(--pa-ink-soft);
  pointer-events: none;
}
.pa-field:has(kbd) input { padding-right: 72px; }/* ---------- Checkbox ---------- */


.pa-check {
  appearance: none; -webkit-appearance: none;
  flex: none;
  width: 18px; height: 18px; margin: 0;
  display: inline-grid; place-content: center;
  border: 1.5px solid var(--pa-control-line); border-radius: var(--pa-radius-sm);
  background: var(--pa-surface);
  cursor: pointer;
  vertical-align: middle;
  transition: background var(--pa-duration) var(--pa-ease), border-color var(--pa-duration) var(--pa-ease);
}
.pa-check::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--pa-text-inverse);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform var(--pa-duration-short) var(--pa-ease);
}
.pa-check:hover { border-color: var(--pa-brand-500); }
.pa-check:checked, .pa-check:indeterminate { background: var(--pa-brand-500); border-color: var(--pa-brand-500); }
.pa-check:checked::before { transform: scale(1); }
.pa-check:indeterminate::before { clip-path: inset(40% 0 40% 0); transform: scale(1); }/* ---------- Table ---------- */


.pa-table { width: 100%; border-collapse: collapse; }
.pa-table th { text-align: left; font-weight: var(--pa-weight-semibold); color: var(--pa-ink-strong); white-space: nowrap; }
.pa-table td { vertical-align: middle; color: var(--pa-ink); white-space: nowrap; }
.pa-table tbody tr { transition: background var(--pa-duration) var(--pa-ease); }
.pa-table tbody tr:hover { background: var(--pa-brand-25); }
.pa-table .pa-empty { height: 160px; text-align: center; color: var(--pa-ink-muted); }/* min-height: the whole header row is the target (40px), not just the words */


.pa-sort {
  display: inline-flex; align-items: center; gap: var(--pa-space-3);
  min-height: var(--pa-control-md); padding: 0; border: 0; background: none;
  font-weight: inherit; color: inherit;
}
.pa-sort .ti { font-size: var(--pa-icon-md); color: var(--pa-ink-soft); }
.pa-table th[aria-sort="ascending"] .pa-sort,
.pa-table th[aria-sort="descending"] .pa-sort,
.pa-table th[aria-sort="ascending"] .pa-sort .ti,
.pa-table th[aria-sort="descending"] .pa-sort .ti { color: var(--pa-brand-600); }

.pa-link { color: var(--pa-link); font-weight: var(--pa-weight-medium); }
.pa-link:hover { text-decoration: underline; }/* Record numbers in a table: black like the rest of the row, which opens the record anyway */

:is(.pa-table, .pa-case-table) .pa-link.pa-mono { color: var(--pa-ink-strong); }/* Record cell: type icon + #id + label */


.pa-record { display: inline-flex; align-items: center; gap: var(--pa-space-2); }/* The record number is a link in a table row: 40px tall to click, the row keeps its height */

.pa-record > .pa-link { display: inline-flex; align-items: center; min-height: var(--pa-control-md); margin: -8px 0; }
.pa-record__icon {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: var(--pa-radius-md);
  background: var(--record-color, var(--pa-brand-500));
  color: var(--pa-surface);
}
.pa-record__icon .ti { font-size: var(--pa-icon-sm); }
.pa-record--case { --record-color: var(--pa-kind-case); }/* Request types keep the product's type colors (tokens.css), like partner logos they don't follow
   the palette. The type name is always printed next to the icon. Here rather than in list-02.css,
   so any page can show a request's type. */

.pa-record--lop { --record-color: var(--pa-type-lop); }
.pa-record--medical { --record-color: var(--pa-type-medical); }
.pa-record--prescription { --record-color: var(--pa-type-prescription); }
.pa-record--affidavit { --record-color: var(--pa-type-affidavit); }
.pa-record--coordination { --record-color: var(--pa-type-coordination); }
.pa-record--transfer { --record-color: var(--pa-type-transfer); }
.pa-record--delivery { --record-color: var(--pa-type-delivery); }
.pa-record--others { --record-color: var(--pa-type-others); }/* ---------- Detail page header (request, case, report) ----------
   Quiet on purpose: no fill and no frame, only a hairline under it, so the work area below leads.
   The record's icon sits on a plain tile, flat in both shapes (no shadow). The facts are a band of their own under the title: a
   hairline above, then labels over values with a short divider between each fact. */


.pa-dhead__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--pa-radius-lg);
  background: var(--pa-surface);
  box-shadow: 0 0 0 1px var(--pa-line);
  color: var(--record-color, var(--pa-ink-soft));
}
.pa-dhead__icon .ti { font-size: var(--pa-icon-lg); }/* Each fact draws its divider in the gap on its left. The first fact of a line has its divider left of
   the band's edge, where overflow-x: clip cuts it off (it clips sideways only, so menus that open
   downward still show; the clip margin keeps focus rings whole). */

.pa-facts {
  --facts-gutter: var(--pa-space-6);
  display: flex; flex-wrap: wrap; gap: var(--pa-space-4) calc(2 * var(--facts-gutter) + 1px);
  margin: 0;
  padding-top: var(--pa-space-4);
  border-top: 1px solid var(--pa-line-soft);
  overflow-x: clip; overflow-clip-margin: 6px;
}
.pa-facts > div { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pa-facts > div::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--facts-gutter) - 1px); width: 1px; background: var(--pa-line-soft); }
.pa-facts dt { font-size: var(--pa-text-base); line-height: var(--pa-leading-20); color: var(--pa-ink-muted); }
.pa-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 32px; margin: 0; font-size: var(--pa-text-md); line-height: var(--pa-leading-24); font-weight: var(--pa-weight-medium); color: var(--pa-ink-strong); }
.pa-facts dd .pa-icon-btn { width: var(--pa-control-md); height: var(--pa-control-md); }
.pa-facts dd .pa-icon-btn .ti { font-size: var(--pa-icon-md); color: var(--pa-ink-muted); }
.pa-facts .pa-avatar { width: 28px; height: 28px; font-size: var(--pa-text-12); }/* A link standing alone in a fact (the case number): 40px to click, the row keeps its height */

.pa-facts dd > a { display: inline-flex; align-items: center; min-height: var(--pa-control-md); margin: -4px 0; }/* Phone: two facts a line, no dividers */

@media (max-width: 760px) {
  .pa-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pa-space-4); }
  .pa-facts > div::before { content: none; }
}/* The detail header, the same on every detail page (request, case, report, and any new one), after an
   issue in Jira: two short lines, then the facts only when the page has no Details column.
     <div class="pa-dhead pa-dhead--band">
       <div class="pa-dhead__bar">  .pa-crumbs on the left, .pa-dhead__actions on the right
       <section class="pa-dhead__main">  .pa-dhead__icon, .pa-dhead__title-row (h1.pa-dhead__title, status
                                          pill, tags, .pa-pin)
       <dl class="pa-facts">  only when the page has no Details column
     <div class="pa-dmini">  the compact header, after the band (js/detail-02.js)
   One primary button per page, in .pa-dhead__actions; the others are outline.
   --band puts the header on the frame's color, running to the edges of the white panel (it takes back
   the panel's padding), so the white work area below is the one page to read. A line along its top and
   outer edges (round at the panel's corner) keeps it apart from the page header, which has the same
   color. On the band the dividers take the stronger line too. Without --band the header is plain. */


.pa-dhead { display: flex; flex-direction: column; gap: var(--pa-space-2); }
.pa-dhead--band {
  margin: calc(-1 * var(--pa-main-pad-top)) calc(-1 * var(--pa-main-pad-right)) 0 calc(-1 * var(--pa-main-pad-left));
  padding: var(--pa-space-3) var(--pa-main-pad-right) var(--pa-space-4) var(--pa-main-pad-left);
  border-top-left-radius: var(--pa-radius-panel);
  background: var(--pa-app-bg);
  box-shadow: inset 0 1px 0 var(--pa-line), inset 1px 0 0 var(--pa-line);
}
.pa-dhead--band .pa-facts { border-top-color: var(--pa-line); }
.pa-dhead--band .pa-facts > div::before { background: var(--pa-line); }/* Narrow: the panel spans the screen with both top corners round, so the line runs down both sides */

@media (max-width: 991px) {
  .pa-dhead--band { border-top-right-radius: var(--pa-radius-panel); box-shadow: inset 0 1px 0 var(--pa-line), inset 1px 0 0 var(--pa-line), inset -1px 0 0 var(--pa-line); }
}
.pa-dhead__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pa-space-2) var(--pa-space-4); }
.pa-dhead__actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--pa-space-2); margin-left: auto; }/* 40px: the page's main action is here, and the buttons beside it match */

.pa-dhead__actions .pa-btn { height: var(--pa-control-md); }
.pa-dhead__main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--pa-space-3); min-width: 0; }
.pa-dhead__main > .pa-dhead__icon { width: 40px; height: 40px; }
.pa-dhead__main > .pa-dhead__icon .ti { font-size: var(--pa-icon-lg); }
.pa-dhead__main > :not(.pa-dhead__icon) { grid-column: 2; }
.pa-dhead__main > .pa-dhead__title-row:first-child { grid-column: 1 / -1; }
.pa-dhead > .pa-facts { margin-top: var(--pa-space-1); }
.pa-dhead__title-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--pa-space-2); }
.pa-dhead__title {
  font-family: var(--pa-font-heading);
  font-size: var(--pa-text-title); font-weight: var(--pa-weight-semibold); line-height: var(--pa-leading-title);
  color: var(--pa-ink-strong);
}
.pa-dhead__title:focus { outline: none; }
.pa-pin { width: var(--pa-control-md); height: var(--pa-control-md); }
.pa-pin .ti { font-size: var(--pa-icon-md); color: var(--pa-ink-muted); }
.pa-pin[aria-pressed="true"] .ti { color: var(--pa-brand-600); }/* Phone: breadcrumb, title, the actions on a line of their own (the main one widest), then the facts */

@media (max-width: 760px) {
  .pa-dhead__bar { display: contents; }
  .pa-dhead > *, .pa-dhead__bar > * { order: 3; }
  .pa-dhead .pa-crumbs { order: 0; }
  .pa-dhead__main { order: 1; align-items: start; }
  .pa-dhead__actions { order: 2; width: 100%; margin-left: 0; padding-top: var(--pa-space-1); }
  .pa-dhead__actions .pa-btn--primary { flex: 1; }
  .pa-dhead__title { font-size: var(--pa-text-20); line-height: var(--pa-leading-28); }
}/* Compact header: hidden until the title has scrolled under the app header, then it stays at the top
   with the title and the actions people reach for while reading (only the main one on a phone). It takes
   no room in the page: its height and the gap after it are given back. */


.pa-dmini {
  position: sticky; top: var(--pa-header-h); z-index: 30;
  display: flex; align-items: center; gap: var(--pa-space-3);
  height: 48px;
  margin: 0 calc(-1 * var(--pa-main-pad-right)) calc(-56px - var(--pa-space-5)) calc(-1 * var(--pa-main-pad-left));
  padding: 0 var(--pa-main-pad-right) 0 var(--pa-main-pad-left);
  background: var(--pa-app-bg);
  box-shadow: 0 1px 0 var(--pa-line), var(--pa-shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--pa-duration) var(--pa-ease-exit), transform var(--pa-duration) var(--pa-ease-exit), visibility 0s linear var(--pa-duration);
}
.pa-dmini.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--pa-duration) var(--pa-ease-enter), transform var(--pa-duration) var(--pa-ease-enter); }
.pa-dmini > .pa-dhead__icon { width: 32px; height: 32px; overflow: hidden; }
.pa-dmini > .pa-dhead__icon .ti { font-size: var(--pa-icon-md); }
.pa-dmini > .pa-dhead__icon img { width: 100%; height: 100%; object-fit: cover; }
.pa-dmini__title { flex: 1; min-width: 0; overflow: hidden; font-size: var(--pa-text-md); line-height: var(--pa-leading-24); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-strong); white-space: nowrap; text-overflow: ellipsis; }
.pa-dmini__actions { flex: none; display: flex; gap: var(--pa-space-2); }
.pa-dmini__actions .pa-btn { height: var(--pa-control-md); }
.pa-dmini__actions [hidden] { display: none; }
@media (max-width: 760px) {
  .pa-dmini__actions .pa-btn:not(.pa-btn--primary) { display: none; }
}/* A card or panel that folds: its title is the button (.pa-fold, 40px to click, in the heading), the
   arrow turns when it is folded; aria-controls names the body (js/detail-02.js remembers the folded ones) */


.pa-fold {
  display: inline-flex; align-items: center; gap: var(--pa-space-2);
  min-height: var(--pa-control-md); margin: -8px 0 -8px -8px; padding: 0 8px;
  border: 0; border-radius: var(--pa-radius-md);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.pa-fold:hover { background: var(--pa-hover-tint); }
.pa-fold > .ti { font-size: var(--pa-icon-md); color: var(--pa-ink-muted); transition: transform var(--pa-duration) var(--pa-ease); }
.pa-fold[aria-expanded="false"] > .ti { transform: rotate(-90deg); }
.pa-fold-body[hidden] { display: none; }
.pa-fold-body:not([hidden]) { animation: pa-fade-in var(--pa-duration) var(--pa-ease-enter) backwards; }/* Avatar / logo + two-line text */


.pa-cell-stack { display: inline-flex; align-items: center; gap: var(--pa-space-3); }
.pa-cell-stack__title { display: block; color: var(--pa-ink); line-height: var(--pa-leading-20); }
.pa-cell-stack__meta { display: block; font-size: var(--pa-text-13); color: var(--pa-ink-muted); line-height: var(--pa-leading-18); }

.pa-avatar {
  position: relative;
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: var(--pa-radius-full);
  background: var(--pa-brand-100);
  color: var(--pa-ink-strong);
  font-size: var(--pa-text-12); font-weight: var(--pa-weight-semibold);
}
.pa-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pa-avatar--initials { background: var(--pa-avatar-initials); color: var(--pa-avatar-initials-ink); }/* Business logo. --logo / --logo-bg come from each business (js/businesses-02.js),
   not from the UI palette: they are the partner's brand colors. */


.pa-org {
  --logo-cut: var(--logo-bg);
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--pa-radius-full);
  background: var(--logo-bg, #F7F9FA);
  color: var(--logo, var(--pa-ink-soft));
  box-shadow: inset 0 0 0 1px rgba(14, 26, 34, 0.06);
}
.pa-org svg { width: 62%; height: 62%; }
.pa-org--solid { --logo-cut: var(--logo); background: var(--logo); color: var(--pa-text-inverse); box-shadow: none; }/* Status pill */


.pa-status {
  --status: var(--pa-status-open);
  --status-bg: var(--pa-status-open-bg);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pa-radius-pill);
  background: var(--status-bg);
  color: var(--pa-ink-strong);
  font-size: var(--pa-text-13); font-weight: var(--pa-weight-semibold); line-height: var(--pa-leading-18); }
.pa-status::before { content: ""; width: 8px; height: 8px; border-radius: var(--pa-radius-full); background: var(--status); }/* Step (or phase) and status in one cell (PaList.ui.stepStatus): the pill, the status under it.
   Where rows turn into cards, pages set flex-direction: row so the status sits beside the pill. */

.pa-stepstate { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px 8px; min-width: 0; }
.pa-stepstate > .pa-status { white-space: nowrap; }
.pa-stepstate__status { font-size: var(--pa-text-13); line-height: var(--pa-leading-18); color: var(--pa-ink-soft); }
/* Plain (PaList.ui.stepStatus(…, { plain: true }); the Requests list of the 03 set, as the product draws Step): the
   step as a dot and its name with no fill, so a page of Open rows isn't a column of yellow; the status under it in
   regular text, muted. Rows keep one height, with or without the status line. */
.pa-stepstate--plain > .pa-status { padding: 0; background: none; }
.pa-stepstate--plain .pa-stepstate__status { font-weight: var(--pa-weight-regular); color: var(--pa-ink-muted); }
.pa-status--in-progress, .pa-status--info { --status: var(--pa-status-progress); --status-bg: var(--pa-status-progress-bg); }
.pa-status--pending, .pa-status--alert { --status: var(--pa-status-pending); --status-bg: var(--pa-status-pending-bg); }
.pa-status--approved, .pa-status--success { --status: var(--pa-status-approved); --status-bg: var(--pa-status-approved-bg); }
.pa-status--cancelled, .pa-status--neutral { --status: var(--pa-status-cancelled); --status-bg: var(--pa-status-cancelled-bg); }
/* ---------- Marker ---------- a short label inside a row or a card that names what kind of thing it is: Subject's
   Replied, Sent, New request, Comment, CC…; New client; Owner inactive; a request's tags. One shape (20px high,
   12/16 semibold, 8px at its sides, radius-md), words on a fill and no border (asked 12/11/2026), three tones set by
   meaning. Each fill is a step deeper than any row colour, so it keeps its edge on every row without a border:
   white, unread (brand-50 at 70%), pointed at (ink 4%), pointed-at unread (#E7EBF1) and selected (brand-100), at
   ΔE (OKLab) 0.04 or more (audit of 12/11/2026, round 5: brand-100 / brand-50 badges matched the selected and the
   pointed-at unread row, ΔE 0; the first grey and red, 8%, were 0.012 and 0.023 from #E7EBF1):
   - neutral (default): a fact (Sent, New request, CC, Internal, New client, a tag). Ink 18% on white (#D6D6D6),
     ink-soft words 7.3:1; the lightest of the three, so it stays the quietest.
   - activity: the other side wrote, something to read (Replied, Comment). Navy brand-200, brand-900 words 8.9:1;
     the 200 step, deeper than unread (50) and selected (100), so a row's own tint never takes it.
   - danger: something went wrong (Not delivered, Owner inactive). The error red at 18% on white, the same red made
     deeper for the words (6.8:1).
   Yellow is not a marker tone: it only means "waiting" (the Step Open dot, Not linked, an Unassigned left 3+ days). */
.pa-marker {
  flex: none; display: inline-flex; align-items: center; gap: var(--pa-space-1); height: 20px; padding: 0 var(--pa-space-2);
  border-radius: var(--pa-radius-md);
  background: color-mix(in srgb, var(--pa-ink-strong) 18%, var(--pa-surface)); color: var(--pa-ink-soft);
  font-size: var(--pa-text-12); font-weight: var(--pa-weight-semibold); line-height: var(--pa-leading-16); white-space: nowrap;
}
.pa-marker--activity { background: var(--pa-brand-200); color: var(--pa-brand-900); }
.pa-marker--danger { background: color-mix(in srgb, var(--pa-danger-strong) 18%, var(--pa-surface)); color: color-mix(in srgb, var(--pa-danger-strong) 75%, black); }

/* ---------- Star: on ----------
   A starred request's star, two icons in one place: the Bold star in --pa-star, the Outline star over it in
   --pa-star-edge (its edge carries the contrast). Markup: <span class="pa-star-on"><i class="ti ti-star-filled">
   </i><i class="ti ti-star"></i></span>; the button around it keeps its own size and hover. */
.pa-star-on { display: inline-grid; place-items: center; }
.pa-star-on > .ti { grid-area: 1 / 1; }
.pa-star-on > .ti-star-filled { color: var(--pa-star); }
.pa-star-on > .ti-star { color: var(--pa-star-edge); }
/* ---------- Table footer + pagination ---------- */


.pa-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pa-space-3) var(--pa-space-4);
  flex-wrap: wrap;
  font-size: var(--pa-text-14); line-height: var(--pa-leading-20);
}
.pa-table-foot__info { color: var(--pa-ink-muted); }

.pa-pager { display: flex; align-items: center; gap: var(--pa-space-4); flex-wrap: wrap; }
.pa-rows { display: inline-flex; align-items: center; gap: 10px; color: var(--pa-ink); }

.pa-select-box { position: relative; display: inline-flex; }
.pa-select-box select {
  appearance: none; -webkit-appearance: none;
  height: var(--pa-control-md); padding: 0 32px 0 12px;
  border: 1px solid var(--pa-control-line); border-radius: var(--pa-radius-md);
  background: var(--pa-surface);
  font: inherit; color: var(--pa-ink-strong); cursor: pointer;
}
.pa-select-box .ti {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: var(--pa-icon-sm); color: var(--pa-ink-muted); pointer-events: none;/* 3:1 for a control part (was ink-subtle, 2.5:1) */
}
.pa-pager__divider { width: 1px; height: 22px; background: var(--pa-line); }

.pa-pages { display: flex; align-items: center; gap: var(--pa-space-2); }
.pa-page-btn,
.pa-page-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: var(--pa-control-md); height: var(--pa-control-md); padding: 0 8px;
  border: 0; border-radius: var(--pa-radius-sm);
  background: none; color: var(--pa-ink-strong);
  font-size: inherit;
}
.pa-page-btn:hover, .pa-page-nav:not([disabled]):hover { background: var(--pa-brand-50); }
.pa-page-btn[aria-current="page"] { background: var(--pa-brand-600); color: var(--pa-text-inverse); }
.pa-page-nav .ti { font-size: var(--pa-icon-sm); }
.pa-page-nav[disabled] { color: var(--pa-ink-subtle); cursor: default; }
.pa-pages__gap { min-width: 16px; text-align: center; color: var(--pa-ink-muted); }
.pa-page-nav--prev { margin-right: var(--pa-space-1); }
.pa-page-nav--next { margin-left: var(--pa-space-1); }/* ---------- Style selector (fixed bottom bar, rendered by js/app-02.js) ----------
   One horizontal row: [icon | Color · Font switch] [options of the open tab]
   [intensity — Color only] [hide]. It spans the window; the sidebar keeps its
   footer clear of it through --pa-style-bar-space. Not on phones (640px and under): it styles
   the prototype, not the product, and the colors chosen on a larger screen stay. */


:root[data-style-bar="open"] { --pa-style-bar-space: 88px; }
:root[data-style-bar="closed"] { --pa-dock-bottom: 76px; }

.pa-style-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 50;
  width: min(1480px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--pa-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--pa-surface) 94%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(14, 26, 34, 0.14), 0 2px 6px rgba(14, 26, 34, 0.06);
  transform: translateX(-50%);
}
.pa-style-bar[hidden] { display: none; }

.pa-style-bar__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: var(--pa-space-3);
  border-right: 1px solid var(--pa-line);
}
.pa-style-bar__head > .ti {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--pa-brand-50);
  color: var(--pa-brand-600);
  font-size: var(--pa-icon-lg);
}/* Color · Font switch */


.pa-style-tabs { display: flex; padding: 3px; border-radius: 12px; background: var(--pa-chip-bg); }
.pa-style-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 var(--pa-space-3);
  border: 0; border-radius: 9px;
  background: none; color: var(--pa-ink-muted);
  font-size: var(--pa-text-base); font-weight: var(--pa-weight-medium);
  transition: background var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease);
}
.pa-style-tab .ti { font-size: var(--pa-icon-md); }
.pa-style-tab:hover { color: var(--pa-ink-strong); }
.pa-style-tab[aria-selected="true"] { background: var(--pa-surface); color: var(--pa-ink-strong); box-shadow: 0 1px 3px rgba(14, 26, 34, 0.12); }
.pa-style-tab[aria-selected="true"] .ti { color: var(--pa-brand-600); }/* A panel's options and controls sit directly in the bar's row */


.pa-style-panel { display: contents; }
.pa-style-panel[hidden] { display: none; }

.pa-style-bar__options {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--pa-space-1);
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pa-style-bar__options::-webkit-scrollbar { display: none; }

.pa-style-opt {
  flex: none;/* keep content width: stretching left wide empty boxes with only three palettes */ 
  display: flex;
  align-items: center;
  gap: var(--pa-space-2);
  height: 56px;
  padding: 0 10px 0 8px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  transition: background var(--pa-duration) var(--pa-ease), border-color var(--pa-duration) var(--pa-ease);
}
.pa-style-opt:hover { background: var(--pa-hover-tint); }
.pa-style-opt[aria-checked="true"] { border-color: var(--pa-brand-500); background: var(--pa-brand-25); }/* The swatch carries its own data-palette, so its brand colors are that palette's */


.pa-style-opt__swatch {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: var(--pa-radius-full);
  background: conic-gradient(from 200deg, var(--pa-brand-700) 0 34%, var(--pa-brand-400) 0 67%, var(--pa-brand-100) 0);
  box-shadow: 0 0 0 2px var(--pa-surface), 0 0 0 3px rgba(14, 26, 34, 0.08);
}/* Font sample tile; the option sets its own font-family inline */

.pa-style-opt__sample {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--pa-brand-50);
  color: var(--pa-brand-700);
  font-size: var(--pa-text-20); font-weight: var(--pa-weight-semibold); line-height: 1;
}/* Shape samples: a small card with the option's corners (and, for Soft, its shadow) */

.pa-style-opt__shape { width: 24px; height: 18px; border: 2px solid var(--pa-brand-700); background: var(--pa-surface); }
.pa-style-opt__shape[data-shape-sample="sharp"] { border-radius: 3px; }
.pa-style-opt__shape[data-shape-sample="soft"] { border-radius: 8px; box-shadow: 0 3px 6px rgba(14, 26, 34, 0.18); }
.pa-style-opt__check {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px; height: 16px;
  display: none; place-items: center;
  border-radius: var(--pa-radius-full);
  background: var(--pa-brand-700);
  color: var(--pa-text-inverse);
  box-shadow: 0 0 0 2px var(--pa-surface);
}
.pa-style-opt__check .ti { font-size: 11px; }
.pa-style-opt[aria-checked="true"] .pa-style-opt__check { display: grid; }
.pa-style-opt__name { display: block; font-size: var(--pa-text-base); font-weight: var(--pa-weight-semibold); line-height: 1.25; color: var(--pa-ink-strong); white-space: nowrap; }
.pa-style-opt__tag { display: block; font-family: var(--pa-font-sans); font-size: var(--pa-text-sm); font-weight: var(--pa-weight-regular); line-height: 1.3; color: var(--pa-ink-muted); white-space: nowrap; }/* Dark menu switch: a tiny page preview, the name, and the switch */


.pa-shell-switch {
  flex: none;
  display: flex; align-items: center; gap: var(--pa-space-2);
  height: 44px; padding: 0 var(--pa-space-2) 0 var(--pa-space-3);
  border: 0; border-left: 1px solid var(--pa-line); border-radius: 0;
  background: none; color: var(--pa-ink-strong);
  font-size: var(--pa-text-base); line-height: var(--pa-leading-20); font-weight: var(--pa-weight-medium); white-space: nowrap;
}
.pa-shell-switch:hover .pa-shell-switch__track { box-shadow: 0 0 0 3px var(--pa-hover-tint); }/* The preview: a page with its header and menu, dark when the switch is on */

.pa-shell-switch__preview {
  position: relative; flex: none;
  width: 30px; height: 24px; overflow: hidden;
  border-radius: 5px;
  background: var(--pa-surface);
  box-shadow: inset 0 0 0 1px var(--pa-line);
}
.pa-shell-switch__preview::before,
.pa-shell-switch__preview::after { content: ""; position: absolute; background: var(--pa-app-bg); box-shadow: inset 0 0 0 1px var(--pa-line); }
.pa-shell-switch__preview::before { inset: 0 0 auto 0; height: 7px; }
.pa-shell-switch__preview::after { inset: 6px auto 0 0; width: 8px; }
.pa-shell-switch[aria-checked="true"] .pa-shell-switch__preview::before,
.pa-shell-switch[aria-checked="true"] .pa-shell-switch__preview::after,
.pa-shell-switch__preview.is-dark::before,
.pa-shell-switch__preview.is-dark::after { background: color-mix(in oklab, var(--pa-p-shell, var(--pa-p-700)), black var(--tone-deep)); box-shadow: none; }
.pa-shell-switch__track {
  position: relative; flex: none;
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--pa-ink-muted);/* off: 3:1 or more against the bar, as a control should be */ 
  transition: background var(--pa-duration) var(--pa-ease), box-shadow var(--pa-duration) var(--pa-ease);
}
.pa-shell-switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(14, 26, 34, 0.25);
  transition: transform var(--pa-duration) var(--pa-ease);
}
.pa-shell-switch[aria-checked="true"] .pa-shell-switch__track { background: var(--pa-brand-600); }
.pa-shell-switch[aria-checked="true"] .pa-shell-switch__track::after { transform: translateX(16px); }
.pa-style-tip__head .pa-shell-switch__preview { width: 34px; height: 28px; }/* Intensity: − [slider] + */


.pa-tone {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--pa-space-2);
  padding-left: var(--pa-space-3);
  border-left: 1px solid var(--pa-line);
}
.pa-tone__btn {
  flex: none;
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-full);
  background: var(--pa-surface);
  color: var(--pa-ink-soft);
  transition: border-color var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease);
}
.pa-tone__btn .ti { font-size: var(--pa-icon-md); }
.pa-tone__btn:hover:not(:disabled) { border-color: var(--pa-brand-400); color: var(--pa-brand-700); }
.pa-tone__btn:disabled { opacity: 0.4; cursor: default; }
.pa-tone__body { width: 108px; display: flex; flex-direction: column; gap: 4px; }
.pa-tone__meta { display: flex; justify-content: space-between; gap: 6px; font-size: var(--pa-text-sm); line-height: 1.2; color: var(--pa-ink-muted); white-space: nowrap; }
.pa-tone__value { color: var(--pa-ink-strong); font-weight: var(--pa-weight-semibold); }

.pa-tone__range { appearance: none; -webkit-appearance: none; width: 100%; height: 18px; margin: 0; background: none; cursor: pointer; }
.pa-tone__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pa-brand-100), var(--pa-brand-700)); }
.pa-tone__range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pa-brand-100), var(--pa-brand-700)); }
.pa-tone__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; margin-top: -6px;
  border: 2px solid var(--pa-brand-600); border-radius: var(--pa-radius-full);
  background: var(--pa-surface);
  box-shadow: 0 1px 3px rgba(14, 26, 34, 0.2);
}
.pa-tone__range::-moz-range-thumb {
  width: 14px; height: 14px;
  border: 2px solid var(--pa-brand-600); border-radius: var(--pa-radius-full);
  background: var(--pa-surface);
}
.pa-tone__range:focus-visible { outline: none; }
.pa-tone__range:focus-visible::-webkit-slider-thumb { box-shadow: var(--pa-focus-ring); }
.pa-tone__range:focus-visible::-moz-range-thumb { box-shadow: var(--pa-focus-ring); }

.pa-style-bar__toggle { flex: none; }

.pa-style-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  height: 44px;
  padding: 0 var(--pa-space-4) 0 var(--pa-space-3);
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-pill);
  background: var(--pa-surface);
  color: var(--pa-ink-strong);
  font-size: var(--pa-text-14);
  font-weight: var(--pa-weight-medium);
  box-shadow: 0 8px 24px rgba(14, 26, 34, 0.14);
}
.pa-style-fab .ti { font-size: var(--pa-icon-lg); color: var(--pa-brand-600); }
.pa-style-fab[hidden] { display: none; }/* Tooltip above a Style option: why a palette, what a font is for (js/app-02.js) */


.pa-style-tip {
  position: fixed;
  z-index: 60;
  width: min(340px, calc(100vw - 16px));
  padding: 14px var(--pa-space-4);
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  background: var(--pa-surface);
  box-shadow: 0 12px 32px rgba(14, 26, 34, 0.18), 0 2px 6px rgba(14, 26, 34, 0.08);
  font-size: var(--pa-text-base);
  line-height: 1.5;
  color: var(--pa-ink);
  pointer-events: none;
}
.pa-style-tip[hidden] { display: none; }
.pa-style-tip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: var(--arrow-x, 50%);
  width: 12px; height: 12px;
  margin-left: -6px;
  border-right: 1px solid var(--pa-line);
  border-bottom: 1px solid var(--pa-line);
  background: var(--pa-surface);
  transform: rotate(45deg);
}
.pa-style-tip__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pa-style-tip__head .pa-style-opt__swatch { width: 28px; height: 28px; }
.pa-style-tip__head .pa-style-opt__sample { width: 34px; height: 34px; font-size: var(--pa-text-16); }
.pa-style-tip__title { font-size: var(--pa-text-14); font-weight: var(--pa-weight-semibold); line-height: 1.3; color: var(--pa-ink-strong); }
.pa-style-tip__fit { font-size: var(--pa-text-sm); color: var(--pa-ink-muted); }
.pa-style-tip__label { margin-bottom: 4px; font-size: var(--pa-text-sm); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-muted); }
.pa-style-tip__list { display: grid; gap: 6px; margin: 0; padding-left: 18px; }
.pa-style-tip__list li::marker { color: var(--pa-brand-500); }
.pa-style-tip__text { white-space: pre-line; }/* Color codes: the option's brand code, and five codes in the tooltip */

.pa-style-opt__hex { font-family: var(--pa-font-mono); letter-spacing: 0; }
.pa-style-tip__list + .pa-style-tip__label { margin-top: 10px; }
.pa-style-tip__codes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.pa-style-tip__codes li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pa-style-tip__chip { height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(14, 26, 34, 0.12); }
.pa-style-tip__hex { font-family: var(--pa-font-mono); font-size: var(--pa-text-sm); font-weight: var(--pa-weight-semibold); color: var(--pa-ink-strong); user-select: all; }
.pa-style-tip__role { font-size: var(--pa-text-sm); color: var(--pa-ink-muted); }

.pa-style-tip__foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--pa-line-soft);
  font-size: var(--pa-text-sm); color: var(--pa-ink-soft);
}
.pa-style-tip__foot .ti { font-size: var(--pa-icon-sm); color: var(--pa-brand-600); }/* ---------- Shape: Soft (Style bar → Shape) ----------
   The earlier, rounder look, kept so the team can compare it with the default Sharp one on any
   page: bigger corners, and soft shadows on cards, record icons and the chosen option of a
   segmented control. Text colors and the hover (below) stay the same in both shapes. Each rule
   adds :root[data-shape="soft"], so it beats the page's own rule wherever it sits. */


:root[data-shape="soft"] {
  --pa-radius-md: 8px;
  --pa-radius-lg: 16px;
  --pa-radius-panel: 20px;
}
:root[data-shape="soft"] :is(.pa-thumb, :is(.pa-seg, .pa-mode):not(.has-thumb) > :is([aria-selected="true"], [aria-pressed="true"]), .pa-view-toggle button[aria-pressed="true"]) { box-shadow: 0 1px 3px rgba(14, 26, 34, 0.12); }
:root[data-shape="soft"] :is(.pa-home .pa-soft, .pa-qa__btn, .pa-stat, .pa-wl, .pa-activity) { box-shadow: 0 0 0 1px var(--pa-line-soft), 0 1px 3px rgba(14, 26, 34, 0.05); }
:root[data-shape="soft"] :is(.pa-stat, .pa-dash-kpi)[aria-pressed="true"] { background: var(--pa-brand-25); box-shadow: 0 0 0 2px var(--pa-brand-600), 0 6px 16px rgba(14, 26, 34, 0.07); }/* Cards you click (Quick actions, Home's numbers, the dashboard's numbers) lift under the pointer
   with a soft shadow, in both shapes: the shape changes only corners and resting shadows. :root
   lifts these rules above each page's own :hover. */

:root :is(.pa-qa__btn, .pa-stat, .pa-dash-kpi) { transition: box-shadow var(--pa-duration) var(--pa-ease), background var(--pa-duration) var(--pa-ease), transform var(--pa-duration) var(--pa-ease); }
:root :is(.pa-qa__btn, .pa-stat, .pa-dash-kpi):hover { background: var(--pa-surface); box-shadow: 0 0 0 1px var(--pa-brand-200), 0 6px 16px rgba(14, 26, 34, 0.08); transform: translateY(-2px); }
:root :is(.pa-qa__btn, .pa-stat, .pa-dash-kpi):active { transform: none; }
:root[data-shape="soft"] .pa-paper { box-shadow: 0 8px 24px rgba(14, 26, 34, 0.12), 0 1px 2px rgba(14, 26, 34, 0.08); }/* ---------- Motion ----------
   Motion helps people follow what changed: new content fades in and rises 8px, lists arrive one
   item after another, popups open from where they hang, and the thumb of a segmented control
   glides to the chosen option (PaMotion.slider in js/app-02.js). Timings are the tokens in
   css/tokens.css. Animations only play forwards from a hidden start ("backwards"), so nothing
   stays half-faded if one is cut short. */


@keyframes pa-fade-in { from { opacity: 0; } }
@keyframes pa-rise-in { from { opacity: 0; transform: translateY(var(--pa-rise)); } }
@keyframes pa-drop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes pa-pop-in { from { opacity: 0; transform: scale(0.6); } }/* The work area fades in when a page opens; the header and menu stay put */


.pa-main { animation: pa-fade-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }/* Shown in place: a tab's panel, a wizard step, a mode, a form that opens, a confirmation */


[role="tabpanel"]:not([hidden]) { animation: pa-fade-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }/* Switching underlined tabs: the underline glides to the chosen tab (PaMotion.ink) and the new
   content slides in a short way from that side (PaMotion.swap), so the eye follows where it went */

@keyframes pa-swap-next { from { opacity: 0; transform: translateX(calc(var(--pa-rise) * 1.5)); } }
@keyframes pa-swap-prev { from { opacity: 0; transform: translateX(calc(var(--pa-rise) * -1.5)); } }
[data-swap="next"], [role="tabpanel"][data-swap="next"] { animation: pa-swap-next var(--pa-duration-long) var(--pa-ease-enter) backwards; }
[data-swap="prev"], [role="tabpanel"][data-swap="prev"] { animation: pa-swap-prev var(--pa-duration-long) var(--pa-ease-enter) backwards; }
.has-ink { position: relative; }
.pa-tab-ink {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  width: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--pa-brand-600); pointer-events: none;
  transition: transform var(--pa-duration-long) var(--pa-ease), width var(--pa-duration-long) var(--pa-ease);
}/* The gliding underline stands in for the chosen tab's own (css/list-02.css) */

.has-ink > .pa-tab:not(.pa-ftab, .pa-stab)[aria-selected="true"]::after { display: none; }
.has-ink > .pa-tab .pa-tab__count { transition: background-color var(--pa-duration) var(--pa-ease), color var(--pa-duration) var(--pa-ease); }
.pa-step:not([hidden]),
.pa-fast:not([hidden]),
.pa-newform:not([hidden]),
.pa-done:not([hidden]) { animation: pa-rise-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }
.pa-done:not([hidden]) > .ti { animation: pa-pop-in var(--pa-duration-long) var(--pa-ease-enter) 150ms backwards; }/* Notes that appear next to what caused them */

.pa-error:not([hidden]),
.pa-undo:not([hidden]),
.pa-doi-note:not([hidden]) { animation: pa-drop-in var(--pa-duration) var(--pa-ease-enter) backwards; }/* Popups open from where they hang */


.pa-popover:not([hidden]) { transform-origin: top right; animation: pa-drop-in var(--pa-duration) var(--pa-ease-enter) backwards; }
.pa-lookup__list:not([hidden]) { transform-origin: top; animation: pa-drop-in var(--pa-duration) var(--pa-ease-enter) backwards; }
.pa-nav__link[aria-expanded="true"] + .pa-nav__sub { transform-origin: top left; animation: pa-drop-in var(--pa-duration) var(--pa-ease-enter) backwards; }
.pa-style-tip:not([hidden]) { animation: pa-fade-in var(--pa-duration) var(--pa-ease-enter) backwards; }
dialog[open] { animation: pa-rise-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }
dialog[open]::backdrop { animation: pa-fade-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }
.pa-app[data-nav-open="true"] .pa-scrim { animation: pa-fade-in var(--pa-duration-long) var(--pa-ease-enter) backwards; }/* Lists that arrive one item after another: add .pa-enter-items to the list. Every item put in
   it later arrives the same way, so a list re-rendered on a tab or a filter plays again. *//* --pa-n is the item's place in line; set on every item so a nested list doesn't inherit its parent's */



.pa-enter-items > * { --pa-n: 0; animation: pa-rise-in var(--pa-duration-long) var(--pa-ease-enter) backwards; animation-delay: calc(var(--pa-n) * var(--pa-stagger)); }
.pa-enter-items > :nth-child(2) { --pa-n: 1; }
.pa-enter-items > :nth-child(3) { --pa-n: 2; }
.pa-enter-items > :nth-child(4) { --pa-n: 3; }
.pa-enter-items > :nth-child(5) { --pa-n: 4; }
.pa-enter-items > :nth-child(6) { --pa-n: 5; }
.pa-enter-items > :nth-child(7) { --pa-n: 6; }
.pa-enter-items > :nth-child(n+8) { --pa-n: 7; }/* Segmented control (.pa-seg): a few views of the same thing, side by side in a grey track */


.pa-seg { display: inline-flex; padding: 3px; border-radius: var(--pa-radius-lg); background: var(--pa-chip-bg); }
.pa-seg button {
  height: calc(var(--pa-control-md) - 6px); padding: 0 var(--pa-space-4);/* with the 3px track around it, the control is the default height */
  border: 0; border-radius: var(--pa-radius-md);
  background: none; color: var(--pa-ink-muted);
  font-size: var(--pa-text-13); font-weight: var(--pa-weight-semibold); white-space: nowrap; cursor: pointer; line-height: var(--pa-leading-18); }
.pa-seg button:hover { color: var(--pa-ink-strong); }/* Without the thumb (js/app-02.js) the chosen option carries the white itself */

.pa-seg button[aria-selected="true"] { background: var(--pa-surface); color: var(--pa-ink-strong); box-shadow: 0 0 0 1px var(--pa-line); }/* Segmented controls (Home's Requests · Cases · Shared with me, One request · Several at once,
   the Style bar's Color · Font): a white thumb glides to the chosen option */


.pa-thumb {
  position: absolute; top: 0; left: 0; z-index: 0;
  border-radius: var(--pa-radius-md);
  background: var(--pa-surface);
  box-shadow: 0 0 0 1px var(--pa-line);
  pointer-events: none;
  transition: transform var(--pa-duration-long) var(--pa-ease), width var(--pa-duration-long) var(--pa-ease);
}
.has-thumb { position: relative; isolation: isolate; }
.has-thumb > :not(.pa-thumb) { position: relative; z-index: 1; transition: color var(--pa-duration) var(--pa-ease); }/* The thumb is the chosen option's background now (beats .pa-seg button[aria-selected="true"]) */

:is(.pa-seg, .pa-mode, .pa-style-tabs).has-thumb > :is([aria-selected="true"], [aria-pressed="true"]) { background: none; box-shadow: none; }
/* Inside the grey track (3px in from its edge) the options and the thumb round to the track's radius
   less that 3px, so the corners nest (Soft: 16px track, 13px thumb; Crisp: 8px, 5px). The Style bar's
   tabs have their own 12px track. */
:is(.pa-seg, .pa-mode, .pa-tabs.pa-tabs--seg) > :is(button, .pa-tab, .pa-thumb) { border-radius: calc(var(--pa-radius-lg) - 3px); }
.pa-style-tabs > .pa-thumb { border-radius: 9px; }
/* Brief cross-fade while the palette changes */


.pa-palette-fade *,
.pa-palette-fade *::before,
.pa-palette-fade *::after {
  transition: background-color var(--pa-duration-long) var(--pa-ease), border-color var(--pa-duration-long) var(--pa-ease), color var(--pa-duration-long) var(--pa-ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .pa-palette-fade *, .pa-palette-fade *::before, .pa-palette-fade *::after { transition: none !important; }/* Near-zero rather than none, so transitionend and animationend still fire */
  
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }/* No waiting either: items that would arrive one after another all show at once */
  
  *, *::before, *::after { animation-delay: 0ms !important; }
}/* ---------- Responsive shell ---------- */


@media (max-width: 991px) {
  .pa-app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "main"; }
  .pa-header { padding: 0 var(--pa-space-4); }
  .pa-menu-btn { display: grid; margin-left: -8px; }

  .pa-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 264px;
    height: 100vh;
    padding-top: var(--pa-space-4);
    box-shadow: var(--pa-shadow-dropdown);
    transform: translateX(-105%);
  }
  .pa-app[data-nav-open="true"] .pa-sidebar { transform: none; transition-timing-function: var(--pa-ease-enter); }/* The drawer's Close button, at its top right (js/app-02.js) */
  
  .pa-nav-close { display: flex; justify-content: flex-end; margin: calc(var(--pa-space-2) * -1) 0 var(--pa-space-1); padding: 0 var(--pa-space-3); }
  .pa-app[data-nav-open="true"] .pa-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: var(--pa-scrim); }

  .pa-main { border-radius: var(--pa-radius-panel) var(--pa-radius-panel) 0 0; box-shadow: none; }

  .pa-style-bar { bottom: 8px; width: calc(100% - 16px); }
}/* Tablets: the Style selector in two rows, [Color · Shape] [− intensity +] [Guidelines] [hide] / Dark menu, options */


@media (min-width: 641px) and (max-width: 991px) {
  :root[data-style-bar="open"] { --pa-style-bar-space: 136px; }
  .pa-style-bar { flex-wrap: wrap; padding: 8px; gap: var(--pa-space-2); border-radius: 16px; }
  .pa-style-bar__head { order: 1; padding-right: 0; border-right: 0; }
  .pa-style-bar__head > .ti,
  .pa-style-tab .ti { display: none; }
  .pa-tone { order: 2; margin-left: auto; padding-left: 0; border-left: 0; gap: 6px; }
  .pa-style-bar .pa-guide-toggle,
  .pa-style-bar__toggle { order: 3; margin-left: 0; }
  .pa-style-bar::after { content: ""; order: 3; flex-basis: 100%; margin-top: -8px; }/* ends the first row */ 
  .pa-shell-switch { order: 4; height: 52px; padding: 0 4px; border-left: 0; }
  .pa-style-panel[data-panel="color"] > .pa-style-bar__options { flex: 1 1 0; }
  .pa-style-bar__options { order: 5; flex-basis: 100%; padding-right: 24px; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }/* hints that it scrolls */ 
  .pa-style-opt { height: 52px; padding: 0 10px 0 8px; }
}

@media (max-width: 640px) {/* Phone: the account is its avatar */
  
  .pa-user__name { display: none; }
  .pa-user { padding-right: 8px; }
  .pa-header__actions { gap: var(--pa-space-1); }
  .pa-header [data-optional] { display: none; }
  .pa-brand__logo { width: 36px; height: 36px; }
  .pa-brand__name { font-size: var(--pa-text-14); line-height: var(--pa-leading-20); }
  .pa-brand__sub { font-size: var(--pa-text-sm); line-height: var(--pa-leading-16); }
  .pa-main { padding-bottom: calc(var(--pa-dock-bottom) + var(--pa-space-2)); }/* No Style selector on a phone; bottom bars only keep clear of the Guidelines button (12px + 44px) */

  
  :root[data-style-bar] { --pa-style-bar-space: 0px; --pa-dock-bottom: 64px; }/* A page whose look is decided has no round buttons at all (data-style-bar="none"): bars sit low */
  
  :root[data-style-bar="none"] { --pa-dock-bottom: 8px; }
  .pa-style-bar, .pa-style-fab, .pa-style-tip { display: none !important; }

  .pa-pager { gap: var(--pa-space-3); }
  .pa-pager__divider { display: none; }
  .pa-page-nav { padding: 0; }
  .pa-page-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }/* Prev / Next stay the buttons' names */ 
  .pa-page-nav--prev, .pa-page-nav--next { margin: 0; }
}
