/* BUILD STAMP: Nov 3, 2026 - 7:26:37 PM PT - production site.css - SITE v4.84 - TRACKER Revision 130 */
/* ==========================================================================
   TidyBox shared site chrome (created Oct 14, 2026; last updated Nov 3, 2026, 7:26:37 PM PT · site v4.84 · tracker Revision 130)
   The ONLY place that defines the site header band, footer band, navigation,
   wordmark, status label, and shared button styles for gettidybox.com.
   Every page links this file; page-level <style> blocks hold page-specific
   rules only and must never restyle the chrome defined here.
   ========================================================================== */

:root{
  --navy:#14213D;
  --green:#2E7D32;
  --sage:#6B8F71;
  --light-sage:#E8F0E8;--line:#E4EAE3;
  --tb-soft-default:#E6EFE4;
  --ink:#2D3748;
  --muted:#5A6B5E;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
/* (v2.61, TB-1028) Page-width guard: no page may ever be wider
   than the screen, so a phone can never pan sideways. clip is
   used (not hidden) so sticky elements keep working; hidden is
   the fallback for engines without clip. Containers that
   scroll horizontally on purpose (.tb-tabs, .tb-wraptable)
   scroll inside their own boxes and are unaffected. */
html,body{overflow-x:hidden;overflow-x:clip;}
body{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#FFFFFF;
  line-height:1.55;
  -webkit-text-size-adjust:100%;
}
.wrap{max-width:920px;margin:0 auto;padding:0 20px;}

/* Header band (all pages): light sage, dark text */
.band-head{background:var(--light-sage);}

/* Footer band (all pages): light sage, dark text */
.band-foot{background:var(--light-sage);color:var(--ink);text-align:center;}
footer{
  background:var(--light-sage);
  color:var(--ink);
  text-align:center;
  padding:26px 0;
  font-size:14px;
}
footer .fmark{font-weight:bold;color:var(--navy);}
footer .fmark .fbox{color:var(--green);}
footer p{margin:4px 0 0;color:var(--muted);}

/* Wordmark */
.wordmark{
  font-size:clamp(34px,7vw,48px);
  font-weight:bold;
  letter-spacing:-1px;
  line-height:1.05;
  margin:0;
}
.wordmark--lg{font-size:clamp(46px,10vw,78px);}
.wordmark .tidy{color:var(--navy);}
.wordmark .box{color:var(--green);}
.wordmark a{text-decoration:none;}

/* Tagline */
.tagline{
  color:var(--sage);
  font-size:clamp(16px,3.8vw,20px);
  font-weight:bold;
  margin:8px 0 0;
}
.tagline--lg{
  font-size:clamp(19px,4.5vw,25px);
  font-style:italic;
  margin:10px 0 0;
}

/* Site navigation */
.sitenav{margin-bottom:24px;}
.navrow{display:flex;align-items:center;justify-content:space-between;position:relative;}
.navmark{font-size:21px;font-weight:bold;letter-spacing:-.5px;line-height:1;text-decoration:none;}
.navmark .tidy{color:var(--navy);}
.navmark .box{color:var(--green);}
.navlinks{display:flex;gap:26px;}
.navlinks a{
  font-size:15px;
  font-weight:bold;
  text-decoration:none;
  color:var(--navy);
  opacity:1;
}
.navlinks a.current{
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:5px;
}
.navtoggle{display:none;background:none;border:none;cursor:pointer;padding:10px 2px;margin:0;}
.navtoggle span{display:block;width:24px;height:3px;border-radius:2px;background:var(--navy);}
.navtoggle span + span{margin-top:5px;}

@media (max-width:640px){
  .navtoggle{display:block;}
  /* Mobile nav panel (v2.56): ONE card on the same
     treatment as the avatar account panel - a hairline
     border, 12px radius, the shared soft shadow, and
     padding inside the card, so every row,
     Sign out included, sits inside the one panel and
     the current page's pill highlight is inset by that
     padding instead of running edge to edge. The width
     is capped, and the panel anchors under the top bar
     at the nav row's content edge (the row is the page
     wrap, whose 20px gutter the right offset mirrors),
     so the card never touches the screen edge. Rows
     take the app shells' standard menu metrics
     (the .tb-profilemenu-item shape: 40px minimum,
     9px 12px padding, 8px radius, 14.5px). */
  .navlinks{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:20px;
    flex-direction:column;
    gap:0;
    background:#FFFFFF;
    border:1px solid rgba(20,33,61,.14);
    border-radius:12px;
    box-shadow:0 12px 32px rgba(20,33,61,.16);
    padding:6px;
    width:232px;
    max-width:calc(100vw - 24px);
    z-index:50;
    text-align:left;
  }
  .navlinks.open{display:flex;}
  .navrow .navlinks a{
    color:var(--navy);
    opacity:1;
    display:flex;
    align-items:center;
    min-height:40px;
    padding:9px 12px;
    border-radius:8px;
    font-size:14.5px;
  }
  .navlinks a.current{color:var(--green);text-decoration:underline;text-underline-offset:4px;}
}

/* Auth chrome (Oct 15, 2026): help link and auth slot at the
   right end of the nav row on every page. The slot content is
   rendered by /assets/site.js: the signed-in avatar (a
   button opening the account menu) when the visitor has a
   Google session, a pill Sign in button when they do not. */
.navrow .navlinks{margin-left:auto;}
.help-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex:none;
  margin-left:20px;
  border:1.6px solid var(--navy);
  border-radius:50%;
  color:var(--navy);
  font-size:16px;
  font-weight:bold;
  line-height:1;
  text-decoration:none;
}
.authslot{display:inline-flex;align-items:center;flex:none;margin-left:12px;}
.authslot:empty{margin-left:0;}
.signin-btn{
  display:inline-flex;
  align-items:center;
  padding:8px 18px;
  border-radius:10px;
  background: var(--green);
  color:#FFFFFF;
  font-weight:bold;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
}
.signin-btn:hover{background: var(--green-dark);}
.avatar-img{
  display:block;
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(20,33,61,.25);
}
.avatar-initials{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--sage);
  color:var(--navy);
  font-size:12.5px;
  font-weight:bold;
  letter-spacing:.3px;
}
/* Avatar account menu (Oct 15, 2026): the signed-in avatar is
   a button; its panel drops down under the slot with the
   visitor's name and email, a Dashboard link, and Sign out.
   Rendered by /assets/site.js. */
.avatar-wrap{position:relative;display:inline-flex;}
.avatar-btn{
  background:none;
  border:none;
  padding:0;
  margin:0;
  cursor:pointer;
  display:inline-flex;
  border-radius:50%;
  font:inherit;
}
.avatar-btn:focus-visible{outline:2px solid var(--navy);outline-offset:2px;}
.avatar-panel{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:232px;
  background:#FFFFFF;
  border:1px solid rgba(20,33,61,.14);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(20,33,61,.16);
  padding:8px;
  z-index:60;
  text-align:left;
}
.avatar-panel[hidden]{display:none;}
.avatar-panel-head{
  padding:10px 12px 9px;
  border-bottom:1px solid var(--light-sage);
  margin-bottom:6px;
}
.avatar-panel-name{
  margin:0;
  font-weight:bold;
  color:var(--navy);
  font-size:15.5px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.avatar-panel-email{
  margin:2px 0 0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.avatar-panel a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--navy);
  font-size:15px;
  font-weight:bold;
  text-decoration:none;
}
.avatar-panel a:hover{background:var(--light-sage);}
@media (max-width:640px){
  .navrow .navtoggle{margin-left:auto;}
  .help-link{margin-left:14px;}
}

/* Saved confirmation banner (shared, Oct 16, 2026; the banner treatment is
   v2.47): the ONE saved confirmation in the
   back office and on the customer dashboard.
   site.js owns the element (window.tbShowSaved)
   and pages never restyle it. A slim sage
   banner - light sage ground, brand green
   text, a check mark, the one word "Saved" -
   across the top of the viewport, or across
   the top of an open sheet when the save
   happened inside one. It overlays, so
   nothing on the page moves under the
   person's finger; it fades on its own.
   (v2.48) tbShowBanner names a send's
   outcome on this same banner; its error
   treatment below (the danger red family,
   wrapping allowed, a longer stay handled
   in site.js) is how a failed send shows. */
.tb-saved-banner{
  position:fixed;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:300;
  display:inline-flex;
  align-items:center;
  gap:8px;
  /* (TB-1074) The banner is center-anchored; with
     no width cap and nowrap text, any save message
     wider than the phone spilled off both edges at
     once. Capped at the viewport minus margins,
     and the text may wrap inside it. */
  max-width:calc(100vw - 24px);
  flex-wrap:wrap;
  justify-content:center;
  text-align:center;
  padding:9px 20px;
  border:1px solid #B9CCB4;
  border-radius:8px;
  background:var(--light-sage);
  color: var(--green);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14.5px;
  font-weight:bold;
  line-height:1.25;
  white-space:normal;
  box-shadow:0 10px 28px rgba(20,33,61,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
.tb-saved-banner svg{width:17px;height:17px;flex:0 0 auto;}
.tb-saved-banner.tb-saved-banner-on{opacity:1;}
.tb-saved-banner.tb-saved-banner-err{
  border-color:#EBCFCB;
  background:#F9E3E1;
  color:#B3261E;
  white-space:normal;
  text-align:center;
  max-width:min(92vw,480px);
}
.tb-saved-banner.tb-saved-banner-insheet{
  position:absolute;
  top:0;
  left:0;
  right:0;
  transform:none;
  justify-content:center;
  border-left:0;
  border-right:0;
  border-top:0;
  border-radius:0;
  box-shadow:0 8px 20px rgba(20,33,61,.12);
}

/* Status label (plain label, never styled as a button) */
.pilot{
  display:block;
  color:var(--green);
  font-weight:bold;
  letter-spacing:2.5px;
  text-transform:uppercase;
  font-size:13px;
  margin-bottom:16px;
}

/* Shared button */
.btn{
  display:inline-block;
  background:var(--green);
  color:#FFFFFF;
  font-weight:bold;
  font-size:16.5px;
  text-decoration:none;
  padding:14px 30px;
  border-radius:8px;
}

/* Action-page button tiers (Oct 15, 2026): the /go and
   /approve pages define .btn-quiet and .gbtn in their page
   <style> blocks; the fill treatment lives here, in the
   shared chrome, under the same three-tier rule as the app
   shell - solid green for the commit class (.btn above and
   .gbtn), light sage for the escape class (.btn-quiet,
   the Decline button). The body prefix lets these rules
   govern over the page blocks' own fill declarations,
   which stay behind for layout only. */
body button.btn-quiet{
  background:var(--light-sage);
  color:var(--navy);
  border:1px solid var(--sage);
}
body button.btn-quiet:hover{background:var(--line);}
body .gbtn{
  background:var(--green);
  color:#FFFFFF;
  border-color:var(--green);
}
body .gbtn:hover{background: var(--green-dark);border-color: var(--green-dark);}
/* Disabled public buttons (button placement cleanup,
   Oct 16, 2026): the public .btn / .btn-quiet take the
   same plain neutral gray as the app shell's disabled
   controls, never a live button in a fainter tint. The
   body prefix outranks the page blocks' opacity fades,
   which stay behind for every other state. */
body button.btn[disabled],body button.btn-quiet[disabled]{
  background:#E4E4E4;border:1px solid #AFAFAF;color:#666666;
  opacity:1;cursor:default;
}

/* Nav polish (Oct 15, 2026): nav links carry a soft sage
   pill on hover, and the link for the page being viewed
   (marked .nav-active + aria-current by /assets/site.js)
   keeps the pill. The pill rules sit after the .current
   rules above at equal specificity, so the pill supersedes
   the older green-underline treatment on the active link.
   On desktop the pill gets its room from padding balanced
   by negative margins, so the link text never shifts. The
   help link and #authslot keep the grouped spacing set in
   the auth chrome section (20px and 12px), which already
   reads as one utility cluster at the right of the row. */
.navlinks a{border-radius:999px;}
.navlinks a:hover{background:var(--light-sage);}
.navlinks a.nav-active{
  background:var(--light-sage);
  color:var(--navy);
  text-decoration:none;
}
@media (min-width:641px){
  .navlinks a{padding:6px 12px;margin:-6px;}
}

/* Auth entry in the mobile nav panel (Oct 15, 2026):
   /assets/site.js appends a Sign in / Sign out link
   (.nav-auth-item) as the last item of .navlinks. On
   desktop the header already carries the auth utility in
   #authslot (the pill / avatar menu), so the item stays
   hidden there and appears only inside the mobile panel,
   set off from the page links by a hairline. The panel
   links stack as full-width rows on the standard menu
   metrics in the mobile rules above. */
.nav-auth-item{display:none;}
@media (max-width:640px){
  /* The auth entry is a row of the one panel (v2.56):
     the hairline sits on the row inside the card's
     padding, with no margin pushing the row away from
     the others, so it can no longer read as a second
     detached card under the panel. */
  .navlinks a.nav-auth-item{
    display:flex;
    border-top:1px solid var(--light-sage);
  }
}

/* View-as banner (Oct 15, 2026): inserted as the first element
   of body by /assets/site.js when an admin is viewing as a
   customer. Sticky at the top so page content is never hidden
   under it. */
.view-banner{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--navy);
  color:#FFFFFF;
  font-weight:bold;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}
.view-banner button{
  background:var(--light-sage);
  color:var(--navy);
  border:1px solid var(--sage);
  border-radius:6px;
  padding:5px 14px;
  font:inherit;
  font-size:14px;
  font-weight:bold;
  cursor:pointer;
}
.view-banner button:hover{background:var(--line);}

/* Maintenance notice (Oct 15, 2026): inserted as the first
   element of body by /assets/site.js, on public pages
   only, while a global admin has maintenance on. Sticky
   at the top so page content is never hidden under it. */
.maint-banner{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--light-sage);
  color:var(--navy);
  padding:10px 16px;
  text-align:center;
  font-size:15px;
  line-height:1.45;
  border-bottom:1px solid var(--sage);
}

/* Demo mode marker (Oct 16, 2026): inserted by
   /assets/site.js wherever demo applies for the reader,
   and rendered natively by the dashboard. Sticky, warm
   amber, impossible to miss and distinct from both the
   view-as (navy) and maintenance (sage) banners. */
.demo-banner{
  position:sticky;
  top:0;
  z-index:101;
  background:#FFF1B8;
  color:var(--navy);
  font-weight:bold;
  padding:10px 16px;
  text-align:center;
  font-size:15px;
  line-height:1.45;
  border-bottom:1px solid #E3C565;
}

/* Demo mode Settings card (Oct 16, 2026): the feature
   area groups revealed when Features is set to Select. */
.app-shell .demo-featgroup{margin-top:14px;border-top:1px solid var(--tb-line);padding-top:12px;}
.app-shell .demo-feat{display:flex;gap:10px;align-items:flex-start;padding:8px 0;}
.app-shell .demo-feat input[type="checkbox"]{margin-top:3px;accent-color:var(--tb-green);width:17px;height:17px;flex:none;}
.app-shell .demo-feat .demo-featname{font-weight:600;color:var(--tb-text);}
.app-shell .demo-marker{display:inline-block;background:#FFF1B8;color:var(--navy);border:1px solid #E3C565;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:bold;margin-bottom:12px;}
.maint-banner .maint-count{font-weight:bold;}
/* Strong level (Site problem): the burgundy warning
   tier, so the stronger case never reads as routine. */
.maint-banner-strong{
  background:#F9ECEC;
  color:#7B1E26;
  border-bottom:1px solid #7B1E26;
}
/* The operator's banner in the back office: navy, so it
   reads as an operator notice, not a visitor message. */
.maint-banner-admin{
  background:var(--navy);
  color:#FFFFFF;
  border-bottom:1px solid var(--navy);
}

/* ==========================================================================
   App shell (Oct 15, 2026 redesign): the signed-in application
   shell shared by the admin pages and the customer dashboard.
   Pale sage sidebar, very light neutral canvas, white panels,
   green primary actions. Every rule is scoped under .app-shell
   so the public/marketing pages and their top nav are untouched.
   Page-specific shell pieces also live here (never in per-page
   <style> blocks): admin detail tabs, feedback, subscription
   simulation, dashboard stat cards, receipt modal.
   ========================================================================== */
/* (Oct 29, 2026) The shell brand color: Theme Management's
   brand default (TidyBox green). Palettes restyle a person's
   own surfaces through --tb-green; the back office's primary
   chrome (pop-up header bars, the Review Center banner,
   count badges, tab accents) wears the brand through
   --tb-brand, which no palette overrides, so it can never
   come up in another theme's color (Trevor's catch: the
   flagged surfaces wore the itps palette's blue). */
:root{--tb-brand:#2E7D32;--tb-brand-dark:#256629;}
@font-face{font-family:"Inter";src:url("/assets/inter-var.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;}
.app-shell{
  --tb-bg:#F7F9F7;
  --tb-navy:#14213D;
  --tb-radius:16px;
  --tb-radius-lg:20px;
  --tb-fig:40px;
  --tb-paneltitle:24px;
  --tb-caption:15px;
  --tb-panel:#FFFFFF;
  --tb-side:#F0F4EF;
  --tb-text:#18283A;
  --tb-muted:#68766E;
  --tb-line:var(--line);
  --tb-green:#2E7D32;
  --tb-green-dark:#256629;
  /* The platform's three status lights, defined once
     (TH-7): the only fixed colors platform-wide; every
     status light surface reads these tokens. */
  --tb-light-green:#2E9E4F;
  --tb-light-amber:#E8A33D;
  --tb-light-red:#D64541;
  --tb-brand:#2E7D32;
  --tb-brand-dark:#256629;
  --tb-soft:var(--tb-soft-default);
  /* (Oct 29, 2026) The selected folder tab's tint
     (Trevor): a light wash of the brand, resolved
     from --tb-brand so the tab family stays in the
     brand token family; in the default theme it
     computes to a pale brand tint. The panel beneath stays
     white - only the tab body is tinted. */
  --tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));
  --tb-warn:#806022;
  --tb-danger:#B3261E;
  --tb-danger-dark:#8C1D18;
  /* (P-27, Nov 1, 2026) ONE derivation rule for status TEXT
     shades: a status text color is its fixed status color
     (the TH-7 lights above) mixed with the ink (--tb-text) -
     the standard step keeps 50% of the status color, the
     deep step 30%. Pills, badges, status chips and the
     report cards read these four tokens for status text;
     fills, dots and borders keep the flat tokens above. */
  --tb-ok-text:color-mix(in srgb,var(--tb-light-green) 50%,var(--tb-text));
  --tb-warn-text:color-mix(in srgb,var(--tb-light-amber) 50%,var(--tb-text));
  --tb-danger-text:color-mix(in srgb,var(--tb-light-red) 50%,var(--tb-text));
  --tb-danger-text-deep:color-mix(in srgb,var(--tb-light-red) 30%,var(--tb-text));
  font-family:"Inter",Arial,Helvetica,sans-serif;
  color:var(--tb-text);
  font-size:14.5px;
  line-height:1.45;
  background:var(--tb-bg);
  min-height:100vh;
  /* (v2.61, TB-1028) shell-level width guard, same rule as the
     page guard above. */
  overflow-x:hidden;overflow-x:clip;
}
/* (Oct 30, 2026) The back office brand lock, completed.
   The Oct 29 doctrine pinned the back office's primary
   chrome to --tb-brand, but the rest of the brand family
   (section titles, stat icons, chevrons, row verbs, text
   links, avatars, pills, primary buttons, nav states,
   focus outlines) still read the palette-following
   --tb-green pair and its tint family, so under the
   platform default theme (server_settings
   theme.platform_default = "itps") the back office came
   up wearing two themes at once: brand green on the
   pinned pieces, the itps palette's azure on everything
   else (Trevor's Oct 30 catch). Inside the back office
   roots the palette-following brand tokens resolve to
   the brand family Theme Management owns, so every
   brand-related element in the back office models the
   one brand. The customer dashboard (#dash-shell) is
   untouched: a person's own palette still dresses
   their own surfaces there. The tint aliases derive
   from --tb-brand by color-mix (the --tb-tab-tint
   pattern), so no new literal palette enters the file. */
#ad-shell,#ad-states{
  --tb-green:var(--tb-brand);
  --tb-green-dark:var(--tb-brand-dark);
  --tb-soft:color-mix(in srgb,var(--tb-brand) 10%,var(--tb-panel,#FFFFFF));
  --tb-side:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel,#FFFFFF));
  --tb-bg:color-mix(in srgb,var(--tb-brand) 3%,var(--tb-panel,#FFFFFF));
  --tb-line:color-mix(in srgb,var(--tb-brand) 13%,var(--tb-panel,#FFFFFF));
  --tb-sage-mid:color-mix(in srgb,var(--tb-brand) 52%,var(--tb-panel,#FFFFFF));
}

/* WORKSPACE BRAND ADOPTION (Oct 30, 2026): inside the back
   office the brand family follows the workspace template in
   view. --tb-brand stays the TidyBox green constant at :root
   (the product brand; the customer dashboard is untouched).
   On the back office shells the brand re-points to the
   active palette primary, and the brand lock above aliases
   the whole token family (the green tokens and the soft,
   side, bg and line washes) to it: the ITPS template renders
   azure and ink, a green-brand workspace still renders
   green, and no single workspace color is hard-coded. The
   tab tint is re-derived here because it is declared on
   .app-shell from --tb-brand. The guide sheet and header
   search popover ride the same sibling scope as the lock. */
html[data-theme="ocean"] #ad-shell,html[data-theme="ocean"] #ad-states,html[data-theme="ocean"] #ad-shell ~ .tb-guide-sheet,html[data-theme="ocean"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#205a70;--tb-brand-dark:#163d4c;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="coral"] #ad-shell,html[data-theme="coral"] #ad-states,html[data-theme="coral"] #ad-shell ~ .tb-guide-sheet,html[data-theme="coral"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#a75046;--tb-brand-dark:#723630;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="jade"] #ad-shell,html[data-theme="jade"] #ad-states,html[data-theme="jade"] #ad-shell ~ .tb-guide-sheet,html[data-theme="jade"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#246451;--tb-brand-dark:#184437;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="marine"] #ad-shell,html[data-theme="marine"] #ad-states,html[data-theme="marine"] #ad-shell ~ .tb-guide-sheet,html[data-theme="marine"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#264a79;--tb-brand-dark:#1a3252;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="plum"] #ad-shell,html[data-theme="plum"] #ad-states,html[data-theme="plum"] #ad-shell ~ .tb-guide-sheet,html[data-theme="plum"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#654567;--tb-brand-dark:#452f46;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="copper"] #ad-shell,html[data-theme="copper"] #ad-states,html[data-theme="copper"] #ad-shell ~ .tb-guide-sheet,html[data-theme="copper"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#a95732;--tb-brand-dark:#733b22;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="forest"] #ad-shell,html[data-theme="forest"] #ad-states,html[data-theme="forest"] #ad-shell ~ .tb-guide-sheet,html[data-theme="forest"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#365b42;--tb-brand-dark:#253e2d;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="petrol"] #ad-shell,html[data-theme="petrol"] #ad-states,html[data-theme="petrol"] #ad-shell ~ .tb-guide-sheet,html[data-theme="petrol"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#235859;--tb-brand-dark:#183c3d;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="clay"] #ad-shell,html[data-theme="clay"] #ad-states,html[data-theme="clay"] #ad-shell ~ .tb-guide-sheet,html[data-theme="clay"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#a76553;--tb-brand-dark:#724538;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="indigo"] #ad-shell,html[data-theme="indigo"] #ad-states,html[data-theme="indigo"] #ad-shell ~ .tb-guide-sheet,html[data-theme="indigo"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#4a5089;--tb-brand-dark:#32365d;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="berry"] #ad-shell,html[data-theme="berry"] #ad-states,html[data-theme="berry"] #ad-shell ~ .tb-guide-sheet,html[data-theme="berry"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#8c415c;--tb-brand-dark:#5f2c3f;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="slate"] #ad-shell,html[data-theme="slate"] #ad-states,html[data-theme="slate"] #ad-shell ~ .tb-guide-sheet,html[data-theme="slate"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#4d6070;--tb-brand-dark:#34414c;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="olive"] #ad-shell,html[data-theme="olive"] #ad-states,html[data-theme="olive"] #ad-shell ~ .tb-guide-sheet,html[data-theme="olive"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#606846;--tb-brand-dark:#414730;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="charcoal"] #ad-shell,html[data-theme="charcoal"] #ad-states,html[data-theme="charcoal"] #ad-shell ~ .tb-guide-sheet,html[data-theme="charcoal"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#353d46;--tb-brand-dark:#242930;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="itps"] #ad-shell,html[data-theme="itps"] #ad-states,html[data-theme="itps"] #ad-shell ~ .tb-guide-sheet,html[data-theme="itps"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#146eac;--tb-brand-dark:#0e4b75;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 20%,var(--tb-panel,#FFFFFF));}
html[data-theme="scott-midnight"] #ad-shell,html[data-theme="scott-midnight"] #ad-states,html[data-theme="scott-midnight"] #ad-shell ~ .tb-guide-sheet,html[data-theme="scott-midnight"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#d4a94e;--tb-brand-dark:#b8912f;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}
html[data-theme="chantelle-noir"] #ad-shell,html[data-theme="chantelle-noir"] #ad-states,html[data-theme="chantelle-noir"] #ad-shell ~ .tb-guide-sheet,html[data-theme="chantelle-noir"] #ad-shell ~ .tb-hsearch-pop{--tb-brand:#d4af6a;--tb-brand-dark:#c29d4f;--tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));}

/* DASHBOARD BRAND ADOPTION (Oct 31, 2026, immediate release;
   record ~/workspace/tab-branding-fix/RECORD.md): the mirror
   of the back office adoption above, ordered by Trevor in
   the Oct 31 live walk. The brand lock deliberately left
   #dash-shell untouched, but the shared count pills, tab
   counts and the tab tint family read --tb-brand, so on
   the customer dashboard those pieces stayed pinned to the
   :root TidyBox green while every other surface followed
   the person's picked palette (Trevor's catch: green pills
   and a pale green selected tab under IT Problem Solver
   (Default)). Inside the dashboard shell the brand family
   now resolves from the palette family, exactly as the
   back office aliases its green family to the brand: the
   palette the person picked governs every surface. The
   tab tint and the envelope are re-derived here because
   they are declared on .app-shell from --tb-brand. The
   default theme is unchanged: there --tb-green IS the
   brand green. */
#dash-shell{
  --tb-brand:var(--tb-green);
  --tb-brand-dark:var(--tb-green-dark);
  --tb-tab-tint:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));
  --tb-tab-envelope:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel,#FFFFFF));
}

/* The header search popover and the Ask Sprout guide
   sheet are mounted on the page body, outside the
   shell roots, and carry their own token copies (the
   THEME ADOPTION (1c) block below); on the back office
   page they take the same brand lock. */
#ad-shell ~ .tb-guide-sheet,#ad-shell ~ .tb-hsearch-pop{
  --tb-green:var(--tb-brand);
  --tb-green-dark:var(--tb-brand-dark);
  --tb-soft:color-mix(in srgb,var(--tb-brand) 10%,var(--tb-panel,#FFFFFF));
  --tb-line:color-mix(in srgb,var(--tb-brand) 13%,var(--tb-panel,#FFFFFF));
}
.app-shell *{box-sizing:border-box;}
.app-shell button,.app-shell input,.app-shell select,.app-shell textarea{font:inherit;}
.app-shell button{color:inherit;cursor:pointer;}
.app-shell button:focus-visible,.app-shell a:focus-visible,
.app-shell input:focus-visible,.app-shell select:focus-visible,
.app-shell textarea:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:2px;
}
.app-shell [hidden]{display:none !important;}
.app-shell h1{font-size:32px;font-weight:650;line-height:1.2;margin:0 0 7px;letter-spacing:-.6px;color:var(--tb-navy);}
.app-shell h2{font-size:16.5px;font-weight:500;margin:0;color:var(--tb-text);}
/* Section titles (Trevor's rule, Oct 16, 2026): every section
   title in the back office and the customer dashboard is bold
   in the interface's primary green. Defined ONCE here: the
   app shell's primary green is --tb-green, the brand green
   #2E7D32 - the same green as the public pages' --green
   since the v2.37 overhaul retired the second, softer
   shell green (#47774F), so one green paints every
   interactive element on every surface. Titles opt in
   with the single class
   .tb-section-title; no title is hand-colored. This rule sits
   before the danger-zone rule below, so a danger-zone title
   keeps its red. */
.app-shell h2.tb-section-title{font-weight:700;color:var(--tb-green);}

.app-shell p{margin:0;}
.app-shell .tb-muted{color:var(--tb-muted);}
.app-shell .tb-layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;}

/* Sidebar */
.app-shell aside.tb-side{
  background:var(--tb-side);
  padding:27px 18px;
  display:flex;flex-direction:column;
  border-right:1px solid var(--tb-line);
}
.app-shell .tb-logo{font-size:24px;font-weight:bold;letter-spacing:-1px;padding:0 9px;text-decoration:none;line-height:1.1;}
.app-shell .tb-logo .tidy{color:var(--navy);}
.app-shell .tb-logo .box{color:var(--green);}
.app-shell .tb-label{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--tb-muted);padding:9px 10px 23px;}
.app-shell .tb-version{font-size:11.5px;color:var(--tb-muted);padding:3px 9px 0;}
.app-shell .tb-seg{display:inline-flex;border:1px solid var(--tb-line);border-radius:8px;overflow:hidden;margin-top:12px;background:var(--tb-panel);}
.app-shell .tb-seg button{border:0;background:transparent;color:var(--tb-text);font:inherit;font-size:14px;padding:8px 22px;cursor:pointer;}
.app-shell .tb-seg button.selected{background:var(--tb-green);color:#FFFFFF;font-weight:500;}
.app-shell .tb-seg button[disabled]{background:#E4E4E4;color:#666666;opacity:1;cursor:default;}
.app-shell .tb-changelog-notes{margin:10px 0 2px;padding-left:20px;font-size:14.5px;line-height:1.65;}
/* (v2.60, point 9) Admin home sections: a sage band
   title carrying its count, over white cards ruled
   in green on the left (the digest scorecard's
   formatting, Trevor's brief for this page). */
.app-shell .tb-homeband{
  display:flex;align-items:baseline;gap:8px;
  background:var(--tb-soft);border-radius:8px;
  padding:9px 13px;margin:22px 0 12px;
  font-size:15px;font-weight:700;
  color:var(--tb-green-dark);}
.app-shell .tb-homeband .tb-homeband-count{
  font-size:13px;font-weight:600;color:var(--tb-muted);}
.app-shell .tb-homecard{
  border:1px solid var(--tb-line);
  border-left:4px solid var(--tb-green);
  border-radius:var(--tb-radius);background:var(--tb-panel);
  padding:16px 18px;margin-bottom:14px;}
/* The score band: four tiles across on a wide screen,
   two on a phone (the one-column fall still applies
   on the narrowest screens). */
.app-shell .tb-stats.tb-stats-4{
  grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){
  .app-shell .tb-stats.tb-stats-4{
    grid-template-columns:1fr 1fr;}}
/* (v2.67, TB-1052) The five-across band, the admin
   home's stat row on the same grid discipline as the
   four-across band: five even tiles on a wide screen,
   three then two as the screen narrows (the fifth
   tile spans the row rather than orphaning), and
   two-up on phones, like My Dashboard's own band
   (TB-1081 removed the one-column phone collapse). */
.app-shell .tb-stats.tb-stats-5{
  grid-template-columns:repeat(5,1fr);}
@media (max-width:1100px){
  .app-shell .tb-stats.tb-stats-5{
    grid-template-columns:repeat(3,1fr);}}
@media (max-width:900px){
  .app-shell .tb-stats.tb-stats-5{
    grid-template-columns:1fr 1fr;}
  .app-shell .tb-stats.tb-stats-5 .tb-stat:last-child{
    grid-column:1 / -1;}}
/* (TB-1081) The narrowest screens used to collapse
   this band to one column, which stacked all five
   admin tiles full-width and pushed the home's
   tab strip below the fold - on a phone the admin
   dashboard effectively had no secondary
   navigation. The band now keeps the two-up phone
   layout at every width (the <=900px rule above,
   the fifth tile spanning), the same shape as My
   Dashboard's own band. */
/* The unsaved-changes summary list (point 10). */
.app-shell .tb-changesum{
  margin:10px 0 2px;padding-left:20px;font-size:14px;
  line-height:1.6;color:var(--tb-text);text-align:left;}
.app-shell .tb-nav{
  border:0;background:transparent;display:flex;align-items:center;gap:10px;
  padding:11px 12px;border-radius:10px;text-align:left;width:100%;margin:3px 0;
  font-size:14.5px;text-decoration:none;color:var(--tb-text);
}
.app-shell .tb-nav svg{width:17px;height:17px;flex-shrink:0;}
.app-shell .tb-nav.active{background:color-mix(in srgb,var(--tb-brand) 16%,#FFFFFF);color:var(--tb-green-dark);font-weight:700;box-shadow:inset 3px 0 0 var(--tb-brand),0 1px 3px rgba(24,40,58,.10);}
/* (Master Profile, instance #1, Oct 24, 2026) The rail
   variant had an active style but no hover style at
   all; Trevor's hover rule covers every button-like
   control, the rail included. The soft tint is the
   same one the More sheet's active row uses, and the
   focus outline already rides the shell-wide
   focus-visible rule above. */
.app-shell .tb-nav:hover{background:var(--tb-soft);}
/* The current page's item already wears the soft fill
   the plain hover applies, and its own rule stands
   later at the same weight, so it answered the mouse
   with nothing. The current item deepens a step
   instead, on hover and further on press, mixed from
   the theme's own soft and green. */
.app-shell .tb-nav.active:hover{background:color-mix(in srgb,var(--tb-green) 16%,var(--tb-soft));}
.app-shell .tb-nav.active:active{background:color-mix(in srgb,var(--tb-green) 28%,var(--tb-soft));}
/* Utility cluster separation (v1.9, Oct 15, 2026; tail
   amended Oct 16, 2026): the first utility item in the
   admin nav carries tb-navsep - a hairline and air above
   it divide the work sections (Admin dashboard, User
   dashboard, Users, Invitations, Feedback) from the
   utility tail (Settings, Changelog). Its phone-menu
   twin carries the same separation as tb-burgersep;
   site.js copies the mark across. */
.app-shell .tb-nav.tb-navsep{margin-top:16px;padding-top:15px;border-top:1px solid var(--tb-line);}
.app-shell .tb-burgeritem.tb-burgersep{margin-top:8px;padding-top:13px;border-top:1px solid var(--tb-line);}
.app-shell .tb-navsection{margin-top:22px;}
/* Way back to the back office (v1.2, Oct 15, 2026):
   the global admin's Admin dashboard link on the user
   dashboard is flagged - bold on a soft sage tint - in
   the sidebar, and its menu twin carries the same flag,
   so it stands apart from the plain rows. */
.app-shell .tb-nav.tb-navflag{font-weight:700;background:var(--tb-soft);color:var(--tb-green-dark);}
/* Menu-only nav items: the element stays in the nav as
   the single source for the hamburger menu (site.js
   includes it there on purpose) but is never rendered
   in the visible nav bar itself. The global admin's
   Admin dashboard cross-link on the user dashboard is
   one (Oct 16, 2026): it lives only in the menu.
   Desktop exception (back office v2.22, Oct 16, 2026):
   above the phone-layout breakpoint the sidebar IS the
   navigation and there is no hamburger, so once the
   page's role check has lifted the item's hidden flag
   it renders as a normal sidebar row - without this, a
   global admin on the desktop user dashboard had no
   visible way back to the back office. Phone widths
   keep the item menu-only, exactly as before. */
.app-shell .tb-nav.tb-navmenuonly{display:none;}
@media (min-width:751px){
  .app-shell .tb-nav.tb-navmenuonly:not([hidden]){display:flex;}
}
/* Sidebar bottom utility cluster (v2.27, Oct 16,
   2026): the user dashboard's Admin dashboard
   cross-link left the section list and sits above
   the profile block as a quiet utility link. The
   auto top margin puts it in the bottom cluster;
   the hairline and air above it are the tb-navsep
   separation values; and it never wears a pill -
   no background in any state, muted text - so the
   only highlighted row in the sidebar is the
   section you are on. The profile gives up its own
   auto margin and most of its top padding only
   while the link is actually shown (the
   :not([hidden]) gate), so a customer who never
   sees the link keeps the exact layout they have
   always had. Desktop widths only: on phone the
   link is menu-only, and its separation lives in
   the menu as tb-burgersep. */
@media (min-width:751px){
  .app-shell .tb-nav.tb-navutil{margin-top:auto;padding-top:15px;border-top:1px solid var(--tb-line);}
  .app-shell .tb-navutil:not([hidden]) + .tb-profile{margin-top:0;padding-top:14px;}
  .app-shell .tb-nav.tb-navquiet{font-weight:400;background:transparent;color:var(--tb-muted);}
  .app-shell .tb-nav.tb-navquiet:hover{background:transparent;color:var(--tb-green-dark);}
}
.app-shell .tb-burgeritem.tb-burgerflag{font-weight:700;background:var(--tb-soft);color:var(--tb-green-dark);}
.app-shell .tb-profile{margin-top:auto;padding-top:40px;display:flex;gap:9px;align-items:center;font-size:12.5px;position:relative;}
.app-shell .tb-avatar{
  width:35px;height:35px;display:grid;place-items:center;border-radius:50%;
  background:var(--tb-soft);color:var(--tb-green);font-weight:500;flex-shrink:0;
}
.app-shell .tb-profile .tb-signout{display:block;color:var(--tb-muted);text-decoration:none;margin-top:2px;}
.app-shell .tb-profile .tb-signout:hover{color:var(--tb-green);text-decoration:underline;}
/* Shell profile menu (Oct 16, 2026): the sidebar avatar is a
   button (40px target) opening the account menu - built by
   /assets/site.js from the session payload (the account's
   photo when it carries one, initials otherwise) with
   exactly My profile, Account & billing, and Sign out.
   In the desktop sidebar the menu opens upward from the
   profile block at the sidebar's foot; the phone block
   below re-aims it downward from the header bar. The
   standalone Sign out link beside the avatar retired into
   this menu; the hamburger menu's own Sign out entry is
   a separate surface and stays. */
.app-shell .tb-avatar-btn{border:0;padding:0;cursor:pointer;width:40px;height:40px;min-width:40px;min-height:40px;font:inherit;overflow:hidden;}
.app-shell .tb-avatar-btn:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .tb-avatar img.tb-avatar-img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover;}
.app-shell button.tb-custavatar{border:0;padding:0;cursor:pointer;font:inherit;}
.app-shell button.tb-custavatar:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .tb-profilemenu{position:absolute;left:0;bottom:calc(100% + 8px);min-width:224px;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;box-shadow:0 12px 32px rgba(20,33,61,.16);padding:6px;z-index:120;text-align:left;}
.app-shell .tb-profilemenu[hidden]{display:none;}
.app-shell .tb-profilemenu-item{display:flex;align-items:center;min-height:40px;padding:9px 12px;border-radius:8px;color:var(--tb-text);font-size:14.5px;text-decoration:none;}
.app-shell .tb-profilemenu-item:hover{background:var(--tb-soft);}
/* Password strength meter (shared, Oct 16, 2026): the live
   Weak / Fair / Strong rating behind every password a
   person sets - the profile Change password form and the
   set-password page share these rules and the rating
   logic in /assets/site.js. The words carry the rating;
   the bar only echoes them. */
.tb-pwdmeter{margin-top:8px;}
.tb-pwdmeter-text{font-size:13.5px;min-height:1.2em;color:var(--tb-muted,#68766E);}
.tb-pwdmeter-bar{height:6px;background:var(--line);border-radius:999px;overflow:hidden;margin-top:5px;max-width:280px;}
/* (v2.62, Finding 12) Before anything is typed the
   meter carries no rating class - site.js adds
   tb-pwdmeter-weak / -fair / -strong to this wrap
   only once the field has a value - so the empty
   track does not show at all. */
.tb-pwdmeter:not(.tb-pwdmeter-weak):not(.tb-pwdmeter-fair):not(.tb-pwdmeter-strong) .tb-pwdmeter-bar{display:none;}
.tb-pwdmeter-fill{height:100%;width:0;border-radius:999px;transition:width .2s ease;background:#B3261E;}
.tb-pwdmeter-fill-fair{background:#B7791F;}
.tb-pwdmeter-fill-strong{background: var(--green);}
.tb-pwdmeter-weak .tb-pwdmeter-text{color:#7B1E26;}
.tb-pwdmeter-fair .tb-pwdmeter-text{color:#806022;}
.tb-pwdmeter-strong .tb-pwdmeter-text{color: var(--green);}

/* Main column */
.app-shell main.tb-main{padding:25px 30px 36px;min-width:0;}
.app-shell .tb-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;color:var(--tb-muted);font-size:12.5px;gap:10px;flex-wrap:wrap;}
/* Desktop top bar (back office v2.23, Oct 16, 2026):
   the shells' main column opens with a top bar - the
   breadcrumb on its left, and on its right the
   account block and the menu button. Those are the
   SAME single elements the phone header carries:
   site.js places them into the bar above the
   phone-layout breakpoint and back into the sidebar
   under it, so there is exactly one avatar, one
   account menu and one section menu per shell. In
   the bar both menus open downward; the phone block
   at the end of this stylesheet keeps its own
   downward aim for the header. */
.app-shell .tb-topbar{position:relative;display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;color:var(--tb-muted);font-size:12.5px;gap:10px;flex-wrap:wrap;}
.app-shell .tb-topbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto;}
/* (v2.47) On desktop widths the top bar rides
   above the overlay sheets (z 150), so the chrome
   cluster - the account block - stays live while a
   sheet is open; it stays below the drawer (190)
   and the decision modals (200). Phone widths keep
   the sheet dominant: there the sheet is a card
   with its own header. */
@media (min-width:751px){
  .app-shell .tb-topbar{z-index:160;}
}
.app-shell .tb-topbar .tb-profile{margin-top:0;padding-top:0;border-top:0;}
.app-shell .tb-topbar .tb-profilemenu{left:auto;right:0;bottom:auto;top:calc(100% + 8px);}
/* (v2.47) One size for the bar's controls: the
   hamburger's 40px box (the aside rule in the phone
   block below is its single source). The hamburger
   glyph is drawn large: its three lines carry far
   less ink than a filled glyph, so at the same
   pixel size it read as smaller. */
/* (v2.49) The top-bar cluster is the account block:
   the hamburger lives in the sidebar at every width
   (the rail at desktop, the phone bar at phone
   widths), and its panel's old top-bar dropdown form
   is removed - the drawer form further down is the
   panel's one form. (v2.51) The Settings gear that
   rode beside the account block is retired; the
   menu is the one door to Settings. */
.app-shell .tb-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap;}
.app-shell .tb-greeting-sub{color:var(--tb-muted);font-size:15px;}

/* Buttons and controls (v2.57 button system pass,
   Trevor's Section 6 ruling, Oct 18, 2026; supersedes
   the Oct 15, 2026 tiers). Three weights, one shared
   definition: the solid green block (.tb-primary) is
   the ONE commit action a card exists for - one per
   card; every other button in the card takes the
   quiet weight (white, hairline border, green text:
   the bare .tb-action, .tb-secondary and .tb-outline
   are one treatment under three names kept for the
   existing markup); plain text links (.tb-textlink)
   are the tertiary weight. The standard size is
   smaller and calmer than the old block; at phone
   widths the tap area stays generous (the phone block
   below carries the 44px minimum height). The brand
   green hex is unchanged; the filled area is what is
   rationed. Red follows the same law: in a page,
   Cancel and Stop are quiet red (white, red hairline,
   red text); the solid red block exists only inside
   a confirmation - a .tb-confirmbox or the modal
   overlay that hosts one. Disabled buttons take a
   plain neutral gray (v1.7) so an unavailable action
   reads as plainly off, never as a live button in a
   fainter tint. Tabs and text links are not buttons
   and keep their own rules. */
.app-shell .tb-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid var(--tb-line);padding:7px 12px;border-radius:8px;
  background:var(--tb-panel);white-space:nowrap;font-size:14px;
  text-decoration:none;color:var(--tb-green);
}
.app-shell .tb-action svg{width:16px;height:16px;flex-shrink:0;}
.app-shell .tb-action:hover{background:var(--tb-soft);border-color:var(--sage);}
.app-shell .tb-action:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .tb-action:active{background:var(--tb-soft);border-color:var(--sage);}
.app-shell .tb-action[disabled]{background:#E4E4E4;border-color:#AFAFAF;color:#666666;opacity:1;cursor:default;}
.app-shell .tb-primary{background:var(--tb-green);color:#FFFFFF;border-color:var(--tb-green);}
.app-shell .tb-primary:hover{background:var(--tb-green-dark);border-color:var(--tb-green-dark);}
.app-shell .tb-primary:active{background:var(--tb-green-dark);border-color:var(--tb-green-dark);}
.app-shell .tb-danger{background:#FFFFFF;color:var(--tb-danger-text);border-color:#EBCFCB;}
.app-shell .tb-danger:hover{background:#F9E3E1;border-color:var(--tb-danger);}
.app-shell .tb-danger:active{background:#F3D2CE;border-color:var(--tb-danger);}
.app-shell .tb-modal-overlay .tb-danger,
.app-shell .tb-confirmbox .tb-danger{background:var(--tb-danger);color:#FFFFFF;border-color:var(--tb-danger);}
.app-shell .tb-modal-overlay .tb-danger:hover,
.app-shell .tb-confirmbox .tb-danger:hover{background:var(--tb-danger-dark);border-color:var(--tb-danger-dark);}
.app-shell .tb-modal-overlay .tb-danger:active,
.app-shell .tb-confirmbox .tb-danger:active{background:var(--tb-danger-dark);border-color:var(--tb-danger-dark);}
.app-shell .tb-secondary,.app-shell .tb-outline{background:var(--tb-panel);color:var(--tb-green);border-color:var(--tb-line);}
/* (Oct 30, 2026, presentation conformance, Part 2) .tb-outline is retired
   as a separate definition: it and .tb-secondary were the same treatment
   under two names, and the one definition below now carries both names
   for the existing markup. */

.app-shell .tb-secondary:hover,.app-shell .tb-outline:hover{background:var(--tb-soft);border-color:var(--sage);}
.app-shell .tb-secondary:active,.app-shell .tb-outline:active{background:var(--tb-soft);border-color:var(--sage);}
.app-shell .tb-action[disabled]:hover{background:#E4E4E4;border-color:#AFAFAF;color:#666666;}
.app-shell .tb-quiet{background:none;border:0;padding:0;color:var(--tb-muted);font-size:14px;}
.app-shell .tb-quiet:hover{color:var(--tb-green);}
.app-shell .tb-textlink{border:0;background:none;padding:0;color:var(--tb-green);font-size:14px;text-decoration:none;cursor:pointer;white-space:nowrap;}
.app-shell .tb-textlink:hover{text-decoration:underline;}
/* Row-action icon buttons (Oct 15, 2026): compact pencil /
   trash buttons for repeated per-row actions, replacing the
   full word buttons to conserve horizontal room. Edit wears
   the standard action green, delete the danger red, both
   plainly visible at rest. The glyphs themselves are
   defined once in each page's SVG sprite and referenced
   with <use>. Sized to the row since v2.35 (Trevor's
   density call, Oct 16, 2026): the box is 30px - the
   height of the kind pill (.tb-pill) beside it - with a
   16px glyph, so one row keeps one horizontal rhythm
   (name, pill, two small squares) and long lists fit far
   more rows on screen; the delete confirm dialog stays
   the safety net for the smaller target. */
.app-shell .tb-iconbtn{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;padding:0;flex-shrink:0;
  border:1px solid var(--tb-line);border-radius:8px;background:var(--tb-panel);
  color:var(--tb-green);cursor:pointer;
}
.app-shell .tb-iconbtn svg{width:16px;height:16px;}
.app-shell .tb-iconbtn:hover{background:var(--tb-soft);border-color:var(--sage);}
.app-shell .tb-iconbtn:focus-visible{background:var(--tb-soft);border-color:var(--sage);outline:2px solid var(--sage);outline-offset:1px;}
.app-shell .tb-iconbtn:active{background:var(--tb-soft);border-color:var(--sage);transform:translateY(1px);}
.app-shell .tb-iconbtn-danger{color:var(--tb-danger-text);border-color:#EBCFCB;}
.app-shell .tb-iconbtn-danger:hover{background:#F9E3E1;border-color:var(--tb-danger);}
/* Icon buttons while disabled (Oct 15, 2026): the same
   plain-gray treatment the word buttons carry
   (.tb-action[disabled]; strengthened in v1.7 so a locked
   control reads as plainly off), never as active - the
   why-caption beneath it says why. Placed after the danger
   rules so the gray wins for danger icons too. */
.app-shell .tb-iconbtn[disabled]{background:#E4E4E4;border-color:#AFAFAF;color:#666666;cursor:default;}
.app-shell .tb-iconbtn[disabled]:hover{background:#E4E4E4;border-color:#AFAFAF;color:#666666;}
.app-shell .tb-inline{display:flex;gap:9px;align-items:center;flex-wrap:wrap;}
/* Spread row (button placement cleanup, Oct 16, 2026): a
   text-and-action bar whose action rides the far end on
   desktop; the mobile block below aligns it left like
   every other in-card row. Defined once, here. */
.app-shell .tb-inline.tb-spreadrow{justify-content:space-between;}
/* A why-caption on its own full-width line under a flex
   panel's button group (the dashboard home action panel). */
.app-shell .tb-actwhy{flex-basis:100%;}
/* Control groups (back office v2.4): stacked button
   groups in one card keep a clear gap between rows. */
.app-shell .tb-ctrlgroup + .tb-ctrlgroup{margin-top:14px;}
.app-shell .tb-input{
  width:100%;border:1px solid var(--tb-line);background:var(--tb-soft);
  border-radius:7px;padding:10px;color:var(--tb-text);margin-top:7px;font-size:15px;
}
/* (v2.47) Editable fields sit on the brand light
   sage (var(--tb-soft), the rule above) so what can be
   typed in reads as editable at a glance.
   Display-only values (readonly) stay on white,
   and a disabled field keeps the unmistakably-off
   grays - flat #E4E4E4, #666 text - never the
   sage, so off can never be mistaken for on. */
.app-shell .tb-input[readonly]{background:#FFFFFF;}
.app-shell .tb-input[disabled]{background:#E4E4E4;color:#666666;opacity:1;}
.app-shell select.tb-input{width:auto;}
.app-shell .tb-formlabel{display:block;margin:15px 0;font-size:14.5px;}
.app-shell .tb-formlabel:first-child{margin-top:0;}
.app-shell textarea.tb-input{resize:vertical;min-height:95px;}
.app-shell .tb-note{font-size:12.5px;color:var(--tb-muted);margin-top:10px;line-height:1.55;}
/* Why-captions (back office v1.1, Oct 15, 2026): the small
   line directly beneath a disabled control saying why it is
   off. Treatment (v1.7-v2.36): burgundy, so the reason
   stood out. Treatment (v2.37 overhaul): a muted
   navy-gray - informational text, not an error; red is
   reserved for Delete, Stop and true errors, and a
   caption that merely explains a disabled control is
   none of those. One class, every caption at once.
   Centered variant (v2.1): a caption that sits below a
   button GROUP (a form's save row, a dialog's button row)
   also carries .tb-whycap-centered and centers across the
   group's width, so it reads as the buttons' own note
   instead of a stray line at the left edge. A caption tied
   to one control keeps that control's alignment. */
.app-shell .tb-whycap{margin-top:6px;color:#5B6B82;font-weight:400;}
.app-shell .tb-whycap-centered{text-align:center;}
.app-shell .tb-err{color:var(--tb-danger-text);font-weight:bold;margin-top:12px;font-size:14px;}
.app-shell .tb-ok{color:var(--tb-green);font-weight:bold;margin-top:12px;font-size:14px;}
.app-shell .tb-message{padding:4px 0 12px;color:var(--tb-green);font-size:13.5px;min-height:1.2em;}

/* Tabs */
/* (v2.60, points 12/16) Folder tabs: the settled connected
   form, defined once here for every tab strip in both
   shells. Inactive tabs sit on the strip's hairline in
   the rail tint; the current tab is white, merged with
   the panel under it, and carries the green top rule. */
/* (Oct 27, 2026) The vertical axis is closed on
   purpose: overflow-x:auto alone makes overflow-y
   compute to auto, and the tabs' -1px hairline overlap
   then paints a phantom vertical scrollbar on the
   strip. A tab strip never scrolls vertically; the
   horizontal scroll on narrow screens is intentional
   and unchanged. */
.app-shell .tb-tabs{display:flex;gap:6px;border-bottom:1px solid var(--tb-line);margin-bottom:22px;overflow-y:hidden;padding:0 2px;}
/* (v2.62) Fit modifier: a small fixed tab set opts
   out of the scroll treatment, so no stray
   horizontal-scroll cue shows under it. Tab strips
   that scroll on purpose keep the rule above. */
.app-shell .tb-tabs.tb-tabs-fit{overflow:visible;}
.app-shell .tb-tab{border:1px solid var(--tb-line);border-bottom:0;border-radius:9px 9px 0 0;background:var(--tb-side);padding:9px 14px;color:var(--tb-muted);white-space:nowrap;font-size:14.5px;margin-bottom:-1px;}
.app-shell .tb-tab:hover{color:var(--tb-text);}
/* (v2.57, item 10) A tab may carry a small icon beside
   its label - the icon tab layout, one size everywhere,
   in the tab strip and in the overflow menu alike. */
.app-shell .tb-tab svg{width:17px;height:17px;flex-shrink:0;vertical-align:-3px;margin-right:7px;}
.app-shell .tb-tabmenu .tb-tab svg{vertical-align:-3px;}
.app-shell .tb-tab.selected,.app-shell .tb-tab.active{background:var(--tb-tab-tint);color:var(--tb-text);font-weight:600;box-shadow:inset 0 3px 0 var(--tb-brand);}
.app-shell .tb-count{font-size:12px;background:var(--tb-panel);color:var(--dc-count-text);border:1px solid var(--dc-count-line);padding:1px 8px;border-radius:15px;margin-left:7px;font-weight:400;line-height:1.5;vertical-align:1px;}

/* Panels and fields */
.app-shell .tb-panel{border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:22px;margin-bottom:18px;}
/* (v2.60, point 7) Billing history as a table. */
.app-shell .tb-billtable{
  width:100%;border-collapse:collapse;font-size:14.5px;}
.app-shell .tb-billtable th{
  text-align:left;padding:2px 8px 8px;}
.app-shell .tb-billtable td{
  padding:11px 8px;border-top:1px solid var(--tb-line);
  vertical-align:top;}
.app-shell .tb-billtable tbody tr{cursor:pointer;}
.app-shell .tb-billtable tbody tr:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell .tb-billtable tbody tr:hover{
  background:var(--tb-soft);}
.app-shell .tb-billtable .tb-bill-desc-sub{
  display:block;font-size:13px;color:var(--tb-muted);}
.app-shell .tb-billtable .tb-bill-amt{
  white-space:nowrap;font-weight:600;}
@media (max-width:750px){
  .app-shell .tb-billtable thead{display:none;}
  .app-shell .tb-billtable,
  .app-shell .tb-billtable tbody,
  .app-shell .tb-billtable tr,
  .app-shell .tb-billtable td{display:block;}
  .app-shell .tb-billtable tr{
    display:flex;flex-wrap:wrap;gap:2px 10px;
    padding:10px 2px;border-top:1px solid var(--tb-line);}
  .app-shell .tb-billtable td{
    border-top:0;padding:0;}
  .app-shell .tb-billtable .tb-bill-date{
    order:1;font-weight:600;}
  .app-shell .tb-billtable .tb-bill-amt{
    order:2;margin-left:auto;}
  .app-shell .tb-billtable .tb-bill-inv{
    order:3;flex:1 1 100%;color:var(--tb-muted);
    font-size:13px;}
  .app-shell .tb-billtable .tb-bill-desc{
    order:4;flex:1 1 100%;}
  .app-shell .tb-billtable .tb-bill-status{
    order:5;flex:1 1 100%;}
}
.app-shell .tb-panelhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:15px;}
.app-shell .tb-field{display:flex;justify-content:space-between;gap:22px;padding:13px 0;border-bottom:1px solid var(--tb-line);flex-wrap:wrap;}
.app-shell .tb-field:last-child{border-bottom:0;padding-bottom:0;}
.app-shell .tb-field:first-child{padding-top:0;}
.app-shell .tb-field dt{color:var(--tb-muted);}
.app-shell .tb-field dd{margin:0;text-align:right;overflow-wrap:anywhere;}
.app-shell dl{margin:0;}
.app-shell .tb-dangerzone{border-color:#EBCFCB;}
.app-shell .tb-dangerzone h2{color:var(--tb-danger-text);}
/* Overview tab cleanup (staging batch item 11): one
   label/value grid for every list on the record
   Overview - a single 176px label column, values
   left-aligned in one style, one row rhythm - the
   Mailboxes subhead and rows, and the key line's
   inline wrap. Scoped to the Overview's own classes
   so no other tab or the dashboard moves. Section
   title treatment is a separate batch item and is
   deliberately not touched here. */
.app-shell .tb-ovdl .tb-field{display:grid;grid-template-columns:176px minmax(0,1fr);column-gap:22px;justify-content:initial;align-items:start;padding:12px 0;flex-wrap:nowrap;}
.app-shell .tb-ovdl .tb-field:first-child{padding-top:0;}
.app-shell .tb-ovdl .tb-field:last-child{padding-bottom:0;}
.app-shell .tb-ovdl .tb-field dd{text-align:left;}
.app-shell .tb-ovkey{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;}
.app-shell .tb-ovsubhead{font-size:14.5px;margin:20px 0 2px;padding-top:16px;border-top:1px solid var(--tb-line);}
.app-shell .tb-mbrow{padding:10px 0;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-mbrow:first-child{padding-top:6px;}
.app-shell .tb-mbrow:last-child{border-bottom:0;padding-bottom:0;}
.app-shell .tb-mbline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.app-shell .tb-mbaddr{overflow-wrap:anywhere;}
.app-shell .tb-mblast{margin-top:3px;}
@media (max-width:560px){
  .app-shell .tb-ovdl .tb-field{grid-template-columns:1fr;row-gap:3px;padding:10px 0;}
  .app-shell .tb-ovdl .tb-field:first-child{padding-top:0;}
  .app-shell .tb-ovdl .tb-field:last-child{padding-bottom:0;}
}
.app-shell .tb-confirmbox{position:relative;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:16px;padding:12px 14px;margin:14px 0;}
/* (v2.47) Every pop-up carries an X in its upper
   right that performs the dialog's own cancel /
   dismiss action (the shared .tb-dlgx; the unsaved
   guard's .tb-guardx is the same control). The
   first paragraph keeps clear of it. */
.app-shell .tb-confirmbox>p:first-of-type{padding-right:50px;}
.app-shell .tb-dlgx{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-muted);cursor:pointer;}
.app-shell .tb-dlgx:hover{background:var(--tb-soft);color:var(--tb-text);}
.app-shell .tb-dlgx svg{width:21px;height:21px;}
.app-shell .tb-confirmbox p{margin:0 0 10px;line-height:1.55;}
.app-shell .tb-confirmbox .tb-formlabel{margin:0 0 2px;}
.app-shell .tb-confirmbox textarea.tb-input{min-height:64px;margin-top:2px;}

/* Confirmation modal (back office v1.6): every
   confirmation box opens in this one overlay - a dimmed
   backdrop, the panel centered, the page behind it
   scroll-locked while a decision is open. */
.app-shell .tb-modal-overlay{position:fixed;inset:0;background:rgba(20,33,61,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;}
.app-shell .tb-modal-overlay[hidden]{display:none;}
.app-shell .tb-modal-overlay .tb-confirmbox{margin:0;width:100%;max-width:520px;max-height:calc(100vh - 40px);overflow-y:auto;box-shadow:0 24px 60px rgba(20,33,61,.30);}
/* (v2.47) The unsaved-changes guard box: plain
   white, the standard modal surface (the shared
   confirm box's cream stays for the inline
   confirmations), with an X in its top-right
   corner wired to Discard. */
.app-shell .tb-confirmbox.tb-guardbox{position:relative;background:var(--tb-panel);border-color:var(--tb-line);}
.app-shell .tb-guardbox>p{padding-right:34px;}
/* (v2.47) A section caption inside a shell nav
   (the customer menu's Settings group): the same
   caption voice as the grouped index heads. */
.app-shell aside.tb-side nav .tb-navlabel{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tb-muted);padding:14px 12px 4px;}
.app-shell .tb-guardx{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-muted);cursor:pointer;}
.app-shell .tb-guardx:hover{background:var(--tb-soft);color:var(--tb-text);}
.app-shell .tb-guardx svg{width:21px;height:21px;}
/* (Oct 27, 2026) Chat scroll containment: while the
   visitor chat is open the page behind must not move
   at all. overflow:hidden alone leaks on iOS Safari
   (the document still scroll-chains under the sheet),
   so the body is pinned with position:fixed and the
   script sets its top to the saved scroll offset;
   closing restores the offset exactly. */
html.tb-scroll-lock{overflow:hidden;}
body.tb-scroll-lock{overflow:hidden;position:fixed;left:0;right:0;width:100%;}
.app-shell .tb-sheetwrap{overscroll-behavior:none;}
.app-shell .tb-sheetbody{overscroll-behavior:contain;}
/* App-shell hamburger (Oct 15, 2026): site.js builds the
   button and panel into every app shell; hidden by
   default, they take form only at phone widths below. */
.app-shell .tb-burger{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-text);cursor:pointer;flex:0 0 auto;align-self:flex-start;}
.app-shell .tb-burger svg{width:24px;height:24px;}
.app-shell .tb-burgermenu{display:none;}

/* Pills */
.app-shell .tb-pill{display:inline-flex;gap:5px;align-items:center;border-radius:5px;padding:3px 8px;background:var(--tb-soft);color:var(--tb-ok-text);font-size:12.5px;white-space:nowrap;font-weight:500;}
.app-shell .tb-pill::before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%;}
.app-shell .tb-pill.pill-amber{background:#F7ECD2;color:var(--tb-warn-text);}
.app-shell .tb-pill.pill-slate{background:var(--tb-line);color:var(--tb-muted);}
.app-shell .tb-pill.pill-red{background:#F9E3E1;color:var(--tb-danger-text);}
.app-shell .tb-pill.pill-plain::before{display:none;}
.app-shell .tb-pill.pill-solid{background:var(--tb-green);color:#FFFFFF;}
.app-shell .tb-planlabel{font-size:13.5px;color:var(--tb-muted);}

/* Users table */
.app-shell .tb-search{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:8px;width:300px;max-width:100%;color:var(--tb-muted);}
.app-shell .tb-search svg{width:16px;height:16px;flex-shrink:0;}
.app-shell .tb-search input{border:0;outline:0;min-width:0;width:100%;background:none;color:var(--tb-text);font-size:15px;}
.app-shell .tb-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;flex-wrap:wrap;}
.app-shell .tb-wraptable{overflow-x:auto;}
.app-shell .tb-txn-cust{display:flex;align-items:center;gap:10px;}
.app-shell .tb-txn-dates{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.app-shell .tb-txn-dates .tb-input{width:auto;}
.app-shell .tb-txnpop .tb-txn-dl{display:grid;grid-template-columns:118px minmax(0,1fr);gap:7px 14px;margin:12px 0 4px;}
.app-shell .tb-txnpop .tb-txn-dl dt{color:var(--tb-muted);font-size:13.5px;}
.app-shell .tb-txnpop .tb-txn-dl dd{margin:0;font-size:14.5px;overflow-wrap:anywhere;}
.app-shell .tb-txn-compose{margin-top:12px;}
.app-shell .tb-txn-compose textarea{width:100%;}
.app-shell table.tb-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);overflow:hidden;}
.app-shell .tb-table th{text-align:left;font-size:12.5px;font-weight:400;color:var(--tb-muted);padding:13px 15px;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-table th.tb-sortable{cursor:pointer;}
.app-shell .tb-table td{padding:16px 15px;vertical-align:middle;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-table tbody tr:last-child td{border-bottom:0;}
.app-shell .tb-table tbody tr.tb-rowlink{cursor:pointer;}
.app-shell .tb-table tbody tr.tb-rowlink:hover{background:var(--tb-soft);}
.app-shell .tb-userlink{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;text-align:left;}
.app-shell .tb-userlink strong{font-weight:500;color:var(--tb-text);font-size:14.5px;}
.app-shell .tb-email{font-size:12.5px;display:block;color:var(--tb-muted);overflow-wrap:anywhere;}
.app-shell .tb-next{width:28px;height:32px;border:0;background:none;color:var(--tb-muted);display:grid;place-items:center;}
.app-shell .tb-next svg{width:17px;height:17px;}
.app-shell .tb-footer{display:flex;justify-content:space-between;padding-top:15px;font-size:12.5px;color:var(--tb-muted);gap:12px;flex-wrap:wrap;}
.app-shell .tb-notice{margin-top:25px;display:flex;gap:10px;padding:15px 0;color:var(--tb-muted);font-size:12.5px;border-top:1px solid var(--tb-line);align-items:center;}
.app-shell .tb-notice svg{width:16px;height:16px;flex-shrink:0;}
/* (v2.57, item 5) The one shared back element: a proper
   button at the top left of the content column, one
   position and treatment in every drill-in view (record
   views, Settings sub-pages, the Inbox and Support
   threads, Recent actions). Chevron plus label, green,
   a generous tap area; the one-off treatments it
   replaces (icon-only sheet chevrons, the bare text
   arrow) are gone. */
.app-shell .tb-back{display:inline-flex;align-items:center;gap:7px;min-height:40px;background:none;border:0;padding:6px 10px 6px 2px;margin:0 0 14px;color:var(--tb-green);font-size:14.5px;font-weight:500;text-decoration:none;cursor:pointer;}
.app-shell .tb-back svg{width:16px;height:16px;flex-shrink:0;}
.app-shell .tb-back:hover{color:var(--tb-green-dark);text-decoration:underline;}
.app-shell .tb-person{display:flex;gap:13px;align-items:center;}
.app-shell .tb-person .tb-avatar{width:48px;height:48px;font-size:17px;}
.app-shell .tb-pager{display:flex;gap:8px;align-items:center;}

/* Feedback (admin detail, Notes tab) */
.app-shell .tb-feedback-meta{margin:0 0 6px;line-height:1.6;font-size:13.5px;}
.app-shell .tb-source-label{display:inline-block;background:var(--tb-soft);color:var(--tb-green);border-radius:999px;padding:2px 9px;font-size:12px;font-weight:500;margin-left:8px;}
.app-shell .tb-fb-awaiting{color:var(--tb-green);font-weight:bold;margin-left:8px;}
.app-shell .tb-fb-replied{color:var(--tb-muted);margin-left:8px;}
.app-shell .tb-feedback-subject{font-weight:500;color:var(--tb-text);margin:0 0 4px;line-height:1.55;}
.app-shell .tb-queued{color:var(--tb-green);font-weight:bold;font-size:14px;margin:8px 0 0;}
.app-shell .tb-fb-controls{margin-top:8px;gap:10px;flex-wrap:wrap;align-items:center;}
.app-shell .tb-fb-catlabel{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--tb-muted);}
.app-shell .tb-ticket-id{color:var(--tb-muted);font-size:12.5px;}
/* (v2.64) Deep links: a ticket number can BE a link to
   its conversation; the link keeps the number's
   quiet look and earns its underline only on hover.
   Copy link is the sheet header's quiet text button,
   in the family of the thread's Back control. A deep
   link's named message wears a brief brand-green
   ring - a ring, not a wash, so the same treatment
   reads over a letter, a timeline block, or a
   bubble. */
.app-shell a.tb-ticket-id{text-decoration:none;cursor:pointer;}
.app-shell a.tb-ticket-id:hover{text-decoration:underline;}
.app-shell .tb-copylink{
  background:none;border:0;color:var(--tb-green-dark);
  font:inherit;font-size:13px;font-weight:500;
  cursor:pointer;padding:2px 6px;border-radius:6px;}
.app-shell .tb-copylink:hover{background:var(--tb-soft);}
@keyframes tb-anchor-ring{
  0%{box-shadow:0 0 0 3px rgba(46,125,50,.55);}
  70%{box-shadow:0 0 0 3px rgba(46,125,50,.30);}
  100%{box-shadow:0 0 0 3px rgba(46,125,50,0);}}
.app-shell .tb-msg-anchor{
  animation:tb-anchor-ring 2.6s ease-out both;
  border-radius:10px;}
@media (prefers-reduced-motion:reduce){
  .app-shell .tb-msg-anchor{animation:none;
    box-shadow:0 0 0 3px rgba(46,125,50,.45);}}
.app-shell .tb-fb-events{margin-top:6px;}
.app-shell .tb-quick-select{margin:0 0 8px;}

/* Activity list (admin detail, Activity tab) */
.app-shell .tb-activity{list-style:none;margin:0;padding:0;}
.app-shell .tb-activity li{display:flex;justify-content:space-between;gap:22px;padding:12px 0;border-bottom:1px solid var(--tb-line);flex-wrap:wrap;}
.app-shell .tb-activity li:last-child{border-bottom:0;padding-bottom:0;}
.app-shell .tb-activity li:first-child{padding-top:0;}
.app-shell .tb-activity .tb-ev{color:var(--tb-text);}
.app-shell .tb-activity .tb-when{color:var(--tb-muted);text-align:right;}

/* Dashboard stat cards, action panel, schedule, mailboxes */
.app-shell .tb-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0;}
.app-shell .tb-stat{border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:19px 22px;display:flex;flex-direction:column;}
.app-shell .tb-stathead{display:flex;align-items:center;justify-content:space-between;color:var(--tb-green);}
.app-shell .tb-stathead svg{width:17px;height:17px;}
.app-shell .tb-statlabel{font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-statnumber{font-size:30px;letter-spacing:-.7px;font-weight:500;line-height:1.2;margin:5px 0;color:var(--tb-text);}
.app-shell .tb-statfoot{font-size:12.5px;color:var(--tb-muted);margin-top:auto;padding-top:5px;}
.app-shell .tb-actionpanel{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:22px;margin:18px 0;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);}
.app-shell .tb-actionpanel .tb-note{max-width:340px;}
.app-shell .tb-actstate{font-size:13.5px;color:var(--tb-muted);margin-top:8px;min-height:1.2em;flex-basis:100%;}
.app-shell .tb-digestslots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px;}
.app-shell .tb-slot{padding:13px 12px;background:var(--tb-bg);border-radius:8px;}
.app-shell .tb-slotname{display:block;font-size:12.5px;color:var(--tb-muted);margin-bottom:7px;}
.app-shell .tb-slottime{font-weight:500;}
.app-shell .tb-mailrow{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-mailrow:first-child{padding-top:2px;}
.app-shell .tb-mailrow:last-child{border-bottom:0;padding-bottom:2px;}
.app-shell .tb-provider{height:35px;width:35px;border:1px solid var(--tb-line);border-radius:9px;display:grid;place-items:center;color:var(--tb-green);background:var(--tb-bg);flex-shrink:0;}
.app-shell .tb-provider svg{width:17px;height:17px;}
.app-shell .tb-providername{font-weight:500;}
.app-shell .tb-footlink{display:flex;justify-content:space-between;font-size:12.5px;color:var(--tb-muted);gap:12px;margin-top:6px;flex-wrap:wrap;}
.app-shell .tb-schedulefield{display:grid;grid-template-columns:1fr 250px;gap:15px;align-items:center;padding:13px 0;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-schedulefield.tb-wide{grid-template-columns:1fr 330px;}
.app-shell .tb-schedulefield:last-of-type{border-bottom:0;}
.app-shell .tb-schedulefield .tb-input{margin:0;width:100%;}
.app-shell .tb-formfooter{display:flex;align-items:center;justify-content:flex-end;gap:13px;margin-top:22px;flex-wrap:wrap;}
.app-shell .tb-dirty{font-size:12.5px;color:var(--tb-warn-text);font-weight:bold;}
.app-shell .tb-list{list-style:none;margin:0;padding:0;}
.app-shell .tb-list li{padding:11px 0;border-bottom:1px solid var(--tb-line);display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.app-shell .tb-list li:last-child{border-bottom:0;}
/* List row density (v2.35, Trevor's call, Oct 16, 2026):
   the rows that carry the row-action icon buttons - the
   dashboard standing lists (Allowed, Blocked) and the
   billing history - trade the generic 11px row padding
   for 8px, so with the 30px buttons above a row lands at
   about 47px instead of about 62px. The admin Users and
   Removed users tables take the same 8px cell padding;
   their rows land at about 52px, floored by the 35px
   avatar in the person cell rather than by padding.
   Rows without the icon buttons (Recent actions, the
   analytics funnel, Transactions, the Inbox) are not
   restated here and keep their existing rhythm. The
   phone-width card rules further down restate their own
   cell padding and still win at that width. */
.app-shell #dash-kept>li,
.app-shell #dash-blocked>li,
.app-shell #billing-invoices>li{padding-top:8px;padding-bottom:8px;}
.app-shell #ad-users-table td,
.app-shell #ad-removed-wrap .tb-table td{padding-top:8px;padding-bottom:8px;}
/* Zebra striping (shared, Oct 16, 2026): THE one definition.
   Every multi-row list/table in the app shell alternates from
   here - ul.tb-list rows (Allowed, Blocked, Recent actions,
   billing invoices, the analytics funnel), table.tb-table body
   rows (Users, Removed users, Pending invitations), the admin
   Activity list, mailbox rows, and feedback entries (the
   Feedback section mounts and the tb-zebra-stack container in
   a user record). Rows render in view order (the standing
   lists render the filtered view from the top and window
   it, v2.34), so a stripe follows a row's place in the
   view and never re-bases as a window extends. */
.app-shell ul.tb-list>li:nth-child(even),
.app-shell ul.tb-activity>li:nth-child(even),
.app-shell table.tb-table>tbody>tr:nth-child(even),
.app-shell #dash-mailboxes>.tb-mailrow:nth-child(even),
.app-shell #dash-mailboxes-full>.tb-mailrow:nth-child(even),
.app-shell .tb-zebra-stack>.tb-feedback-entry:nth-child(even){
  background:#F2F6F2;
}
/* Standing-list windowing (v2.34): the quiet "Showing X
   of Y" line and the Show more button under a long list.
   The manager builds this box only inside the standing
   lists' panels; views of 50 or fewer never show it. */
.app-shell .tb-listwindow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;}
.app-shell .tb-listwindow[hidden],
.app-shell .tb-listwindow .tb-action[hidden]{display:none;}
.app-shell .tb-wincount{color:var(--tb-muted);font-size:12.5px;}
/* Standing-list bulk selection + row context actions
   (IR-3, Nov 1, 2026): the bulk bar sits at the panel's
   head - select-all over the shown entries, the live
   selected count, and Remove selected behind its own
   confirm strip - and a ticked row carries the same
   brand tint the Digest's acted rows use. The row
   checkbox matches the Digest's row checkbox size, and
   long-press rows never raise the iOS text callout
   over the context menu. */
.app-shell .tb-listbulk{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 10px;margin-bottom:2px;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-listbulk[hidden]{display:none;}
.app-shell .tb-listbulk-all{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;cursor:pointer;}
.app-shell .tb-listbulk-count{color:var(--tb-muted);font-size:12.5px;}
.app-shell .tb-listbulk-btns{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.app-shell .tb-listconfirm{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;margin-bottom:2px;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-listconfirm[hidden]{display:none;}
.app-shell .tb-listconfirm-text{flex:1 1 260px;margin:0;font-size:13.5px;}
.app-shell .tb-listcheck{width:16px;height:16px;flex-shrink:0;margin:0;cursor:pointer;accent-color:var(--tb-brand);}
.app-shell ul.tb-list>li.tb-listrowsel{background:color-mix(in srgb,var(--tb-brand) 10%,var(--tb-panel));}
.app-shell #dash-kept>li,.app-shell #dash-blocked>li{-webkit-touch-callout:none;}
/* Standing-list search + filter toolbar (Oct 16, 2026) */
.app-shell .tb-listtools{justify-content:flex-start;margin:0 0 12px;}
.app-shell .tb-listtools .tb-search{background:var(--tb-panel);}
/* Standing-list managers (Kept / Blocked senders, Oct 15, 2026):
   row value + kind chip + date, the row's buttons pushed right,
   the inline edit input, and the bulk-save summary block. */
.app-shell .tb-listmain{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;}
.app-shell .tb-listbtns{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.app-shell .tb-editinput{flex:1 1 200px;margin-top:0;}
.app-shell .tb-summary{margin-top:14px;border-top:1px solid var(--tb-line);padding-top:6px;}
.app-shell .tb-summaryhead{font-weight:bold;font-size:14px;margin:10px 0 2px;}
.app-shell .tb-summary ul{margin:2px 0 6px;padding-left:20px;font-size:14px;line-height:1.6;}
.app-shell .tb-emptyview{padding:35px 23px;text-align:center;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);}
.app-shell .tb-emptyview .tb-emptyicon{width:42px;height:42px;border-radius:12px;background:var(--tb-soft);display:grid;place-items:center;margin:0 auto 15px;color:var(--tb-green);}
.app-shell .tb-emptyview .tb-emptyicon svg{width:20px;height:20px;}
.app-shell .tb-emptyview p{color:var(--tb-muted);margin:9px auto 0;max-width:380px;line-height:1.55;}
.app-shell .tb-price{font-size:26px;font-weight:500;margin:12px 0 4px;}
.app-shell .tb-price small{font-size:14px;color:var(--tb-muted);font-weight:400;}

/* Receipt modal (customer dashboard) */
.app-shell .tb-receipt-overlay{position:fixed;inset:0;background:rgba(20,33,61,.45);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:28px 14px;overflow:auto;}
.app-shell .tb-receipt-box{position:relative;background:#FFFFFF;border-radius:var(--tb-radius);max-width:680px;width:100%;padding:18px;box-shadow:0 24px 60px rgba(20,33,61,.30);}
.app-shell .tb-receipt-box .tb-dlgx{top:10px;right:10px;}
.app-shell .tb-receipt-head{padding-right:40px;}
.app-shell .tb-receipt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.app-shell .tb-receipt-head span{font-weight:500;color:var(--tb-text);font-size:16.5px;}
.app-shell #receipt-frame{width:100%;height:70vh;border:1px solid var(--tb-line);border-radius:8px;}

/* Standalone state panels (signed out / no access / not found) */
.app-shell .tb-statewrap{max-width:520px;margin:0 auto;padding:28px 20px;min-height:100vh;min-height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;}
.app-shell.tb-bare{min-height:0;background:transparent;}
.app-shell .tb-statepanel{background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);padding:30px 26px;text-align:center;}
.app-shell .tb-statepanel p{margin:0 0 14px;line-height:1.6;}
.app-shell .tb-statepanel .tb-logo{display:block;margin-bottom:18px;}
/* (Gate grounds + centering, Oct 31, 2026) The standalone
   state pages (the back office and dashboard sign-in
   gates) take the full page standard: a very pale
   blue-gray field, one white sheet, an azure primary
   action. The states shell fills the viewport so no
   second ground can band above or below it, and the
   state wrap collapses entirely when every panel in it
   is hidden, so the shared gate page that follows it
   starts at the top of the page with no blank band. */
#ad-states,#dash-states{min-height:100vh;background:#F2F7FB;}
#ad-states .tb-statepanel,#dash-states .tb-statepanel{border-color:#DBE9F2;box-shadow:0 10px 28px rgba(20,33,61,.08);}
#ad-states .tb-primary,#dash-states .tb-primary{background:#2378C4;border-color:#2378C4;}
#ad-states .tb-primary:hover,#dash-states .tb-primary:hover{background:#1D68A8;border-color:#1D68A8;}
.app-shell .tb-statewrap:not(:has(> .tb-statepanel:not([hidden]))){display:none;}

/* Signed-out gate (v2.66, TB-1045): the ONE gate page
   both doors mount ([data-tb-gate] in dashboard.html /
   admin.html, rendered by window.tbRenderSigninGate in
   site.js). It wears the app shell's own chrome - the
   sidebar dress, the top strip, a white panel, the
   tagline footline - built on the shell's tokens, with
   gate-scoped structural classes so the signed-in
   chrome's first-match hooks (.tb-side / .tb-topbar)
   stay the real shell's alone. Mobile-first: the
   sidebar is the phone header bar, exactly as the
   shell's own phone bar behaves. */
.app-shell .tb-gate-layout{display:grid;grid-template-columns:212px minmax(0,1fr);min-height:100vh;}
.app-shell .tb-gate-side{background:var(--tb-side);padding:27px 18px;border-right:1px solid var(--tb-line);}
.app-shell .tb-gate-main{padding:25px 30px 36px;min-width:0;}
.app-shell .tb-gate-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;color:var(--tb-muted);font-size:12.5px;gap:10px;flex-wrap:wrap;}
.app-shell .tb-gate-panel{max-width:620px;padding:28px;}
.app-shell .tb-gate-intro{font-size:16.5px;line-height:1.6;margin:0 0 10px;}
.app-shell .tb-gate-dest{color:var(--navy);font-weight:700;white-space:nowrap;}
.app-shell .tb-gate-promise{line-height:1.6;margin:0 0 20px;color:var(--tb-muted);}
.app-shell .tb-gate-actions{margin:0;}
.app-shell .tb-gate-signin{padding:10px 26px;font-size:15px;}
.app-shell .tb-gate-foot{max-width:620px;}
@media (max-width:750px){
  .app-shell .tb-gate-layout{display:block;}
  .app-shell .tb-gate-side{position:sticky;top:0;z-index:90;padding:6px 14px;border-right:0;border-bottom:1px solid var(--tb-line);display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
  .app-shell .tb-gate-side .tb-version{display:inline-block;padding:0 0 0 4px;}
  .app-shell .tb-gate-main{padding:22px 18px 30px;}
  .app-shell .tb-gate-panel{padding:22px 18px;}
}
@media (pointer:coarse){
  .app-shell .tb-gate-signin{min-height:44px;}
}

/* Responsive shell */
@media (max-width:750px){
  /* Block flow, not the desktop grid: a sticky bar can only
     travel inside its containing block, and a grid row sized
     to the bar itself would leave it nowhere to stick. */
  .app-shell .tb-layout{display:block;}
  /* Compact sticky top bar (Oct 15, 2026 polish round): on
     phone widths the sidebar becomes the app header and
     stays on screen. Line one is the logo and the profile
     (avatar + Sign out); the section nav runs on ONE
     horizontally scrollable row under it; sidebar furniture
     (the section labels, the view-as settings block) is
     compressed into a single compact row so it cannot pile
     into a tall flowing header that displaces the content. */
  .app-shell aside.tb-side{position:sticky;top:0;z-index:90;padding:6px 14px;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--tb-line);flex-wrap:wrap;column-gap:10px;row-gap:5px;}
  .app-shell aside .tb-label{display:none;}
  /* The profile block stays on phone widths (Oct 15, 2026):
     it carries the shell's Sign out, and hiding it stranded
     signed-in users with no way out of the app. Only the
     name and plan lines fold away; the avatar and the Sign
     out link stay reachable in the top bar. On the bar's
     first line the profile sits at the right, opposite the
     logo, pushed there by its auto margin. */
  .app-shell aside>.tb-profile{order:3;margin-left:auto;}
  .app-shell .tb-profilemenu{left:auto;right:0;bottom:auto;top:calc(100% + 8px);}
  .app-shell .tb-profile{margin-top:0;padding-top:0;flex:0 0 auto;}
  .app-shell .tb-profile>div>div{display:none;}
  /* (v2.49) The phone bar carries no section row at
     any width: the sidebar's nav leaves the bar and
     the hamburger's drawer is the phone navigation.
     The nav element stays in the DOM, visually
     hidden here, as the one definition site.js
     builds both the desktop rail and the drawer
     from - the sections, their order, their role
     gates and the active state cannot fork. */
  .app-shell aside nav{display:none;}
  /* The version stamp rides the logo's own line on
     phone widths, so it shows in the bar without adding
     height to it. (v2.51) Its flex order matches the
     logo block's: in the customer shell the stamp is a
     direct child of the bar (in the back office it
     nests inside the logo block), and unordered it
     sorted ahead of the hamburger - the bar now opens
     hamburger, logo, stamp in both shells. */
  .app-shell aside .tb-version{display:inline-block;padding:0 0 0 4px;order:2;}
  .app-shell main.tb-main{padding:22px 18px 30px;}
  .app-shell .tb-table td,.app-shell .tb-table th{padding:12px 10px;}
  .app-shell .tb-table{min-width:480px;}
  .app-shell .tb-stats{gap:10px;}
  .app-shell .tb-stat{padding:16px;}
  .app-shell .tb-actionpanel{padding:18px;}
  .app-shell .tb-digestslots{gap:6px;}
  .app-shell .tb-slot{padding:11px 8px;}
  /* App-shell hamburger (Oct 15, 2026; placement Oct 16,
     2026): the button rides the bar's first line at the
     far right edge, after the profile - order 3, ahead
     of the section nav at order 4 - grouped with the
     avatar and Sign out, at the avatar's 35px height so
     the closed bar's height is unchanged; the panel is
     an overlay dropping from the bar. */
  /* (v2.47) The phone hamburger shares the desktop
     cluster size: one 40px box. */
  /* (v2.49) The phone bar's order: hamburger first,
     the logo block, then the profile at the right.
     (v2.51) The gear that sat beside the avatar is
     retired - the menu is the one door to Settings,
     and the version stamp takes the logo block's
     order so it rides beside the logo in both
     shells (see the tb-version rule above). */
  .app-shell aside.tb-side>div:first-of-type{order:2;}
  .app-shell aside .tb-burger{display:flex;align-items:center;justify-content:center;order:1;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-text);cursor:pointer;flex:0 0 auto;}
  .app-shell aside .tb-burger svg{width:26px;height:26px;}
  .app-shell .tb-burgeritem{display:flex;align-items:center;width:100%;min-height:44px;padding:9px 10px;background:none;border:0;border-radius:8px;color:var(--tb-text);font:inherit;font-size:15px;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box;}
  .app-shell .tb-burgeritem.active{background:var(--tb-side);font-weight:600;}
  /* Removed users (Oct 15, 2026 action-notes round): the
     five-column table is wider than a phone and clips
     after the Removed column, hiding Removed by and the
     Restore column entirely. At phone widths the rows
     become stacked cards: the table's min-width no longer
     applies, the header row gives way to the per-cell
     data-label, and every column - including Restore,
     enabled or grayed out - is on screen. */
  .app-shell #ad-removed-wrap .tb-table{min-width:0;}
  .app-shell #ad-removed-wrap .tb-table thead{display:none;}
  .app-shell #ad-removed-wrap .tb-table,
  .app-shell #ad-removed-wrap .tb-table tbody,
  .app-shell #ad-removed-wrap .tb-table tr,
  .app-shell #ad-removed-wrap .tb-table td{display:block;}
  .app-shell #ad-removed-wrap .tb-table{border:0;background:transparent;overflow:visible;}
  .app-shell #ad-removed-wrap .tb-table tr{background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);padding:6px 14px;margin-bottom:10px;}
  .app-shell #ad-removed-wrap .tb-table td{border-bottom:0;padding:7px 0;}
  .app-shell #ad-removed-wrap .tb-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--tb-muted);margin-bottom:2px;}
  /* Button placement (Oct 16, 2026): at phone widths an
     in-card button row starts at the card's own left edge,
     the same edge as its text and fields - form footers
     give up their desktop right alignment, a wrapped
     field value (and any button riding in it) aligns
     left, panel heads wrap so a header action drops to
     its own left line, the spread row aligns left, and
     a wrapped list word-button pair loses its auto
     right-push. Desktop rules above are untouched. */
  .app-shell .tb-formfooter{justify-content:flex-start;}
  .app-shell .tb-field dd{text-align:left;}
  .app-shell .tb-panelhead{flex-wrap:wrap;}
  .app-shell .tb-inline.tb-spreadrow{justify-content:flex-start;}
  .app-shell .tb-listbtns-pair{margin-left:0;}
  /* Standing lists on a phone (Oct 16, 2026): each exception
     row is ONE line, so a list of ~100 stays scrollable. The
     value truncates with an ellipsis inside its flex slot; the
     kind chip and the pencil/trash targets (30px since v2.35)
     stay on that line; the Added date folds away on this
     width only. The inline edit and remove-confirm rows are
     working forms, not list rows, and keep wrapping. */
  .app-shell #dash-kept>li:not(.tb-editrow):not(.tb-confirmrow),
  .app-shell #dash-blocked>li:not(.tb-editrow):not(.tb-confirmrow){
    flex-wrap:nowrap;gap:6px;padding-top:8px;padding-bottom:8px;
  }
  .app-shell #dash-kept>li .tb-listmain,
  .app-shell #dash-blocked>li .tb-listmain{
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .app-shell #dash-kept>li .tb-pill,
  .app-shell #dash-blocked>li .tb-pill{flex:0 0 auto;}
  .app-shell #dash-kept>li .tb-listwhen,
  .app-shell #dash-blocked>li .tb-listwhen{display:none;}
  .app-shell #dash-kept>li .tb-listbtns,
  .app-shell #dash-blocked>li .tb-listbtns{
    flex-wrap:nowrap;margin-left:0;gap:4px;flex:0 0 auto;
  }
}
@media (max-width:430px){
  .app-shell .tb-schedulefield,
  .app-shell .tb-schedulefield.tb-wide{grid-template-columns:1fr;gap:8px;}
  .app-shell .tb-statnumber{font-size:26px;}
  .app-shell .tb-panel{padding:18px;}
  .app-shell .tb-action{white-space:normal;text-align:center;}
  .app-shell .tb-digestslots{grid-template-columns:1fr;}
  .app-shell .tb-slot{display:flex;justify-content:space-between;}
  .app-shell .tb-slotname{margin:0;}
  .app-shell .tb-stats{grid-template-columns:1fr;}
}
@media (pointer:coarse){
  .app-shell .tb-nav,.app-shell .tb-tab{min-height:44px;}
  /* (v2.57, item 6) The calmer standard button size
     keeps a generous tap area on touch devices. */
  .app-shell .tb-action{min-height:44px;}
  /* (v2.62, TB-1039) The 16px floor has to win over
     the field-class sizes (.tb-input at 15px, the
     search input at 15px, inherited chat inputs,
     14px selects) or iOS zooms the page on focus:
     !important, inside this coarse-pointer query
     only so desktop rendering is unchanged. Every
     input is covered, checkboxes, radios and file
     pickers included: they carried 16px under the
     old rule wherever it won, so this keeps their
     touch rendering exactly as shipped before. */
  .app-shell input,.app-shell textarea,.app-shell select{font-size:16px !important;}
}

/* Admin completeness round (Oct 15, 2026): the Users search
   clear control and the filter dropdown. */
.app-shell .tb-search input::-webkit-search-cancel-button{display:none;}
.app-shell .tb-searchclear{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:0;background:var(--tb-line);color:var(--tb-text);font-size:14px;line-height:1;cursor:pointer;padding:0;}
.app-shell .tb-filtersel{width:auto;}

/* Logo image (Oct 16, 2026, logo rollout; back office v2.5): the
   approved lockup replaces the text wordmark in the page headers.
   One shared image, sized per slot. The text wordmark styles above
   remain only for the footer mark. */
.tb-logo-img{display:inline-block;vertical-align:middle;}
.navmark .tb-logo-img{height:50px;}
.wordmark .tb-logo-img{height:50px;}
.wordmark--lg .tb-logo-img{height:100px;}
.app-shell .tb-logo .tb-logo-img{height:56px;}

/* Mobile icon-only header (Oct 16, 2026; back office v2.16): on
   phone-width screens the header corner mark is the TidyBox icon
   alone, so the top navigation keeps its room. The full lockup
   shows above the phone breakpoint; the icon is hidden there.
   Footer wordmarks are untouched by these rules. */
.tb-logo-icon-img{display:none;vertical-align:middle;}
@media (max-width:640px){
  .navmark .tb-logo-img,.app-shell .tb-logo .tb-logo-img{display:none;}
  .navmark .tb-logo-icon-img{display:inline-block;height:34px;width:auto;}
  .app-shell .tb-logo .tb-logo-icon-img{display:inline-block;height:36px;width:auto;}
}

/* Inbox (back office v2.28): the nav needs-reply badge,
   the conversation list's waiting age and note flag, the
   conversation layout with its ticket rail, and the
   internal-note treatment (a calm sage tint with a solid
   hairline since v2.37 - the yellow dashed sticky-note
   look retired - always paired with the lock marker in
   the page) that keeps a note unmistakable from anything
   a customer sees. */
/* (v2.60, point 5) The account status chip: a dot and
   a word, one color per state. */
.app-shell .tb-statuschip{
  display:inline-flex;align-items:center;gap:6px;
  border-radius:999px;padding:2px 10px 2px 8px;
  font-size:12px;font-weight:600;white-space:nowrap;
  background:#EFEFEF;color:#5A5A5A;}
.app-shell .tb-statuschip::before{
  content:"";width:8px;height:8px;border-radius:50%;
  background:#9A9A9A;flex:none;}
.app-shell .tb-statuschip.st-active{
  background:var(--tb-line);color:var(--tb-ok-text);}
.app-shell .tb-statuschip.st-active::before{
  background:var(--tb-green);}
.app-shell .tb-statuschip.st-trialing{
  background:#EAF1FB;color:#2B4C7E;}
.app-shell .tb-statuschip.st-trialing::before{
  background:#2F5DA3;}
.app-shell .tb-statuschip.st-paused{
  background:#FDF3E0;color:var(--tb-warn-text);}
.app-shell .tb-statuschip.st-paused::before{
  background:#B7791F;}
.app-shell .tb-statuschip.st-stopped{
  background:#EFEFEF;color:#5A5A5A;}
.app-shell .tb-statuschip.st-stopped::before{
  background:#8A8A8A;}
.app-shell .tb-statuschip.st-billing{
  background:#FBEAE8;color:var(--tb-danger-text-deep);}
.app-shell .tb-statuschip.st-billing::before{
  background:var(--tb-danger);}
.app-shell .tb-statuschip.st-pending{
  background:#EFEFEF;color:#5A5A5A;}
.app-shell .tb-statuschip.st-pending::before{
  background:#B0B0B0;}
.app-shell .tb-navbadge{margin-left:auto;background:var(--tb-brand);color:#FFFFFF;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5;padding:1px 8px;}
.app-shell .tb-navbadge[hidden]{display:none;}
/* (v2.86) The shared tab counter badge: one class for
   every folder-tab strip (the Approvals Decide/Validate
   toggle, the admin home tabs). It reads as the nav badge
   reads - a solid green pill - is driven only by
   server-computed counts, and hides at zero. */
.app-shell .tb-tabcount{margin-left:7px;background:var(--tb-brand);color:#FFFFFF;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5;padding:1px 8px;vertical-align:1px;}
.app-shell .tb-tabcount[hidden]{display:none;}
/* The Inbox tab row (v2.32): the bar itself is the
   shared .tb-tabs component - nothing here restates it.
   This is only the row's composition (tabs left, the
   category select at the row's right end on desktop,
   its own full-width row under the tabs on a phone)
   and the Needs reply tab badge, in the nav badge's
   dress, driven by the same setInboxBadge call. */
.app-shell #ad-view-feedback .tb-heading{margin-bottom:10px;}
.app-shell #ad-view-feedback .tb-tabrow{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--tb-line);margin:0 0 14px;}
.app-shell #ad-view-feedback .tb-tabrow .tb-tabs{border-bottom:0;margin-bottom:0;}
.app-shell #ad-view-feedback .tb-tabrow .tb-filtersel{width:auto;min-width:168px;align-self:center;font-size:13.5px;padding-top:7px;padding-bottom:7px;}
.app-shell .tb-tab-badge{display:inline-block;background:var(--tb-brand);color:#FFFFFF;font-size:12px;font-weight:700;line-height:1.5;padding:1px 8px;border-radius:999px;margin-left:7px;vertical-align:1px;}
.app-shell .tb-tab-badge[hidden]{display:none;}
@media (max-width:750px){
  .app-shell #ad-view-feedback .tb-tabrow{flex-direction:column;align-items:stretch;gap:10px;border-bottom:0;}
  .app-shell #ad-view-feedback .tb-tabrow .tb-tabs{border-bottom:1px solid var(--tb-line);}
  .app-shell #ad-view-feedback .tb-tabrow .tb-filtersel{width:100%;}
}
/* (v2.76) The floating Sprout button (88px, 18px off
   the corner) must never trap an inbox row underneath
   it: the list carries foot clearance so every row can
   scroll fully out from under him. */
.app-shell #ad-inbox-list{padding-bottom:132px;}
.app-shell .tb-inbox-noteflag{display:inline-block;margin-left:6px;font-size:12px;color:var(--tb-muted);}
.app-shell .tb-inbox-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start;}
.app-shell .tb-inbox-main{min-width:0;}
.app-shell .tb-inbox-rail{min-width:0;}
@media (max-width:900px){
  .app-shell .tb-inbox-layout{grid-template-columns:1fr;}
}
.app-shell .tb-inbox-note{background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:8px;padding:10px 12px;margin:0 0 8px;}
.app-shell .tb-inbox-notehead{margin:0 0 4px;font-size:13px;color:var(--tb-muted);display:flex;gap:6px;align-items:center;}
.app-shell .tb-inbox-notebody{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:14px;}
.app-shell .tb-inbox-event{text-align:center;color:var(--tb-muted);font-size:12.5px;margin:10px 0;line-height:1.5;}
.app-shell .tb-inbox-lock{display:inline-flex;color:var(--tb-muted);vertical-align:-2px;margin-right:6px;}
.app-shell .tb-inbox-lock svg{width:15px;height:15px;}
.app-shell .tb-inbox-custname{font-weight:600;margin:0 0 6px;}
.app-shell .tb-inbox-custline{margin:0 0 4px;font-size:13.5px;line-height:1.5;}
/* (v2.67, TB-1054) The Feedback panel's meta rows: a
   label column and a value column with real air
   between them, never run together (the label class
   carried no rule at all, so label and value fused
   into one word). The panel's sub-heads (Assessment,
   Decision, and their kin) are section heads with
   air above them, and the rail's cards breathe at
   the shared section-card padding. */
.app-shell .tb-inbox-custlabel{
  font-size:13px;font-weight:600;color:var(--tb-muted);}
.app-shell .tb-inbox-ticketpanel .tb-inbox-custline{
  display:flex;gap:12px;align-items:baseline;
  margin:0 0 7px;}
.app-shell .tb-inbox-ticketpanel .tb-inbox-custline
  .tb-inbox-custlabel{flex:0 0 104px;}
.app-shell p.tb-inbox-custlabel{
  display:block;font-size:13.5px;font-weight:700;
  color:var(--tb-green-dark);margin:18px 0 7px;}

/* Phone cards for the wide admin tables (back office
   v2.31): at phone widths the Inbox conversation list,
   Transactions, the Users list and the pending
   invitations table were desktop tables - the Inbox
   table was not wrapped at all, so it stretched the
   whole page to ~920px and the phone panned sideways,
   while the wrapped tables hid their right-hand
   columns (invoice, amount, status; plan) off screen.
   Following the Removed users treatment above, each
   row becomes a stacked card laid out on a grid: no
   sideways scrolling anywhere, every column's content
   on the card, zebra striping kept as alternating card
   backgrounds (restated here at card specificity so
   the shared definition above is untouched). Desktop
   presentation is unchanged - nothing in this block
   applies above 750px. */
@media (max-width:750px){
  .app-shell #ad-txn-table,
  .app-shell #ad-users-table,
  .app-shell #ad-invite-pending-wrap .tb-table{min-width:0;}
  .app-shell #ad-txn-table thead,
  .app-shell #ad-users-table thead,
  .app-shell #ad-invite-pending-wrap .tb-table thead{display:none;}
  .app-shell #ad-txn-table,
  .app-shell #ad-txn-table tbody,
  .app-shell #ad-users-table,
  .app-shell #ad-users-table tbody,
  .app-shell #ad-invite-pending-wrap .tb-table,
  .app-shell #ad-invite-pending-wrap .tb-table tbody{display:block;}
  .app-shell #ad-txn-table,
  .app-shell #ad-users-table,
  .app-shell #ad-invite-pending-wrap .tb-table{border:0;background:transparent;overflow:visible;}
  .app-shell #ad-txn-table tbody tr,
  .app-shell #ad-users-table tbody tr,
  .app-shell #ad-invite-pending-wrap .tb-table tbody tr{
    display:grid;gap:4px 12px;align-items:center;
    background:var(--tb-panel);border:1px solid var(--tb-line);
    border-radius:var(--tb-radius);padding:12px 14px;margin-bottom:10px;
  }
  .app-shell #ad-txn-table tbody tr:nth-child(even),
  .app-shell #ad-users-table tbody tr:nth-child(even),
  .app-shell #ad-invite-pending-wrap .tb-table tbody tr:nth-child(even){
    background:#F2F6F2;
  }
  .app-shell #ad-txn-table td,
  .app-shell #ad-users-table td,
  .app-shell #ad-invite-pending-wrap .tb-table td{
    display:block;border-bottom:0;padding:0;min-width:0;
  }
  /* Transactions card: date + status, the customer, the
     description (plan, invoice, period), then amount +
     card. */
  .app-shell #ad-txn-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"date status" "cust cust" "desc desc" "amount card" "actions actions";
  }
  .app-shell #ad-txn-table td:nth-child(1){grid-area:date;}
  .app-shell #ad-txn-table td:nth-child(2){grid-area:cust;}
  .app-shell #ad-txn-table td:nth-child(3){grid-area:desc;}
  .app-shell #ad-txn-table td:nth-child(4){grid-area:amount;font-weight:600;}
  .app-shell #ad-txn-table td:nth-child(5){grid-area:card;justify-self:end;color:var(--tb-muted);font-size:13.5px;}
  .app-shell #ad-txn-table td:nth-child(6){grid-area:status;justify-self:end;}
  .app-shell #ad-txn-table td:nth-child(7){grid-area:actions;justify-self:end;}
  /* Users card: the person, role + access, the plan,
     with the open chevron riding the top line. */
  .app-shell #ad-users-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"user chev" "role access" "plan plan";
  }
  .app-shell #ad-users-table td:nth-child(1){grid-area:user;}
  .app-shell #ad-users-table td:nth-child(2){grid-area:role;}
  .app-shell #ad-users-table td:nth-child(3){grid-area:access;justify-self:end;}
  .app-shell #ad-users-table td:nth-child(4){grid-area:plan;color:var(--tb-muted);font-size:13.5px;}
  .app-shell #ad-users-table td:nth-child(5){grid-area:chev;justify-self:end;}
  /* Pending invitations card: name + status, the
     email, then role + invited date. */
  .app-shell #ad-invite-pending-wrap .tb-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"name status" "email email" "role invited";
  }
  .app-shell #ad-invite-pending-wrap .tb-table td:nth-child(1){grid-area:name;font-weight:600;}
  .app-shell #ad-invite-pending-wrap .tb-table td:nth-child(2){grid-area:email;color:var(--tb-muted);overflow-wrap:anywhere;}
  .app-shell #ad-invite-pending-wrap .tb-table td:nth-child(3){grid-area:role;}
  .app-shell #ad-invite-pending-wrap .tb-table td:nth-child(4){grid-area:invited;justify-self:end;color:var(--tb-muted);}
  .app-shell #ad-invite-pending-wrap .tb-table td:nth-child(5){grid-area:status;justify-self:end;}
  /* Filter toolbars on the three list views: the
     search takes its own full-width line, the filter
     select sits under it (full width in the Inbox,
     sharing its line with the count on the other two). */
  .app-shell #ad-view-list .tb-toolbar .tb-search,
  .app-shell #ad-view-feedback .tb-toolbar .tb-search,
  .app-shell #ad-view-transactions .tb-toolbar .tb-search{flex:1 1 100%;width:auto;}
  .app-shell #ad-view-feedback .tb-toolbar .tb-filtersel{flex:1 1 100%;}
  .app-shell #ad-view-list .tb-toolbar .tb-filtersel,
  .app-shell #ad-view-transactions .tb-toolbar .tb-filtersel{flex:1 1 auto;}
  /* Conversation view: a long subject wraps instead of
     pushing the page wide, and the rail cards breathe
     a little less. */
  .app-shell .tb-thr-subject{overflow-wrap:anywhere;}
  .app-shell .tb-inbox-rail .tb-panel{padding:18px;}
}
/* The ticket rail stacks under the conversation at
   900px (the layout rule above); there its Category
   and Feature state labels stack too - the label on
   its own line, the select full width - instead of
   the desktop side-by-side pair whose content-sized
   selects left a ragged right edge. */
@media (max-width:900px){
  .app-shell .tb-inbox-rail .tb-fb-catlabel{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:12px;}
  .app-shell .tb-inbox-rail .tb-fb-catlabel select.tb-input{width:100%;}
}

/* ==== Inbox best-of-worlds redesign (v2.36) - scoped to the Inbox view ==== */
.app-shell #ad-view-feedback .tb-inbox-heading{display:flex;align-items:flex-start;justify-content:space-between;}
.app-shell #ad-view-feedback .tb-inbox-headactions{display:flex;gap:8px;align-items:center;padding-top:2px;}
.app-shell #ad-view-feedback .tb-inbox-iconbtn{position:relative;width:38px;height:38px;border-radius:50%;border:0;background:transparent;color:var(--tb-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.app-shell #ad-view-feedback .tb-inbox-iconbtn:hover{background:var(--tb-soft);}
.app-shell #ad-view-feedback .tb-inbox-iconbtn svg{width:21px;height:21px;}
.app-shell #ad-view-feedback .tb-inbox-bell-badge{position:absolute;top:0;right:-1px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--tb-green);color:#FFFFFF;font-size:10.5px;font-weight:700;line-height:17px;text-align:center;}
.app-shell #ad-view-feedback .tb-inbox-bell-badge[hidden]{display:none;}
.app-shell #ad-view-feedback .tb-inbox-searchrow{display:flex;gap:10px;align-items:center;flex:1;min-width:0;}
.app-shell #ad-view-feedback .tb-inbox-searchrow[hidden]{display:none;}
.app-shell #ad-view-feedback .tb-inbox-searchrow .tb-search{flex:1;}
.app-shell #ad-view-feedback .tb-inbox-heading.searching .tb-inbox-titlebox{display:none;}
.app-shell #ad-view-feedback .tb-inbox-heading.searching .tb-inbox-headactions{display:none;}
.app-shell #ad-view-feedback .tb-inbox-cancel{border:0;background:none;color:var(--tb-green);font-size:14.5px;font-weight:600;cursor:pointer;padding:6px 2px;}
.app-shell #ad-view-feedback .tb-inbox-filterbtn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--tb-line);background:#FFFFFF;color:var(--tb-text);border-radius:8px;padding:7px 12px;font-size:13.5px;cursor:pointer;align-self:center;}
.app-shell #ad-view-feedback .tb-inbox-filterbtn svg{width:15px;height:15px;}
.app-shell #ad-view-feedback .tb-inbox-filterbtn.active{border-color:var(--tb-green);color:var(--tb-green-dark);font-weight:600;}
.app-shell #ad-view-feedback .tb-inbox-filteron{width:7px;height:7px;border-radius:50%;background:var(--tb-green);}
.app-shell #ad-view-feedback .tb-inbox-filteron[hidden]{display:none;}
.app-shell #ad-view-feedback #ad-inbox-list{position:relative;}
/* (v2.76) The Filter sheet sits at the sheet layer
   (260 on the settled scale - chrome up to 190, sheets
   260, modal 320); at 30 the floating Sprout button
   (chrome, 120) painted over its lists. The sheet-open
   watch in site.js also hides the button while this
   sheet is open, like every other sheet. */
.app-shell #ad-view-feedback .tb-inbox-sheetwrap{position:absolute;inset:0;z-index:260;}
.app-shell #ad-view-feedback .tb-inbox-sheetwrap[hidden]{display:none;}
.app-shell #ad-view-feedback .tb-inbox-scrim{position:absolute;inset:0;background:rgba(24,40,58,.28);border-radius:4px;}
/* (v2.78) TB-1104: the Filter sheet is height-bounded
   and built of compact pill groups - every selection
   visible on one screen; the body scrolls only as a
   safety net, and Clear / Done live in the footer. */
.app-shell #ad-view-feedback .tb-inbox-sheet{position:absolute;top:4px;right:0;width:302px;max-width:calc(100% - 8px);max-height:min(calc(100% - 8px),calc(100dvh - 16px));display:flex;flex-direction:column;background:#FFFFFF;border:1px solid var(--tb-line);border-radius:16px;box-shadow:0 24px 60px rgba(20,33,61,.30);padding:0;overflow:hidden;}
.app-shell #ad-view-feedback .tb-inbox-sheet-head{display:flex;align-items:center;gap:8px;padding:12px 16px 10px;border-bottom:1px solid var(--tb-line);}
.app-shell #ad-view-feedback .tb-inbox-sheet-head strong{font-size:15.5px;color:var(--tb-text);}
.app-shell #ad-view-feedback .tb-inbox-sheet-count{font-size:12.5px;color:var(--tb-green);font-weight:700;}
.app-shell #ad-view-feedback .tb-inbox-sheetx{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 auto;margin-left:auto;border:0;background:none;color:var(--tb-muted);font-size:21px;line-height:1;cursor:pointer;padding:0;border-radius:8px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-body{overflow-y:auto;padding:2px 16px 10px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-foot{display:flex;justify-content:space-between;align-items:center;padding:10px 16px 12px;border-top:1px solid var(--tb-line);}
.app-shell #ad-view-feedback .tb-inbox-sheetdone{border:0;background:var(--green);color:#FFFFFF;font-weight:700;font-size:14px;cursor:pointer;padding:7px 12px;border-radius:8px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-label{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--tb-muted);margin:13px 0 5px;}
.app-shell #ad-view-feedback .tb-inbox-pills{display:flex;flex-wrap:wrap;gap:6px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-cat{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--tb-line);background:#FFFFFF;padding:7px 12px;font-size:13.5px;color:var(--tb-text);border-radius:8px;cursor:pointer;}
.app-shell #ad-view-feedback .tb-inbox-sheet-cat:hover{background:var(--tb-soft);}
.app-shell #ad-view-feedback .tb-inbox-sheet-cat.on{font-weight:700;background:var(--light-sage);border-color:var(--tb-green);color:var(--tb-text);}
.app-shell #ad-view-feedback .tb-inbox-sheet-check{color:var(--tb-green);font-weight:700;}
.app-shell #ad-view-feedback .tb-inbox-sheet-opt{display:flex;justify-content:space-between;align-items:center;padding:8px 2px;font-size:14.5px;color:var(--tb-text);cursor:pointer;}
.app-shell #ad-view-feedback .tb-inbox-sheet-opt input{appearance:none;-webkit-appearance:none;width:40px;height:24px;border-radius:999px;background:#D8DEE4;position:relative;cursor:pointer;transition:background .15s;flex:0 0 auto;margin:0;}
.app-shell #ad-view-feedback .tb-inbox-sheet-opt input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#FFFFFF;transition:left .15s;}
.app-shell #ad-view-feedback .tb-inbox-sheet-opt input:checked{background:var(--tb-green);}
.app-shell #ad-view-feedback .tb-inbox-sheet-opt input:checked::after{left:19px;}
.app-shell #ad-view-feedback .tb-inbox-sheetclear{border:0;background:none;color:var(--tb-muted);font-size:14px;cursor:pointer;padding:4px 6px;}
.app-shell #ad-view-feedback .tb-inbox-sheetclear:hover{color:var(--tb-text);text-decoration:underline;}
.app-shell .tb-ibx-list{list-style:none;margin:0;padding:0;}
.app-shell .tb-ibx-row{display:flex;gap:10px;align-items:flex-start;padding:11px 8px;border-bottom:1px solid var(--tb-line);cursor:pointer;}
/* (v2.73) The unread dot is layout-neutral: it
   floats in the row's left gutter and never shifts the
   row's text, so read and unread rows share one left
   edge. The gutter is a constant part of the row's own
   padding, identical on every row. Columnar desktop
   rows keep their grid (the dot track is the gutter
   there, shared by every row already). */
.app-shell .tb-ibx-row:not(.tb-ibx-row-cols){position:relative;padding-left:26px;}
.app-shell .tb-ibx-row:not(.tb-ibx-row-cols) .tb-ibx-dot{position:absolute;left:8px;top:19px;margin-top:0;}
.app-shell .tb-ibx-row:hover{background:#FBFCFB;}
.app-shell .tb-ibx-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--tb-green);margin-top:8px;visibility:hidden;}
.app-shell .tb-ibx-row.unread .tb-ibx-dot{visibility:visible;}
.app-shell .tb-ibx-main{flex:1;min-width:0;}
.app-shell .tb-ibx-l1{display:flex;justify-content:space-between;gap:10px;align-items:baseline;}
.app-shell .tb-ibx-name{font-size:15px;color:var(--tb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  /* (UI cleanliness, long-name regression) The name is
     a strong - inline by default, and an inline box
     ignores its overflow rule, so a long sender name
     painted straight over the Subject cell. As a block
     the truncation the rule always promised engages. */
  display:block;}
.app-shell .tb-ibx-time{font-size:12.5px;color:var(--tb-muted);white-space:nowrap;}
.app-shell .tb-ibx-subj{font-size:14.5px;color:var(--tb-text);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .tb-ibx-row.unread .tb-ibx-subj{font-weight:700;}
.app-shell .tb-ibx-prev{font-size:13.5px;color:var(--tb-muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .tb-ibx-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px;}
.app-shell .tb-ibx-assignee{display:inline-flex;align-items:center;gap:5px;color:var(--tb-muted);font-size:12.5px;}
.app-shell .tb-ibx-assignee-disc{flex:none;width:20px;height:20px;border-radius:50%;background:var(--tb-soft);color:var(--tb-green-dark);font-weight:700;font-size:10px;display:inline-flex;align-items:center;justify-content:center;}
.app-shell .tb-ibx-activity{font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-ibx-activity.hot{color:#B7791F;font-weight:600;}

/* v2.36: one counting language on the tabs - the counts
   replace the amber tab badge (both derive from the same
   inbox payload). */
.app-shell #ad-view-feedback .tb-tab-badge{display:none;}

/* ==== UI overhaul (v2.37) ================================================
   One interactive green (#2E7D32 via --tb-green above); the conversation
   as one calm thread on the Freshdesk/Zendesk model; the list's scope
   always stated. Rules for the new pieces live here, scoped like the
   v2.36 pass block above. */

/* The filter sheet now wraps ONLY the rows area (the tabs stay live
   above it); the scrollwrap is its positioning parent. */
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{position:relative;}
.app-shell #ad-view-feedback .tb-inbox-results{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px;}
.app-shell #ad-view-feedback .tb-inbox-results[hidden]{display:none;}
.app-shell #ad-view-feedback .tb-inbox-resulttext{font-size:13.5px;color:var(--tb-muted);}
.app-shell #ad-view-feedback .tb-inbox-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--tb-line);background:var(--tb-soft);color:var(--tb-text);border-radius:999px;padding:3px 10px;font-size:12.5px;cursor:pointer;}
.app-shell #ad-view-feedback .tb-inbox-chip:hover{border-color:var(--sage);}
/* (Oct 30, 2026, P2-3) The chip's label wraps inside its
   own span; the clear mark is a fixed flex item beside it
   and never wraps onto a line of its own. */
.app-shell #ad-view-feedback .tb-inbox-chip-label{min-width:0;}
.app-shell #ad-view-feedback .tb-inbox-chip-x{flex:0 0 auto;}
.app-shell #ad-view-feedback .tb-inbox-empty{padding:14px 2px;}

/* Thread view: its own header, the subject as the title, then the
   conversation on the page background. */
.app-shell .tb-thr-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.app-shell .tb-thr-back{display:inline-flex;align-items:center;gap:3px;border:0;background:none;padding:6px 8px 6px 2px;color:var(--tb-green);font-size:15px;font-weight:600;cursor:pointer;border-radius:8px;}
.app-shell .tb-thr-back:hover{background:var(--tb-soft);}
.app-shell .tb-thr-chev{display:inline-flex;}
.app-shell .tb-thr-chev svg{width:18px;height:18px;}
.app-shell .tb-thr-headmeta{display:flex;align-items:center;gap:10px;}
.app-shell .tb-thr-headmeta .tb-ticket-id{font-size:13.5px;}
.app-shell .tb-thr-title{margin-bottom:6px;}
/* (v3.55, TB-1305) The ticket subject stands smaller -
   16px, still bold - so the conversation takes the room.
   (Trevor, Oct 23, 2026.) */
.app-shell .tb-thr-subject{font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.2px;margin:0;color:var(--tb-text);}
/* (TB-1308) The friendly headline that leads the ticket
   sheet, and its row: the headline takes the room, the
   pencil (the summary Edit, as an icon) rides at its
   right, in the sheet's top area - never inside the
   brief card. One row shape on every sheet surface. */
.app-shell .tb-friendly-row{display:flex;align-items:flex-start;gap:10px;margin:2px 0 10px;}
.app-shell .tb-thr-friendly{font-size:19px;font-weight:650;line-height:1.3;letter-spacing:-.2px;margin:0;color:var(--tb-text);overflow-wrap:anywhere;flex:1;min-width:0;}
.app-shell .tb-thr-pencil{flex:none;margin-top:1px;}
.app-shell .tb-thr-from{color:var(--tb-muted);font-size:14px;margin-top:4px;}

/* Timeline: blocks separated by hairlines and air, never boxes in
   boxes; bodies are never height-capped. Shared by the Inbox thread

/* ==== Settings Lists (v2.37, scoped to the Settings view) ====
   The managed-list editor rows: a name field, its
   in-use count, an On/Off segmented switch (the
   Settings idiom), up/down movers and a delete that
   disables - plain gray, per the standing rule - while
   tickets carry the category, with the burgundy
   why-caption under the row. The locked display under
   the editor carries the lock glyph and no controls. */
.app-shell #ad-view-settings .tb-lists-subhead{font-size:14px;font-weight:700;color:var(--tb-green-dark);margin:18px 0 6px;}
.app-shell #ad-view-settings .tb-lists-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #B9CCB4;}
.app-shell #ad-view-settings .tb-lists-label{flex:1 1 180px;min-width:150px;}
.app-shell #ad-view-settings .tb-lists-use{white-space:nowrap;}
.app-shell #ad-view-settings .tb-lists-seg{margin-top:0;flex:none;}
.app-shell #ad-view-settings .tb-lists-seg button{padding:6px 14px;font-size:13.5px;}
.app-shell #ad-view-settings .tb-lists-delwhy{margin:4px 0 8px;padding:2px 34px 4px;text-align:center;}
.app-shell #ad-view-settings .tb-lists-num{color:var(--tb-green);font-weight:700;}
.app-shell #ad-view-settings .tb-lists-locked{margin-top:22px;border-top:1px solid var(--tb-line);padding-top:2px;}
.app-shell #ad-view-settings .tb-lists-lockic{display:inline-flex;vertical-align:-3px;margin-right:6px;color:var(--tb-muted);}
.app-shell #ad-view-settings .tb-lists-lockic svg{width:15px;height:15px;}
.app-shell #ad-view-settings .tb-lists-minhead{font-size:13px;font-weight:700;color:var(--tb-green-dark);margin:14px 0 2px;}
.app-shell #ad-view-settings .tb-lists-textrow{padding:2px 0 10px;border-bottom:1px solid var(--tb-line);}
.app-shell #ad-view-settings .tb-lists-text{width:100%;}
.app-shell #ad-view-settings .tb-lists-lockline{display:flex;align-items:center;margin:4px 0 0;color:var(--tb-muted);}
.app-shell #ad-view-settings .tb-lists-addblock{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.app-shell #ad-view-settings .tb-lists-addblock .tb-input{width:100%;}
   and the customer record's feedback panel. */
.app-shell .tb-tl{margin:6px 0 4px;}
.app-shell .tb-tl-msg{padding:14px 0;border-bottom:1px solid var(--tb-line);}
.app-shell .tb-tl-msg:last-child{border-bottom:0;}
.app-shell .tb-tl-head{display:flex;align-items:center;gap:9px;margin-bottom:6px;}
.app-shell .tb-tl-disc{flex:none;width:32px;height:32px;border-radius:50%;background:var(--tb-soft);color:var(--tb-green);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;}
.app-shell .tb-tl-who{flex:1;min-width:0;font-size:13.5px;color:var(--tb-text);}
.app-shell .tb-tl-who strong{font-weight:600;}
.app-shell .tb-tl-status{color:var(--tb-muted);font-size:12.5px;margin-left:6px;}
.app-shell .tb-tl-time{font-size:12.5px;color:var(--tb-muted);white-space:nowrap;}
.app-shell .tb-tl-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14.5px;color:var(--tb-text);}
.app-shell .tb-tl-note{background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:8px;padding:11px 13px;margin:12px 0;}
.app-shell .tb-tl-notehead{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13.5px;color:var(--tb-text);margin-bottom:5px;}
.app-shell .tb-tl-notehead strong{font-weight:600;white-space:nowrap;}
.app-shell .tb-tl-notemeta{color:var(--tb-muted);font-size:12.5px;font-weight:400;}

/* The one composer: Reply / Internal note modes on the shared
   segmented control; note mode tints the panel sage. */
.app-shell .tb-composer-modes{margin:0 0 14px;}
.app-shell .tb-composer-notemode{background:var(--tb-side);}
.app-shell .tb-composer-notelabel{display:flex;gap:7px;align-items:center;font-size:14px;margin-bottom:2px;flex-wrap:wrap;}
.app-shell .tb-composer-row{justify-content:space-between;margin-top:10px;}
.app-shell .tb-composer-row .tb-whycap{margin-top:0;}

/* Phone properties strip: hidden where the rail shows. */
.app-shell .tb-thr-strip{display:none;}
@media (max-width:900px){
  .app-shell .tb-thr-strip{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;border:1px solid var(--tb-line);border-radius:var(--tb-radius);background:var(--tb-panel);padding:12px 14px;margin:10px 0 4px;}
  .app-shell .tb-inbox-ticketcard{display:none;}
}
.app-shell .tb-thr-strip-ticket{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.app-shell .tb-thr-stripbtn{padding:6px 11px;font-size:13.5px;}
.app-shell .tb-thr-strip-cat{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-thr-strip-cat select.tb-input{margin-top:2px;padding:7px 9px;font-size:14px;}

/* Rail labels stack over their selects at every width, so the
   select takes the card's full width and never leaves a ragged
   gap beside a content-sized control. */
.app-shell .tb-inbox-rail .tb-fb-catlabel{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:14px;}
.app-shell .tb-inbox-rail .tb-fb-catlabel select.tb-input{width:100%;}

/* Record feedback: one block per conversation, hairline between,
   no zebra flood. */
.app-shell .tb-fbconv{padding:16px 0 6px;}
.app-shell .tb-fbconv + .tb-fbconv{border-top:1px solid var(--tb-line);}
.app-shell .tb-fbconv:first-child{padding-top:2px;}
.app-shell .tb-tl-record .tb-tl-msg{padding:11px 0;}

/* ---- Document Library (v2.40): the shelf's document
   rows and the letter preview. The zebra tint is the
   standing one; the one interactive green drives the
   checkboxes. ---- */
.app-shell .tb-lib-doc{display:flex;gap:10px;align-items:flex-start;padding:10px 8px;border-top:1px solid var(--tb-line);cursor:pointer;}
.app-shell .tb-lib-doc:first-child{border-top:none;}
.app-shell .tb-lib-alt{background:#F2F6F2;}
.app-shell .tb-lib-doc input[type="checkbox"]{margin-top:3px;width:17px;height:17px;flex:none;accent-color:var(--tb-green);}
.app-shell .tb-lib-texts{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}
/* (v2.47) The library row's preview eye rides the
   row's right edge. */
.app-shell .tb-lib-eye{flex:none;margin-top:1px;}
.app-shell .tb-lib-title{font-weight:600;color:#14213D;}
.app-shell .tb-lib-desc{color:#42506B;font-size:13px;line-height:1.45;}
.app-shell .tb-lib-letter{border:1px solid var(--tb-line);border-radius:10px;padding:16px 18px;background:var(--tb-panel);}
.app-shell .tb-lib-letter p{margin:0 0 10px;line-height:1.55;}
.app-shell .tb-lib-letter p:last-child{margin-bottom:0;}
.app-shell .tb-lib-subject{font-weight:600;color:#14213D;}
.app-shell .tb-lib-greet{font-style:italic;}
.app-shell .tb-lib-note{font-style:italic;color:#42506B;}
.app-shell .tb-lib-bulk-list{margin:4px 0 10px;padding-left:18px;line-height:1.5;}

/* Support view (link-first map, v2.43): the customer's
   own conversations on the dashboard. Rows ride the
   shared tb-list (zebra striping included); a row is one
   full-width button so the whole row is the target.
   Messages stack as quiet blocks: the team's on the soft
   sage tint, the customer's own on white with a border,
   each with a muted who-and-when line. */
.app-shell .sup-row-main{display:block;width:100%;flex:1;background:none;border:0;padding:2px 0;text-align:left;cursor:pointer;font:inherit;color:var(--tb-text);}
.app-shell .sup-row-top{display:flex;justify-content:space-between;gap:14px;align-items:baseline;}
.app-shell .sup-row-subject{font-weight:600;font-size:15.5px;}
.app-shell .sup-row-when{color:var(--tb-muted);font-size:13.5px;white-space:nowrap;}
.app-shell .sup-row-meta{display:block;color:var(--tb-muted);font-size:13.5px;margin-top:2px;}
.app-shell .sup-row-preview{display:block;margin-top:3px;font-size:14.5px;line-height:1.5;color:var(--tb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .sup-msg{border-radius:10px;padding:13px 16px;margin:12px 0;}
.app-shell .sup-msg-team{background:var(--tb-soft);}
.app-shell .sup-msg-you{background:#FFFFFF;border:1px solid var(--tb-line);}
.app-shell .sup-msg-meta{margin:0 0 5px;font-size:13px;color:var(--tb-muted);}
.app-shell .sup-msg-body{margin:0;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;}
.app-shell .sup-sendrow{margin-top:12px;}
.app-shell .sup-fineprint{margin-top:10px;font-size:13.5px;}

/* ==========================================================================
   v2.45 - the comp-review build (Oct 17, 2026): the left
   drawer with page peek, the switch,
   the overlay sheet (user record + Settings detail pages),
   the Settings index, and the per-mailbox view. One
   definition each, shared by both shells, exactly like
   every component before them.
   ========================================================================== */

/* ---- the drawer: the hamburger's panel is now a left
   drawer at every width. It is a pure overlay: the page
   beneath keeps its state (scroll, search, tab) and a
   sliver of it stays visible at the right edge (the
   peek). Contents and order are the shell's own nav,
   rebuilt by site.js from the sidebar, as always. ---- */
.app-shell .tb-drawerscrim{position:fixed;inset:0;background:rgba(20,33,61,.18);z-index:180;}
.app-shell .tb-drawerscrim[hidden]{display:none;}
.app-shell .tb-burgermenu.tb-drawer{display:block;position:fixed;top:0;left:0;bottom:0;width:min(82vw,300px);max-width:300px;background:var(--tb-panel);border:0;border-right:1px solid var(--tb-line);border-radius:0 16px 16px 0;box-shadow:18px 0 44px rgba(20,33,61,.20);padding:14px 14px 22px;z-index:190;text-align:left;overflow-y:auto;animation:tb-drawer-in .18s ease-out;}
.app-shell .tb-burgermenu.tb-drawer[hidden]{display:none;}
@keyframes tb-drawer-in{from{transform:translateX(-24px);opacity:.4;}to{transform:translateX(0);opacity:1;}}
.app-shell .tb-drawerhead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:2px 4px 10px;}
.app-shell .tb-drawerclose{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-text);cursor:pointer;flex:0 0 auto;}
.app-shell .tb-drawerclose svg{width:20px;height:20px;}
.app-shell .tb-drawergroup{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--tb-muted);padding:16px 10px 5px;}
.app-shell .tb-drawer .tb-burgeritem{display:flex;align-items:center;width:100%;min-height:46px;padding:10px;border:0;border-radius:10px;background:none;color:var(--tb-text);font:inherit;font-size:15.5px;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box;}
.app-shell .tb-drawer .tb-burgeritem.active{background:var(--tb-soft);font-weight:600;}
.app-shell .tb-drawer .tb-burgeritem.tb-burgersep{margin-top:10px;padding-top:14px;border-top:1px solid var(--tb-line);border-radius:0 0 10px 10px;}

/* (TB-1309) The drawer's accordion sections: a section
   row (bold small title + chevron) expands only and
   never navigates; one section open at a time; the
   open section persists across pages. The section's
   home is its first child row. */
.app-shell .tb-accparent{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px;background:none;border:0;border-top:1px solid var(--tb-line);color:var(--tb-navy);font:inherit;font-size:13px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;text-align:left;cursor:pointer;box-sizing:border-box;margin-top:6px;}
.app-shell .tb-accparent:first-of-type{border-top:0;margin-top:0;}
.app-shell .tb-acchev{display:flex;align-items:center;color:var(--tb-muted);transition:transform .15s ease-out;}
.app-shell .tb-acchev svg{width:18px;height:18px;}
.app-shell .tb-accparent[aria-expanded="true"] .tb-acchev{transform:rotate(180deg);}
.app-shell .tb-accbody{padding-bottom:6px;}
.app-shell .tb-accbody[hidden]{display:none;}

/* (TB-1309) The bottom bar's More sheet: a flat overflow
   sheet rising from the bottom - every destination that
   is not already a bottom-bar stop, one tap each, no
   grouping, no accordion. Same rows as the drawer. */
.app-shell .tb-morescrim{position:fixed;inset:0;background:rgba(20,33,61,.18);z-index:194;}
.app-shell .tb-morescrim[hidden]{display:none;}
.app-shell .tb-moresheet{position:fixed;left:0;right:0;bottom:0;z-index:195;background:var(--tb-panel);border-top:1px solid var(--tb-line);border-radius:16px 16px 0 0;box-shadow:0 -18px 44px rgba(20,33,61,.20);padding:8px 14px calc(12px + env(safe-area-inset-bottom));max-height:74vh;overflow-y:auto;animation:tb-sheet-in .18s ease-out;text-align:left;}
.app-shell .tb-moresheet[hidden]{display:none;}
@keyframes tb-sheet-in{from{transform:translateY(24px);opacity:.4;}to{transform:translateY(0);opacity:1;}}
.app-shell .tb-morehead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 8px;}
.app-shell .tb-moretitle{font-size:16px;font-weight:700;color:var(--tb-navy);}
.app-shell .tb-moreclose{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:none;border:0;border-radius:8px;color:var(--tb-text);cursor:pointer;flex:0 0 auto;}
.app-shell .tb-moreclose svg{width:20px;height:20px;}
.app-shell .tb-moresheet .tb-burgeritem{display:flex;align-items:center;width:100%;min-height:46px;padding:10px;border:0;border-radius:10px;background:none;color:var(--tb-text);font:inherit;font-size:15.5px;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box;}
.app-shell .tb-moresheet .tb-burgeritem.active{background:var(--tb-soft);font-weight:600;}
.app-shell .tb-moresheet .tb-burgeritem svg{width:20px;height:20px;flex-shrink:0;margin-right:10px;color:var(--sage);}

/* ---- (v2.51) The Settings gear that lived here is
   retired: one navigation door per shell (the menu),
   and its rules went with it. ---- */

/* ---- the switch (Settings-style on/off, one shared
   component): green when on, plain gray when off, the
   disabled grays the house rule already names. ---- */
.app-shell .tb-switch{position:relative;width:52px;height:30px;border-radius:999px;border:0;background:var(--tb-line);cursor:pointer;flex:0 0 auto;padding:0;transition:background .15s ease;}
.app-shell .tb-switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#FFFFFF;box-shadow:0 1px 3px rgba(20,33,61,.25);transition:left .15s ease;}
.app-shell .tb-switch[aria-checked="true"]{background:var(--tb-green);}
.app-shell .tb-switch[aria-checked="true"]::after{left:25px;}
.app-shell .tb-switch:disabled{background:#E4E4E4;cursor:default;}
.app-shell .tb-switch:disabled::after{background:#AFAFAF;box-shadow:none;}

/* ---- the overlay sheet: one component presenting the
   user record and the Settings detail pages. (v2.51)
   Trevor's pop-up standard at every width: a plain
   white card with margins over the scrim, the page
   visible behind it - on desktop the card centers.
   The page beneath is never unmounted, so closing the
   sheet returns the exact prior state. ---- */
.app-shell .tb-sheetwrap{position:fixed;inset:0;z-index:150;}
.app-shell .tb-sheetwrap[hidden]{display:none;}
.app-shell .tb-sheetscrim{position:absolute;inset:0;background:rgba(20,33,61,.34);}
.app-shell .tb-sheet{position:absolute;inset:12px;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:16px;box-shadow:0 24px 60px rgba(20,33,61,.30);overflow:hidden;display:flex;flex-direction:column;animation:tb-sheet-in .18s ease-out;}
@keyframes tb-sheet-in{from{transform:translateY(14px);opacity:.5;}to{transform:translateY(0);opacity:1;}}
@media (min-width:751px){
  .app-shell .tb-sheet{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(700px,94vw);max-height:90vh;border-radius:16px;box-shadow:0 24px 60px rgba(20,33,61,.30);overflow:hidden;animation:none;}
}
/* (Oct 27, 2026) On a phone the open chat fills the
   screen: the same pop-up, header and instant close,
   but no page peeking around a card's edges. */
@media (max-width:750px){
  .app-shell .tb-feedbackwrap.tb-chatmode .tb-sheet{inset:0;border:0;border-radius:0;box-shadow:none;}
}
.app-shell .tb-sheethead{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--tb-panel);border-bottom:1px solid var(--tb-line);flex:0 0 auto;}
.app-shell .tb-sheettitle{flex:1;text-align:center;font-size:15.5px;font-weight:600;color:var(--tb-text);}
/* (v3.04) The balanced sheet head: a three-part
   grid (spacer / centered title / close) on every
   plain sheet, so the record ID sits at the true
   center. Chat and visitor heads keep their own
   settled layouts. */
.app-shell .tb-sheethead:not(.tb-chathead):not(.tb-visitor-head){display:grid;grid-template-columns:1fr auto 1fr;}
.app-shell .tb-sheethead:not(.tb-chathead):not(.tb-visitor-head) .tb-sheettitle{grid-column:2;justify-self:center;min-width:0;}
.app-shell .tb-sheethead:not(.tb-chathead):not(.tb-visitor-head)>.tb-sheetbtn{grid-column:3;justify-self:end;}
.app-shell .tb-sheethead:not(.tb-chathead):not(.tb-visitor-head)>.tb-sheetback{grid-column:1;justify-self:start;}
/* (v3.04) Thin, app-like scrollbars wherever
   the shell runs - the platform standard, so
   no surface wears the chunky OS default. */
.app-shell ::-webkit-scrollbar{width:10px;height:10px}
.app-shell ::-webkit-scrollbar-track{background:transparent}
.app-shell ::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--tb-brand) 30%,var(--tb-line));border-radius:8px;border:2px solid transparent;background-clip:content-box}
.app-shell ::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--tb-brand) 50%,var(--tb-line));background-clip:content-box}
.app-shell *{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--tb-brand) 30%,var(--tb-line)) transparent}
.app-shell .tb-sheetbtn{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 6px;background:none;border:0;border-radius:8px;color:var(--tb-text);cursor:pointer;flex:0 0 auto;font:inherit;}
.app-shell .tb-sheetbtn svg{width:21px;height:21px;}
.app-shell .tb-sheetbody{overflow-y:auto;flex:1;padding:18px 16px 30px;}
.app-shell .tb-sheetbody .tb-tabs{position:sticky;top:-18px;background:var(--tb-panel);z-index:6;padding-top:6px;}
.app-shell .tb-sheetpage[hidden]{display:none;}

/* ---- Settings index rows + switch card + setup rows -- */
.app-shell .tb-setgroup{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--tb-muted);margin:20px 2px 8px;}
.app-shell .tb-setgroup:first-child{margin-top:2px;}
.app-shell .tb-setcard{background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;overflow:hidden;}
.app-shell .tb-setrow{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;background:none;border:0;border-bottom:1px solid var(--tb-line);font:inherit;color:var(--tb-text);text-align:left;cursor:pointer;box-sizing:border-box;text-decoration:none;}
.app-shell .tb-setcard .tb-setrow:last-child{border-bottom:0;}
.app-shell .tb-setrow-main{flex:1;min-width:0;}
.app-shell .tb-setrow-title{display:block;font-size:16px;}
.app-shell .tb-setrow-state{display:block;color:var(--tb-muted);font-size:13.5px;margin-top:1px;}
.app-shell .tb-setrow-chev{color:var(--tb-muted);display:flex;flex:0 0 auto;}
.app-shell .tb-setrow-chev svg{width:19px;height:19px;}
.app-shell .tb-setrow.tb-setrow-off .tb-setrow-title{color:var(--tb-muted);}
.app-shell .tb-switchcard{display:flex;align-items:center;gap:14px;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;padding:16px;}
.app-shell .tb-switchcard-main{flex:1;min-width:0;}
.app-shell .tb-switchcard-title{display:block;font-size:16.5px;font-weight:600;}
.app-shell .tb-switchcard-state{display:block;color:var(--tb-muted);font-size:13.5px;margin-top:2px;}
.app-shell .tb-setfoot{color:var(--tb-muted);font-size:13.5px;margin:12px 2px 0;}
.app-shell .tb-setuplabel{font-size:15px;font-weight:600;margin:22px 2px 8px;}

/* ---- per-mailbox view ---- */
.app-shell .tb-mbview-facts{margin-bottom:6px;}
.app-shell .tb-radiorow{display:flex;align-items:flex-start;gap:10px;padding:9px 0;cursor:pointer;}
.app-shell .tb-radiorow input{margin-top:3px;accent-color:var(--tb-green);width:17px;height:17px;flex:0 0 auto;}
.app-shell .tb-radiorow .tb-radiorow-note{display:block;color:var(--tb-muted);font-size:13px;}
.app-shell .tb-locknote{display:inline-flex;align-items:center;gap:6px;color:var(--tb-muted);font-size:13.5px;}
.app-shell .tb-locknote svg{width:15px;height:15px;flex:0 0 auto;}
.app-shell button.tb-mbrowbtn{display:flex;width:100%;align-items:center;gap:10px;background:none;border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;padding:0;}
.app-shell .tb-mbrow-chev{margin-left:auto;color:var(--tb-muted);display:flex;flex:0 0 auto;}
.app-shell .tb-mbrow-chev svg{width:18px;height:18px;}

/* Users list at phone widths: the table becomes stacked
   disc rows (the comp 01 treatment), the same card
   transformation the Removed and Invitations tables
   already use - one pattern for every list. */
@media (max-width:750px){
  .app-shell #ad-tablearea .tb-table{min-width:0;}
  .app-shell #ad-tablearea .tb-table thead{display:none;}
  .app-shell #ad-tablearea .tb-table,
  .app-shell #ad-tablearea .tb-table tbody,
  .app-shell #ad-tablearea .tb-table tr,
  .app-shell #ad-tablearea .tb-table td{display:block;}
  .app-shell #ad-tablearea .tb-table{border:0;background:transparent;overflow:visible;}
  .app-shell #ad-tablearea .tb-table tbody tr{background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:var(--tb-radius);padding:8px 14px;margin-bottom:10px;}
  .app-shell #ad-tablearea .tb-table td{border-bottom:0;padding:5px 0;}
  .app-shell #ad-tablearea .tb-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--tb-muted);margin-bottom:2px;}
  .app-shell #ad-tablearea .tb-table td.tb-chevcell{display:none;}
}
.app-shell .tb-trialline{display:block;font-size:12.5px;color:var(--tb-muted);margin-top:2px;}

/* Category rows: a switched-off category reads as hidden
   (comp 11) - dimmed label and a quiet chip. */
.app-shell .tb-lists-row.tb-lists-off .tb-lists-label{color:var(--tb-muted);}
.app-shell .tb-lists-offchip{font-size:12px;color:var(--tb-muted);border:1px solid var(--tb-line);border-radius:999px;padding:2px 9px;white-space:nowrap;}

/* Visitor-screen preview (Maintenance): the public
   pages' own furniture - logo, the saved message, and
   the level's sign-in line - in a quiet card. */
.app-shell .tb-visitorprev{text-align:center;padding:10px 4px 4px;}
.app-shell .tb-visitorprev img{max-height:44px;}
.app-shell .tb-visitorprev-msg{font-size:16.5px;line-height:1.55;margin:16px 0 6px;color:var(--tb-text);}
.app-shell .tb-visitorprev-sub{color:var(--tb-muted);font-size:13.5px;margin:0;}

/* ==========================================================================
   v2.49 (Oct 17, 2026): the confirmation banner's
   second line and dismiss control, the record's
   two-tier tab strip, and the phone fixes (attention
   prose, funnel alignment, the compact Users card,
   the standalone Mailboxes tab, tap targets).
   ========================================================================== */

/* The banner's detail line rides under its headline;
   the dismiss X shows only on the error variant,
   which takes pointer events so the X can be tapped
   (success banners stay pass-through, as always). */
.tb-saved-banner .tb-saved-banner-texts{display:flex;flex-direction:column;align-items:center;gap:1px;}
.tb-saved-banner .tb-saved-banner-detail{font-weight:normal;font-size:13px;}
.tb-saved-banner.tb-saved-banner-err{pointer-events:auto;}
.tb-saved-banner-x{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:2px;padding:0;background:none;border:0;border-radius:6px;color:inherit;font:inherit;font-size:19px;line-height:1;cursor:pointer;flex:0 0 auto;}
.tb-saved-banner-x[hidden]{display:none;}
/* (v2.65, item 28) The banner's optional action button
   (the version watch's Reload). */
.tb-saved-banner-action{margin-left:8px;padding:7px 12px;background:#FFFFFF;border:1px solid var(--tb-line);border-radius:8px;color:var(--tb-green);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;flex:0 0 auto;}
.tb-saved-banner-action[hidden]{display:none;}

/* B3: a home attention row is a sentence, not a person
   row: the link is one block of flowing prose and the
   whole sentence is the tap target. The Users list's
   person rows keep the flex treatment. */
.app-shell .tb-userlink.tb-attnlink{display:block;width:100%;min-height:44px;padding:10px 2px;text-align:left;box-sizing:border-box;}
.app-shell .tb-attnlink .tb-custavatar{vertical-align:-11px;margin-right:9px;}

/* B4: a funnel row's count aligns to its label line,
   not to the middle of the label-plus-caption block. */
.app-shell #ad-ana-funnel>li{align-items:flex-start;}
.app-shell #ad-ana-funnel>li>strong{line-height:1.45;}

/* B6: the mailbox component's heading carries the
   separator its mid-page Overview position needs; as
   a standalone tab's first element the separator and
   its gap are removed by the mount's modifier class.
   The Overview's embedded use keeps them. */
.app-shell .tb-mailboxes-standalone .tb-ovsubhead:first-child{border-top:0;margin-top:0;padding-top:0;}

/* Part A: the record's tab strip never scrolls - the
   four primary tabs ride the strip and the rest live
   in the More menu, the standard white pop-up in tab
   dress. When an overflow tab is active the More
   button carries its name and the active underline. */
.app-shell #ad-detail-tabsbar .tb-tabs{overflow:visible;flex-wrap:nowrap;gap:10px;}
.app-shell #ad-detail-tabsbar .tb-tab{height:44px;display:inline-flex;align-items:center;white-space:nowrap;}
.app-shell .tb-tabmore-wrap{position:relative;margin-left:auto;flex:0 0 auto;}
.app-shell .tb-tabmore .tb-tabchev{display:inline-flex;margin-left:5px;}
.app-shell .tb-tabmore .tb-tabchev svg{width:15px;height:15px;}
.app-shell .tb-tabmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:216px;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;box-shadow:0 14px 24px rgba(20,33,61,.14);padding:6px;text-align:left;}
.app-shell .tb-tabmenu[hidden]{display:none;}
.app-shell .tb-tabmenu .tb-tab{display:flex;width:100%;height:auto;min-height:44px;align-items:center;padding:10px 12px;border:0;border-radius:8px;box-sizing:border-box;background:none;margin:0;box-shadow:none;}
.app-shell .tb-tabmenu .tb-tab.selected{background:var(--tb-soft);font-weight:600;box-shadow:none;}

/* B5: the Users phone card in two lines - the person
   line, then one meta line: the access chip, the
   plan, and at most one signal (the trial or paused
   line rides inside the plan cell, inline). Role
   leaves the card. The desktop table and the Removed
   users cards are untouched. */
@media (max-width:750px){
  .app-shell #ad-tablearea .tb-table#ad-users-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"user user" "access plan";row-gap:3px;padding:10px 14px;align-items:center;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td{padding:0;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td[data-label]::before{display:none;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td:nth-child(1){grid-area:user;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td:nth-child(2){display:none;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td:nth-child(3){grid-area:access;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td:nth-child(4){grid-area:plan;justify-self:end;color:var(--tb-muted);font-size:13.5px;}
  .app-shell #ad-tablearea .tb-table#ad-users-table td:nth-child(4) .tb-trialline{display:inline;margin:0 0 0 6px;}
}

/* B8: the remaining small tap targets grow to the
   house sizes - 40px, and 44 under a coarse
   pointer. */
.app-shell .tb-drawerclose{width:40px;height:40px;}
.app-shell .tb-sheetbtn{min-width:40px;height:40px;}
@media (pointer:coarse){
  .app-shell .tb-drawerclose{width:44px;height:44px;}
  .app-shell .tb-sheetbtn{min-width:44px;height:44px;}
  .app-shell button.tb-userlink{min-height:44px;}
}

/* Part A at phone widths: the four primary labels plus
   More are wide prose, so the strip tightens its gaps
   and type a step and bleeds 8px into the sheet's side
   padding - measured to fit a 360px sheet with the
   strip's scroll width equal to its client width. */
@media (max-width:750px){
  .app-shell #ad-detail-tabsbar{margin-left:-8px;margin-right:-8px;}
  .app-shell #ad-detail-tabsbar .tb-tabs{gap:6px;padding-left:8px;padding-right:8px;}
  .app-shell #ad-detail-tabsbar .tb-tab{font-size:13.5px;}
}

/* (v2.53) The universal feedback button and pop-up: the
   button sits inside .tb-profile beside the avatar (so
   the topbar placement logic carries it at every width),
   and the pop-up rides the shared tb-sheet card above.
   Only its own pieces are styled here: the doors, the
   report form, the guidance steps, and the chat column
   (whose messages reuse the Support view's .sup-msg
   styles, one component on both surfaces). */
.app-shell .tb-feedback-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;background:none;border:0;border-radius:50%;color:var(--tb-text);cursor:pointer;flex:0 0 auto;}
.app-shell .tb-feedback-btn:hover{background:var(--tb-soft);}
.app-shell .tb-feedback-btn svg{width:22px;height:22px;}
.app-shell .tb-feedback-doors{display:flex;flex-direction:column;gap:12px;}
.app-shell .tb-feedback-door{display:block;width:100%;text-align:left;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;padding:16px;cursor:pointer;font:inherit;}
.app-shell .tb-feedback-door:hover{border-color:var(--tb-green);}
.app-shell .tb-feedback-door-title{display:block;font-size:16px;font-weight:700;color:var(--tb-green);margin-bottom:4px;}
.app-shell .tb-feedback-door-sub{display:block;font-size:14px;line-height:1.5;color:var(--tb-muted);}
/* (v2.96) The floating chat button's controls on the
   doors view: the switch (the guide menu item's face:
   label left, state word right) with the Open Chat
   entry beside it, over a plain note. */
.app-shell .tb-fbset{margin-top:12px;border:1px solid var(--tb-line);border-radius:12px;padding:10px 12px 12px;background:var(--tb-panel);}
.app-shell .tb-fbset-row{display:flex;align-items:center;gap:8px;}
.app-shell .tb-fbset-toggle{display:flex;flex:1 1 auto;min-width:0;align-items:center;justify-content:space-between;gap:10px;background:none;border:0;border-radius:8px;padding:9px 10px;font:inherit;font-size:14.5px;font-weight:600;color:var(--tb-text);cursor:pointer;text-align:left;box-sizing:border-box;}
.app-shell .tb-fbset-toggle:hover{background:var(--tb-soft);}
.app-shell .tb-fbset-toggle:focus-visible{outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-fbset-toggle:active{background:var(--tb-soft);}
.app-shell .tb-fbset-state{font-weight:700;color:var(--tb-green);}
.app-shell .tb-fbset-open{flex:0 0 auto;font:inherit;font-size:14.5px;font-weight:700;color:#FFFFFF;background:var(--tb-green);border:0;border-radius:10px;padding:10px 14px;cursor:pointer;}
.app-shell .tb-fbset-open:hover{background: var(--tb-green-dark);}
.app-shell .tb-fbset-open:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .tb-fbset-open:active{background: var(--tb-green-dark);}
.app-shell .tb-fbset-note{margin:8px 2px 0;font-size:13px;line-height:1.5;color:var(--tb-muted);}
.app-shell .tb-feedback-field{margin-bottom:16px;}
.app-shell .tb-feedback-field label{display:block;font-weight:600;margin-bottom:6px;color:var(--tb-text);}
.app-shell .tb-feedback-input{width:100%;box-sizing:border-box;background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:8px;padding:10px 12px;font:inherit;color:var(--tb-text);}
.app-shell .tb-feedback-hint{font-size:13px;color:var(--tb-muted);margin:6px 0 0;}
.app-shell .tb-feedback-note{background:var(--tb-soft);border-radius:10px;padding:12px 14px;line-height:1.55;margin:0 0 16px;}
.app-shell .tb-feedback-steps{white-space:pre-line;line-height:1.65;margin:0 0 18px;}
.app-shell .tb-feedback-error{color: var(--tb-danger-text);line-height:1.5;margin:0 0 12px;}
.app-shell .tb-feedback-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px;}
/* (v2.54) The pop-up's action rows carry their own
   button sizing: the public .btn is a marketing-sized
   block and .btn-quiet has no in-app padding of its
   own, which left Back a cramped sliver beside an
   oversized primary. In the sheet both tiers share one
   height and comfortable padding, primary last. */
.app-shell .tb-feedback-actions .btn,.app-shell .tb-feedback-actions .btn-quiet{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 18px;border-radius:9px;font-size:15px;font-weight:600;line-height:1;}
.app-shell .tb-feedback-actions .btn{background:var(--tb-green);border:1px solid var(--tb-green);color:#fff;}
.app-shell .tb-feedback-actions .btn-quiet{background:#fff;border:1px solid var(--tb-line);color:#14213D;}
.app-shell .tb-feedback-msgs{max-height:46vh;overflow-y:auto;padding-right:2px;}
/* (v2.54) Real-chat presentation: the shared bubble
   renderer (tb-chat-*) used by the pop-up's chat door and
   the Support thread view, the docked composer, the
   typing dots, and the persistent chat bubble with its
   unread counter. The pop-up in chat mode becomes a
   column: the bubble list scrolls, the composer docks. */
.app-shell .tb-feedback-back{margin-right:2px;flex:0 0 auto;}
.app-shell .tb-feedbackwrap.tb-chatmode .tb-sheetbody{display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px;min-height:0;}
/* (v2.66, Lane B2, item 1) The chat list may shrink all
   the way: the old 120px floor, stacked on the presence
   header, the review bar and the quote chip, is what
   pushed the composer past the sheet's bottom edge
   when the keyboard shrank the sheet (measured on the
   scratch harness: composer bottom 506.6 against a
   sheet bottom of 488 at 390x500 with a quote set).
   Top padding plus scroll-padding give the first
   message clear air below the sheet head (and below
   the review bar when it rides above the list). */
.app-shell .tb-chat-list{flex:1;overflow-y:auto;max-height:none;padding:12px 2px 8px;min-height:0;scroll-padding-top:12px;overscroll-behavior:contain;}
.app-shell .tb-chat-composer{display:flex;align-items:flex-end;gap:10px;padding-top:12px;margin-top:0;flex:0 0 auto;position:relative;width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
/* (v2.66, Lane B2, item 1b) The composer card: ONE
   contained card holding the pending-quote strip and
   the typing row beneath it, in the sheet and in the
   back-office chat pane alike. The card is a flex
   column that can never be wider than its host, so
   the plus button, the input and the send button stay
   inside the sheet at every width and keyboard state. */
.app-shell .tb-chat-composercard{flex:0 0 auto;width:100%;max-width:100%;min-width:0;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--tb-line);border-radius:16px;padding:8px 10px 10px;margin-top:8px;}
.app-shell .tb-chat-composercard .tb-chat-composer{border-top:0;margin-top:0;padding-top:2px;}
.app-shell .tb-chat-composercard .tb-chat-tray{padding-top:2px;padding-bottom:6px;}
.app-shell .tb-chat-composercard .tb-chat-quotechip{margin:0 0 6px;}
/* (v2.56, item 10) The chat composer input is a white
   rounded box (Trevor's reference composer), scoped to
   the chat input only; form fields elsewhere keep the
   shared light-sage editable treatment. */
.app-shell .tb-chat-input{flex:1;box-sizing:border-box;background:#FFFFFF;border:1px solid var(--tb-line);border-radius:20px;padding:10px 14px;font:inherit;color:var(--tb-text);resize:none;max-height:120px;line-height:1.45;min-width:0;}
/* (Oct 27, 2026) The send button matches the
   composer's microphone button exactly (40px,
   20px icon): a same-day 35% shrink was reversed
   by Trevor, it looked wrong beside the mic. */
.app-shell .tb-chat-send{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:0;background:var(--tb-green);color:#FFFFFF;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.app-shell .tb-chat-send:hover{background: var(--tb-green-dark);}
.app-shell .tb-chat-send svg{width:20px;height:20px;}
/* (v2.56, item 5) The composer lock while a send is in
   flight reads as plainly off, the product's disabled
   treatment. */
.app-shell .tb-chat-send:disabled{opacity:.55;cursor:default;}
.app-shell .tb-chat-send:disabled:hover{background:var(--tb-green);}
/* (v2.56, item 9) The plus button at the composer's
   left, its attach menu, and the staged-attachment
   tray above the composer, shared by the pop-up chat
   and the Support page composers (tb-chat-* / the
   Support-page host). */
.app-shell .tb-chat-plus{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--tb-line);background:#FFFFFF;color:var(--tb-text);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.app-shell .tb-chat-plus:hover{border-color:var(--tb-green);color:var(--tb-green);}
.app-shell .tb-chat-plus svg{width:20px;height:20px;}
.app-shell .tb-chat-plus:disabled{opacity:.55;cursor:default;}
.app-shell .tb-chat-mic{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--tb-line);background:#FFFFFF;color:var(--tb-text);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.app-shell .tb-chat-mic:hover{border-color:var(--tb-green);color:var(--tb-green);}
.app-shell .tb-chat-mic svg{width:20px;height:20px;}
.app-shell .tb-chat-mic:disabled{opacity:.55;cursor:default;}
/* (Oct 29, 2026) Recording state, settled mic standard:
   while dictation is live the staff mic is red and
   pulsates (same red and 1.6s ring as the note
   composer's .tbnc-mic.live and the chat component's
   recording pulse); the button shows the stop glyph. */
.app-shell .tb-chat-mic.tb-mic-live{background:#B3402E;border-color:#B3402E;color:#FFFFFF;animation:tbMicPulse 1.6s ease-in-out infinite;}
@keyframes tbMicPulse{0%,100%{box-shadow:0 0 0 0 rgba(179,64,46,.45);}50%{box-shadow:0 0 0 7px rgba(179,64,46,0);}}
@media (prefers-reduced-motion: reduce){.app-shell .tb-chat-mic.tb-mic-live{animation:none;}}
.app-shell .tb-chat-menu{position:absolute;left:0;bottom:calc(100% + 6px);background:#FFFFFF;border:1px solid var(--tb-line);border-radius:12px;box-shadow:0 12px 30px rgba(20,33,61,.18);padding:8px;z-index:6;min-width:230px;}
.app-shell .tb-chat-menu[hidden]{display:none;}
.app-shell .tb-chat-menu>button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:9px 10px;font:inherit;font-size:14.5px;font-weight:600;color:var(--tb-text);cursor:pointer;}
.app-shell .tb-chat-menu>button:hover{background:var(--tb-soft);}
.app-shell .tb-chat-menu .tb-feedback-hint{margin:2px 10px 6px;}
.app-shell .tb-chat-tray{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px;flex:0 0 auto;}
.app-shell .tb-chat-tray[hidden]{display:none;}
.app-shell .tb-chat-chip{display:inline-flex;align-items:center;gap:7px;background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:999px;padding:4px 6px 4px 4px;max-width:100%;}
.app-shell .tb-chat-chip-img{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:0 0 auto;display:block;}
.app-shell .tb-chat-chip-name{font-size:13px;color:var(--tb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;}
.app-shell .tb-chat-chip-x{flex:0 0 auto;width:22px;height:22px;border-radius:50%;border:0;background:none;color:var(--tb-muted);font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.app-shell .tb-chat-chip-x:hover{color:var(--tb-text);background:#FFFFFF;}
.app-shell .tb-chat-fileinput{display:none;}
.app-shell .tb-chat-group{margin:10px 0 2px;display:flex;flex-direction:column;min-width:0;}
.app-shell .tb-chat-group.tb-chat-you{align-items:flex-end;}
.app-shell .tb-chat-group.tb-chat-team{align-items:flex-start;}
.app-shell .tb-chat-ghead{display:flex;align-items:center;gap:7px;margin:0 0 5px 2px;}
.app-shell .tb-chat-avatar{width:24px;height:24px;font-size:10px;flex:0 0 auto;}
/* (v2.83, direction 8) The small avatar belongs to
   its bubble: the team group's head hangs down so
   the avatar's lower half overlaps the first
   bubble's top-left corner, and the bubble shifts
   right so the avatar sits on the corner, never on
   text. The typing group wears the same head, so
   the typing avatar overlaps identically. */
.app-shell .tb-chat-group.tb-chat-team .tb-chat-ghead{
  margin-bottom:-13px;position:relative;z-index:2;}
.app-shell .tb-chat-group.tb-chat-team .tb-chat-ghead
  .tb-chat-avatar{width:30px;height:30px;font-size:11px;}
.app-shell .tb-chat-group.tb-chat-team
  .tb-chat-ghead + .tb-chat-row .tb-chat-bubble{
  margin-left:16px;}
.app-shell .tb-chat-caption{font-size:12.5px;font-weight:600;color:var(--tb-muted);}
/* (v2.62, TB-1034 as amended) The row is a column:
   the bubble is its only wide child and takes the
   row's full width (up to the max-width cap the row
   keeps), and the meta line rides under it. The
   group's side class aligns the column's children
   to the bubble's own side. */
.app-shell .tb-chat-row{display:flex;flex-direction:column;margin:2px 0;max-width:82%;}
.app-shell .tb-chat-group.tb-chat-team .tb-chat-row{align-items:flex-start;}
.app-shell .tb-chat-group.tb-chat-you .tb-chat-row{align-items:flex-end;}
/* The meta line: the group's time and the message's
   action buttons on one slim line under the bubble. */
.app-shell .tb-chat-meta{display:flex;align-items:center;gap:8px;margin-top:3px;max-width:100%;}
.app-shell .tb-chat-meta .tb-chat-time{margin:0;}
.app-shell .tb-chat-bubble{border-radius:16px;padding:9px 13px;line-height:1.5;overflow-wrap:anywhere;min-width:0;}
/* (v2.56, item 10) TRIAL, Trevor's call: the customer's
   own chat bubbles wear Apple Messages blue (#0A84FF)
   with white text instead of the light sage, so he can
   live with the look for a while. This ONE rule is the
   whole trial. To end it, restore this rule to
   background:var(--light-sage) and color:var(--tb-text), and
   delete this comment. Team bubbles stay white. */
.app-shell .tb-chat-you .tb-chat-bubble{background: var(--tb-green);color:#FFFFFF;}
.app-shell .tb-chat-you .tb-chat-bubble.tb-chat-tail{border-bottom-right-radius:6px;}
/* (v2.83, direction 9) Team bubbles - the assistant's
   and a person's alike - wear the light sage green of
   the Muse conversation-summary bubble Trevor pointed
   at: the palette's own --light-sage with a soft sage
   edge. (The v2.56 note above said "Team bubbles stay
   white"; this direction supersedes it.) */
.app-shell .tb-chat-team .tb-chat-bubble{background:var(--light-sage);border:1px solid var(--tb-line);color:var(--tb-text);}
.app-shell .tb-chat-team .tb-chat-bubble.tb-chat-tail{border-bottom-left-radius:6px;}
.app-shell .tb-chat-body{margin:0;white-space:pre-wrap;}
/* (v2.60, point 13) The New divider: a hairline with
   the word New, marking where the unread messages
   begin; chat opens scrolled to it. */
.app-shell .tb-chat-newdiv{
  display:flex;align-items:center;gap:10px;
  margin:12px 2px 4px;color:var(--tb-green-dark);
  font-size:12px;font-weight:700;letter-spacing:.4px;
  text-transform:uppercase;}
.app-shell .tb-chat-newdiv::before,
.app-shell .tb-chat-newdiv::after{
  content:"";flex:1;border-top:1px solid var(--tb-line);}
/* (v2.56, item 3) Group timestamps and the Read line
   wrap inside the sheet's width; they never run off
   the right edge at phone widths. */
.app-shell .tb-chat-time{font-size:11.5px;color:var(--tb-muted);margin:3px 4px 0;max-width:100%;overflow-wrap:anywhere;}
.app-shell .tb-chat-read{font-size:11.5px;color:var(--tb-muted);margin:2px 4px 0;max-width:100%;overflow-wrap:anywhere;}
.app-shell .tb-chat-status{text-align:center;font-size:13px;color:var(--tb-muted);margin:12px 0 4px;}
.app-shell .tb-chat-hint{font-size:13px;color:var(--tb-muted);margin:6px 0 0;}
.app-shell .tb-chat-action{display:inline-block;margin-top:9px;background:var(--tb-green);color:#FFFFFF;border:0;border-radius:999px;padding:7px 14px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;}
.app-shell .tb-chat-action:hover{background: var(--tb-green-dark);}
.tb-chat-attach-img{display:block;max-width:32%;max-height:190px;width:auto;height:auto;border-radius:10px;margin-top:8px;cursor:zoom-in;}
.app-shell .tb-chat-attach-img{display:block;max-width:200px;max-height:240px;width:auto;height:auto;border-radius:10px;margin-top:8px;}
.app-shell .tb-chat-bubble .tb-chat-attach-img:first-child{margin-top:0;}
.app-shell .tb-chat-attach-chip{display:inline-block;margin-top:8px;padding:6px 11px;border:1px solid var(--tb-line);border-radius:999px;font-size:13px;font-weight:600;color:var(--tb-green);text-decoration:none;background:#FFFFFF;}
.app-shell .tb-chat-bubble .tb-chat-attach-chip:first-child{margin-top:0;}
/* (v2.65, addition 10) The working signal: the
   sweeper floats at the top center of the message
   list while the assistant works, with a small
   status pill under him. The wrapper is a
   zero-height sticky rail, so he pins to the top of
   the scrolling list without covering messages or
   the composer, and takes no taps. The three-dot
   typing bubble he replaces is retired with this
   change. When the reply lands he settles: one
   render at resting-header scale, fading out. */
.app-shell .tb-sweep-work-wrap{position:sticky;top:0;height:0;overflow:visible;z-index:6;pointer-events:none;}
.app-shell .tb-sweep-work{display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:8px;transition:transform .6s ease,opacity .6s ease;}
.app-shell .tb-sweep-work-img{width:120px;height:120px;object-fit:contain;display:block;filter:drop-shadow(0 10px 18px rgba(20,33,61,.30));}
.app-shell .tb-sweep-pill{background:#14213D;color:#FFFFFF;font-size:12.5px;font-weight:600;line-height:1;padding:5px 11px;border-radius:999px;box-shadow:0 4px 12px rgba(20,33,61,.25);}
.app-shell .tb-sweep-work.settling{transform:scale(.6);opacity:0;}
/* (v2.65, addition 10) The floating chat button is
   the sweeper himself: the full animated figure at
   88px, floating over the page on a soft shadow.
   The button chrome is transparent; the shadow
   rides the figure, so the green disc and its svg
   sizing are gone. The unread badge keeps its
   corner. */
.app-shell .tb-chat-bubble-btn{position:fixed;right:22px;bottom:max(22px, env(safe-area-inset-bottom));z-index:120;display:flex;align-items:center;gap:11px;background:#FFFFFF;border:1px solid var(--tb-line);border-radius:999px;padding:8px 18px 8px 8px;box-shadow:0 18px 40px rgba(20,33,61,.28);cursor:pointer;font:inherit;color:#14213D;text-align:left;transition:transform .2s ease,box-shadow .2s ease;}
/* (v2.66, TB-1048) The v2.65 .tb-chat-bubble-img rules
   retire with the bare img markup: the figure now
   rides in the shared orb (.tb-orb above), which
   carries the shadow. */
.app-shell .tb-chat-bubble-btn[hidden]{display:none;}
/* (v2.73) The launcher's disc feathers out:
   a white halo that graduates radially to transparent
   just outside the figure, so Sprout floats over the
   content under him instead of sitting on a hard-edged
   pasted circle. Scoped to the floating launcher; the
   medallions on the green bands keep their flat disc.
   (v2.76, Trevor's Oct 20 ruling) THE FEATHER IS
   RETIRED on this mount: the launcher is a solid,
   fully opaque white disc that sits IN FRONT of the
   page's text - a row scrolling under him is covered,
   never visible through him. The figure's art is
   transparent outside the figure itself, so the disc
   ground is the plate the figure stands on; the orb
   clips to the circle again. The band medallions keep
   their own grounds (they sit on the band, not on
   text). */
.app-shell .tb-chat-bubble-btn .tb-orb{
  background:#FFFFFF;
  box-shadow:0 6px 20px rgba(20,33,61,.20);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  overflow:hidden;}
.app-shell .tb-chat-bubble-btn:hover .tb-orb{
  box-shadow:0 6px 20px rgba(20,33,61,.20);}
/* (v2.62, TB-1035) While any sheet is open the
   floating chat button steps aside: site.js keeps
   the tb-sheet-open class on the body in step with
   the sheets. The button's own [hidden] handling
   above is untouched. */
body.tb-sheet-open .tb-chat-bubble-btn{display:none;}
/* (v2.65, item 7) While the Digest Console's review
   panel is open, the floating button steps aside the
   same way, so the console's sticky action bar owns
   its bottom-right corner at phone widths (where
   the 88px figure would otherwise sit on it). The
   two rules compose: a sheet hides the button over
   everything, and the open review hides it over the
   console; everywhere else he floats as usual. */
body.dc-review-open .tb-chat-bubble-btn{display:none;}
.app-shell .tb-chat-badge{position:absolute;top:-4px;right:-4px;min-width:21px;height:21px;border-radius:999px;background:#14213D;color:#FFFFFF;font-size:12px;font-weight:700;line-height:21px;text-align:center;padding:0 5px;box-sizing:border-box;border:2px solid #FFFFFF;}
.app-shell .tb-chat-badge[hidden]{display:none;}
/* (Oct 28, 2026) The Marina pill on this mount, on Trevor's
   ruling that the Dr. Scott demo's closed chat presentation
   is the standard launcher on every site: the button rule
   above carries the pill's placement and ground; these
   rules give it the hover lift, the avatar disc, the
   two-line text block, and the presence dot. The v2.65
   orb rules scoped to this button retire with the orb
   markup (they match nothing now; the header orbs wear
   their own rules). At phone widths the text steps away
   and the pill is the disc plus the dot, the demo's own
   responsive behavior. */
.app-shell .tb-chat-bubble-btn:hover{transform:translateY(-3px);box-shadow:0 24px 48px rgba(20,33,61,.32);}
.app-shell .tb-chat-bubble-face{width:44px;height:44px;border-radius:50%;overflow:hidden;flex:0 0 auto;border: 2px solid var(--tb-green);background:#FFFFFF;display:flex;align-items:center;justify-content:center;}
.app-shell .tb-chat-bubble-face img{width:100%;height:100%;object-fit:cover;display:block;}
.app-shell .tb-chat-bubble-txt{text-align:left;line-height:1.2;}
.app-shell .tb-chat-bubble-name{display:block;font-weight:600;font-size:.92rem;}
.app-shell .tb-chat-bubble-sub{display:block;font-size:.74rem;color:#5A6B5A;}
.app-shell .tb-chat-bubble-dot{width:9px;height:9px;border-radius:50%;background:#3FA45B;flex:0 0 auto;}
@media (max-width:560px){
  .app-shell .tb-chat-bubble-btn{padding:8px;}
  .app-shell .tb-chat-bubble-txt{display:none;}
}
@media (max-width:750px){
  .app-shell .tb-chat-bubble-btn{right:12px;bottom:max(12px, env(safe-area-inset-bottom));}
  .app-shell .tb-chat-row{max-width:88%;}
}
/* (v2.54) The Support thread view's docked composer and
   summary block ride the same chat styles. */
.app-shell .tb-chat-summary-block{background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:10px;padding:12px 14px;margin:0 0 14px;}
.app-shell .tb-chat-summary-block h3{margin:0 0 6px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--tb-green);}
.app-shell .tb-chat-summary-block p{margin:0;line-height:1.6;white-space:pre-wrap;}
/* (v2.56, item 3) Inside the chat list the summary
   block keeps clear air above and below, so its last
   line never slides under the docked composer. */
.app-shell .tb-chat-list .tb-chat-summary-block{margin:10px 0 6px;}
.app-shell .tb-chat-list .tb-chat-summary-block + .tb-chat-time{margin-bottom:10px;}
/* (v2.56, item 11) The chat header presence: the box
   mark in a disc, the assistant's name, and the live
   status line under it. The presence lives in the
   sheet title slot only while it is rendered there;
   its presence left-aligns the title. */
.app-shell .tb-sheettitle:has(.tb-presence){text-align:left;}
.app-shell .tb-presence{display:flex;align-items:center;gap:9px;min-width:0;}
.app-shell .tb-presence-disc{width:34px;height:34px;border-radius:50%;background:var(--tb-soft);border:1px solid var(--tb-line);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;}
.app-shell .tb-presence-disc img{width:21px;height:21px;object-fit:contain;display:block;}
/* (v2.57, item 9) Pip is a full-bleed circular portrait:
   inside the presence disc the image fills the disc
   instead of sitting contained on the soft ground. */
.app-shell .tb-presence-disc img.tb-pip{width:100%;height:100%;object-fit:cover;}
.app-shell .tb-chat-avatar.tb-pip-avatar{border-radius:50%;object-fit:cover;background:none;display:block;}
.app-shell .tb-presence-texts{display:flex;flex-direction:column;line-height:1.25;min-width:0;text-align:left;}
.app-shell .tb-presence-name{font-size:15px;font-weight:600;color:var(--tb-text);white-space:nowrap;}
.app-shell .tb-presence-status{font-size:12px;font-weight:400;color:var(--tb-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .tb-tl-read{font-size:12px;color:var(--tb-muted);margin:6px 0 0;}
@media (max-width:750px){
  .app-shell .tb-feedback-actions{justify-content:flex-start;}
}

/* (v2.57, item 5) The shared back element's sheet-head
   form: the same chevron-plus-label treatment the
   content column carries (.tb-back), sized for a sheet
   head's left slot, in the back office's record and
   Settings sheets and the feedback sheet alike - the
   icon-only chevrons are retired. */
.app-shell .tb-sheetbtn.tb-sheetback{gap:5px;padding:0 10px 0 6px;color:var(--tb-green);font-size:14.5px;font-weight:500;}
.app-shell .tb-sheetbtn.tb-sheetback svg{width:16px;height:16px;}
.app-shell .tb-sheetbtn.tb-sheetback:hover{color:var(--tb-green-dark);}

/* (v2.57, item 3d) The Ready when you are card groups
   each action with its own outcome line, so a result
   sits with its button instead of floating under the
   card; an empty outcome line takes no room. */
.app-shell .tb-actiongroups{display:flex;gap:14px 28px;flex-wrap:wrap;}
.app-shell .tb-actiongroup{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
.app-shell .tb-actiongroup .tb-actstate{flex-basis:auto;min-height:0;margin-top:8px;}
.app-shell .tb-actiongroup .tb-actstate:empty{margin-top:0;}
.app-shell .tb-actiongroup .tb-actwhy{flex-basis:auto;margin-top:4px;}

/* (v2.57, item 5) Inside the Inbox thread's head row the
   shared back element drops its content-column margin. */
.app-shell .tb-thr-head .tb-back{margin:0;}

/* (v2.57, item 9 addendum) The assistant's disc in the
   thread timelines carries Pip, not initials: the image
   fills the disc, the disc itself unchanged. */
.app-shell .tb-tl-disc.tb-tl-disc-pip{padding:0;overflow:hidden;background:#FFFFFF;}
.app-shell .tb-tl-disc img.tb-pip{width:100%;height:100%;object-fit:cover;display:block;}
/* (v2.57, item 9 addendum) Chat and thread body text
   renders in Arial, the standard email template's body
   font - one definition here for the chat sheet, the
   customer Support thread and the back-office Inbox
   thread alike. */
.app-shell .tb-chat-body,.app-shell .tb-tl-body,.app-shell .sup-msg-body{font-family:Arial,Helvetica,sans-serif;}
/* (v2.60, point 15) The font trial: with the trial on
   (the Release switch drives the tb-font-trial class on
   the body), chat and thread text renders in the
   welcome letter's Verdana stack instead; the letter
   faces follow so a conversation reads in one voice.
   Switching it off restores the Arial rule above
   exactly. */
body.tb-font-trial .tb-chat-body,body.tb-font-trial .tb-tl-body,body.tb-font-trial .sup-msg-body,body.tb-font-trial .tb-letter-body,body.tb-font-trial .tb-letter-quoted{font-family:Verdana,Geneva,sans-serif;}
/* (Oct 27, 2026, Trevor live review) Chat message text:
   the homepage designs' own copy face (the Noto Sans
   stack the design pages set on body), a step smaller
   than the page copy size it used to inherit. */
.app-shell .tb-chat-body{font-family:"Noto Sans","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;font-size:11px;}
/* (Oct 27, 2026, Trevor annotations) In the website
   chat panel only: the visitor's own messages carry
   no name row (the "You" label and Visitor chip over
   his blue bubbles are removed). The answering
   side's bubbles stay the original light sage: a
   same-day change to the dark brand green was
   reversed by Trevor (Oct 27, 2026, the light
   green is the settled look). The back office
   thread view keeps its labels and its sage
   bubbles. */
.tb-visitorwrap .tb-chat-ghead-you{display:none;}
.tb-visitorwrap .tb-chat-team .tb-chat-bubble{background:var(--light-sage);border-color:var(--line);color:var(--ink);}

/* ============================================================
   v2.59 - One Inbox, chat actions, review mode, navigation
   ============================================================ */

/* (v2.59, points 26-27) Navigation, both shells: hairline
   dividers between the rows within a group, and section
   titles that read as sections - bold small-caps in navy
   with a hairline above (never above the first) and more
   air above than below. No background band: sage stays
   the editable-field signal. One rule set here; the
   drawer twins ride the same marks through site.js. */
.app-shell aside.tb-side nav .tb-nav + .tb-nav{
  border-top:1px solid var(--tb-line);}
.app-shell aside.tb-side nav .tb-navlabel{
  color:var(--navy);border-top:1px solid var(--tb-line);
  margin-top:12px;padding:13px 12px 5px;}
.app-shell aside.tb-side nav .tb-navlabel:first-child{
  border-top:0;margin-top:0;padding-top:2px;}

.app-shell .tb-drawer .tb-burgeritem + .tb-burgeritem{
  border-top:1px solid var(--tb-line);}
.app-shell .tb-drawer .tb-drawergroup{
  color:var(--navy);font-weight:700;
  border-top:1px solid var(--tb-line);
  margin-top:10px;padding-top:14px;}
.app-shell .tb-drawerhead + .tb-drawergroup{
  border-top:0;margin-top:0;padding-top:6px;}

/* (v2.59, points 28-29) The phone drawer: its rows carry
   the same icons at the same size as the rail, and its
   head carries the logo with the version number under
   it, mirroring the rail. */
.app-shell .tb-drawer .tb-burgeritem svg{
  width:17px;height:17px;flex-shrink:0;margin-right:10px;}
.app-shell .tb-drawerhead .tb-drawerbrand{
  display:flex;flex-direction:column;min-width:0;}
.app-shell .tb-drawerhead .tb-version{
  padding:3px 9px 0;font-size:11.5px;color:var(--tb-muted);}

/* (v2.59, point 24) The chat header: Pip bigger and
   centered, the way the Muse app presents its avatar -
   the disc above the name, the name and its status line
   centered under it. Chat mode only; the sheet head's
   back and close stay at the edges. */
.app-shell .tb-sheettitle:has(.tb-presence){
  text-align:center;flex:1;}
.app-shell .tb-presence{
  flex-direction:column;align-items:center;gap:3px;}
.app-shell .tb-presence-disc{width:72px;height:72px;}
.app-shell .tb-presence-texts{
  align-items:center;text-align:center;}
.app-shell .tb-presence-name{font-size:15.5px;}
.app-shell .tb-presence-status{font-size:12.5px;}

/* (v2.59, points 2-3) The quote as the correspondence
   readings (the letter cards in both shells) carry it:
   a quiet inset block naming who is quoted, capped so
   a long quote can never swallow the reading. The
   CHAT presentation of the same stored quote is
   superseded by TB-1047 immediately below; these base
   rules remain the letters' own, untouched. */
.app-shell .tb-chat-quote{
  border-left:3px solid var(--tb-line);
  background:rgba(24,40,58,.05);border-radius:6px;
  padding:5px 8px;margin:0 0 6px;font-size:13px;
  line-height:1.4;color:var(--tb-muted);
  max-height:64px;overflow:hidden;}
.app-shell .tb-chat-you .tb-chat-quote{
  background:rgba(255,255,255,.18);color:#EAF3FF;
  border-left-color:rgba(255,255,255,.55);}
.app-shell .tb-chat-quote-author{
  display:block;font-weight:600;font-size:12px;
  color:var(--tb-text);margin-bottom:1px;}
.app-shell .tb-chat-you .tb-chat-quote-author{color:#FFFFFF;}

/* (v2.66, TB-1047) Quoted replies in the one CHAT
   renderer, modeled on the Muse app, superseding
   the v2.59 in-bubble quote there: a small
   attribution line above the reply, then the quoted
   words in a muted rounded block attached directly
   above the reply bubble - quote and bubble in one
   unit (the .tb-chat-quoteunit column stretches both
   to one width, no gap between them, joined radii:
   the block's bottom corners and the bubble's top
   corners step down to 5px where they meet). A
   quoted image message shows its thumbnail in the
   block. The cap stays, a step taller for the
   thumbnail, so a long quote can never swallow the
   conversation. These rules are scoped to the unit
   the chat renderer builds; the letters above keep
   the base rules. */
.app-shell .tb-chat-attr{
  font-size:12px;font-weight:500;color:var(--tb-muted);
  margin:0 4px 3px;line-height:1.35;}
.app-shell .tb-chat-quoteunit{
  display:flex;flex-direction:column;align-items:stretch;
  min-width:0;max-width:100%;}
.app-shell .tb-chat-quoteunit .tb-chat-quote{
  display:flex;gap:8px;align-items:center;
  background:rgba(24,40,58,.07);
  border:1px solid rgba(24,40,58,.05);border-left:1px solid rgba(24,40,58,.05);
  border-radius:14px 14px 5px 5px;
  padding:6px 9px;margin:0;font-size:13px;
  line-height:1.4;color:var(--tb-muted);
  max-height:88px;overflow:hidden;}
.app-shell .tb-chat-you .tb-chat-quoteunit .tb-chat-quote{
  background:rgba(10,132,255,.12);color:#33506E;
  border-color:rgba(10,132,255,.08);}
.app-shell .tb-chat-quote-text{
  white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;}
.app-shell .tb-chat-quote-thumb{
  width:44px;height:44px;border-radius:9px;
  object-fit:cover;flex:0 0 auto;display:block;}
.app-shell .tb-chat-bubble-quoted{
  border-top-left-radius:5px;border-top-right-radius:5px;}
.app-shell .tb-chat-row{position:relative;}

/* (v2.66, TB-1048 + its extension) THE ORB: one shared
   circular translucent avatar component - one class
   family (span.tb-orb > img.tb-orb-img) worn by all
   three mounts: the floating chat button, the chat
   sheet header (on .tb-presence-disc) and the
   back-office Chat view header (on .tb-chanpane-av),
   identical in both shells. The circle's ground is
   translucent white over a backdrop blur, so content
   beneath fades softly through; there is NO solid
   plate and no amber/cream ground. The sweeper art
   itself is painted on an opaque cream ground, so
   art mounts carry .tb-orb-art: multiply blending
   makes the near-white ground read as the backdrop
   itself while the figure's lines stay - the cream
   is gone at every backdrop. Real photos (the
   customer's face in the back office) are NOT
   blended; they simply fill the circle. Where
   backdrop-filter is unavailable the ground steps up
   to a plainer translucent white and the circle, the
   art and the tappability are unchanged. */
.app-shell .tb-orb{
  position:relative;display:inline-flex;
  align-items:center;justify-content:center;
  border-radius:50%;overflow:hidden;flex:0 0 auto;
  background:rgba(255,255,255,.34);
  -webkit-backdrop-filter:blur(9px) saturate(1.25);
  backdrop-filter:blur(9px) saturate(1.25);
  box-shadow:0 4px 14px rgba(20,33,61,.16),
    inset 0 0 0 1px rgba(255,255,255,.5);}
.app-shell .tb-orb-img{
  width:100%;height:100%;object-fit:cover;
  display:block;border-radius:50%;}
/* The blend rides the floating BUTTON, not the img
   or the orb: the button (fixed, z-indexed) is the
   isolation root for its subtree, so a blend inside
   it never reaches the page beneath (measured in the
   scratch Chromium both ways - img- and orb-level
   blends rendered the art at full cream strength
   over a saturated test backdrop; the button-level
   blend let the backdrop through, (247,0,217) at the
   orb's top point over magenta). Blending the whole
   button group against the page is what takes the
   cream away: the near-white art ground multiplies
   to the backdrop itself while the figure's lines
   stay. The badge multiplies with the group: its
   navy stays navy over the product's light surfaces
   and its white count takes the backdrop's lightness
   there, so it stays legible (verified in QA over
   the dashboard and the conversation list). The
   header orbs sit on the near-white sheet/pane
   grounds, where the art's cream already reads as
   the ground itself; they keep the translucent
   ground and blur without a blend. */
/* (v2.76) The button-level multiply blend is RETIRED
   (it stood here from v2.66 to v2.75): blending the
   whole button group against the page made the disc's
   light ground take the backdrop's exact color, so
   list text under the launcher printed through the
   disc like a watermark - Trevor, Oct 20: "Sprout is
   behind the text and we need to bring him in front
   of the text." The art no longer needs the blend (the
   figure's file is transparent outside the figure),
   and the launcher's solid white disc (above) carries
   the mount now. The badge is unblended with the
   group: navy as authored, legible everywhere. */
.app-shell .tb-chat-bubble-btn{mix-blend-mode:normal;}
@supports not ((backdrop-filter:blur(1px))
  or (-webkit-backdrop-filter:blur(1px))){
  .app-shell .tb-orb{background:rgba(255,255,255,.78);}
}
/* The floating button's orb fills its hit area.
   (v2.66 rebase) On the v2.65 sweeper form of the
   button the hit area is 88px, so the orb is 88px
   here (the build tree's 56px sized the retired
   pre-v2.65 form). */
.app-shell .tb-orb-btn{width:88px;height:88px;}
.app-shell .tb-chat-bubble-btn:hover .tb-orb{box-shadow:0 6px 18px rgba(20,33,61,.24),inset 0 0 0 1px rgba(255,255,255,.65);}
/* The sheet header's presence disc as an orb: the
   solid soft ground and hairline border retire; the
   56px chat-mode size from the v2.59 rule stands. */
.app-shell .tb-presence-disc.tb-orb{
  background:rgba(255,255,255,.34);border:0;}
@supports not ((backdrop-filter:blur(1px))
  or (-webkit-backdrop-filter:blur(1px))){
  .app-shell .tb-presence-disc.tb-orb{
    background:rgba(255,255,255,.78);}
}
/* The back-office pane header's avatar as an orb: an
   initials fallback inside it loses its own solid
   disc and rides the orb's ground. */
.app-shell .tb-chanpane-av.tb-orb .tb-tl-disc{
  background:transparent;}
/* (v2.62, TB-1034 as amended; first built as v2.60
   point 20) The per-message actions (copy, reply)
   ride the meta line under the bubble now - see
   .tb-chat-meta beside the chat row rules - and the
   beside-the-bubble actions row is gone, markup and
   rules together. On the meta line the buttons
   shrink a step so the line stays slim. */
.app-shell .tb-chat-meta .tb-chat-actbtn{
  width:26px;height:26px;}
.app-shell .tb-chat-meta .tb-chat-actbtn svg{
  width:14px;height:14px;}
.app-shell .tb-chat-actbtn{
  width:30px;height:30px;border-radius:50%;
  border:1px solid var(--tb-line);background:#FFFFFF;
  color:var(--tb-muted);display:inline-flex;
  align-items:center;justify-content:center;
  cursor:pointer;padding:0;}
.app-shell .tb-chat-actbtn svg{width:15px;height:15px;}
.app-shell .tb-chat-actbtn:hover{
  color:var(--tb-green-dark);border-color:var(--tb-green);}
/* The composer's pending-quote strip: what will be
   quoted rides at the top of the composer card until
   it is sent or cleared. (v2.66, Lane B2, item 1b:
   rebuilt on the Muse-app pattern - a small
   "Replying to <author>" label line with the dismiss
   X, then the quoted words FULLY readable below it.
   The old chip capped its text at 58px with overflow
   hidden, which sliced a third line mid-text
   (measured: 58px shown of 109px). No cap, no clamp,
   no fixed height anywhere in this strip now.) */
.app-shell .tb-chat-quotechip{
  display:flex;flex-direction:column;gap:2px;
  border:1px solid var(--tb-line);border-left:3px solid
  var(--tb-green);border-radius:8px;padding:7px 9px;
  margin:0 0 8px;background:var(--tb-soft);font-size:13px;
  line-height:1.45;color:var(--tb-muted);}
.app-shell .tb-chat-quotechip-head{
  display:flex;align-items:center;gap:8px;}
.app-shell .tb-chat-quotechip-label{
  flex:1;min-width:0;font-size:12.5px;font-weight:700;
  color:var(--tb-green-dark);}
.app-shell .tb-chat-quotechip-text{
  flex:none;width:100%;min-width:0;white-space:pre-wrap;
  overflow-wrap:anywhere;color:var(--tb-text);}
.app-shell .tb-chat-quotechip-x{
  flex:none;width:36px;height:36px;margin:-6px -4px -6px 0;
  border:0;background:none;color:var(--tb-muted);
  font-size:18px;line-height:1;cursor:pointer;padding:2px 4px;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;}
.app-shell .tb-chat-quotechip-x:hover{color:var(--tb-text);}

/* (v2.66, Lane B2, item 2) The per-message menu: ONE
   shared popover opened by a bubble's long-press, its
   More button, or a right-click, offering Reply /
   Copy / Select / Share / Speak. Bubble text stays
   selectable so Select can hand the reader the native
   selection handles; the iOS long-press callout is
   held off so the menu, not the callout, answers a
   hold. While a message is being read aloud its
   bubble wears a green outline. */
.app-shell .tb-chat-bubble{
  -webkit-user-select:text;user-select:text;
  -webkit-touch-callout:none;}
.app-shell .tb-chat-bubble.tb-chat-speaking{
  outline:2px solid var(--tb-green);outline-offset:1px;}
.app-shell .tb-chat-msgmenu{
  position:fixed;z-index:200;min-width:190px;
  background:#FFFFFF;border:1px solid var(--tb-line);
  border-radius:12px;box-shadow:0 14px 34px rgba(20,33,61,.22);
  padding:6px;}
.app-shell .tb-chat-msgmenu[hidden]{display:none;}
.app-shell .tb-chat-msgmenu>button{
  display:flex;align-items:center;width:100%;min-height:44px;
  text-align:left;background:none;border:0;border-radius:8px;
  padding:10px 12px;font:inherit;font-size:15px;font-weight:600;
  color:var(--tb-text);cursor:pointer;}
.app-shell .tb-chat-msgmenu>button:hover{background:var(--tb-soft);}
.app-shell .tb-chat-msgmenu>button.tb-chat-msgmenu-stop{
  color: var(--tb-danger-text);}

/* (v2.66, Lane B2, item 1a, short-height fallback)
   On a short visible area (a small phone with its
   keyboard up can leave ~380px), the presence head,
   the review bar and an unclamped quote strip cannot
   all fit above the composer: rather than the column
   spilling past the sheet, the sheet body scrolls
   internally, the presence disc steps down a size,
   and the quote strip scrolls within itself. Normal
   heights are untouched - the strip is unclamped and
   the body locked exactly as designed there. */
@media (max-height:480px){
  .app-shell .tb-feedbackwrap.tb-chatmode .tb-sheetbody{
    overflow-y:auto;}
  .app-shell .tb-feedbackwrap .tb-presence-disc{
    width:40px;height:40px;}
  .app-shell .tb-feedbackwrap .tb-chat-quotechip-text{
    max-height:76px;overflow-y:auto;}
}

/* (v2.66, Lane B2, item 3) The jump-to-bottom button:
   the renderer wraps every chat list in this relative
   wrapper (the list keeps its own flex/scroll role
   inside it), and the button floats at the list's
   bottom right, above the composer by construction -
   it lives inside the list area, never over it. It
   shows only while the reader is scrolled away from
   the newest message; the dot marks a message that
   arrived while they were up there. */
.app-shell .tb-chat-listwrap{
  position:relative;display:flex;flex-direction:column;
  flex:1;min-height:0;min-width:0;}
.app-shell .tb-chat-listwrap>.tb-chat-list{
  flex:1;min-height:0;}
/* (v2.83, direction 5) The floating scroll-down
   chevron (.tb-chat-jump) is REMOVED - Trevor asked
   what it did, and a control that needs explaining
   over the messages fails the customer lens. The
   list's own rules carry the behavior: a reader at
   the bottom follows new messages; a reader scrolled
   up is never moved (the scroll-preservation rule). */

/* (v2.59, point 1) Review mode: the numbered bucket
   list inside the chat sheet. The panel sits above the
   messages; a bucket opens its points in place, with
   its verdict buttons and its Go there navigation. */
.app-shell .tb-review-bar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  flex:none;
  border:1px solid var(--tb-line);border-radius:10px;
  padding:8px 10px;margin:0 0 10px;background:#FFFFFF;}
.app-shell .tb-review-bar-title{
  font-size:13.5px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-review-panel{
  flex:none;min-height:160px;
  border:1px solid var(--tb-line);border-radius:10px;
  padding:10px 12px;margin:0 0 10px;background:#FFFFFF;
  max-height:46vh;overflow-y:auto;}
.app-shell .tb-review-bucket{
  display:flex;gap:9px;align-items:baseline;width:100%;
  text-align:left;background:none;border:0;border-bottom:
  1px solid var(--tb-line);font:inherit;padding:9px 2px;
  cursor:pointer;color:var(--tb-text);}
.app-shell .tb-review-bucket:last-child{border-bottom:0;}
.app-shell .tb-review-n{
  flex:none;width:22px;height:22px;border-radius:50%;
  background:var(--tb-soft);color:var(--tb-green-dark);
  font-size:12.5px;font-weight:700;display:inline-flex;
  align-items:center;justify-content:center;}
.app-shell .tb-review-bucket-title{font-size:14.5px;font-weight:500;}
.app-shell .tb-review-points{
  margin:8px 0 8px 31px;padding-left:18px;
  font-size:14px;line-height:1.55;color:var(--tb-text);}
.app-shell .tb-review-points li{margin:3px 0;}
.app-shell .tb-review-verdicts{
  display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px 31px;}
.app-shell .tb-review-toggle,
.app-shell .tb-review-verdict{
  background:#FFFFFF;border:1px solid var(--tb-line);
  color:var(--tb-green-dark);font:inherit;font-size:13px;
  font-weight:500;border-radius:8px;padding:6px 12px;
  cursor:pointer;}
.app-shell .tb-review-toggle:hover,
.app-shell .tb-review-verdict:hover{
  border-color:var(--tb-green);}

/* (v2.66) Bar v2 additions: the thin progress line
   under the reviewing title, on its own row of the
   bar. The v1 rules above keep their meaning. */
.app-shell .tb-review-progress{
  flex:1 1 100%;height:4px;background:var(--tb-soft);
  border-radius:999px;overflow:hidden;}
.app-shell .tb-review-progress-fill{
  display:block;height:100%;background:var(--tb-green);
  border-radius:999px;}

/* (v2.66) The Review Workspace: one page-level
   overlay in the chat sheet's dress (same panel
   surface, border, radius and shadow as .tb-sheet),
   full-screen on the phone and a centered sheet on
   desktop. The verdict bar is the sheet's own bottom
   row in the flex column - never an overlay - and
   the walk body carries bottom padding, so it can
   never cover the timeline or the composer. */
.app-shell .tb-rws-wrap{position:fixed;inset:0;z-index:170;}
.app-shell .tb-rws-wrap[hidden]{display:none;}
.app-shell .tb-rws-scrim{
  position:absolute;inset:0;background:rgba(20,33,61,.34);}
.app-shell .tb-rws-sheet{
  position:absolute;inset:12px;background:var(--tb-panel);
  border:1px solid var(--tb-line);border-radius:16px;
  box-shadow:0 24px 60px rgba(20,33,61,.30);
  overflow:hidden;display:flex;flex-direction:column;
  animation:tb-sheet-in .18s ease-out;}
@media (min-width:751px){
  .app-shell .tb-rws-sheet{
    inset:auto;top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:min(720px,94vw);height:min(780px,90vh);
    animation:none;}
}
.app-shell .tb-rws-head{
  display:flex;align-items:center;gap:8px;
  padding:10px 14px;background:var(--tb-panel);
  border-bottom:1px solid var(--tb-line);flex:0 0 auto;}
.app-shell .tb-rws-title{
  flex:1;text-align:center;font-size:15.5px;
  font-weight:600;color:var(--tb-text);}
.app-shell .tb-rws-x{
  display:flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 6px;background:none;
  border:0;border-radius:8px;color:var(--tb-text);
  cursor:pointer;flex:0 0 auto;}
.app-shell .tb-rws-x svg{width:21px;height:21px;}
.app-shell .tb-rws-body{
  overflow-y:auto;flex:1;padding:18px 16px 34px;}
.app-shell .tb-rws-note{
  font-size:14px;line-height:1.55;color:var(--tb-muted);
  margin:0 0 10px;}
.app-shell .tb-rws-err{
  color:var(--tb-danger-text);font-weight:bold;
  font-size:14px;margin:0 0 12px;}
.app-shell .tb-rws-progress{
  height:6px;background:var(--tb-soft);
  border-radius:999px;overflow:hidden;margin:10px 0 8px;}
.app-shell .tb-rws-progress-fill{
  display:block;height:100%;background:var(--tb-green);}
.app-shell .tb-rws-counts{
  font-size:13.5px;color:var(--tb-muted);margin:0 0 12px;}
/* Queue home */
.app-shell .tb-rws-batchcard{
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);
  padding:16px;margin:0 0 14px;background:var(--tb-panel);}
.app-shell .tb-rws-batchtitle{
  font-size:16px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-rws-declined{margin-top:12px;}
.app-shell .tb-rws-declined summary{
  cursor:pointer;color:var(--tb-danger-text);
  font-size:13.5px;font-weight:600;padding:4px 0;}
.app-shell .tb-rws-declined-row{
  padding:7px 0;border-top:1px solid var(--tb-line);}
.app-shell .tb-rws-declined-title{
  display:block;font-size:14px;color:var(--tb-text);}
.app-shell .tb-rws-declined-note{
  display:block;font-size:13px;color:var(--tb-muted);
  margin-top:2px;line-height:1.5;}
.app-shell .tb-rws-fixstrip{
  border:1px solid var(--tb-line);
  border-left:4px solid var(--tb-green);
  border-radius:var(--tb-radius);padding:14px 16px;
  background:#FFFFFF;}
.app-shell .tb-rws-fixhead{
  font-size:15px;font-weight:700;color:var(--tb-green);
  margin:0 0 6px;}
.app-shell .tb-rws-fixrow{
  padding:8px 0;border-top:1px solid var(--tb-line);}
.app-shell .tb-rws-fixtitle{
  display:block;font-size:14.5px;color:var(--tb-text);}
.app-shell .tb-rws-fixmeta{
  display:block;font-size:12.5px;color:var(--tb-muted);
  margin-top:2px;}
.app-shell .tb-rws-fixnote{
  display:block;font-size:13.5px;color:var(--tb-text);
  margin-top:3px;line-height:1.5;}
/* The walk */
.app-shell .tb-rws-confirm{
  background:var(--tb-soft);color:var(--tb-green-dark);
  border-radius:8px;padding:9px 12px;font-size:13.5px;
  font-weight:600;margin:0 0 12px;}
.app-shell .tb-rws-card{
  border:1px solid var(--tb-line);
  border-left:4px solid var(--tb-green);
  border-radius:var(--tb-radius);padding:16px;background:var(--tb-panel);}
.app-shell .tb-rws-eyebrow{
  font-size:12px;letter-spacing:1px;text-transform:uppercase;
  color:var(--tb-green);font-weight:700;margin:0 0 6px;}
.app-shell .tb-rws-itemtitle{
  font-size:20px;font-weight:700;line-height:1.35;
  color:var(--tb-text);margin:0 0 8px;}
.app-shell .tb-rws-itembody{
  white-space:pre-line;font-size:14.5px;line-height:1.6;
  color:var(--tb-text);margin:0 0 12px;}
.app-shell .tb-rws-meta{
  font-size:13px;color:var(--tb-muted);margin:0;}
.app-shell .tb-rws-card .tb-rws-progress{margin-bottom:0;}
.app-shell .tb-rws-pill{
  display:inline-flex;border-radius:999px;padding:3px 10px;
  font-size:12.5px;font-weight:600;background:var(--tb-soft);
  color:var(--tb-ok-text);}
.app-shell .tb-rws-pill-fix_queued{
  background:#F7ECD2;color:var(--tb-warn-text);}
.app-shell .tb-rws-pill-declined{
  background:#F9E3E1;color:var(--tb-danger-text);}
.app-shell .tb-rws-verdnote{
  font-size:13.5px;color:var(--tb-text);line-height:1.5;}
.app-shell .tb-rws-ticketlink{
  color:var(--tb-green);font-size:13.5px;font-weight:600;}
.app-shell .tb-rws-retest{
  font-size:13px;color:var(--tb-muted);margin:8px 0 0;}
.app-shell .tb-rws-seerow{margin:12px 0 0;}
.app-shell .tb-rws-tlhead{
  font-size:14.5px;font-weight:600;color:var(--tb-text);
  margin:18px 0 4px;}
.app-shell .tb-rws-event{
  border-top:1px solid var(--tb-line);padding:9px 0;}
.app-shell .tb-rws-event-meta{
  font-size:12.5px;color:var(--tb-muted);margin:0 0 2px;}
.app-shell .tb-rws-event-body{
  white-space:pre-line;font-size:14px;line-height:1.5;
  color:var(--tb-text);margin:0;}
.app-shell .tb-rws-textarea{
  width:100%;box-sizing:border-box;margin-top:0;
  font:inherit;resize:vertical;}
/* (v2.67, TB-1059) The item view's fixed header: it
   rides the top of the scrolling body (bled to the
   body's padding edges) while the content scrolls
   under it - back row, title, status cluster. */
.app-shell .tb-rws-itemhead{
  position:sticky;top:0;z-index:4;
  margin:-18px -16px 14px;padding:16px 16px 12px;
  background:var(--tb-panel);
  border-bottom:1px solid var(--tb-line);}
.app-shell .tb-rws-backrow{
  display:flex;align-items:center;gap:12px;
  justify-content:space-between;margin:0 0 10px;}
.app-shell .tb-rws-backbtn{flex:0 0 auto;}
.app-shell .tb-rws-batchlabel{
  font-size:13px;color:var(--tb-muted);
  text-align:right;}
.app-shell .tb-rws-cluster{
  display:flex;gap:8px;align-items:center;
  flex-wrap:wrap;}
.app-shell .tb-rws-verdstamp{
  font-size:12.5px;color:var(--tb-muted);
  margin:6px 0 0;}
/* (v2.67, TB-1059) The queue home's status tabs and
   their cross-batch rows. */
.app-shell .tb-rws-tabs{margin:0 0 14px;}
.app-shell .tb-rws-staterow{
  display:block;width:100%;text-align:left;
  background:none;border:none;border-bottom:1px solid
  var(--tb-line);padding:11px 2px;cursor:pointer;
  font:inherit;}
.app-shell .tb-rws-staterow:hover .tb-rws-statetitle{
  color:var(--tb-green-dark);text-decoration:underline;}
.app-shell .tb-rws-statetitle{
  display:block;font-size:14.5px;font-weight:600;
  color:var(--tb-text);}
.app-shell .tb-rws-statemeta{
  display:block;font-size:12.5px;color:var(--tb-muted);
  margin-top:2px;}
/* (v2.67, TB-1059) A comment's attachments in the
   conversation, the chat's own shapes. */
.app-shell .tb-rws-attach-img{
  display:block;max-width:260px;max-height:200px;
  border-radius:10px;margin-top:6px;
  border:1px solid var(--tb-line);}
.app-shell .tb-rws-attach-chip{
  display:inline-block;margin-top:6px;font-size:13px;
  color:var(--tb-green-dark);border:1px solid
  var(--tb-line);border-radius:999px;padding:4px 11px;
  text-decoration:none;background:#FFFFFF;}
/* The verdict bar is the walk's control deck now
   (v2.67, TB-1059): Previous far left, Next far
   right, the verdict cluster and Open ticket in the
   middle - every button content-width, the unused
   width left empty. On a phone the middle wraps as
   one group to its own line and the nav keeps the
   edges. */
.app-shell .tb-rws-verdictbar{
  flex:0 0 auto;display:flex;gap:10px;flex-wrap:wrap;
  align-items:center;
  padding:12px 14px;border-top:1px solid var(--tb-line);
  background:var(--tb-panel);}
.app-shell .tb-rws-verdictbar[hidden]{display:none;}
.app-shell .tb-rws-vmid{
  display:flex;gap:10px;align-items:center;
  flex-wrap:wrap;}
.app-shell .tb-rws-vcluster{
  display:flex;gap:8px;align-items:center;
  flex-wrap:wrap;}
.app-shell .tb-rws-vbtn{flex:0 0 auto;}
.app-shell .tb-rws-vbtn[disabled]{opacity:.45;cursor:default;}
.app-shell .tb-rws-navbtn{flex:0 0 auto;}
.app-shell .tb-rws-navbtn[hidden]{display:none;}
.app-shell .tb-rws-openticket{flex:0 0 auto;}
.app-shell .tb-rws-verdictbar [data-rws="next"]{
  margin-left:auto;}
@media (max-width:560px){
  .app-shell .tb-rws-vmid{
    order:-1;flex:1 1 100%;}
}
/* The notes sheet, inside the overlay */
.app-shell .tb-rws-notes{position:absolute;inset:0;z-index:5;}
.app-shell .tb-rws-notes[hidden]{display:none;}
.app-shell .tb-rws-notes-scrim{
  position:absolute;inset:0;background:rgba(20,33,61,.34);}
.app-shell .tb-rws-notes-card{
  position:absolute;left:12px;right:12px;bottom:12px;
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-radius:16px;padding:16px;
  box-shadow:0 24px 60px rgba(20,33,61,.30);}
@media (min-width:751px){
  .app-shell .tb-rws-notes-card{
    left:50%;right:auto;bottom:auto;top:50%;
    transform:translate(-50%,-50%);width:min(480px,90%);}
}
.app-shell .tb-rws-notes-title{
  font-size:16px;font-weight:600;color:var(--tb-text);
  margin:0 0 10px;}
.app-shell .tb-rws-notes-actions{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin-top:12px;}
/* Completion */
.app-shell .tb-rws-donetitle{
  font-size:19px;font-weight:600;color:var(--tb-text);
  margin:0 0 8px;}
/* The dashboard door's lines (drawn by site.js) */
.app-shell .tb-rws-doorline{
  font-size:14.5px;color:var(--tb-text);margin:0 0 6px;}
.app-shell .tb-rws-doorbatch{
  font-size:13.5px;color:var(--tb-muted);margin:0 0 4px;}
.app-shell .tb-rws-doorbtn{margin:10px 0 0;}

/* (v2.59, point 21) A row of controls carries the
   standard gap: the reply composer's two dropdowns
   ride one flex row whose gap (10px, the product's
   control-row standard) does the spacing - no margins
   to collapse, no touching controls, here or anywhere
   the row is used. */
.app-shell .tb-composer-tools{
  display:flex;flex-wrap:wrap;gap:10px;margin:0 0 10px;}
.app-shell .tb-composer-tools .tb-quick-select{
  margin:0;flex:1 1 180px;min-width:0;}

/* (v2.59, points 5-13) The One Inbox list on the back
   office: the kind switch above the state tabs, then a
   columned list - From, Subject, Received, Waiting,
   Status, Ticket - with sortable headers on desktop.
   On the phone the six columns fold into the standard
   rows: From and Received on the first line, Subject
   on the second, Waiting / Status / Ticket on the
   third. One grid definition serves the header and
   every row, so the columns can never drift apart. */
.app-shell .tb-ibx-kindrow{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:2px 0 10px;}
.app-shell .tb-ibx-head{display:none;}
@media (min-width:901px){
  .app-shell .tb-ibx-head,
  .app-shell .tb-ibx-row.tb-ibx-row-cols{
    display:grid;
    /* (v2.62, Finding 14) Subjects were truncating
       at about 35 characters on wide screens while
       the From track kept growing beside them: the
       two fractional tracks split the free width
       .85 to 1.7 whatever the screen gave. From is
       now capped at a name's working width and
       Subject takes every remaining pixel as a
       single minmax(0,1fr) track, so a subject
       truncates only when the row is truly out of
       room. Received, Waiting, Status and Ticket
       keep their fixed tracks below. */
    grid-template-columns:18px 34px minmax(96px,180px)
      minmax(110px,1fr) minmax(108px,132px) minmax(56px,104px)
      minmax(88px,112px) minmax(60px,86px);
    column-gap:10px;align-items:start;}
  .app-shell .tb-ibx-head{
    padding:6px 8px;border-bottom:1px solid var(--tb-line);
    align-items:center;}
  .app-shell .tb-ibx-headcell{
    font-size:11.5px;font-weight:700;letter-spacing:.05em;
    text-transform:uppercase;color:var(--tb-muted);
    background:none;border:0;font-family:inherit;
    text-align:left;padding:2px 0;cursor:pointer;}
  .app-shell .tb-ibx-headcell:hover{
    color:var(--tb-text);}
  .app-shell .tb-ibx-headcell.sorted{
    color:var(--tb-green-dark);}
  .app-shell .tb-ibx-row.tb-ibx-row-cols
    .tb-ibx-main{display:contents;}
  .app-shell .tb-ibx-row.tb-ibx-row-cols{
    align-items:center;padding:10px 8px;}
  .app-shell .tb-ibx-c-from,
  .app-shell .tb-ibx-c-subject,
  .app-shell .tb-ibx-c-received,
  .app-shell .tb-ibx-c-waiting,
  .app-shell .tb-ibx-c-status,
  .app-shell .tb-ibx-c-ticket{
    min-width:0;}
}
@media (max-width:900px){
  .app-shell .tb-ibx-row.tb-ibx-row-cols{
    flex-wrap:wrap;row-gap:2px;}
  .app-shell .tb-ibx-row.tb-ibx-row-cols
    .tb-ibx-main{display:contents;}
  .app-shell .tb-ibx-c-from{
    flex:1 1 auto;min-width:0;order:1;}
  .app-shell .tb-ibx-c-received{order:2;}
  .app-shell .tb-ibx-c-subject{
    flex:1 1 100%;order:3;min-width:0;}
  .app-shell .tb-ibx-c-waiting{order:4;}
  .app-shell .tb-ibx-c-status{order:5;}
  .app-shell .tb-ibx-c-ticket{order:6;}
  .app-shell .tb-ibx-prev{display:none;}
}
.app-shell .tb-ibx-submeta{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
  margin-top:4px;}
.app-shell .tb-ibx-c-waiting .tb-ibx-activity{
  white-space:nowrap;}
/* (v2.59, point 11) The Filter panel opens with its
   top at the level of the list: the sheet's top edge
   sits on the scrollwrap's top edge, directly under
   the "Showing N" line. */
.app-shell #ad-view-feedback .tb-inbox-sheet{top:0;}
/* Read/Unread choices in the filter sheet ride the
   same option rows as the other groups. */

/* (v2.59, point 17) Correspondence letters and the
   folded quoted history, shared by the customer's
   Inbox and the back-office thread: the sender's own
   words stand as the letter; what they quoted folds
   under one quiet toggle and is never deleted. */
.app-shell .tb-letter{
  border:1px solid var(--tb-line);border-radius:12px;
  background:#FFFFFF;padding:12px 14px;margin:0 0 12px;}
.app-shell .tb-letter-head{
  display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;
  margin-bottom:6px;}
.app-shell .tb-letter-who{font-weight:600;font-size:14.5px;}
.app-shell .tb-letter-when{
  font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-letter-body{
  font-family:Arial,Helvetica,sans-serif;font-size:14.5px;
  line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;}
.app-shell .tb-foldbtn{
  background:none;border:0;color:var(--tb-green-dark);
  font:inherit;font-size:13px;font-weight:500;
  cursor:pointer;padding:4px 0 0;text-decoration:underline;}
.app-shell .tb-letter-quoted{
  border-left:3px solid var(--tb-line);margin-top:8px;
  padding:6px 10px;color:var(--tb-muted);font-size:13.5px;
  line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
  font-family:Arial,Helvetica,sans-serif;}

/* (v2.59, points 18-19) A record with both channels:
   the channel tabs choose the pane. The Chat pane is a
   chat view in the product's own shape - messages
   scroll, the composer is fixed at the pane's bottom -
   wherever it appears (back-office thread, Chat view,
   customer Inbox). */
.app-shell .tb-chanpane-chat{
  display:flex;flex-direction:column;height:62vh;
  min-height:320px;border:1px solid var(--tb-line);
  border-radius:12px;background:#FFFFFF;overflow:hidden;}
.app-shell .tb-chanpane-chat .tb-chat-list{
  flex:1;overflow-y:auto;padding:12px 14px 8px;}
.app-shell .tb-chanpane-chat .tb-chat-composer{
  flex:0 0 auto;border-top:1px solid var(--tb-line);
  padding:10px 12px;background:#FFFFFF;}
/* (v2.66, Lane B2) The pane's quote strip rides inside
   the composer card now (see inboxChatPane), so its
   old stand-alone top margin is retired; the card's
   own strip margin governs. */
.app-shell .tb-chanpane-chat .tb-chat-quotechip{
  margin:0 0 6px;}
.app-shell .tb-chanpane-composer .tb-chat-composercard{
  margin-top:0;}
.app-shell .tb-chanpane-chat .tb-chat-list{
  scroll-padding-top:12px;}
.app-shell .tb-waitrow{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 0;
  border-top:1px solid var(--tb-line);}
.app-shell .tb-waitrow:first-child{border-top:0;}
.app-shell .tb-waitrow-main{flex:1;min-width:0;}
.app-shell .tb-waitrow-name{
  margin:0;font-weight:600;}
.app-shell .tb-waitrow-addr{margin:0;}
.app-shell .tb-waitrow-subject{margin:2px 0 0;}
.app-shell .tb-waitrow-meta{margin:2px 0 0;}
/* (v2.61, TB-1028) A waiting row's text must break inside its
   box: relay addresses arrive as one long unbroken token
   (team_at_accounts_...@privaterelay.appleid.com) whose
   min-content width otherwise inflates the whole page past
   the screen. anywhere (not break-word) so the flex item's
   min-content shrinks too. */
.app-shell .tb-waitrow-name,
.app-shell .tb-waitrow-addr,
.app-shell .tb-waitrow-subject,
.app-shell .tb-waitrow-meta{overflow-wrap:anywhere;}
.app-shell .tb-waitrow-acts{
  display:flex;gap:8px;flex-wrap:wrap;
  align-items:center;}
@media (max-width: 640px){
  .app-shell .tb-waitrow{flex-direction:column;}
}
.app-shell .tb-chanpane-composer{
  flex:0 0 auto;position:relative;
  border-top:1px solid var(--tb-line);
  padding:10px 12px;background:#FFFFFF;}
.app-shell .tb-chanpane-chat .tb-chat-composer{
  border-top:0;padding:0;}

.app-shell .tb-heading-actions{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.app-shell .sup-statepill{
  display:inline-flex;align-items:center;border-radius:999px;
  padding:2px 9px;font-size:12px;font-weight:600;
  background:var(--tb-soft);color:var(--tb-green-dark);
  white-space:nowrap;}
.app-shell .sup-statepill-needs_reply{
  background:#FDF3E0;color:#8A5A12;}
.app-shell .sup-statepill-waiting{
  background:#EAF1FB;color:#2B4C7E;}
.app-shell .sup-statepill-closed{
  background:#EFEFEF;color:#5A5A5A;}
.app-shell .sup-waiting-overdue{
  color:#B7791F;font-weight:600;}

/* (v2.59, points 5-16) The customer's Inbox list:
   the same columns, folded the same way on the phone.
   Rows are buttons inside list items; the header row
   appears on desktop only. */
.app-shell .sup-kindrow{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0 0 10px;}
.app-shell .sup-colshead{display:none;}
.app-shell .sup-row-main{
  display:flex;flex-wrap:wrap;gap:2px 10px;align-items:flex-start;
  width:100%;text-align:left;position:relative;padding-left:18px;}
.app-shell .sup-c-from{flex:1 1 auto;min-width:0;order:1;
  font-weight:600;font-size:14.5px;
  /* (UI cleanliness, exhibit 1) The name truncates in
     its own space at every width: one line, an ellipsis
     when the name outruns its track, never a wrap into
     the preview's line and never paint under the dot. */
  white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.app-shell .sup-c-received{order:2;font-size:12.5px;
  color:var(--tb-muted);white-space:nowrap;}
.app-shell .sup-c-subject{flex:1 1 100%;order:3;min-width:0;
  font-size:14.5px;}
.app-shell .sup-c-subject-text{display:block;
  white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.app-shell .sup-c-preview{display:block;font-size:13px;
  font-weight:400;color:var(--tb-muted);
  white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
@media (max-width:900px){
  .app-shell .sup-c-preview{display:none;}
}
.app-shell .sup-row.unread .sup-c-subject{font-weight:700;}
.app-shell .sup-c-meta{flex:1 1 100%;order:4;display:flex;
  flex-wrap:wrap;gap:6px;align-items:center;margin-top:3px;}
/* (v2.73) Layout-neutral unread dot, as on the
   back-office rows: absolute in the gutter the row's
   constant left padding reserves, so a read row's text
   starts at the same left edge as an unread row's. */
.app-shell .sup-dot{position:absolute;left:1px;top:9px;
  width:8px;height:8px;
  border-radius:50%;background:var(--tb-green);
  visibility:hidden;}
.app-shell .sup-row.unread .sup-dot{visibility:visible;}
@media (min-width:901px){
  .app-shell .sup-colshead,
  .app-shell .sup-row-main{
    display:grid;padding-left:0;
    /* (v2.62, Finding 14) The same treatment as the
       back-office list above: From capped at 220px,
       Subject on a single minmax(0,1fr) track taking
       all the free width, the Received / Waiting /
       Status / Ticket tracks fixed as they were.
       The phone fold above (Subject on its own
       full-width line) is untouched. */
    grid-template-columns:18px minmax(120px,220px)
      minmax(0,1fr) 150px 122px 112px 86px;
    column-gap:10px;align-items:center;}
  .app-shell .sup-colshead{
    padding:6px 8px;border-bottom:1px solid var(--tb-line);}
  .app-shell .sup-colshead .tb-ibx-headcell{
    font-size:11.5px;font-weight:700;letter-spacing:.05em;
    text-transform:uppercase;color:var(--tb-muted);
    background:none;border:0;font-family:inherit;
    text-align:left;padding:2px 0;cursor:pointer;}
  .app-shell .sup-colshead .tb-ibx-headcell.sorted{
    color:var(--tb-green-dark);}
  .app-shell .sup-row-main .sup-c-from,
  .app-shell .sup-row-main .sup-c-received,
  .app-shell .sup-row-main .sup-c-subject,
  .app-shell .sup-row-main .sup-c-meta{order:0;}
  .app-shell .sup-row-main .sup-c-meta{
    display:contents;}
  /* (UI cleanliness, exhibit 1) On desktop the unread
     dot takes its own gutter: it is a real grid item in
     the 18px first track, not an absolutely positioned
     overlay. Out of the flow it used to shift every
     cell one track left - From crushed into the dot's
     track, the dot painting over the name, Subject in
     the From track, headers disagreeing with rows. */
  .app-shell .sup-row-main .sup-dot{
    position:static;justify-self:center;}
  .app-shell .sup-row-main .sup-c-waiting,
  .app-shell .sup-row-main .sup-c-status,
  .app-shell .sup-row-main .sup-c-ticket{min-width:0;}
}
/* The customer's chat thread view: a chat column whose
   composer never scrolls away. */
.app-shell .sup-chatwrap{
  display:flex;flex-direction:column;height:66vh;
  min-height:340px;}
.app-shell .sup-chatwrap #sup-messages{
  flex:1;overflow-y:auto;min-height:0;}
.app-shell .sup-chatwrap .tb-chat-composer{
  flex:0 0 auto;border-top:1px solid var(--tb-line);
  padding-top:10px;}

/* (v2.59, points 22-23) Library send history: a row
   opens its send. The opened send is a sheet over the
   library: the letter as delivered beside its copies,
   and the door for logging a send made outside the
   panel rides the same panel. */
.app-shell #ad-view-library .tb-lib-history-row{cursor:pointer;}
.app-shell #ad-view-library .tb-lib-history-row:hover{
  background:#FBFCFB;}
/* (v2.62, Finding 9) Send history on a phone follows
   the billing table's fold (v2.60, .tb-billtable):
   the header gives way, each row becomes one
   wrapping flex row, the roomy cells take full-width
   lines of their own and wrap inside the card, and
   the first line carries the date with the status at
   its right edge. The history cells carry no classes
   of their own (the row builder names none), so the
   fold addresses them by column position, the
   pending-invitations fold's way. The date itself -
   a long stamp - stays on one line instead of
   stacking a word per line in a squeezed column,
   and the Documents column wraps instead of running
   off the card. Desktop presentation is unchanged. */
@media (max-width:750px){
  .app-shell #ad-lib-history-wrap{overflow-x:visible;}
  .app-shell #ad-lib-history-wrap .tb-table{
    min-width:0;border:0;background:transparent;
    overflow:visible;}
  .app-shell #ad-lib-history-wrap .tb-table thead{
    display:none;}
  .app-shell #ad-lib-history-wrap .tb-table,
  .app-shell #ad-lib-history-wrap .tb-table tbody,
  .app-shell #ad-lib-history-wrap .tb-table tr,
  .app-shell #ad-lib-history-wrap .tb-table td{
    display:block;}
  .app-shell #ad-lib-history-wrap .tb-table tr{
    display:flex;flex-wrap:wrap;gap:2px 10px;
    padding:10px 2px;
    border-top:1px solid var(--tb-line);}
  .app-shell #ad-lib-history-wrap .tb-table td{
    border-bottom:0;padding:0;min-width:0;
    overflow-wrap:anywhere;}
  .app-shell #ad-lib-history-wrap .tb-table
    td:nth-child(1){
    order:1;flex:none;white-space:nowrap;
    font-weight:600;}
  .app-shell #ad-lib-history-wrap .tb-table
    td:nth-child(5){
    order:2;flex:none;margin:0 0 0 auto;}
  .app-shell #ad-lib-history-wrap .tb-table
    td:nth-child(2){order:3;flex:1 1 100%;}
  .app-shell #ad-lib-history-wrap .tb-table
    td:nth-child(3){order:4;flex:1 1 100%;}
  .app-shell #ad-lib-history-wrap .tb-table
    td:nth-child(4){
    order:5;flex:1 1 100%;color:var(--tb-muted);
    font-size:13px;}
}
.app-shell .tb-sendwrap{
  position:fixed;inset:0;z-index:220;display:flex;
  align-items:flex-start;justify-content:center;
  padding:22px 12px;box-sizing:border-box;}
.app-shell .tb-sendscrim{
  position:absolute;inset:0;background:rgba(24,40,58,.34);}
.app-shell .tb-sendsheet{
  position:relative;background:#FFFFFF;border-radius:14px;
  border:1px solid var(--tb-line);width:680px;
  max-width:100%;max-height:calc(100vh - 44px);
  overflow-y:auto;padding:18px 20px;box-sizing:border-box;}
.app-shell .tb-sendletter{
  border:1px solid var(--tb-line);border-radius:10px;
  overflow:hidden;margin:10px 0;}
.app-shell .tb-sendletter iframe{
  display:block;width:100%;height:340px;border:0;}
.app-shell .tb-sendcopies{
  list-style:none;margin:8px 0;padding:0;}
.app-shell .tb-sendcopies li{
  display:flex;gap:8px;align-items:center;padding:5px 0;
  border-bottom:1px solid var(--tb-line);font-size:14px;}

.app-shell .tb-chantabs{margin:0 0 12px;}

/* (v2.60, points 25/26/32) The Inbox lists, one look:
   the customer's card table is the reference - a white
   card, alternating rows, the shared status pills - and
   the back-office lists wear exactly the same. */
.app-shell .tb-ibx-row:nth-child(even),
.app-shell .sup-row:nth-child(even){background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell .tb-ibx-row:hover,
.app-shell .sup-row:hover{background:var(--tb-soft);}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);
  background:#FFFFFF;padding:2px 12px 6px;}
.app-shell #ad-view-chat .tb-ibx-list{
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);
  background:#FFFFFF;padding:2px 12px 6px;}
/* (v2.60, point 22) The back-office chat pane's header:
   the customer sheet's stacked, centered face - the
   other party's avatar large, name and status under
   it - over the same pill composer. */
.app-shell .tb-chanpane-head{
  display:flex;flex-direction:column;align-items:center;
  gap:2px;padding:14px 12px 10px;background:#FFFFFF;}
.app-shell .tb-chanpane-head .tb-avatar{
  width:56px;height:56px;font-size:20px;}
.app-shell .tb-chanpane-head .tb-avatar img{
  width:100%;height:100%;object-fit:cover;display:block;}
.app-shell .tb-chanpane-name{
  font-size:15.5px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-chanpane-sub{
  font-size:12.5px;color:var(--tb-muted);}
/* (v2.60, point 6) The plan picker's rows. */
.app-shell .tb-planrow{
  display:flex;align-items:center;gap:10px;width:100%;
  text-align:left;border:1px solid var(--tb-line);
  border-radius:10px;background:#FFFFFF;
  padding:12px 14px;margin:0 0 8px;cursor:pointer;
  font:inherit;color:var(--tb-text);}
.app-shell .tb-planrow:hover{border-color:var(--tb-green);}
.app-shell .tb-planrow[disabled]{
  cursor:default;background:var(--tb-side);}
.app-shell .tb-planrow[disabled]:hover{
  border-color:var(--tb-line);}
.app-shell .tb-planrow .tb-planrow-name{font-weight:600;}
.app-shell .tb-planrow .tb-planrow-price{
  margin-left:auto;font-weight:600;white-space:nowrap;}
.app-shell .tb-planrow .tb-planrow-cur{
  font-size:12px;font-weight:700;color:var(--tb-green-dark);
  background:var(--tb-soft);border-radius:999px;
  padding:2px 8px;white-space:nowrap;}

/* ==== v2.60 second pass ================================================
   The sheet, the letter striping and the changelog table. Everything
   here is written once and worn by both shells. */

/* (point 35) One sheet shape in both shells. The container is
   transparent (display:contents) until its active class turns it into
   the overlay sheet; the list underneath never unmounts, so closing
   the sheet returns to the exact list position, filters and kind. */
.app-shell .tb-osheet{display:contents;}
.app-shell .tb-osheet .tb-sheet-scrim{display:none;}
.app-shell .tb-osheet .tb-osheet-x{display:none;}
/* (v2.67, TB-1053) The sheet is a pop-up now, modeled
   on the Reviews overlay: full screen on a phone; on
   a desktop a large centered card at about 90% of the
   viewport both ways. Its layer is the overlay's own
   (170, above the top bar's 160), so nothing in the
   app chrome can ever paint or tap-block its top
   strip - the squeezed side sheet let the top bar sit
   over its header, which is what killed the record
   button's tap. The list underneath never unmounts,
   so closing returns to the exact place, as before. */
.app-shell .tb-osheet.tb-sheet-active{position:fixed;inset:0;z-index:170;display:block;}
.app-shell .tb-osheet.tb-sheet-active .tb-sheet-scrim{display:block;position:absolute;inset:0;background:rgba(20,33,61,.42);}
.app-shell .tb-osheet.tb-sheet-active .tb-osheet-panel{position:absolute;inset:0;background:var(--tb-bg);overflow-y:auto;padding:20px 18px 28px;}
@media (min-width:751px){
  .app-shell .tb-osheet.tb-sheet-active .tb-osheet-panel{
    inset:auto;top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:94vw;max-width:1240px;height:90vh;
    border:1px solid var(--tb-line);border-radius:16px;
    box-shadow:0 24px 60px rgba(20,33,61,.30);
    padding:24px 26px 32px;}
}
.app-shell .tb-osheet.tb-sheet-active .tb-osheet-x{display:flex;}
/* (v2.67, TB-1053) The record control is a real
   button in the sheet header, visible whenever the
   thread carries a record to open, in sheet mode and
   in the plain thread view alike. */
.app-shell .tb-sheet-recordbtn{display:inline-flex;margin:0 0 12px;}
.app-shell .tb-sheet-recordbtn[hidden]{display:none;}

/* (TB-1063) Sheet width discipline. A sheet panel is
   a vertical scroller; with only overflow-y set, the
   sideways axis computes to auto, so any child that
   momentarily sizes wider than the panel turns the
   whole sheet into a sideways-dragging page (the
   TB-1058 sheet on Trevor's phone, Oct 19, panned
   right and ran off the screen). The page itself has
   carried the clip guard since the v2.61 fix; the
   sheet interiors carry it now too, and the sheets'
   own text blocks and flex rows take the same
   anywhere-wrap and min-width treatment that fixed
   the waiting rows, so real content wraps inside
   the sheet instead of ever widening it. Scrollers
   that move sideways on purpose (.tb-tabs,
   .tb-wraptable) keep their own boxes and are
   unaffected, exactly as with the page guard. The
   chat sheet body keeps its own overflow rule; this
   block sets only its sideways axis, to the same
   hidden value its chat mode already computes. */
.app-shell .tb-osheet.tb-sheet-active .tb-osheet-panel{overflow-x:hidden;overflow-x:clip;}
.app-shell .tb-sheetbody{overflow-x:hidden;overflow-x:clip;}
.app-shell .tb-rws-body{overflow-x:hidden;overflow-x:clip;}
.app-shell .tb-thr-head{min-width:0;}
.app-shell .tb-thr-headmeta{min-width:0;}
.app-shell .tb-thr-subject{overflow-wrap:anywhere;}
.app-shell .tb-thr-from{overflow-wrap:anywhere;}
.app-shell .tb-sheettitle{min-width:0;overflow-wrap:anywhere;}
.app-shell .tb-tsum-line,.app-shell .tb-tsum-none{overflow-wrap:anywhere;}
.app-shell .tb-rws-title{min-width:0;overflow-wrap:anywhere;}
.app-shell .tb-viewer-cap{min-width:0;}
.app-shell .tb-inbox-rail select.tb-input{max-width:100%;}

/* (point 34) Stacked letter cards alternate white and the lightest
   wash, one shared rule for both shells' letter readings. Chat
   bubbles are untouched. */
.app-shell .tb-letter:nth-child(even),
.app-shell .tb-tl > .tb-tl-msg:nth-child(even){background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}

/* (point 30) The customer Inbox search row wears the shared search
   treatment, full width like the back office's. */
.app-shell .sup-searchrow{display:flex;margin:0 0 12px;}
.app-shell .sup-searchrow .tb-search{flex:1;}

/* (point 29) The kind tabs carry their counts in both shells. The
   v2.36 rule hides the old tab badge inside the back-office Inbox
   (its state tabs count with .tb-count instead); the kind tabs'
   badges are the new counting language and show. */
.app-shell #ad-inbox-kinds .tb-tab-badge{display:inline-block;}
.app-shell #ad-inbox-kinds .tb-tab-badge[hidden]{display:none;}

/* (point 22) The chat pane's stacked, centered header: the
   customer's face at the sheet header's size, their name, and the
   one-word sub-line. (v2.65: the size follows the sheet header
   to 72px, keeping the two identical.) */
.app-shell .tb-chanpane-av{flex:none;width:72px;height:72px;}
.app-shell .tb-chanpane-av img{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block;}
.app-shell .tb-chanpane-av .tb-tl-disc{width:72px;height:72px;font-size:24px;}
.app-shell .tb-chanpane-who{min-width:0;text-align:center;}
.app-shell .tb-chanpane-name{font-weight:700;font-size:17px;color:var(--tb-text);}
.app-shell .tb-chanpane-sub{color:var(--tb-muted);font-size:13.5px;}
.app-shell .tb-chat-notemode{background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:8px;padding:8px 11px;margin:0 0 8px;font-size:13.5px;color:var(--tb-text);}

/* (point 36) The close dialog's fields, in the standard dialog
   shape. */
.app-shell .tb-dlgfield{margin:0 0 12px;}
.app-shell .tb-dlgfield > label{display:block;font-weight:600;font-size:14px;margin:0 0 5px;}
.app-shell .tb-dlgcheck{display:flex;gap:9px;align-items:flex-start;font-size:14.5px;margin:0 0 12px;cursor:pointer;}
.app-shell .tb-dlgcheck input{margin-top:3px;}

/* (point 37) The changelog as a table: one row per shipped change,
   alternating rows, the class and the restore path in their own
   columns. The last column is the control cell release control
   will fill; it rides empty until then. On a phone each row folds
   to two lines: the change, then the class and restore path. */
.app-shell table.tb-chlog{width:100%;border-collapse:collapse;font-size:14.5px;}
.app-shell .tb-chlog th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--tb-muted);font-weight:700;padding:6px 10px;border-bottom:2px solid var(--tb-line);}
.app-shell .tb-chlog td{padding:9px 10px;border-bottom:1px solid var(--tb-line);vertical-align:top;line-height:1.5;}
.app-shell .tb-chlog tbody tr:nth-child(even){background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell .tb-chlog .tb-chlog-class{font-weight:700;text-align:center;width:60px;}
.app-shell .tb-chlog .tb-chlog-restore{color:var(--tb-muted);width:210px;}
.app-shell .tb-chlog .tb-chlog-act{width:44px;}
.app-shell .tb-chlog-summary{margin:0 0 6px;line-height:1.55;}
@media (max-width:640px){
  .app-shell .tb-chlog thead{display:none;}
  .app-shell table.tb-chlog,.app-shell .tb-chlog tbody,.app-shell .tb-chlog tr,.app-shell .tb-chlog td{display:block;width:auto;}
  .app-shell .tb-chlog tr{padding:8px 0;border-bottom:1px solid var(--tb-line);}
  .app-shell .tb-chlog td{border:0;padding:1px 10px;}
  .app-shell .tb-chlog .tb-chlog-class{display:inline-block;width:auto;text-align:left;padding-right:2px;}
  .app-shell .tb-chlog .tb-chlog-restore{display:inline-block;width:auto;}
  .app-shell .tb-chlog .tb-chlog-act{display:none;}
}

/* (v2.60, points 40-41) Digest templates + the
   contacts picker (one component, every send form). */
.app-shell .tb-digrow{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:12px 0;border-top:1px solid var(--tb-line,#D9E5F0);}
.app-shell .tb-digrow:first-child{border-top:none;}
.app-shell .tb-digrow-main{flex:1;min-width:0;}
.app-shell .tb-digrow-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.app-shell .tb-pill-green{background:var(--tb-line);color:var(--tb-ok-text);}
.app-shell .tb-pill-amber{background:#F7ECD2;color:var(--tb-warn-text);}
.app-shell .tb-picker-mount{margin-top:6px;}
.app-shell .tb-picker-row{display:flex;width:100%;gap:10px;align-items:center;justify-content:space-between;text-align:left;background:#FFFFFF;border:1px solid var(--tb-line,#D9E5F0);border-radius:10px;padding:9px 12px;margin:0 0 6px;cursor:pointer;font:inherit;color:inherit;}
.app-shell .tb-picker-row:hover{border-color:var(--tb-green,#2E7D32);}
.app-shell .tb-picker-main{display:flex;gap:10px;align-items:baseline;min-width:0;flex-wrap:wrap;}
.app-shell .tb-picker-mail{color:var(--tb-green-dark,#1B5E20);}
.app-shell .tb-picker-others{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:2px 0 4px;}
.app-shell .tb-picker-chip{background:#FFFFFF;border:1px solid var(--tb-line,#D9E5F0);border-radius:999px;padding:3px 10px;cursor:pointer;font:inherit;font-size:.85em;color:var(--tb-green-dark,#1B5E20);}
.app-shell .tb-picker-chip:hover{border-color:var(--tb-green,#2E7D32);}

/* (v2.63) The Digest Console. Everything visual inherits
   the shared rules above; these add only the console's own
   pieces (pick rows, the in-panel action bar, section
   select-all rows) in the same vocabulary. */
/* The review panel stays closed until the door card's
   button opens it: the home surface carries the door and
   the quiet sections only, never the action bar. */
.app-shell #dc-review{display:none;}
.app-shell #dc-review.dc-review-open{display:block;}
.app-shell .dc-check{width:22px;height:22px;flex:none;margin-top:2px;accent-color:var(--tb-green);cursor:pointer;}
/* Console rows keep the checkbox beside the text at phone
   width (the waitrow's phone fold is for button rows; a
   pick row must not fold). */
.app-shell .dc-row{flex-direction:row;display:flex;gap:10px;align-items:flex-start;}
.app-shell .dc-row .tb-waitrow-main{flex:1;min-width:0;cursor:pointer;}
.app-shell .dc-row.is-queued{opacity:.62;}
.app-shell .dc-row.is-queued .tb-waitrow-main{cursor:default;}
.app-shell .dc-secbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0 4px;border-top:1px solid var(--tb-line);}
.app-shell .dc-secbar label{font-weight:600;cursor:pointer;}
.app-shell .dc-secbar .tb-note{margin:0;}
/* The section's selected-count sits on its own line,
   aligned with the label, never squeezing it. */
.app-shell .dc-sec-count{flex-basis:100%;margin-left:32px;}
.app-shell .dc-note-line{margin:2px 0 0;}

/* (v4.29) The day-grouped inbox rows: the help mark sits
   beside the Digest title, the section bars carry an
   explicit Select All, a designed divider names each
   day, and each row's details open in a panel below it. */
.app-shell .dc-titleline{display:flex;align-items:center;gap:9px;}
.app-shell .dc-titleline h1{margin:0;}
.app-shell .dc-sec-title{font-weight:600;}
.app-shell .dc-selectall{display:inline-flex;align-items:center;gap:8px;}
.app-shell .dc-selectall:hover{color:var(--tb-green);}
.app-shell .dc-selectall .dc-check{margin-top:0;}
.app-shell .dc-dayhead{display:flex;align-items:center;gap:12px;margin:20px 0 4px;}
.app-shell .dc-dayhead-label{font-weight:700;color:var(--tb-green);font-size:15px;white-space:nowrap;}
.app-shell .dc-dayhead::after{content:"";flex:1;border-top:2px solid var(--tb-line);}
/* (Day groups, Oct 31, 2026) The day header's fold
   control wears the row chevron's one treatment:
   a plain chevron on a borderless button, no filled
   box in any state, rotated while the day is open.
   The counts ride beside it so a folded day still
   states what it holds. */
.app-shell .dc-dayfold{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;border-radius:8px;padding:4px 8px;cursor:pointer;color:var(--tb-green);}
.app-shell .dc-dayfold svg{width:18px;height:18px;flex:none;transition:transform .15s ease;}
.app-shell .dc-dayfold[aria-expanded="true"] svg{transform:rotate(180deg);}
.app-shell .dc-dayfold:hover{background:var(--tb-soft);}
.app-shell .dc-dayfold:active svg{transform:scale(.88);}
.app-shell .dc-dayfold[aria-expanded="true"]:active svg{transform:rotate(180deg) scale(.88);}
.app-shell .dc-dayhead-count{color:var(--tb-muted);font-size:13px;white-space:nowrap;}
.app-shell .dc-row-top{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.app-shell .dc-row-name{font-weight:600;font-size:16px;}
.app-shell .dc-row-when{margin-left:auto;flex:none;color:var(--tb-muted);font-size:13.5px;white-space:nowrap;}
.app-shell .dc-row-sub{margin:2px 0 0;}
.app-shell .dc-badge{flex:none;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:999px;white-space:nowrap;}
.app-shell .dc-badge-new{background:var(--tb-line);color:var(--tb-ok-text);}
.app-shell .dc-badge-repeat{background:#FBF0DC;color:var(--tb-warn-text);}
.app-shell .dc-expand{flex:none;align-self:flex-start;background:none;border:0;cursor:pointer;padding:8px 6px;color:var(--tb-muted);border-radius:8px;}
.app-shell .dc-expand svg{width:18px;height:18px;display:block;transition:transform .15s ease;}
.app-shell .dc-expand[aria-expanded="true"] svg{transform:rotate(180deg);}
.app-shell .dc-expand:hover{background:var(--tb-soft);color:var(--tb-green);}
.app-shell .dc-details{margin:2px 0 12px 32px;padding:10px 12px;background:#F7FAF4;border:1px solid var(--tb-line);border-radius:10px;}
.app-shell .dc-details[hidden]{display:none;}
.app-shell .dc-det-why{margin:0 0 6px;line-height:1.5;}
.app-shell .dc-det-facts{margin:2px 0 0;}
/* The action bar lives INSIDE the review panel, as its
   last child. Sticky is confined to the panel, its space
   is reserved in the panel's flow, and it can never
   cover the door card, the alerts, or Done recently. */
/* (v2.73) The console's live conversation: the same chat
   column the Support thread view draws, sized for a panel
   on the Digest page - the messages scroll inside the
   panel and the composer stays under them. */
.app-shell .dc-chat-scroll{max-height:430px;overflow-y:auto;min-height:0;}
/* (Nov 1, 2026) The console composer's top air rides
   on the component card in this slot: the block's own
   margin rule retired with the composer convergence,
   and the card carries the total the block and card
   held together (12px + 8px = 20px). */
.app-shell #dc-chat-wrap .tbpc-card{margin-top:20px;}
.app-shell .dc-bar{position:static;background:var(--tb-panel,#fff);border:1px solid var(--tb-line);border-radius:12px;padding:12px 14px;margin:16px 0 2px;}
/* (TB-1287) On a phone the bar docks in the panel flow at the foot of the list: sticky bottom inside a tall panel floats it over the rows beneath it in the viewport and covered the list text at 390px. In-flow, it can cover nothing, and the intro sentence ("at the bottom of this list") stays literally true. */
@media (max-width:640px){.app-shell .dc-bar{position:static;box-shadow:none;}}
.app-shell .dc-bar[hidden]{display:none;}
.app-shell .dc-bar-count{font-weight:600;margin:0 0 8px;}
.app-shell .dc-bar-btns{display:flex;flex-wrap:wrap;gap:8px;}
.app-shell .dc-bar-btns .tb-action[disabled]{opacity:.45;cursor:default;}
/* Secondary, stronger steps: their own quieter row,
   separated by a hairline; Delete sits apart at the far
   end in the danger treatment. */
.app-shell .dc-bar-more{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid var(--tb-line);margin-top:10px;padding-top:10px;}
.app-shell .dc-bar-more[hidden]{display:none;}
.app-shell .dc-bar-more-label{font-size:12.5px;font-weight:600;color:var(--tb-muted);}
.app-shell .dc-bar-more .tb-action{padding:6px 10px;}
.app-shell .dc-bar-more .tb-action[disabled]{opacity:.45;cursor:default;}
.app-shell .dc-bar-delete{margin-left:auto;}
.app-shell .dc-textbtn{background:none;border:0;font:inherit;font-weight:600;color:var(--tb-green);cursor:pointer;padding:6px 2px;text-decoration:underline;text-underline-offset:3px;}
.app-shell .dc-outcome{display:flex;gap:10px;align-items:baseline;padding:7px 0;border-top:1px solid var(--tb-line);}
.app-shell .dc-outcome:first-of-type{border-top:0;}
/* The outcome's timestamp never wraps into fragments;
   the sentence takes the shrinking, the time stays whole. */
.app-shell .dc-outcome .tb-note{flex:none;}
.app-shell .dc-alert{border-left:4px solid var(--tb-warn);padding:2px 0 2px 12px;margin:10px 0;}
.app-shell .dc-alert.urgent{border-left-color:var(--tb-danger,#B3261E);}
.app-shell .dc-donebox{text-align:center;padding:18px 10px 8px;}
.app-shell .dc-donebox .tb-statnumber{font-size:34px;}
.app-shell .dc-confirm-list{margin:8px 0 12px;padding-left:18px;}
/* (v2.65) The Snooze confirm's length choices: quiet
   tappable rows, one per served duration. */
.app-shell .dc-snooze-opts{margin:10px 0 2px;}
.app-shell .dc-snooze-opts .tb-note{margin:0 0 4px;}
.app-shell .dc-snooze-opt{display:flex;gap:9px;align-items:center;padding:7px 2px;font-weight:600;cursor:pointer;}
.app-shell .dc-snooze-opt input{width:18px;height:18px;flex:0 0 auto;}
.app-shell .dc-keptrow{display:flex;gap:10px;align-items:baseline;padding:6px 0;border-top:1px solid var(--tb-line);}
.app-shell .dc-keptrow:first-of-type{border-top:0;}
/* (v4.28) The console's view switch row: the standard
   segmented control (.tb-seg) at the left, and in
   Summary view the digest's totals beside it. */
.app-shell #dc-viewbar{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:0 0 12px;}
.app-shell #dc-viewbar .tb-seg{margin-top:0;}
.app-shell #dc-totals{margin:0;font-weight:600;color:var(--tb-text);}
/* (v4.28) Summary rows: one line per sender - name,
   address, message count, junk score, disposition
   state. The line never wraps; name and address
   ellipsize first so the figures stay whole. */
.app-shell .dc-sumrow{align-items:center;}
.app-shell .dc-sumrow .dc-check{margin-top:0;}
.app-shell .dc-sum-main{display:flex;align-items:baseline;gap:6px 12px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;cursor:pointer;}
.app-shell .dc-row.is-queued .dc-sum-main{cursor:default;}
.app-shell .dc-sum-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.app-shell .dc-sum-addr{color:var(--tb-muted);overflow:hidden;text-overflow:ellipsis;min-width:0;}
.app-shell .dc-sum-meta{flex:none;color:var(--tb-muted);font-size:13.5px;}
.app-shell .dc-sum-state{flex:none;font-size:13.5px;font-weight:600;}
/* (v4.28, Trevor's style call, Oct 27, 2026) The
   digest action bar's buttons are rectangles at the
   standard button radius, never pills. Block sender
   wears a darker amber with white text; Block domain
   wears burgundy with white text - the most serious
   step on the bar reads as the most serious. White on
   the amber measures 5.0:1 and on the burgundy
   10.8:1. Disabled takes the same plain gray as every
   other action button; the bar's standing fade rides
   on top of it. */
.app-shell .dc-bar .tb-action{border-radius:8px;}
.app-shell #dc-act-blockemail{background:#B45309;border-color:#B45309;color:#FFFFFF;}
.app-shell #dc-act-blockemail:hover:not([disabled]){background:#9A4307;border-color:#9A4307;color:#FFFFFF;}
.app-shell #dc-act-blockemail:active:not([disabled]){background:#843A05;border-color:#843A05;color:#FFFFFF;}
.app-shell #dc-act-blockdomain{background:#800020;border-color:#800020;color:#FFFFFF;}
.app-shell #dc-act-blockdomain:hover:not([disabled]){background:#6E001B;border-color:#6E001B;color:#FFFFFF;}
.app-shell #dc-act-blockdomain:active:not([disabled]){background:#5C0016;border-color:#5C0016;color:#FFFFFF;}
.app-shell #dc-act-blockemail[disabled],.app-shell #dc-act-blockdomain[disabled]{background:#E4E4E4;border-color:#AFAFAF;color:#666666;}

/* (v2.66, TB-1043) The ticket summary block: ONE shared
   card above the conversation on every ticket sheet -
   the customer Support thread, the back-office Inbox
   thread, and the back-office record's Support panel
   (rendered by tbTicketSummaryCard in site.js). Compact:
   short bullets, the shared section-title treatment for
   its block titles (small, letterspaced, brand green),
   and the green left rule the digest cards wear. Its
   dialogs ride the standard .tb-modal-overlay +
   .tb-confirmbox pattern above; the rules below only
   dress this card and its dialogs' own contents. */
.app-shell .tb-tsum-card{border:1px solid var(--tb-line);border-left:4px solid var(--tb-green);border-radius:var(--tb-radius);background:var(--tb-panel);padding:14px 16px;margin:0 0 14px;}
.app-shell .tb-tsum-block + .tb-tsum-block{margin-top:12px;padding-top:12px;border-top:1px solid var(--tb-line);}
.app-shell .tb-tsum-blockhead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
.app-shell .tb-tsum-blocktitle{margin:0;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--tb-green);font-weight:700;}
.app-shell .tb-tsum-details{border:0;background:none;padding:2px 0;color:var(--tb-green);font:inherit;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.app-shell .tb-tsum-details:hover{color:var(--tb-green-dark);}
/* (TB-1308) The summary card's old text Edit button is
   retired: editing rides the pencil in the sheet's top
   area (.tb-thr-pencil above). */
.app-shell .tb-tsum-list{margin:7px 0 0;padding-left:19px;}
.app-shell .tb-tsum-list li{line-height:1.5;font-size:14.5px;color:var(--tb-text);margin:3px 0;overflow-wrap:anywhere;}
.app-shell .tb-tsum-line{margin:7px 0 0;line-height:1.55;font-size:14.5px;color:var(--tb-text);}
.app-shell .tb-tsum-none{margin:7px 0 0;line-height:1.55;font-size:14.5px;color:var(--tb-muted);}
.app-shell .tb-tsum-time{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--tb-line);line-height:1.5;font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-tsum-dlg{max-width:560px;}
.app-shell .tb-tsum-dlgtitle{font-weight:600;padding-right:34px;}
.app-shell .tb-tsum-dlghead{margin:16px 0 5px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--tb-green);font-weight:700;}
.app-shell .tb-tsum-dlghead:first-of-type{margin-top:2px;}
.app-shell .tb-tsum-fulltext{margin:0;line-height:1.6;font-size:14.5px;color:var(--tb-text);white-space:pre-wrap;overflow-wrap:anywhere;}
.app-shell .tb-tsum-note{padding:10px 0;border-top:1px solid var(--tb-line);}
.app-shell .tb-tsum-notemeta{margin:0 0 4px;font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-tsum-dlg .tb-dlgfield .tb-note{margin:4px 0 0;}
.app-shell .tb-tsum-dlg textarea.tb-input{width:100%;box-sizing:border-box;}

/* (TB-1311) The ticket summary dialogs (the summary Edit
   dialog and the Details dialog) scroll as ONE surface:
   when the overlay holds one of these dialogs, the
   overlay itself is the scroller and the box grows to
   its full natural height. The old shape sized the box
   against 100vh and trapped a second scroll inside it;
   on a phone the visible height is less than 100vh, so
   the centered box's top sat under the browser chrome
   and could not be scrolled to. The editor's boxes also
   start taller here; site.js grows each one to fit its
   full text, so this floor is only an empty box's size. */
.app-shell .tb-modal-overlay:has(.tb-tsum-dlg){display:block;overflow-y:auto;overflow-x:hidden;padding:14px 12px;-webkit-overflow-scrolling:touch;}
.app-shell .tb-modal-overlay:has(.tb-tsum-dlg) .tb-tsum-dlg{margin:0 auto;max-height:none;overflow:visible;}
.app-shell .tb-tsum-dlg textarea.tb-input{min-height:132px;}

/* (v2.68, TB-1060) The live loop: presence, the
   assistant's conversation rows, the state pills,
   and the confirmation pop-up. */
.app-shell .tb-rws-presence{
  display:flex;align-items:center;gap:9px;
  margin-top:10px;}
.app-shell .tb-rws-sprout{
  width:34px;height:34px;flex:0 0 auto;
  border-radius:50%;}
.app-shell .tb-rws-presence-text{
  font-size:13px;color:var(--tb-muted);line-height:1.45;}
.app-shell .tb-rws-pill-pulled{
  background:#E8E8E8;color:var(--tb-text);}
.app-shell .tb-rws-pill-deploy{
  background:#E3EDF7;color:#2B4C7E;}
.app-shell .tb-rws-pill-deploy-deployed{
  background:var(--tb-soft);color:var(--tb-ok-text);}
.app-shell .tb-rws-pill-deploy-failed{
  background:#F9E3E1;color:var(--tb-danger-text);}
.app-shell .tb-rws-tstate{
  font-size:12.5px;color:var(--tb-muted);font-weight:600;}
.app-shell .tb-rws-pullednote{
  margin:10px 0 0;padding:9px 12px;font-size:13.5px;
  line-height:1.5;color:var(--tb-text);
  background:#F4F4F0;border-radius:8px;}
.app-shell .tb-rws-event.ev-assistant{
  display:flex;gap:9px;align-items:flex-start;}
.app-shell .tb-rws-avatar{
  width:30px;height:30px;flex:0 0 auto;
  border-radius:50%;margin-top:1px;}
.app-shell .tb-rws-event-main{flex:1;min-width:0;}
.app-shell .tb-rws-event.ev-assistant
  .tb-rws-event-body a{
  color:var(--tb-green);font-weight:600;}
.app-shell .tb-rws-event.ev-system{
  border-top:0;padding:5px 0;text-align:center;}
.app-shell .tb-rws-event-sysbody{
  font-size:12.5px;color:var(--tb-muted);
  line-height:1.45;margin:0;}
.app-shell .tb-rws-hint{
  font-size:12.5px;color:var(--tb-muted);
  line-height:1.5;margin:10px 2px 0;}
/* The confirmation pop-up: a small card over the
   workspace, Sprout at its left, the action and its
   consequence in plain words, Proceed and Cancel. */
.app-shell .tb-rws-confirmpop{
  position:absolute;inset:0;z-index:6;}
.app-shell .tb-rws-confirmpop[hidden]{display:none;}
.app-shell .tb-rws-confirm-scrim{
  position:absolute;inset:0;background:rgba(20,33,61,.34);}
.app-shell .tb-rws-confirm-card{
  position:absolute;left:12px;right:12px;bottom:12px;
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-radius:16px;padding:16px;
  box-shadow:0 24px 60px rgba(20,33,61,.30);}
@media (min-width:751px){
  .app-shell .tb-rws-confirm-card{
    left:50%;right:auto;bottom:auto;top:50%;
    transform:translate(-50%,-50%);width:min(440px,90%);}
}
.app-shell .tb-rws-confirm-sprout{
  width:52px;height:52px;border-radius:50%;
  float:left;margin:0 12px 6px 0;}
.app-shell .tb-rws-confirm-title{
  font-size:16px;font-weight:600;color:var(--tb-text);
  margin:10px 0 6px;}
.app-shell .tb-rws-confirm-text{
  font-size:14.5px;line-height:1.55;color:var(--tb-text);
  margin:0 0 6px;}
.app-shell .tb-rws-confirm-notewrap{clear:both;margin-top:8px;}
.app-shell .tb-rws-confirm-notewrap[hidden]{display:none;}
.app-shell .tb-rws-confirm-notelabel{
  font-size:13px;color:var(--tb-muted);margin:0 0 6px;}
.app-shell .tb-rws-confirm-note{width:100%;}
.app-shell .tb-rws-confirm-actions{
  clear:both;display:flex;gap:10px;margin-top:14px;
  justify-content:flex-end;}

/* ---- (v2.69, TB-1062) The Product Control Tower ----
   The room rides the review workspace's own shell
   shapes (scrim, sheet, head, notes, confirmation
   pop-up are the shared classes above); what follows
   is only what the Tower adds: the health strip, the
   cards and rows its five views render, and its
   warning states. Amber is the waiting/overdue color
   and red stays reserved for true errors, per the
   design system. */
.app-shell .tb-twr-wrap{position:fixed;inset:0;z-index:165;}
.app-shell .tb-twr-wrap[hidden]{display:none;}
.app-shell .tb-twr-sheet{
  position:absolute;inset:12px;background:var(--tb-panel);
  border:1px solid var(--tb-line);border-radius:16px;
  box-shadow:0 24px 60px rgba(20,33,61,.30);
  overflow:hidden;display:flex;flex-direction:column;
  animation:tb-sheet-in .18s ease-out;}
@media (min-width:751px){
  .app-shell .tb-twr-sheet{
    inset:auto;top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:min(860px,96vw);height:min(860px,92vh);
    animation:none;}
}
.app-shell .tb-twr-titlewrap{flex:1;text-align:center;}
.app-shell .tb-twr-subtitle{
  font-size:12.5px;color:var(--tb-muted);margin-top:1px;}
.app-shell .tb-twr-health{
  display:flex;gap:8px;flex-wrap:wrap;
  padding:12px 14px 4px;flex:0 0 auto;}
.app-shell .tb-twr-tile{
  flex:1 1 118px;text-align:left;cursor:pointer;
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);
  background:var(--tb-panel);padding:9px 11px;
  display:flex;flex-direction:column;gap:1px;}
.app-shell .tb-twr-tile.warn{
  border-color:#D9A821;background:#FDF6E0;}
.app-shell .tb-twr-tilelabel{
  font-size:11.5px;color:var(--tb-muted);
  text-transform:uppercase;letter-spacing:.4px;}
.app-shell .tb-twr-tilevalue{
  font-size:16px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-twr-tilesub{
  font-size:12px;color:var(--tb-muted);line-height:1.4;}
.app-shell .tb-twr-backupdetail{
  margin:8px 14px 0;border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);padding:10px 12px;background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell .tb-twr-backupdetail[hidden]{display:none;}
.app-shell .tb-twr-tabs{margin:12px 14px 0;flex:0 0 auto;}
.app-shell .tb-twr-body{
  overflow-y:auto;flex:1;padding:16px 14px 34px;}
.app-shell .tb-twr-card{
  border:1px solid var(--tb-line);background:var(--tb-panel);
  border-radius:var(--tb-radius);padding:16px;margin-bottom:14px;}
.app-shell .tb-twr-cardtitle{
  font-size:15.5px;font-weight:700;color:var(--tb-green);
  margin:0 0 10px;}
.app-shell .tb-twr-sectitle{
  font-size:16px;font-weight:700;color:var(--tb-green);
  margin:18px 0 10px;}
.app-shell .tb-twr-row{
  padding:10px 0;border-top:1px solid var(--tb-line);}
.app-shell .tb-twr-row:first-of-type{border-top:0;}
.app-shell .tb-twr-rowmain{font-size:15px;}
.app-shell .tb-twr-rowtitle{font-weight:600;}
.app-shell .tb-twr-ticketlink{
  color:var(--tb-green);font-weight:600;
  text-decoration:none;white-space:nowrap;}
.app-shell .tb-twr-ticketlink:hover{text-decoration:underline;}
.app-shell .tb-twr-rowmeta{
  font-size:13.5px;color:var(--tb-muted);
  margin:4px 0 0;line-height:1.5;}
.app-shell .tb-twr-rec{
  font-size:14px;margin:5px 0 0;line-height:1.5;}
.app-shell .tb-twr-actions{
  display:flex;gap:8px;flex-wrap:wrap;
  align-items:center;margin-top:10px;}
.app-shell .tb-twr-items{
  margin:8px 0 4px;padding-left:20px;
  font-size:14px;line-height:1.55;}
.app-shell .tb-twr-warn{
  font-size:13.5px;font-weight:600;color:#8A6D00;
  background:#FDF6E0;border:1px solid #D9A821;
  border-radius:8px;padding:6px 9px;margin:6px 0 0;
  display:inline-block;}
.app-shell .tb-twr-chip{
  font-size:12.5px;background:var(--tb-soft);
  color:var(--tb-green);padding:3px 8px;
  border-radius:6px;font-weight:600;}
.app-shell .tb-twr-chip.warn{
  background:#FDF6E0;color:#8A6D00;
  border:1px solid #D9A821;}
.app-shell .tb-twr-doorline{margin:0 0 6px;font-size:14.5px;}
.app-shell .tb-twr-doorbtn{margin:10px 0 0;}
.app-shell .tb-twr-restoreline{margin-top:6px;}

/* ---- (v2.69, TB-1062) Contextual help, the one
   component: a "?" trigger and a "How this works"
   link, both opening the standard white dialog.
   Built once in site.js; identical everywhere. */
.app-shell .tb-help-btn{
  flex:0 0 auto;width:30px;height:30px;border-radius:50%;
  border:1.5px solid var(--tb-green);background:#FFFFFF;
  color:var(--tb-green);font-weight:700;font-size:15px;
  cursor:pointer;line-height:1;padding:0;}
.app-shell .tb-help-btn:hover{background:var(--tb-soft);}
.app-shell .tb-help-link{
  background:none;border:0;padding:0;cursor:pointer;
  color:var(--tb-green);font-size:13.5px;font-weight:600;
  text-decoration:underline;}
.app-shell .tb-help-wrap{position:fixed;inset:0;z-index:240;}
.app-shell .tb-help-wrap[hidden]{display:none;}
.app-shell .tb-help-scrim{
  position:absolute;inset:0;background:rgba(20,33,61,.34);}
.app-shell .tb-help-card{
  position:absolute;left:12px;right:12px;bottom:12px;
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-radius:16px;padding:16px;max-height:82vh;
  display:flex;flex-direction:column;
  box-shadow:0 24px 60px rgba(20,33,61,.30);}
@media (min-width:751px){
  .app-shell .tb-help-card{
    left:50%;right:auto;bottom:auto;top:50%;
    transform:translate(-50%,-50%);width:min(560px,94vw);}
}
.app-shell .tb-help-head{
  display:flex;align-items:center;gap:8px;}
.app-shell .tb-help-title{
  flex:1;font-size:16.5px;font-weight:700;
  color:var(--tb-text);}
.app-shell .tb-help-body{overflow-y:auto;margin-top:6px;}
.app-shell .tb-help-para{
  font-size:14.5px;line-height:1.6;margin:0 0 10px;}
.app-shell .tb-help-actions{
  display:flex;justify-content:flex-end;margin-top:6px;}
.app-shell .tb-twr-helprow{
  display:flex;justify-content:flex-end;margin:0 0 10px;}
.app-shell .tb-rws-confirm-helprow{
  display:flex;justify-content:flex-end;margin-top:8px;}
.app-shell .tb-twr-checkrow{
  display:flex;gap:10px;align-items:flex-start;
  padding:8px 0;border-top:1px solid var(--tb-line);
  font-size:14.5px;cursor:pointer;}
.app-shell .tb-twr-check{width:19px;height:19px;margin-top:1px;flex:0 0 auto;}
.app-shell .tb-twr-vrow{
  display:flex;gap:8px;align-items:center;margin:12px 0 0;}
.app-shell .tb-twr-vin{width:90px;}
.app-shell .tb-twr-deskhead{
  display:flex;align-items:baseline;gap:14px;}
.app-shell .tb-action[disabled]{opacity:.45;cursor:default;}

/* (v2.69) The row a ticket sheet's In queue button
   landed on: one quiet ring, then it rests. */
.tb-twr-flash {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 10px;
}

/* (v2.69) Paperclip + in-sheet attachment viewer. */
.tb-clip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  flex: none;
}
.tb-clip-btn svg { width: 18px; height: 18px; }
.tb-clip-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.tb-viewer-wrap {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 33, 61, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tb-viewer-card {
  background: #fff;
  border-radius: 14px;
  max-width: min(680px, 100%);
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.tb-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tb-viewer-cap {
  font-weight: 600;
  color: #14213D;
  word-break: break-all;
}
.tb-viewer-stage {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-viewer-img {
  max-width: 100%;
  max-height: 64vh;
  border-radius: 8px;
}
.tb-viewer-file { color: #44546A; margin: 18px 6px; }
.tb-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.tb-viewer-count { color: #6B7A90; font-size: 13px; }


/* ==========================================================================
   (v2.70) Public website live chat
   Only the pieces that are new live here. The chat sheet itself
   is the standard sheet: visitor-chat.js mounts it inside an
   .app-shell scope, so every sheet and chat rule above applies
   to it unchanged - one component, one stylesheet.
   ========================================================================== */

/* The scope the visitor sheet mounts in: the shell's design
   variables and rules, without the shell's own page layout. */
.tb-visitor-scope{background:transparent;min-height:0;}

/* The launcher: Sprout and the words, bottom right, above
   the page and below the sheet. */
/* (v3.77, TB-1351) The visitor chat launcher is the settled
   header Sprout icon: one small round button at the top
   right of the header, mirroring the back office's
   .app-shell .tb-hdr-btn / .tb-hdr-sprout (v3.75, TB-1323).
   The fixed bottom pill it replaces (195x50, "Chat with
   our team") permanently covered live content - the home
   footer Privacy link and the tagline, onboarding's
   Continue with Google button, welcome's Back-home
   button, a Help FAQ heading - so it is gone entirely,
   and with it the coverage problem. The button is in-flow
   in the nav row (visitor-chat.js appends it to .navrow),
   so it can never overlay page content at any width. */
.tb-visitor-hdricon{
  font:inherit;width:40px;height:40px;border-radius:50%;
  background:#FFFFFF;border:1px solid rgba(20,33,61,.16);
  padding:0;cursor:pointer;display:inline-flex;
  align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(20,33,61,.12);
  flex:none;margin-left:12px;position:relative;}
.tb-visitor-hdricon:focus-visible{
  outline:3px solid var(--navy);outline-offset:2px;}
.tb-visitor-hdricon .tb-hdr-sprout-img{
  width:31px;height:31px;border-radius:50%;display:block;}
.tb-visitor-hdricon .tb-visitor-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--green);border:2px solid #FFFFFF;
  position:absolute;top:1px;right:1px;}
/* Fallback for a page with no .navrow: a small fixed icon
   at the TOP right - never a bottom pill. */
.tb-visitor-hdricon-fixed{
  position:fixed;top:12px;right:12px;z-index:140;
  margin-left:0;}
@media (max-width:480px){
  .tb-visitor-hdricon{margin-left:8px;}
}

/* (v3.79, Oct 24, 2026) The fixed bottom pill is back,
   alongside the header icon above (this supersedes the
   "gone entirely" note in the v3.77 comment): Trevor's
   call - a first-time visitor cannot know the unlabeled
   header Sprout opens a chat, and ChatGPT's visitor-chat
   testing made the gap plain. Original geometry and
   z-index 140, so it sits above the page and below the
   sheet (z 260) and the open sheet covers it, exactly as
   before. Offsets are safe-area aware so the pill never
   hugs a phone's home bar or side notch. */
.tb-visitor-launcher{
  position:fixed;
  right:calc(16px + env(safe-area-inset-right, 0px));
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  z-index:140;
  display:flex;align-items:center;gap:9px;
  background:var(--green);color:#FFFFFF;border:0;
  border-radius:10px;padding:10px 18px 10px 12px;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer;
  box-shadow:0 10px 28px rgba(20,33,61,.28);}
.tb-visitor-launcher:hover{background: var(--green-dark);}
.tb-visitor-launcher:focus-visible{
  outline:3px solid var(--navy);outline-offset:2px;}
.tb-visitor-launcher img{width:30px;height:30px;display:block;}
.tb-visitor-launcher .tb-visitor-dot{
  width:10px;height:10px;border-radius:50%;
  background:#FFFFFF;border:2px solid var(--green);
  position:absolute;top:2px;right:6px;}
@media (max-width:480px){
  .tb-visitor-launcher{
    right:calc(12px + env(safe-area-inset-right, 0px));
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    font-size:14px;}
}

/* The visitor sheet's own rows, inside the standard sheet. */
.app-shell .tb-visitor-head{gap:10px;}
.app-shell .tb-visitor-headimg{width:34px;height:34px;
  flex:0 0 auto;}
.app-shell .tb-visitor-end{
  margin-left:auto;background:none;border:0;color:var(--tb-muted);
  font-size:13px;padding:6px 4px;cursor:pointer;white-space:nowrap;}
.app-shell .tb-visitor-end[data-confirm="1"]{
  color:var(--tb-danger-text);font-weight:700;}
.app-shell .tb-visitor-status{
  margin:0;padding:10px 16px 0;font-size:13.5px;
  color:var(--tb-muted);}
.app-shell .tb-visitor-smallprint{
  margin:0;padding:4px 16px 10px;font-size:12px;line-height:1.5;
  color:var(--tb-muted);border-bottom:1px solid var(--tb-line);}
.app-shell .tb-visitor-joined{
  margin:10px 16px 0;padding:9px 12px;border-radius:10px;
  background:var(--tb-soft);color:var(--tb-green-dark);
  font-size:13.5px;font-weight:600;}
/* (Oct 27, 2026) The website chat's admin bar: pending
   reads as a quiet notice; on (tb-admin-on) it takes
   the brand green so the state is unmistakable. */
.app-shell .tb-visitor-adminbar{
  margin:10px 16px 0;padding:9px 12px;border-radius:10px;
  background:var(--light-sage);color:var(--ink);
  font-size:13.5px;font-weight:600;}
.app-shell .tb-visitor-adminbar.tb-admin-on{
  background:var(--green);color:#FFFFFF;}
.app-shell .tb-visitor-adminbar[hidden]{display:none;}
.app-shell .tb-visitor-banner{
  margin:10px 16px 0;padding:10px 12px;border-radius:10px;
  background:var(--light-sage);color:var(--ink);
  font-size:13.5px;display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;}
.app-shell .tb-visitor-banner[hidden]{display:none;}
.app-shell .tb-visitor-back{
  background:var(--green);color:#FFFFFF;border:0;
  border-radius:999px;padding:5px 14px;font-weight:700;
  cursor:pointer;}
.app-shell .tb-visitor-handoff{
  margin:10px 16px 0;align-self:flex-start;background:#FFFFFF;
  border:1px solid var(--tb-green);color:var(--tb-green);
  border-radius:999px;padding:7px 16px;font-weight:700;
  cursor:pointer;}
.app-shell .tb-visitor-ended{
  margin:0;padding:12px 16px 16px;color:var(--tb-muted);
  font-size:13.5px;}
/* (v3.26, TB-1223) The ended line's way forward: an
   ended chat always offers the fresh start, never a
   bare dead end. */
.app-shell .tb-visitor-newchat{
  background:none;border:0;color:var(--tb-green);
  font:inherit;font-weight:700;cursor:pointer;
  padding:0;text-decoration:underline;
  text-underline-offset:2px;}

/* The name card: one gentle question, skippable. */
.app-shell .tb-visitor-namecard{
  margin:10px 16px 0;padding:12px;border-radius:12px;
  border:1px solid var(--tb-line);background:#FFFFFF;}
.app-shell .tb-visitor-namelabel{
  display:block;font-weight:600;margin-bottom:8px;}
.app-shell .tb-visitor-namerow{display:flex;gap:8px;
  flex-wrap:wrap;}
.app-shell .tb-visitor-namerow input{
  flex:1 1 150px;background:var(--light-sage);border:1px solid
  var(--tb-line);border-radius:10px;padding:8px 12px;font:inherit;}
.app-shell .tb-visitor-namesave{
  background:var(--green);color:#FFFFFF;border:0;
  border-radius:999px;padding:8px 16px;font-weight:700;
  cursor:pointer;}
.app-shell .tb-visitor-nameskip{
  background:none;border:0;color:var(--tb-muted);
  padding:8px 6px;cursor:pointer;}

/* The back-office waiting banner: slim, green, one action. */
.tb-visitor-waitbar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:var(--green);color:#FFFFFF;
  padding:8px 16px;font-size:14px;}
.tb-visitor-waitbar[hidden]{display:none;}
.tb-visitor-waitbar a{
  color:#FFFFFF;font-weight:700;text-decoration:underline;
  text-underline-offset:2px;}
.tb-visitor-waitbar .tb-visitor-waitbar-count{
  background:#FFFFFF;color:var(--green);border-radius:999px;
  font-weight:700;padding:0 9px;line-height:1.6;}
/* (v2.76, TB-1108 stages) The banner's longest-wait words
   ride a marker chip once a wait grows: amber at 5
   minutes, red at 8 - the same stages the Choose list's
   timers wear as colored text. */
.tb-visitor-waitbar-wait{font-weight:600;}
.tb-visitor-waitbar-wait.tb-wait-warn{
  background:#F5A623;color:#14213D;border-radius:999px;
  padding:1px 9px;}
.tb-visitor-waitbar-wait.tb-wait-late{
  background:#C62828;color:#FFFFFF;border-radius:999px;
  padding:1px 9px;}
.tb-visitor-queue-timer.tb-wait-ok{color:var(--tb-text);}
.tb-visitor-queue-timer.tb-wait-warn{color:#B45309;}
.tb-visitor-queue-timer.tb-wait-late{color:#C62828;}

/* The admin visitor panel, in the thread view's rail. */
.app-shell .tb-visitor-panel{
  border:1px solid var(--tb-line);border-radius:12px;
  background:#FFFFFF;padding:14px;margin-top:14px;}
.app-shell .tb-visitor-panel h3{
  margin:0 0 8px;font-size:14px;color:var(--tb-green-dark);}
.app-shell .tb-visitor-panel .tb-vp-row{
  margin:0 0 6px;font-size:13.5px;line-height:1.5;}
.app-shell .tb-visitor-panel .tb-vp-label{
  color:var(--tb-muted);font-size:12px;text-transform:uppercase;
  letter-spacing:.4px;display:block;}
.app-shell .tb-visitor-panel ol{
  margin:4px 0 8px;padding-left:20px;font-size:13.5px;
  line-height:1.55;}
.app-shell .tb-visitor-panel .tb-vp-actions{
  display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.app-shell .tb-visitor-panel select{
  width:100%;padding:8px 10px;border:1px solid var(--tb-line);
  border-radius:10px;background:#FFFFFF;font:inherit;}
.app-shell .tb-visitor-panel .tb-vp-note{
  font-size:12.5px;color:var(--tb-muted);margin:6px 0 0;}

/* The Settings page-list editor rows. */
.app-shell .tb-visitor-page-row{
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
  margin-bottom:8px;}
.app-shell .tb-visitor-page-row input[type="text"]{
  flex:1 1 130px;background:var(--light-sage);
  border:1px solid var(--tb-line);border-radius:10px;
  padding:8px 12px;font:inherit;}
.app-shell .tb-visitor-page-row .tb-vp-path{flex:1 1 110px;}

/* ==========================================================================
   (v2.72, CHAT UNIFICATION) The master chat component.
   One header, one composer, one presence pattern, one
   stacking scale - every chat surface (the feedback
   sheet, the dashboard Support thread, the back-office
   chat pane, the Review Workspace, the digest panel,
   the public visitor sheet) inherits from the rules
   below. Role differences live in the surfaces' own
   markup (an operator actions menu, a visitor's End
   chat), never in a forked look.

   THE STACKING SCALE (one scale for every overlay):
     page chrome (topbar 160, drawer 190)     <= 190
     SHEETS (sheetwrap, osheet, rws, tower)     = 260
     SEND SHEET                                 = 310
     MODALS / CONFIRM / MESSAGE MENU            = 320-330
     HELP POP-UP                                = 340
     SAVED / ERROR BANNERS (toasts)             = 350
   Before this block the feedback sheet sat at 150 -
   BELOW the admin topbar (160) - so breadcrumbs and
   headings painted (and hit-tested) over the sheet's
   corner, and any chrome in the 160-300 band could
   cover a sheet control. Sheets now sit above all
   page chrome in both shells, at every width.
   ========================================================================== */
.app-shell .tb-sheetwrap{z-index:260;}
.app-shell .tb-osheet.tb-sheet-active{z-index:260;}
.app-shell .tb-rws-wrap{z-index:260;}
.app-shell .tb-twr-wrap{z-index:260;}
.app-shell .tb-sendwrap{z-index:310;}
.app-shell .tb-modal-overlay{z-index:320;}
.app-shell .tb-receipt-overlay{z-index:320;}
.app-shell .tb-chat-msgmenu{z-index:330;}
.app-shell .tb-help-wrap{z-index:340;}
.tb-saved-banner{z-index:350;}

/* ---- The master chat header ----------------------------------
   A branded green band. On sheets, Sprout's medallion
   FLOATS over the top of the window (straddling the
   sheet's top edge, Muse-app shape); on panes and
   panels the same medallion straddles the band's top
   edge inside a reserved crown strip, so it never
   covers content. Title and state words sit on the
   green in white; controls on the green are white. */
.app-shell .tb-chathead{
  background:var(--tb-green);color:#FFFFFF;
  border-bottom:0;position:relative;}
.app-shell .tb-chathead .tb-sheettitle{
  color:#FFFFFF;}
.app-shell .tb-chathead .tb-presence-name{color:#FFFFFF;}
.app-shell .tb-chathead .tb-presence-status{
  color:rgba(255,255,255,.88);}
.app-shell .tb-chathead .tb-sheetbtn{color:#FFFFFF;}
.app-shell .tb-chathead .tb-sheetback{color:#FFFFFF;}
.app-shell .tb-chathead .tb-sheetback span{color:#FFFFFF;}
.app-shell .tb-chathead .tb-visitor-end{
  color:rgba(255,255,255,.92);}
.app-shell .tb-chathead .tb-visitor-end[data-confirm="1"]{
  color:#FFFFFF;font-weight:700;}
/* The floating medallion: transparent v2 Sprout on the
   sage disc with a white ring - one treatment on every
   surface, never a baked beige square. */
.app-shell .tb-chatmedallion{
  border-radius:50%;background:var(--light-sage);
  border:3px solid #FFFFFF;
  box-shadow:0 6px 18px rgba(20,33,61,.28);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;flex:0 0 auto;}
.app-shell .tb-chatmedallion img{
  width:100%;height:100%;object-fit:cover;display:block;}
/* Sheet form: the presence column centers on the green;
   the disc grows to medallion size and straddles the
   sheet's top edge. The sheet head gains top padding so
   the title never collides with the disc. */
.app-shell .tb-feedbackwrap.tb-chatmode .tb-sheet{
  overflow:visible;}
.app-shell .tb-feedbackwrap.tb-chatmode .tb-sheetbody{
  border-radius:0 0 16px 16px;}
.app-shell .tb-chatmode .tb-sheethead.tb-chathead{
  border-radius:16px 16px 0 0;padding-top:26px;}
.app-shell .tb-chatmode .tb-presence{
  flex-direction:column;align-items:center;gap:3px;}
.app-shell .tb-chatmode .tb-presence-disc{
  width:72px;height:72px;margin-top:-14px;
  border-radius:50%;background:var(--light-sage);
  border:3px solid #FFFFFF;
  box-shadow:0 6px 18px rgba(20,33,61,.28);}
.app-shell .tb-chatmode .tb-presence-disc img.tb-pip{
  width:100%;height:100%;object-fit:cover;}
@media (max-height:480px){
  .app-shell .tb-chatmode .tb-presence-disc{
    width:44px;height:44px;margin-top:-10px;}
  .app-shell .tb-chatmode .tb-sheethead.tb-chathead{
    padding-top:16px;}
}
/* Visitor sheet: same green band; the header mark becomes
   the floating medallion over the sheet's top edge,
   centered; the title centers under it. */
.app-shell .tb-visitorwrap .tb-sheet{overflow:visible;}
.app-shell .tb-visitorwrap .tb-sheetbody{
  border-radius:0 0 16px 16px;}
.app-shell .tb-visitorwrap .tb-visitor-head.tb-chathead{
  border-radius:16px 16px 0 0;padding-top:90px;
  justify-content:center;}
.app-shell .tb-visitor-head .tb-sheettitle{
  text-align:center;color:#FFFFFF;}
.app-shell .tb-visitor-headimg{
  width:72px;height:72px;
  border:3px solid #FFFFFF;border-radius:50%;
  box-shadow:0 6px 18px rgba(20,33,61,.28);
  background:var(--light-sage);object-fit:cover;
  padding:0;
  position:absolute;left:50%;transform:translateX(-50%);
  top:10px;}
.app-shell .tb-visitor-head{position:relative;}
.app-shell .tb-visitor-head .tb-visitor-end{
  position:absolute;right:52px;top:50%;
  transform:translateY(-50%);}
.app-shell .tb-visitor-head .tb-sheetbtn{
  position:absolute;right:8px;top:50%;
  transform:translateY(-50%);}
/* Pane/panel form (back-office pane, Support thread,
   digest panel): a crown strip reserves the medallion's
   space above the band; nothing is ever covered. */
.tb-chatband{
  background:var(--tb-green);color:#FFFFFF;
  border-radius:12px;padding:10px 14px;
  display:flex;align-items:center;gap:11px;
  position:relative;}
.tb-chatband .tb-chatmedallion{
  width:52px;height:52px;margin-top:-24px;}
.tb-chatband-crown{height:26px;}
.tb-chatband .tb-chatband-name{
  font-size:15.5px;font-weight:700;color:#FFFFFF;
  line-height:1.25;}
.tb-chatband .tb-chatband-status{
  font-size:12.5px;color:rgba(255,255,255,.88);
  line-height:1.3;}
.tb-chatband .tb-chatband-side{
  margin-left:auto;display:flex;align-items:center;
  gap:8px;}

/* ---- Messages: one density, one rhythm ------------------------
   Comfortable messaging-app spacing; avatars at one
   size on every surface (36px), always the transparent
   v2 art on the sage medallion for the assistant. */
.app-shell .tb-chat-avatar{
  width:36px;height:36px;border-radius:50%;
  background:var(--light-sage);object-fit:cover;}
.app-shell .tb-chat-group{margin:12px 0 2px;}
.app-shell .tb-chat-bubble{
  border-radius:18px;padding:10px 14px;line-height:1.5;}
.app-shell .tb-chat-list{
  padding:16px 4px 10px;scroll-padding-top:16px;
  scroll-padding-bottom:24px;}
.app-shell .tb-feedbackwrap.tb-chatmode .tb-chat-list{
  padding-left:14px;padding-right:14px;}
/* The tail typing bubble: three dots, opacity pulse
   only (no bounce, ever), in the ordinary list flow. */
.app-shell .tb-chat-typingbubble{
  display:inline-flex;align-items:center;gap:5px;
  padding:12px 16px;min-width:58px;justify-content:center;}
.app-shell .tb-chat-dot{
  width:8px;height:8px;border-radius:50%;
  background:#8FAE94;opacity:.35;
  animation:tb-chat-dotpulse 1.2s ease-in-out infinite;}
.app-shell .tb-chat-dot:nth-child(2){
  animation-delay:.18s;}
.app-shell .tb-chat-dot:nth-child(3){
  animation-delay:.36s;}
@keyframes tb-chat-dotpulse{
  0%,60%,100%{opacity:.35;}
  30%{opacity:1;}
}
@media (prefers-reduced-motion:reduce){
  .app-shell .tb-chat-dot{animation:none;opacity:.7;}
}

/* ---- Composer: slim, grows, never covers ----------------------
   The list always reserves bottom clearance equal to
   the composer card plus air, on every surface. */
.app-shell .tb-chat-composercard{
  box-shadow:0 -6px 18px rgba(20,33,61,.05);}
.app-shell .tb-chanpane-chat .tb-chat-list{
  padding-bottom:30px;}
.app-shell .tb-chanpane-composer{
  background:var(--tb-panel);}
/* The operator pane's composer is the master composer:
   its textarea is the plain .tb-chat-input pill (the
   v2.71 fork mixed in .tb-input, whose 95px min-height
   and sage form-field styling made the tall box). */
.app-shell .tb-chanpane-composer .tb-chat-input{
  min-height:0;background:#FFFFFF;resize:none;}

/* ---- Visitor sheet geometry -----------------------------------
   The platform chat standard (the planner sheet and the
   media Sprout panel): a right-docked panel,
   min(400px, 100%), full height, at every width. On a
   phone the dock resolves to the full screen. */
.app-shell .tb-visitorwrap .tb-sheet{
  inset:0 0 0 auto;top:0;right:0;bottom:0;left:auto;
  transform:none;width:min(400px,100%);max-width:100%;
  height:100dvh;max-height:100dvh;border-radius:0;
  border-top:0;border-right:0;border-bottom:0;
  box-shadow:-14px 0 44px rgba(16,26,32,.28);}

/* ---- Waiting queue picker (back office) ------------------------
   The banner's list: every waiting visitor, longest
   wait first, timers ticking once a second. */
.tb-visitor-queue{
  position:absolute;top:calc(100% + 6px);left:12px;
  z-index:330;min-width:320px;max-width:92vw;
  background:#FFFFFF;color:var(--tb-text);
  border:1px solid var(--tb-line);border-radius:16px;
  box-shadow:0 24px 60px rgba(20,33,61,.30);
  padding:8px;overflow:auto;max-height:60vh;}
.tb-visitor-queue[hidden]{display:none;}
.tb-visitor-queue-row{
  display:flex;align-items:center;gap:10px;width:100%;
  background:none;border:0;border-radius:10px;
  padding:10px 12px;font:inherit;text-align:left;
  cursor:pointer;color:var(--tb-text);}
.tb-visitor-queue-row:hover{background:var(--tb-soft);}
.tb-visitor-queue-name{font-weight:700;font-size:14.5px;color:var(--tb-text);}
.tb-visitor-queue-page{
  font-size:12.5px;color:var(--tb-muted);}
.tb-visitor-queue-wait{
  margin-left:auto;font-weight:700;font-size:13.5px;
  color:var(--tb-green-dark);white-space:nowrap;
  font-variant-numeric:tabular-nums;}
.tb-visitor-waitbar{position:relative;}

/* (v2.72 frame standard) The shared sheet frame's header
   is the brand-green bar on EVERY sheet the frame
   carries - doors, report, chat - not chat alone
   (Trevor, Oct 20: the popups' tops match the waiting
   banner's green). Titles and controls sit on the
   green in white. Chat mode adds the floating Sprout. */
.app-shell .tb-feedbackwrap .tb-sheethead{
  background:var(--tb-brand);color:#FFFFFF;
  border-bottom:0;}
.app-shell .tb-feedbackwrap .tb-sheettitle{
  color:#FFFFFF;}
.app-shell .tb-feedbackwrap .tb-sheetbtn{color:#FFFFFF;}
.app-shell .tb-feedbackwrap .tb-sheetback{color:#FFFFFF;}
/* The header medallion: transparent v2 art on a clean
   WHITE disc (no beige, no tint) with a soft shadow. */
.app-shell .tb-chatmode .tb-presence-disc{
  background:#FFFFFF;}
.app-shell .tb-visitor-headimg{background:#FFFFFF;}
.app-shell .tb-chatband .tb-chatmedallion{
  background:#FFFFFF;}
/* Panel-style sheets (the osheet frame in both shells)
   wear the same bar as an inset rounded band at the
   panel's top, sticky while the panel scrolls; the
   sheet's X and Back ride on it in white. */
.tb-sheetband{
  background:var(--tb-brand);color:#FFFFFF;
  border-radius:12px;padding:12px 16px;
  display:flex;align-items:center;gap:10px;
  position:sticky;top:0;z-index:5;margin-bottom:14px;}
.tb-sheetband .tb-sheetband-title{
  font-size:16px;font-weight:700;color:#FFFFFF;
  line-height:1.3;}
.tb-sheetband .tb-sheetband-status{
  font-size:12.5px;color:rgba(255,255,255,.88);}
.tb-sheetband .tb-chatmedallion{
  width:46px;height:46px;background:#FFFFFF;}
/* The back-office pane head becomes the same band:
   the other party's name on the green, their state
   line under it, Sprout's medallion when the front
   desk is a participant. */
.app-shell .tb-chanpane-head{
  background:var(--tb-brand);color:#FFFFFF;
  border-radius:12px;padding:12px 14px;}
.app-shell .tb-chanpane-head .tb-chanpane-name{
  color:#FFFFFF;}
.app-shell .tb-chanpane-head .tb-chanpane-sub{
  color:rgba(255,255,255,.88);}
.app-shell .tb-chanpane-status{
  font-size:12.5px;color:rgba(255,255,255,.88);
  margin:2px 0 0;}
/* Sprout in the pane head is a presence medallion,
   never the artwork's intrinsic size. */
.app-shell .tb-chanpane-sprout{
  width:52px;height:52px;object-fit:contain;
  margin:4px 0 0;}
/* The queue rows keep the panel's ink: the banner's
   own link color must not wash them out. */
.tb-visitor-queue-row{color:var(--tb-text);}
.tb-visitor-queue-timer{
  color:var(--tb-green);font-weight:700;
  font-variant-numeric:tabular-nums;}

/* ===== (v2.74) Admin dashboard refresh =====
   Whole-card click-through in the mailbox-row grammar,
   inline attention rows, and clickable funnel rows.
   (The five-across band's two-across phone layout is
   the TB-1081 rule above, shipped in v2.73.) */
.app-shell .tb-statlink{cursor:pointer;position:relative;
  text-align:left;font:inherit;color:inherit;
  padding-right:38px;}
.app-shell .tb-statlink:hover{border-color:var(--tb-green);}
.app-shell .tb-statlink:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .tb-statlink::after{content:"\203A";
  position:absolute;right:15px;top:50%;
  transform:translateY(-50%);color:var(--tb-green);
  font-size:21px;font-weight:700;line-height:1;}
.app-shell .tb-userlink.tb-attnrow{display:flex;
  align-items:center;gap:10px;width:100%;
  min-height:44px;padding:8px 2px;text-align:left;}
.app-shell .tb-attnrow .tb-custavatar{flex:0 0 auto;}
/* (Admin home round) Sprout's dock, calibrated: the
   bubble sits a touch lower and further right than
   before (bottom 18px to 10px, right 18px to 12px;
   14px to 8px at phone widths), still the same 88px
   figure on his opaque disc. What keeps him off the
   content is the room the page keeps for him: the
   shell's column ends with clearance below its last
   row, and on the home page the attention rows keep
   their text out of his lane at phone widths, so no
   scroll position can park a line of text under
   the disc. */
.app-shell main.tb-main{padding-bottom:124px;}
@media (max-width:900px){
  #ad-view-home .tb-attnrow{padding-right:112px;}}
/* The Platform pulse grid: quiet readout tiles in
   the stat family's dress. */
.app-shell .ad-pulse-grid{display:grid;
  grid-template-columns:repeat(3,1fr);gap:14px 22px;
  margin-top:6px;}
.app-shell .ad-pulse-num{font-size:22px;font-weight:600;
  letter-spacing:-.4px;color:var(--tb-text);
  line-height:1.25;}
.app-shell .ad-pulse-label{font-size:12.5px;font-weight:600;
  color:var(--tb-green);margin-top:1px;}
.app-shell .ad-pulse-def{font-size:12.5px;
  color:var(--tb-muted);margin-top:2px;line-height:1.45;}
.app-shell .ad-pulse-lines{margin-top:12px;}
.app-shell .ad-pulse-line{font-size:13.5px;margin:4px 0;}
@media (max-width:700px){
  .app-shell .ad-pulse-grid{
    grid-template-columns:1fr 1fr;gap:12px 16px;}}
/* (v2.99) The pulse landing composition: hero tiles
   lead with the lifetime figure, the week and today
   ride beneath it as a quiet sub-line, and the "at
   work" band runs four across. The presence strip is
   a plain panel above the stat band. */
.app-shell .ad-pulse-sub{font-size:12.5px;font-weight:600;
  color:var(--tb-text);margin-top:2px;}
.app-shell .ad-pulse-hero .ad-pulse-num{font-size:31px;
  letter-spacing:-.6px;}
.app-shell .ad-pulse-grid-4{
  grid-template-columns:repeat(4,1fr);}
@media (max-width:700px){
  .app-shell .ad-pulse-grid-4{
    grid-template-columns:1fr 1fr;}}
@media (min-width:901px){
  .app-shell .ad-pulse-grid-4 > .ad-pulse-stat:nth-child(3n){
    padding-right:0;}
  .app-shell .ad-pulse-grid-4 > .ad-pulse-stat:nth-child(4n){
    padding-right:64px;}}
.app-shell .ad-presence{margin-bottom:18px;}
.app-shell .ad-presence .tb-attnrow{width:100%;
  text-align:left;}
/* Sprout's corner lane for the home's full-width
   lines (v2.99, same treatment as the v2.97 stat
   grids): at phone widths the pulse lines and the
   presence rows wrap before the bubble's corner, so
   their words never run underneath it. */
@media (max-width:900px){
  .app-shell .ad-pulse-lines .ad-pulse-line{
    padding-right:76px;}}
/* (Admin home round) The two dashboard homes wear the
   connected folder shape in full: the strip sits on
   its body with no gap beneath the baseline, the body
   is one white surface whose top edge is the strip's
   own line, and the panels inside read as sections of
   that surface, divided by their own spacing - the
   same construction on the admin home and the
   customer dashboard, so the pair cannot drift. */
.app-shell #ad-hometabs,
.app-shell #dash-hometabs{margin-bottom:0;}
.app-shell #ad-tab-overview,
.app-shell #ad-tab-analytics,
.app-shell #dash-tab-overview,
.app-shell #dash-tab-activity,
.app-shell #dash-tab-events{
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-top:0;border-radius:0 14px 14px 14px;
  padding:20px 20px 8px;margin-bottom:22px;}
.app-shell #ad-tab-overview .tb-panel,
.app-shell #ad-tab-analytics .tb-panel,
.app-shell #dash-tab-overview .tb-panel,
.app-shell #dash-tab-activity .tb-panel,
.app-shell #dash-tab-events .tb-panel{
  border:0;border-radius:0;background:transparent;
  padding:0;box-shadow:none;}
@media (max-width:700px){
  .app-shell #ad-tab-overview,
  .app-shell #ad-tab-analytics,
  .app-shell #dash-tab-overview,
  .app-shell #dash-tab-activity,
  .app-shell #dash-tab-events{
    padding:16px 14px 4px;}}
/* (Admin home round) The home's right-hand furniture
   keeps out of Sprout's lane at phone widths: a panel
   head's count pill or note, and the pulse grid's
   right column, stop short of the corner his disc
   docks in, so no scroll position can park them
   under it. (The attention rows carry their own lane
   above; the stat tiles' short lines sit clear at
   every resting position.) */
@media (max-width:900px){
  #ad-view-home .tb-panelhead{padding-right:70px;}
  .app-shell .ad-pulse-grid > .ad-pulse-stat:nth-child(even){
    padding-right:70px;}}
@media (min-width:901px){
  .app-shell .ad-pulse-grid > .ad-pulse-stat:nth-child(3n){
    padding-right:64px;}}
/* (TB-1300) On phones the pulse stats stop being a
   two-column wall of text: the grid goes to a single
   column and each stat stands as its own card, number
   first, the way the compositions draw their cards.
   The definitions stay (ruling B-1): each rides
   inside its card as the caption. */
@media (max-width:700px){
  .app-shell .ad-pulse-grid,
  .app-shell .ad-pulse-grid-4{
    grid-template-columns:1fr;gap:10px;}
  .app-shell .ad-pulse-grid > .ad-pulse-stat,
  .app-shell .ad-pulse-grid-4 > .ad-pulse-stat{
    border:1px solid var(--tb-line);border-radius:12px;
    background:#FFFFFF;padding:12px 14px;}
  .app-shell .ad-pulse-grid > .ad-pulse-stat:nth-child(even){
    padding-right:14px;}}
.app-shell .tb-attntext{flex:1 1 auto;min-width:0;}
.app-shell .tb-attnrow::after{content:"\203A";
  margin-left:auto;color:var(--tb-green);
  font-size:21px;font-weight:700;line-height:1;}
.app-shell li.tb-funnelrow{cursor:pointer;}
.app-shell li.tb-funnelrow:hover{
  background:var(--tb-soft);}
.app-shell li.tb-funnelrow:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}

/* (v2.74, reworked in v2.82) The sheet band and the
   sheet's close X. The band (TB-1102) is sticky with
   z-index 5 and paints over the X (.tb-dlgx,
   absolutely placed at the panel's top-right corner
   for the old header): only a sliver of the X showed
   above the band's top edge, on the ticket sheets of
   both shells (Trevor's Oct 20 exhibit). The v2.74
   perch - the X as the band's next sibling, pulled
   up over the band's right end by a negative top
   margin - collapsed pp-shell .tb-attnrow::after{content:"\203A";
  margin-left:auto;color:var(--tb-green);
  font-size:21px;font-weight:700;line-height:1;}
.app-shell li.tb-funnelrow{cursor:pointer;}
.app-shell li.tb-funnelrow:hover{
  background:var(--tb-soft);}
.app-shell li.tb-funnelrow:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}

/* (v2.74, reworked in v2.82) The sheet band and the
   sheet's close X. The band (TB-1102) is sticky with
   z-index 5 and paints over the X (.tb-dlgx,
   absolutely placed at the panel's top-right corner
   for the old header): only a sliver of the X showed
   above the band's top edge, on the ticket sheets of
   both shells (Trevor's Oct 20 exhibit). The v2.74
   perch - the X as the band's next sibling, pulled
   up over the band's right end by a negative top
   margin - collapsed the flow space under the band
   by the same amount, so the next element in the
   sheet (the record button on the back-office
   sheet) rendered sliced underneath the band: the
   broken green fragment in Trevor's Oct 20, 2026
   screenshot of TB-1055. The X now rides INSIDE the
   band as its last child (both thread sheets' render
   code moves it there): a flex child at the band's
   right end, in white, sticking with the band as
   the sheet scrolls, taking no flow space outside
   the band at all. With the band hidden the X keeps
   its plain corner place, as before. */
.app-shell .tb-sheetband .tb-osheet-x{
  position:static;top:auto;right:auto;flex:0 0 auto;
  margin-left:auto;color:#FFFFFF;}
.app-shell .tb-sheetband .tb-osheet-x:hover{
  background:rgba(255,255,255,.18);color:#FFFFFF;}

/* (v2.74) The phone properties strip keeps its
   fields inside the card. Its selects ride the
   .tb-input width:auto rule, so a select sizes to
   its longest option: an assignee option carrying
   a name and address stretched the Assignee select
   past the strip card's right edge to the screen
   edge, while the page itself stayed inside the
   viewport (the panel clips sideways), which is
   why the page-overflow census passed it (Trevor's
   Oct 20 exhibit; the screenshot walk's item 3).
   The strip's field labels may now shrink, and
   their controls are capped at the card's own
   content box. */
.app-shell .tb-thr-strip-cat{min-width:0;max-width:100%;}
.app-shell .tb-thr-strip-cat select.tb-input{
  max-width:100%;}
.app-shell .tb-thr-strip-ticket{min-width:0;}

/* (v2.74) The attachment viewer rides the modal
   layer. It still sat at z-index 200 from v2.69,
   below the sheets' 260 in the v2.72 stacking
   scale, so tapping a ticket sheet's paperclip
   opened the viewer UNDER the sheet - the clip
   looked dead (Trevor's Oct 20 exhibit, TB-1112,
   which carries one attachment). The clip itself
   renders only when the ticket carries files -
   both sheet builders guard on the count - and
   now the viewer it opens is on top. */
.tb-viewer-wrap{z-index:320;}


/* ---- (v2.77, TB-1128; v2.83 simplified) Approvals + Listen
   One centered column at the phone measure on every width.
   v2.83: cards are compact (three lines), items render
   lazily inside a card, history and the audit start
   collapsed, and the guided walk is a sheet that rides
   over the page without moving it. */
.app-shell .apx-wrap { max-width: 860px; margin: 0 auto; padding: 4px 2px 40px; }
.app-shell .apx-head { background: var(--tb-green); color:#fff; border-radius:14px;
  padding:18px 18px 16px; margin-bottom:14px; }
.app-shell .apx-head h1 { color:#fff; margin:0 0 4px; font-size:24px; }
.app-shell .apx-head p { color:var(--tb-soft); margin:0; font-size:15px;
  line-height:1.45; }
.app-shell .apx-start { display:block; width:100%; margin-top:14px;
  min-height:52px; padding:12px 18px; border-radius:12px;
  border:2px solid #fff; background:#fff; color: var(--tb-green);
  font-size:17px; font-weight:800; cursor:pointer; }
.app-shell .apx-start:active { transform:translateY(1px); }
.app-shell .apx-start[hidden] { display:none; }
.app-shell .apx-section { font-size:13px; font-weight:800; letter-spacing:.6px;
  text-transform:uppercase; color: var(--tb-green); margin:18px 2px 8px; }
.app-shell .apx-card { background:var(--tb-panel); border:1px solid var(--tb-line);
  border-radius:14px; padding:14px 16px; margin-bottom:12px; }
.app-shell .apx-card.alt { background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel)); }
.app-shell .apx-card.reserved { border:2px solid #E8C87A;
  background:#FFFBF2; }
.app-shell .apx-bhead { display:flex; align-items:flex-start; gap:10px;
  flex-wrap:wrap; }
.app-shell .apx-bhead h2 { margin:0; font-size:18px; flex:1 1 220px;
  line-height:1.3; }
.app-shell .apx-chip { font-size:11.5px; font-weight:700; letter-spacing:.4px;
  text-transform:uppercase; border-radius:999px; padding:4px 10px;
  background:var(--tb-soft); color: var(--tb-green); white-space:nowrap; }
.app-shell .apx-chip.fyi { background:var(--tb-soft); color:#4c6650; }
.app-shell .apx-chip.solo { background:#FFF4E0; color:#8a5a00; }
.app-shell .apx-chip.release { background:#EDF1F7; color:#3c5170; }
.app-shell .apx-chip.done { background:var(--tb-soft); color:#4c6650; }
/* (v3.56, TB-1306) Live review items inside a session
   card: one block per change, divided by hairlines. */
.app-shell .apx-lr-item { border-top:1px solid var(--tb-line);
  padding:10px 0 4px; margin-top:10px; }
.app-shell .apx-lr-title { font-size:15px; font-weight:600;
  line-height:1.4; color:#20312a; margin:0 0 2px; }
.app-shell .apx-lr-meta { font-size:13.5px; line-height:1.45;
  color:#5a6b5e; margin:0 0 4px; }
.app-shell .apx-lr-diff { font-family:ui-monospace, Menlo,
  Consolas, monospace; font-size:12.5px; line-height:1.55;
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel)); border:1px solid var(--tb-line);
  border-radius:10px; padding:8px 10px; margin:6px 0;
  overflow-wrap:anywhere; }
/* (v3.63, TB-1313) A live review item's before/after
   screenshot pair: side by side on the item, before on
   the left, after on the right, each opening full size
   on a tap. The pair never widens the card. */
.app-shell .apx-lr-shots { display:flex; gap:10px;
  margin:8px 0 2px; }
.app-shell .apx-lr-shot { flex:1 1 0; min-width:0;
  margin:0; }
.app-shell .apx-lr-shot img { display:block; width:100%;
  height:auto; border:1px solid var(--tb-line);
  border-radius:10px; }
.app-shell .apx-lr-shot figcaption { font-size:11.5px;
  font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; color:#46604a;
  text-align:center; margin-top:4px; }
.app-shell .apx-sub2 { font-size:14px; line-height:1.45; color:#33473a;
  margin:6px 0 2px; }
.app-shell .apx-counts { font-size:13px; color:#46604a; margin:4px 0 2px; }
.app-shell .apx-brief { font-size:15px; line-height:1.5; margin:8px 0 6px; }
.app-shell .apx-rec { font-size:14.5px; line-height:1.5; background:var(--tb-side);
  border-left: 4px solid var(--tb-green); border-radius:0 8px 8px 0;
  padding:9px 12px; margin:10px 0; }
.app-shell .apx-detail { margin-top:10px; border-top:1px solid var(--tb-line);
  padding-top:10px; }
.app-shell .apx-irow { display:flex; align-items:center; gap:8px;
  padding:9px 2px; border-top:1px solid var(--tb-soft); }
.app-shell .apx-irow:first-child { border-top:none; }
.app-shell .apx-irow .t { flex:1; font-size:14.5px; line-height:1.35;
  min-width:0; }
.app-shell .apx-irow .k { font-size:11px; font-weight:700; letter-spacing:.4px;
  text-transform:uppercase; color:#46604a; display:block; }
.app-shell .apx-open { min-height:40px; padding:7px 13px; border-radius:9px;
  border:1px solid #B9CDB9; background:#fff; font-size:13.5px;
  font-weight:700; color: var(--tb-green); cursor:pointer; flex:none; }
.app-shell .apx-item { border-top:1px solid var(--tb-line); padding:14px 2px 6px;
  margin-top:12px; }
.app-shell .apx-eyebrow { font-size:11.5px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; color: var(--tb-green); margin-bottom:3px; }
.app-shell .apx-item h3 { margin:0 0 5px; font-size:16.5px; line-height:1.35; }
.app-shell .apx-body { font-size:14.5px; line-height:1.55; margin:0 0 6px; }
/* (CF-1, TB-1239) tb-content-block: the one content
   block for review items and auto-created content -
   summary first, bullets, detail folded. Built from
   the design-system baseline (white field, sage
   hairline, brand green markers); no new colours. */
.app-shell .tb-content-block { background:#fff;
  border:1px solid var(--tb-line); border-radius:10px;
  padding:10px 12px; margin:0 0 8px; }
.app-shell .tcb-summary { font-size:15px; line-height:1.5;
  font-weight:600; margin:0 0 6px; }
.app-shell .tcb-bullets { margin:2px 0 8px; padding-left:20px;
  font-size:14.5px; line-height:1.55; }
.app-shell .tcb-bullets li { margin:0 0 3px; }
.app-shell .tcb-bullets li::marker { color: var(--tb-green); }
.app-shell .tcb-legacy-note { font-size:12.5px; color:#5a6b5e;
  margin:0 0 4px; }
.app-shell .tcb-details > summary { cursor:pointer;
  color: var(--tb-green); font-size:13.5px; font-weight:700;
  min-height:40px; display:flex; align-items:center; }
.app-shell .tcb-details .tcb-hide { display:none; }
.app-shell .tcb-details[open] .tcb-hide { display:inline; }
.app-shell .tcb-details[open] .tcb-show { display:none; }
.app-shell .tcb-detail { white-space:pre-wrap;
  overflow-wrap:anywhere; font-size:14.5px;
  line-height:1.55; margin-top:6px; }
.app-shell .apx-next { font-size:13px; color:#46604a; margin:4px 0 8px; }
.app-shell .apx-listen { display:inline-flex; align-items:center; gap:7px;
  min-height:44px; padding:9px 16px; border-radius:999px;
  border: 2px solid var(--tb-green); background:#fff; color: var(--tb-green);
  font-size:15px; font-weight:700; cursor:pointer; }
.app-shell .apx-listen.speaking { background: var(--tb-green); color:#fff; }
.app-shell .apx-listen[disabled] { opacity:.45; cursor:default; }
.app-shell .apx-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center;
  margin:8px 0; }
.app-shell .apx-btn { min-height:44px; padding:9px 14px; border-radius:10px;
  border:1px solid #B9CDB9; background:#fff; font-size:14.5px;
  font-weight:600; cursor:pointer; }
.app-shell .apx-btn.primary { background: var(--tb-green); border-color: var(--tb-green);
  color:#fff; }
.app-shell .apx-btn.danger { color:#9c2b2b; border-color:#dfb1b1; }
.app-shell .apx-btn.quiet { color:#5a6b5e; border-color:var(--tb-line);
  font-weight:500; }
.app-shell .apx-reldetails { margin-top:12px; }
.app-shell .apx-sitmeta { font-size:12.5px; color:#5a6b5e;
  font-weight:600; margin:0 0 6px; }
.app-shell .apx-sitmeta a { color: var(--tb-green); }
.app-shell .apx-sitnote { background:var(--tb-soft);
  border:1px solid #C9DCC7; border-radius:10px;
  padding:8px 10px; margin:8px 0; font-size:13.5px; }
.app-shell .apx-btn:active { transform:translateY(1px); }
.app-shell .apx-comment { width:100%; box-sizing:border-box; min-height:52px;
  border:1px solid #B9CDB9; border-radius:10px; padding:10px 12px;
  font-size:15px; font-family:inherit; resize:vertical;
  background:#fff; }
.app-shell .apx-clabel { font-size:12.5px; font-weight:700; color:#46604a;
  display:block; margin:10px 0 4px; }
.app-shell .apx-state { display:inline-block; font-size:12.5px; font-weight:700;
  border-radius:999px; padding:4px 10px; background:var(--tb-soft);
  color: var(--tb-green); flex:none; }
.app-shell .apx-state.declined { background:#FDECEC; color:#9c2b2b; }
.app-shell .apx-state.fix_queued { background:#FFF4E0; color:#8a5a00; }
.app-shell .apx-state.pending { background:#FFF4E0; color:#8a5a00; }
.app-shell .apx-timeline { font-size:13px; color:#33473a; margin:8px 0 4px;
  border-left:3px solid var(--tb-line); padding-left:10px; }
.app-shell .apx-timeline div { margin:3px 0; line-height:1.45; }
.app-shell .apx-timeline .apx-tl-kind { font-weight:700; color: var(--tb-green); }
/* Comments section (decision sheet): the item's
   journal as dated, threaded entries - author, type
   label and local time on a meta line, the words set
   cleanly under it, replies indented one level. */
.app-shell .apx-comments { margin:14px 0 4px;
  border-top:1px solid var(--tb-line); padding-top:10px; }
.app-shell .apx-comments-title { font-size:15px; font-weight:800;
  color:#33473a; margin:0 0 2px; }
.app-shell .apx-comments-none { font-size:13.5px; color:#5a6b5e;
  margin:4px 0; }
.app-shell .apx-cday { font-size:12.5px; font-weight:800;
  letter-spacing:.03em; text-transform:uppercase;
  color: var(--tb-green); margin:12px 0 2px; }
.app-shell .apx-centry { background:#fff;
  border:1px solid var(--tb-line); border-radius:10px;
  padding:9px 11px; margin:6px 0; }
.app-shell .apx-centry.quiet { background:#F6F9F6;
  border-color:var(--tb-line); }
.app-shell .apx-cmeta { display:flex; gap:8px;
  align-items:baseline; flex-wrap:wrap; }
.app-shell .apx-cwho { font-weight:700; font-size:13.5px;
  color:#243324; }
.app-shell .apx-ctag { font-size:11.5px; font-weight:700;
  border-radius:999px; padding:2px 8px;
  background:var(--tb-soft); color: var(--tb-green); }
.app-shell .apx-centry.quiet .apx-ctag { background:#EDF1EA;
  color:#5a6b5e; }
.app-shell .apx-cwhen { font-size:12.5px; color:#5a6b5e; }
.app-shell .apx-cbody { font-size:14.5px; line-height:1.5;
  color:#243324; white-space:pre-wrap;
  overflow-wrap:anywhere; margin-top:3px; }
.app-shell .apx-centry.quiet .apx-cbody { font-size:13.5px;
  color:#41503F; }
.app-shell .apx-reply-link { background:none; border:none;
  padding:2px 0; margin-top:4px; min-height:32px;
  color: var(--tb-green); font-weight:700; font-size:13.5px;
  font-family:inherit; cursor:pointer; }
.app-shell .apx-reply-link:hover { text-decoration:underline; }
.app-shell .apx-creplies { margin:6px 0 0 12px;
  border-left:3px solid var(--tb-line); padding-left:10px; }
.app-shell .apx-replybox { margin-top:2px; }
.app-shell .apx-history-bar { width:100%; text-align:left; background:#fff;
  border:1px solid var(--tb-line); border-radius:14px; padding:14px 16px;
  font-size:15px; font-weight:700; color:#33473a; cursor:pointer;
  margin-bottom:12px; }
.app-shell .apx-history-bar .n { color:#46604a; font-weight:600;
  font-size:13.5px; }
.app-shell .apx-audit { background:#fff; border:1px solid var(--tb-line);
  border-radius:14px; padding:16px; margin-top:18px; }
.app-shell .apx-audit-head { display:flex; align-items:center; gap:10px;
  flex-wrap:wrap; }
.app-shell .apx-audit-head h2 { margin:0; font-size:19px; flex:1; }
.app-shell .apx-arow { display:flex; gap:10px; align-items:flex-start;
  border-top:1px solid var(--tb-line); padding:9px 0; }
.app-shell .apx-arow:first-of-type { border-top:none; }
.app-shell .apx-ameta { font-size:12px; color:#46604a; white-space:nowrap;
  padding-top:2px; }
.app-shell .apx-abody { font-size:13.5px; line-height:1.45; flex:1; }
.app-shell .apx-listen.small { min-height:36px; padding:5px 11px;
  font-size:13px; }
.app-shell .apx-note { font-size:13px; color:#46604a; margin:10px 2px; }
/* Validate version bands: the band head names the
   version in the section voice, the batch sits inside
   its band as a labeled card, and a timeline
   attachment draws the way the workspace draws it. */
.app-shell .apx-band { margin:26px 2px 10px; }
.app-shell .apx-bandtitle { font-size:21px; font-weight:800;
  color: var(--tb-green); margin:0; line-height:1.25; }
.app-shell .apx-bandsub { font-size:13.5px; color:#46604a;
  margin:3px 0 0; }
.app-shell .apx-bandbatch-t { margin:0; font-size:16.5px;
  flex:1 1 220px; line-height:1.3; }
.app-shell .apx-banditems .apx-item:first-child {
  border-top:none; margin-top:2px; }
.app-shell .apx-attach-img { display:block; max-width:100%;
  height:auto; border-radius:10px; margin:8px 0;
  border:1px solid var(--tb-line); }
.app-shell .apx-attach-chip { display:inline-block;
  margin:6px 0; font-size:13px; color: var(--tb-green);
  border:1px solid #B9CDB9; border-radius:999px;
  padding:4px 11px; text-decoration:none; background:#fff; }
/* Workspace view: the switcher shows only when a
   person belongs to more than one workspace; the team
   and member rows alternate like every list, and the
   role reads as a quiet chip at the row's right. */
.app-shell .ws-switcher { display:flex; flex-wrap:wrap;
  gap:8px; align-items:center; margin:0 2px 14px; }
.app-shell .ws-switchlabel { font-size:13.5px;
  color:#46604a; font-weight:600; }
.app-shell .ws-switchbtn { font:inherit; font-size:13.5px;
  border:1px solid #B9CDB9; background:#fff; color: var(--tb-green);
  border-radius:999px; padding:5px 13px; cursor:pointer; }
.app-shell .ws-switchbtn.selected { background: var(--tb-green);
  color:#fff; border-color: var(--tb-green); }
.app-shell .ws-row { display:flex; align-items:center;
  gap:10px; padding:9px 10px; border-radius:8px; }
.app-shell .ws-row.alt { background:var(--tb-side); }
.app-shell .ws-rowmain { font-weight:600; color:#14213D;
  white-space:nowrap; }
.app-shell .ws-rowsub { color:#46604a; font-size:13px;
  overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; min-width:0; }
.app-shell .ws-rowmeta { margin-left:auto; font-size:13px;
  color:#46604a; white-space:nowrap; }
.app-shell .ws-role { margin-left:auto; font-size:12.5px;
  font-weight:700; color: var(--tb-green); background:var(--tb-soft);
  border-radius:999px; padding:3px 10px;
  white-space:nowrap; }
/* Workspace Projects rows: the name over one plain
   line saying what the project is, a status chip in
   the role chip's dress, and either a Launch button
   (a filled pill in the switch button's shape, opening
   the project in a new tab) or a quiet "You are here"
   marker on the row for the product this office is. */
.app-shell .ws-projrow:hover { background:var(--tb-soft); }
.app-shell .ws-projtext { display:flex;
  flex-direction:column; gap:1px; min-width:0; }
.app-shell .ws-projtext .ws-rowmain { white-space:normal; }
.app-shell .ws-projblurb { color:#46604a; font-size:13px;
  line-height:1.35; }
.app-shell .ws-status { margin-left:auto; font-size:12.5px;
  font-weight:700; color: var(--tb-green); background:var(--tb-soft);
  border-radius:999px; padding:3px 10px;
  white-space:nowrap; }
.app-shell .ws-here { font-size:12.5px; font-weight:600;
  color:#46604a; background:#fff;
  border:1px solid #B9CDB9; border-radius:999px;
  padding:4px 11px; white-space:nowrap; }
.app-shell .ws-launch { font-size:13.5px; font-weight:600;
  color:#fff; background: var(--tb-green);
  border: 1px solid var(--tb-green); border-radius:999px;
  padding:5px 14px; text-decoration:none;
  cursor:pointer; white-space:nowrap; }
.app-shell .ws-launch:hover { background: var(--tb-green-dark);
  border-color: var(--tb-green-dark); color:#fff; }
.app-shell .ws-launch:active { background: var(--tb-green-dark);
  border-color: var(--tb-green-dark); }
.app-shell .ws-launch:focus-visible {
  outline:2px solid #14213D; outline-offset:2px; }
/* Project row buttons: each row's two doors.
   Dashboard (the project's own back office) wears
   the filled pill the retired Launch wore; Open site
   (the public product, a new tab) is an outline pill,
   so the two can never be confused. The Dashboard
   button on the row for the back office already on
   screen is quiet, bordered like the "You are here"
   marker, and disabled: it names the current place
   instead of navigating in a circle. Rows may wrap
   at phone widths; the doors then sit on their own
   line, right aligned, and the page never pans. */
.app-shell .ws-projrow { flex-wrap:wrap; }
.app-shell .ws-projactions { display:flex; gap:8px;
  flex-wrap:wrap; justify-content:flex-end;
  align-items:center; }
.app-shell .ws-dash { font-size:13.5px; font-weight:600;
  font-family:inherit; color:#fff; background: var(--tb-green);
  border: 1px solid var(--tb-green); border-radius:999px;
  padding:5px 14px; cursor:pointer;
  white-space:nowrap; }
.app-shell .ws-dash:hover { background: var(--tb-green-dark);
  border-color: var(--tb-green-dark); color:#fff; }
.app-shell .ws-dash:active { background: var(--tb-green-dark);
  border-color: var(--tb-green-dark); }
.app-shell .ws-dash:focus-visible {
  outline:2px solid #14213D; outline-offset:2px; }
.app-shell .ws-dash.current { color:#46604a;
  background:#fff; border:1px solid #B9CDB9;
  cursor:default; opacity:1; }
.app-shell .ws-dash.current:hover,
.app-shell .ws-dash.current:active {
  background:#fff; border-color:#B9CDB9;
  color:#46604a; }
.app-shell .ws-open { font-size:13.5px; font-weight:600;
  color: var(--tb-green); background:#fff;
  border: 1px solid var(--tb-green); border-radius:999px;
  padding:5px 14px; text-decoration:none;
  cursor:pointer; white-space:nowrap; }
.app-shell .ws-open:hover { background:var(--tb-soft);
  color: var(--tb-green-dark); border-color: var(--tb-green-dark); }
.app-shell .ws-open:active { background:var(--tb-line);
  color: var(--tb-green-dark); border-color: var(--tb-green-dark); }
.app-shell .ws-open:focus-visible {
  outline:2px solid #14213D; outline-offset:2px; }
.app-shell .ws-loadtitle { font-weight:700;
  color:#14213D; font-size:15px; }
.app-shell .apx-err { color:#9c2b2b; font-size:14px; min-height:20px; }
.app-shell .apx-filters { display:flex; gap:8px; flex-wrap:wrap;
  align-items:flex-end; margin:10px 0 4px; }
.app-shell .apx-filters label { font-size:12px; font-weight:700;
  color:#46604a; display:block; }
.app-shell .apx-filters select, .app-shell .apx-filters input { min-height:40px;
  border:1px solid #B9CDB9; border-radius:8px; padding:6px 9px;
  font-size:14px; font-family:inherit; background:#fff; }
/* The guided walk: a sheet over the page. The page beneath
   does not move, scroll, or repaint its position. */
/* (v3.72, TB-1318) The Review Wizard: the pop-up
   stepper's own furniture. The sheet frame is the
   shared tb-sheet; what stands here is the wizard's
   foot (Back, the progress line, Next) with the iOS
   safe area respected, the ticket pop-up's layer
   above the wizard, and the shared live review block
   a ticket carries (tb-lr-*), which the ticket page
   and the ticket pop-up render identically. */
.app-shell .apx-rw-foot { display:flex; align-items:center;
  gap:10px; padding:10px 14px
  calc(10px + env(safe-area-inset-bottom));
  border-top:1px solid var(--tb-line);
  background:var(--tb-panel); flex:0 0 auto; }
.app-shell .apx-rw-progress { flex:1; text-align:center;
  font-size:13.5px; font-weight:600;
  color:var(--tb-text); }
.app-shell .apx-ticketwrap { z-index:500; }
.app-shell .apx-rw-tl { white-space:pre-wrap; }
.app-shell .tb-lr-block { border:1px solid var(--tb-line);
  border-radius:12px; padding:14px; margin:14px 0;
  background:#F6F9F4; }
.app-shell .tb-lr-eyebrow { font-size:11.5px;
  font-weight:700; letter-spacing:1.1px;
  text-transform:uppercase; color: var(--tb-green);
  margin:0 0 6px; }
.app-shell .tb-lr-title { font-size:16.5px;
  margin:0 0 6px; color:var(--tb-text); }
.app-shell .tb-lr-meta { font-size:13.5px;
  color:var(--tb-text); margin:0 0 8px; }
.app-shell .apx-walk { position:fixed; inset:0; z-index:400;
  background:rgba(20,33,61,.45); display:flex;
  align-items:flex-start; justify-content:center;
  overflow-y:auto; padding:18px 10px; box-sizing:border-box; }
.app-shell .apx-walk[hidden] { display:none; }
.app-shell .apx-walk-card { position:relative; background:var(--tb-panel); width:100%;
  max-width:680px; border-radius:16px; padding:20px 18px 16px;
  box-sizing:border-box; margin:auto 0; }
.app-shell .apx-walk-x { position:absolute; top:8px; right:10px;
  width:44px; height:44px; border:none; background:#fff;
  font-size:28px; line-height:1; color:#33473a; cursor:pointer;
  border-radius:10px; }
.app-shell .apx-walk-progress { font-size:13px; font-weight:800;
  letter-spacing:.5px; text-transform:uppercase;
  color: var(--tb-green); margin:0 44px 2px 0; }
.app-shell .apx-walk-eyebrow { font-size:12px; font-weight:700;
  letter-spacing:.5px; text-transform:uppercase;
  color:#46604a; margin:0 44px 4px 0; }
.app-shell .apx-walk-title { font-size:20px; line-height:1.3;
  margin:0 44px 8px 0; }
.app-shell .apx-walk-foot { display:flex; gap:10px; align-items:center;
  flex-wrap:wrap; border-top:1px solid var(--tb-line);
  margin-top:14px; padding-top:12px; }
.app-shell .apx-walk-note { font-size:12.5px; color:#46604a; flex:1;
  min-width:180px; }
.app-shell .apx-done { text-align:center; padding:18px 6px 8px; }
.app-shell .apx-done h3 { font-size:19px; margin:0 0 6px; }
@media (prefers-reduced-motion: reduce) {
.app-shell .apx-btn:active, .app-shell .apx-start:active { transform:none; } }

/* ===== (v2.78) Ticket-sheet redesign + live queue =====
   TB-1117 as prototyped and approved: the identity
   strip, the wait chips, the next-waiting bar, the
   queue panel, and the pane head in white. Appended
   only; no shipped rule is edited. */
.app-shell .tb-idstrip{
  display:flex;align-items:center;gap:12px;
  background:#FFFFFF;border:1px solid var(--tb-line);
  border-radius:12px;padding:10px 14px;margin:0 0 12px;}
.app-shell .tb-idstrip .tb-avatar{
  width:40px;height:40px;font-size:15px;flex:none;}
.app-shell .tb-idstrip-glyph{
  display:inline-flex;align-items:center;
  justify-content:center;background:var(--tb-soft);
  color:var(--tb-green-dark);}
.app-shell .tb-idstrip-glyph svg{width:21px;height:21px;}
.app-shell .tb-disc-glyph{
  display:inline-flex;align-items:center;
  justify-content:center;}
.app-shell .tb-disc-glyph svg{width:34px;height:34px;}
.app-shell .tb-idstrip-main{min-width:0;flex:1;}
.app-shell .tb-idstrip-name{
  font-size:15.5px;font-weight:700;color:var(--tb-text);
  display:block;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.app-shell .tb-idstrip-sub{
  font-size:12.5px;color:var(--tb-muted);margin-top:1px;}
.app-shell .tb-idstrip-presence{
  font-size:12.5px;color:var(--tb-green-dark);
  margin-top:1px;}
.tb-waitchip{
  font-variant-numeric:tabular-nums;font-weight:700;
  font-size:13px;color:var(--tb-muted);white-space:nowrap;
  display:inline-flex;align-items:center;gap:6px;
  flex:none;}
.tb-waitchip::before{
  content:"";width:8px;height:8px;border-radius:50%;
  background:#9DB89D;flex:none;}
.tb-waitchip[data-stage="1"]{color:#9A6A00;}
.tb-waitchip[data-stage="1"]::before{background:#D97706;}
.tb-waitchip[data-stage="2"]{color:#B3261E;}
.tb-waitchip[data-stage="2"]::before{background:#B3261E;}
.tb-waitchip[data-stage="3"]{color:#7A1F1A;}
.tb-waitchip[data-stage="3"]::before{background:#7A1F1A;}
/* Queue-experience: the status light on a queue row -
   one dot, colored by the server stage for the session
   (calm sage while the wait is young or the chat is
   with our assistant, amber past 5 minutes, red past 8,
   brand green while a team member has the chat). */
.tb-qlight{width:9px;height:9px;border-radius:50%;
  flex:none;display:inline-block;}
.tb-qlight-calm{background:#9DB89D;}
.tb-qlight-amber{background:#D97706;}
.tb-qlight-red{background:#B3261E;}
.tb-qlight-with{background:var(--tb-green);}
/* The claimed banner at the head of a claimed chat,
   and the claim strip on the visitor panel: one calm
   line naming who has the visitor, with the ticking
   with-counter riding it. */
.app-shell .tb-chat-claimed{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:13px;color:var(--tb-green-dark);
  background:var(--tb-side);border:1px solid var(--tb-line);
  border-radius:10px;padding:8px 12px;margin:0 0 10px;}
.app-shell .tb-chat-pickup{margin-left:auto;flex:none;}
.app-shell .tb-vp-claimed{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:13px;color:var(--tb-brand-dark);
  background:var(--tb-side);border:1px solid var(--tb-line);
  border-radius:10px;padding:8px 10px;margin:8px 0;}
/* The record's journal under a chat conversation:
   the activity list the sheet reads for everything
   that happened around the messages. */
.app-shell .tb-chat-activity{
  border-top:1px solid var(--tb-line);
  margin-top:10px;padding-top:10px;flex:none;}
.app-shell .tb-chat-activity-title{
  margin:0 0 4px;font-size:13px;
  color:var(--tb-green-dark);}
.app-shell .tb-chat-activity .tb-inbox-event{
  text-align:left;margin:6px 0;}
/* The pane head survives only in the standalone Chat
   view, and there it wears the brand like every other
   surface: white ground, navy ink, green for the bar
   alone. The solid-green identity block is retired. */
.app-shell .tb-chanpane-head{
  background:#FFFFFF;color:var(--tb-text);
  border:1px solid var(--tb-line);}
.app-shell .tb-chanpane-head .tb-chanpane-name{
  color:var(--tb-text);}
.app-shell .tb-chanpane-head .tb-chanpane-sub{
  color:var(--tb-muted);}
.app-shell .tb-chanpane-status{color:var(--tb-muted);}
/* Step-to-next bar */
.app-shell .tb-nextbar{
  display:flex;align-items:center;gap:10px;
  background:var(--tb-soft);border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);padding:8px 12px;margin:0 0 12px;}
.app-shell .tb-nextbar-label{
  font-weight:600;font-size:14px;min-width:0;
  overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.app-shell .tb-nextbar .tb-waitchip{margin-left:auto;}
.app-shell .tb-nextbar-btn{flex:none;}
/* The queue panel: a sheet in the family (z 265, under
   the modal layer at 320), right-anchored on wide
   screens, a full sheet on phones. */
.tb-qpanel{
  position:fixed;inset:0;z-index:265;}
.tb-qpanel[hidden]{display:none;}
.tb-qpanel-scrim{
  position:absolute;inset:0;
  background:rgba(20,33,61,.38);}
.tb-qpanel-box{
  position:absolute;top:0;right:0;bottom:0;
  width:min(430px,100%);background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));
  display:flex;flex-direction:column;
  box-shadow:-8px 0 28px rgba(20,33,61,.22);}
.tb-qpanel-band{margin:12px 12px 0;flex:none;}
.tb-qpanel-x{
  margin-left:auto;background:transparent;border:0;
  color:#FFFFFF;font-size:22px;line-height:1;
  width:34px;height:34px;border-radius:50%;
  cursor:pointer;flex:none;}
.tb-qpanel-x:hover{background:rgba(255,255,255,.18);}
.tb-qpanel-body{
  flex:1;overflow-y:auto;padding:14px 12px;}
.tb-qpanel-h{
  font-size:13px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--tb-green-dark);
  margin:10px 2px 8px;}
.tb-qpanel-count{color:var(--tb-muted);}
.tb-qrow{
  display:flex;align-items:center;gap:11px;width:100%;
  text-align:left;background:#FFFFFF;
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);
  padding:10px 12px;margin:0 0 8px;cursor:pointer;
  font:inherit;color:var(--tb-text);}
.tb-qrow:hover{border-color:var(--tb-green);}
.tb-qrow .tb-avatar{width:36px;height:36px;
  font-size:14px;flex:none;}
.tb-qrow-main{min-width:0;flex:1;display:flex;
  flex-direction:column;}
.tb-qrow-name{font-weight:600;font-size:14.5px;
  overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.tb-qrow-sub{font-size:12.5px;color:var(--tb-muted);
  overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;}
.tb-qdot{width:9px;height:9px;border-radius:50%;
  background:#D97706;flex:none;}
.tb-qtag{font-size:12px;font-weight:600;
  color:var(--tb-green-dark);background:var(--tb-soft);
  border-radius:999px;padding:2px 8px;white-space:nowrap;
  flex:none;}
.tb-qtag-wait{color:#806022;background:#F7ECD2;}
/* (TB-1241) The waiting row's named action: a quiet
   pill in the comp dress, green word, hairline ring -
   the row itself is the button, the pill says what
   the tap does. */
.tb-qpickup{font-size:12.5px;font-weight:700;
  color:var(--tb-green-dark);background:#FFFFFF;
  border:1px solid var(--tb-green);
  border-radius:999px;padding:4px 10px;white-space:nowrap;
  flex:none;}
.tb-qpanel-foot{
  flex:none;display:flex;gap:10px;padding:12px;
  border-top:1px solid var(--tb-line);background:#FFFFFF;}
/* (Oct 27, 2026) The queue panel's tabs: one view
   at a time (Waiting, Active chats, and the three
   history views), each tab carrying its count. */
.tb-qtabs{
  display:flex;gap:6px;flex:none;flex-wrap:wrap;
  padding:10px 12px 0;}
.tb-qtab{
  font:inherit;font-size:13px;font-weight:600;
  color:var(--tb-green-dark);background:#FFFFFF;
  border:1px solid var(--tb-line);border-radius:999px;
  padding:5px 11px;cursor:pointer;white-space:nowrap;}
.tb-qtab:hover{border-color:var(--tb-green);}
.tb-qtab.active{
  background:var(--tb-green);border-color:var(--tb-green);
  color:#FFFFFF;}
.tb-qtab-count{font-weight:600;opacity:.75;}
.tb-qpane[hidden]{display:none;}
/* The waiting row is now two doors side by side:
   the pickup area (the old row body) and End. */
.tb-qrow-pick{
  display:flex;align-items:center;gap:11px;flex:1;
  min-width:0;text-align:left;background:transparent;
  border:0;padding:0;cursor:pointer;
  font:inherit;color:inherit;}
.tb-qend{
  font:inherit;font-size:12.5px;font-weight:600;
  color:#B3261E;background:transparent;
  border:1px solid var(--tb-line);border-radius:999px;
  padding:4px 10px;cursor:pointer;white-space:nowrap;
  flex:none;}
.tb-qend:hover{border-color:#B3261E;}
.tb-qend.armed{
  background:#B3261E;border-color:#B3261E;color:#FFFFFF;}

/* The thread mount rides 21px high under the sticky
   band whenever the record door above it is hidden
   (every visitor sheet) - the tall Back row used to
   mask the overlap. The mount takes its clearance
   back; ticket sheets, whose door is visible, are
   untouched. */
.app-shell #ad-thread-recordlink[hidden]
  + #ad-inbox-thread-mount{margin-top:21px;}
.app-shell .tb-nextbar-slot{margin:0;}

/* ===== (v2.78) Required fields, severity, name gate =====
   TB-1121: the required marking is an asterisk plus
   the word Required in the label, everywhere it
   appears; a field the shared check found missing
   wears a plain red outline until it is filled.
   TB-1120: an unset severity on a bug report wears
   the same outline. TB-1105: the visitor name card's
   hint, error line and locked composer. */
.app-shell .tb-req,
.tb-req{color: var(--tb-danger-text);font-weight:700;}
.app-shell .tb-reqword,
.tb-reqword{color: var(--tb-danger-text);font-weight:600;font-size:.92em;}
.app-shell .tb-field-missing,
.tb-field-missing{border-color: var(--tb-danger) !important;
  outline:2px solid rgba(179,38,30,.35);}
.app-shell .tb-sev-missing{border-color: var(--tb-danger) !important;
  outline:2px solid rgba(179,38,30,.35);}
/* The sheet strip's fields share the width evenly -
   Category no longer renders at half of Assignee. */
.app-shell .tb-thr-strip-cat{flex:1 1 0;min-width:0;}
.app-shell .tb-thr-strip-cat select.tb-input{width:100%;}
/* The visitor name card (TB-1105). */
.app-shell .tb-visitor-namehint{
  margin:0 0 8px;color:var(--tb-muted);font-size:13px;}
.app-shell .tb-visitor-nameerr{
  margin:8px 0 0;color: var(--tb-danger-text);font-size:13.5px;}
.app-shell .tb-visitor-namediff{
  background:none;border:0;color:var(--tb-muted);
  padding:8px 6px;cursor:pointer;}
.app-shell .tb-chat-composercard.tb-composer-locked
  .tb-chat-composer{opacity:.55;}
.app-shell .tb-chat-composercard.tb-composer-locked
  .tb-chat-input{background:var(--light-sage);}

/* ============================================================
   (v2.83) THE MASTER CHAT HEADER - one geometry, every
   surface (directions 1, 2, 3, 7). A 56px green bar; the
   counterpart's medallion (56px) straddles the bar's bottom
   edge at the left; the presence chip - a white pill with
   the name over its live status line - sits on the green
   beside it; a lone X at the right. Nothing else lives in
   the header. The column-centered 72px presence stack this
   replaces ate ~150px of every chat; the bar takes 56px
   plus 28px of medallion overhang into reserved air.
   ============================================================ */
.app-shell .tb-chathead{
  height:56px;min-height:56px;padding:0 6px 0 84px;
  display:flex;align-items:center;gap:8px;}
.app-shell .tb-chathead .tb-sheettitle:has(.tb-presence){
  text-align:left;flex:0 1 auto;}
.app-shell .tb-chathead .tb-presence{
  flex-direction:row;align-items:center;gap:0;}
/* The medallion: the presence disc, lifted out of the row
   and set straddling the bar's bottom edge (top:28px puts
   its center on the edge - half on the green, half over
   the white below). */
.app-shell .tb-chathead .tb-presence-disc{
  position:absolute;left:14px;top:28px;
  width:56px;height:56px;
  background:var(--light-sage);
  border:3px solid #FFFFFF;
  box-shadow:0 6px 18px rgba(20,33,61,.28);
  z-index:3;}
.app-shell .tb-chathead .tb-presence-disc img{
  width:34px;height:34px;}
.app-shell .tb-chathead .tb-presence-disc img.tb-pip{
  width:100%;height:100%;}
/* The presence chip: name over status, on white, the
   Muse-app chip's shape. */
.app-shell .tb-chathead .tb-presence-texts{
  background:#FFFFFF;border-radius:14px;
  padding:4px 13px 5px;align-items:flex-start;
  text-align:left;box-shadow:0 2px 8px rgba(20,33,61,.16);
  max-width:62vw;}
.app-shell .tb-chathead .tb-presence-name{
  color:var(--tb-green-dark);font-size:15px;font-weight:600;
  line-height:1.2;}
.app-shell .tb-chathead .tb-presence-status{
  color:var(--tb-muted);font-size:12px;line-height:1.25;}
/* The medallion's lower half hangs over the body: the
   chat list reserves its air. */
.app-shell .tb-sheethead.tb-chathead + .tb-sheetbody
  .tb-chat-list{padding-top:32px;}
.app-shell .tb-sheethead.tb-chathead + .tb-sheetbody
  .tb-chanpane{padding-top:30px;}

/* The visitor head in the same geometry: its own
   medallion element takes the straddle, its title slot
   carries the chip, the X stands alone at the right
   (the "End chat" text button is gone - direction 4). */
.app-shell .tb-visitorwrap .tb-visitor-head.tb-chathead{
  padding:0 6px 0 84px;justify-content:flex-start;}
.app-shell .tb-visitor-headimg.tb-visitor-medallion{
  width:56px;height:56px;left:14px;top:28px;
  transform:none;display:flex;align-items:center;
  justify-content:center;overflow:hidden;padding:0;}
.app-shell .tb-visitor-headimg.tb-visitor-medallion img{
  width:100%;height:100%;object-fit:cover;display:block;}
.app-shell .tb-visitor-headimg.tb-visitor-medallion
  img[hidden]{display:none;}
.app-shell .tb-visitor-medinit{
  font-size:19px;font-weight:700;color:var(--tb-green-dark);
  line-height:1;}
.app-shell .tb-visitor-status[hidden]{display:none;}
.app-shell .tb-visitor-head .tb-sheetbtn{
  top:50%;}
.app-shell .tb-visitorwrap .tb-sheetbody{
  padding-top:30px;}
/* (Direction 3) The disclosure: one slim row. A native
   details element - the full small print is one tap
   away, printed on the surface, and costs 30px closed
   instead of a standing paragraph block. */
.app-shell .tb-visitor-about{
  margin:0 14px 8px;font-size:12.5px;color:var(--tb-muted);}
.app-shell .tb-visitor-about summary{
  cursor:pointer;font-weight:600;color:var(--tb-green-dark);
  padding:4px 0;list-style:none;}
.app-shell .tb-visitor-about summary::-webkit-details-marker{
  display:none;}
.app-shell .tb-visitor-about p{
  margin:4px 0 6px;line-height:1.5;white-space:pre-wrap;}

/* (Direction 4) The shared chat confirm pop-up: Sprout
   beside a card that names the exact action, Proceed /
   Cancel, on the menu layer of the stacking scale. */
.tb-chatconfirm-scrim{
  position:fixed;inset:0;z-index:330;
  background:rgba(20,33,61,.45);
  display:flex;align-items:center;justify-content:center;
  padding:20px;}
.tb-chatconfirm-card{
  background:#FFFFFF;border-radius:16px;max-width:340px;
  width:100%;padding:18px;text-align:left;
  box-shadow:0 24px 60px rgba(20,33,61,.30);}
.tb-chatconfirm-head{
  display:flex;align-items:center;gap:10px;margin:0 0 8px;}
.tb-chatconfirm-head img{
  width:40px;height:40px;border-radius:50%;
  background:var(--light-sage);object-fit:cover;flex:0 0 auto;}
.tb-chatconfirm-title{
  font-size:16.5px;font-weight:700;color:var(--tb-text);}
.tb-chatconfirm-text{
  font-size:14px;line-height:1.5;color:var(--tb-text);
  margin:0 0 16px;}
.tb-chatconfirm-btns{display:flex;gap:10px;}
.tb-chatconfirm-btns button{
  flex:1;font:inherit;font-size:15px;font-weight:600;
  border-radius:10px;padding:11px 10px;cursor:pointer;}
.tb-chatconfirm-cancel{
  background:#FFFFFF;border:1px solid var(--tb-line);
  color:var(--tb-text);}
/* Scrim-prefixed: a generic shell button rule
   otherwise out-specifies the bare class and the
   label renders dark on the green (QA find). */
.tb-chatconfirm-scrim .tb-chatconfirm-proceed{
  background:var(--tb-green, #2E7D32);
  border:1px solid var(--tb-green, #2E7D32);
  color:#FFFFFF;}

/* The back-office pane head in the family: the pane
   head is a white panel (the v2.78 brand treatment -
   the solid-green identity block stays retired), so
   unification lands as geometry: a slim 56px row, the
   subject's orb as a true medallion disc (sage ground,
   white ring, the family shadow) at the left, the
   name and the live status as the chip's two lines,
   and Sprout - a participant on a website chat - as a
   small marker at the row's end, never a second face
   competing with the subject's. */
.app-shell .tb-chanpane-head{
  padding:8px 14px;min-height:56px;
  display:flex;align-items:center;gap:12px;}
.app-shell .tb-chanpane-av{
  width:52px;height:52px;flex:0 0 auto;
  border-radius:50%;background:var(--light-sage);
  border:3px solid #FFFFFF;
  box-shadow:0 6px 18px rgba(20,33,61,.28);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;}
.app-shell .tb-chanpane-av img{
  width:100%;height:100%;object-fit:cover;display:block;}
.app-shell .tb-chanpane-av .tb-tl-disc{
  width:100%;height:100%;font-size:19px;}
.app-shell .tb-chanpane-who{
  flex:1;min-width:0;text-align:left;}
.app-shell .tb-chanpane-head .tb-chanpane-name{
  font-size:15.5px;font-weight:700;line-height:1.25;}
.app-shell .tb-chanpane-head .tb-chanpane-sub{
  font-size:12.5px;line-height:1.3;}
.app-shell .tb-chanpane-sprout{
  width:34px;height:34px;object-fit:contain;
  flex:0 0 auto;margin:0;align-self:center;}

/* The Support record band: slimmer for every kind.
   Chat kind: the band's Sprout medallion - which had
   NO size rule at all before this pass and rendered
   at the artwork's intrinsic size - takes the family
   medallion treatment and straddles the band's bottom
   edge like everywhere else (the band's margin grows
   to reserve the overhang's air). */
.tb-sheetband{padding:9px 16px;}
.tb-sheetband:has(.tb-sheetband-medallion){
  margin-bottom:32px;}
.tb-sheetband .tb-sheetband-medallion{
  width:46px;height:46px;border-radius:50%;
  background:var(--light-sage);border:3px solid #FFFFFF;
  box-shadow:0 6px 18px rgba(20,33,61,.28);
  object-fit:cover;position:relative;top:20px;
  flex:0 0 auto;}
/* The homepage digest chat band rides a little lower
   in its panel (it tops a conversation, not a sheet). */
.app-shell .dc-chat-scroll{overscroll-behavior:contain;}
/* ===== (v2.82) The ticket purpose line =================
   One plain sentence directly under the ticket
   number on every ticket sheet, saying what the
   ticket is for: the first line of the ticket's
   authored summary when one is stored, and the
   known facts (title, kind, how long it has been
   open) when none is yet - never a bare
   "No summary yet." (Trevor, Oct 20, 2026: at a
   glance he could not tell what TB-1055 was for.)
   Worn by the back-office thread head, the customer
   record's conversation, and the customer sheet's
   meta line alike - one class, one look. */
/* (v3.55, TB-1305) The purpose line reads in regular
   weight now, not bold end to end - bold is saved for
   words that need it. (Trevor, Oct 23, 2026.) */
.app-shell .tb-thr-purpose{
  font-size:14.5px;line-height:1.45;font-weight:400;
  color:var(--tb-text);margin:8px 0 2px;
  overflow-wrap:anywhere;}

/* ---- (v2.85, TB-1128) Voice & Narration ---- */
/* The Listen upgrade: the Voice & Narration Settings page,
   the quick voice chip + popover beside Listen, and the
   read-along highlight. Colors ride the one brand source:
   green #2E7D32, navy #14213D, light sage fills. */
.app-shell .tb-voice-val { display:inline-block; background:var(--tb-soft);
  color: var(--tb-green); border-radius:8px; padding:1px 10px;
  font-weight:700; margin-left:6px; }
.app-shell .tb-voice-range { width:100%; accent-color: var(--tb-green);
  height:32px; cursor:pointer; }
.app-shell .tb-voice-scale { display:flex;
  justify-content:space-between; color:#5A6B5A; font-size:12.5px;
  margin-top:-2px; }
.app-shell .tb-voice-previewbox { background:var(--tb-side);
  border:1px solid var(--tb-line); border-radius:12px;
  padding:12px 14px; margin-top:14px; }
.app-shell .tb-voice-previewlabel { font-size:11.5px;
  font-weight:800; letter-spacing:.08em; color: var(--tb-green);
  text-transform:uppercase; margin-bottom:4px; }
.app-shell .tb-voice-previewbox p { margin:0; font-size:15.5px;
  line-height:1.45; color:#14213D; }
.app-shell .tb-voice-alert { background:#FFF6E0;
  border:1px solid #E8C96A; color:#6B5300; border-radius:10px;
  padding:10px 12px; font-size:14px; line-height:1.45; }
.app-shell #ad-voice-preview.speaking { background:#14213D;
  border-color:#14213D; color:#fff; }
/* Quick controls beside Listen. */
.app-shell .tb-voice-quick { position:relative;
  display:inline-block; margin-top:10px; }
.app-shell .tb-voice-chip { display:inline-flex; align-items:center;
  gap:6px; background:#fff; color: var(--tb-green);
  border: 1.5px solid var(--tb-green); border-radius:999px;
  padding:6px 13px; font-size:13.5px; font-weight:700;
  cursor:pointer; min-height:36px; }
.app-shell .tb-voice-chip:hover { background:var(--tb-soft); }
.app-shell .tb-voice-pop { position:absolute; left:0;
  top:calc(100% + 8px); width:292px; max-width:86vw; z-index:70;
  background:#fff; color:#14213D; border:1px solid var(--tb-line);
  border-radius:14px; box-shadow:0 14px 34px rgba(20,33,61,.20);
  padding:14px; text-align:left; }
.app-shell .tb-voice-pop-label { display:block; font-size:13px;
  font-weight:700; color:#14213D; margin-bottom:10px; }
.app-shell .tb-voice-pop-label select { display:block; width:100%;
  margin-top:5px; min-height:42px; border:1.5px solid var(--tb-line);
  border-radius:9px; padding:7px 9px; font-size:14.5px;
  background:#fff; color:#14213D; }
.app-shell .tb-voice-pop-srow { display:flex;
  justify-content:space-between; align-items:center; }
.app-shell .tb-voice-pop input[type="range"] { width:100%;
  accent-color: var(--tb-green); height:30px; cursor:pointer; }
.app-shell .tb-voice-pop-row { display:flex; gap:12px;
  align-items:center; margin-top:2px; }
.app-shell .tb-voice-preview { background: var(--tb-green); color:#fff;
  border: 1.5px solid var(--tb-green); border-radius:9px;
  padding:7px 13px; font-size:14px; font-weight:700;
  cursor:pointer; min-height:38px; }
.app-shell .tb-voice-preview.speaking { background:#14213D;
  border-color:#14213D; }
.app-shell .tb-voice-all { color: var(--tb-green); font-size:14px;
  font-weight:700; }
.app-shell .tb-voice-note { margin:10px 0 0; font-size:13px;
  line-height:1.45; color:#6B5300; }
/* Read-along highlight. */
.app-shell .tb-hl-sent { background:#FFEF9E; border-radius:3px;
  padding:0 1px; }
.app-shell .tb-hl-part { background:var(--tb-soft);
  box-shadow:0 0 0 2px rgba(46,125,50,.30); border-radius:6px; }

/* ===== (v2.95) The master chat header, one geometry =====
   Every chat surface wears the same header row on the
   brand green: 12px 14px of padding, a 72px minimum
   height, the medallion CONTAINED in the bar at 48px
   (never straddling an edge, never covering content),
   the name at 15.5px/700 with the status as a quiet
   12.5px second line under it, left-aligned, and the
   controls on the same center line at the right - the
   "?" where the surface carries help, then ONE X as
   the sheet's only exit. No Back in a chat header.
   This section retires the straddle-era rules above it
   (the 72px floating disc, the crown strips, the
   absolute-placed visitor controls). */

/* The chat sheet (both shells): the presence becomes
   the left group of the row. */
.app-shell .tb-chatmode .tb-sheethead.tb-chathead{
  padding:12px 14px;min-height:72px;gap:12px;}
.app-shell .tb-chatmode .tb-presence{
  flex-direction:row;align-items:center;gap:12px;}
.app-shell .tb-chatmode .tb-sheettitle:has(.tb-presence){
  text-align:left;}
.app-shell .tb-chatmode .tb-presence-disc{
  width:48px;height:48px;margin-top:0;
  box-shadow:0 4px 12px rgba(20,33,61,.22);}
.app-shell .tb-chatmode .tb-presence-texts{
  align-items:flex-start;text-align:left;}
/* The help "?" takes its header size on the green, in
   both of the fb sheet's modes. */
.app-shell .tb-feedbackwrap .tb-help-btn{
  width:36px;height:36px;font-size:16px;}

/* The visitor sheet: same row. The medallion and the
   close join the flow; the 90px of empty green and the
   absolute placements are gone. */
.app-shell .tb-visitorwrap .tb-visitor-head.tb-chathead{
  padding:12px 14px;min-height:72px;gap:12px;
  justify-content:flex-start;}
.app-shell .tb-visitor-headimg{
  position:static;transform:none;flex:0 0 auto;
  width:48px;height:48px;border:0;padding:0;
  box-shadow:0 4px 12px rgba(20,33,61,.22);}
.app-shell .tb-visitor-headimg img{
  width:100%;height:100%;object-fit:cover;
  border-radius:50%;display:block;}
.app-shell .tb-visitor-headimg .tb-visitor-medinit{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;border-radius:50%;
  color:var(--tb-green-dark);font-weight:700;
  font-size:19px;}
.app-shell .tb-visitor-headimg .tb-visitor-medinit[hidden]{
  display:none;}
.app-shell .tb-visitor-head .tb-sheettitle{
  text-align:left;flex:1;min-width:0;}
.app-shell .tb-visitor-head .tb-sheetbtn{
  position:static;transform:none;}

/* The panel bands (homepage chat, ticket sheets): the
   same row in the rounded band. The crown strip is
   gone, and the sheet band's medallion sits inside
   the band instead of hanging off its bottom edge. */
.tb-chatband{
  padding:12px 14px;min-height:72px;gap:12px;}
.tb-chatband .tb-chatmedallion{
  width:48px;height:48px;margin-top:0;}
.tb-chatband-crown{display:none;}
.tb-sheetband{
  padding:12px 14px;min-height:72px;gap:12px;}
.tb-sheetband:has(.tb-sheetband-medallion){
  margin-bottom:14px;}
.tb-sheetband .tb-sheetband-medallion{
  width:48px;height:48px;top:0;
  box-shadow:0 4px 12px rgba(20,33,61,.22);}
.tb-sheetband-texts{
  display:flex;flex-direction:column;min-width:0;}
.tb-sheetband .tb-sheetband-title{font-size:15.5px;}

/* The parity block's residues, retired: the presence
   disc leaves its absolute perch (it was still
   straddling, now at the bar's top edge), the white
   pill around the name and status comes off - the
   texts sit on the green like every other header's -
   and the visitor's body loses the 30px of air the
   straddle used to need. */
.app-shell .tb-chathead .tb-presence-disc{
  position:static;left:auto;top:auto;
  background:#FFFFFF;border:0;}
.app-shell .tb-chathead .tb-presence-disc img{
  width:100%;height:100%;}
.app-shell .tb-chathead .tb-presence-texts{
  background:transparent;border-radius:0;padding:0;
  box-shadow:none;max-width:none;}
.app-shell .tb-chathead .tb-presence-name{
  color:#FFFFFF;font-size:15.5px;font-weight:700;}
.app-shell .tb-chathead .tb-presence-status{
  color:rgba(255,255,255,.88);font-size:12.5px;}
.app-shell .tb-visitor-headimg.tb-visitor-medallion{
  width:48px;height:48px;}
.app-shell .tb-visitorwrap .tb-sheetbody{
  padding-top:16px;}

/* The back-office pane head becomes the same row: the
   other party's avatar at 48px, their name and lines
   left-aligned under each other, Sprout's presence
   mark at the row's right end on a website chat. */
.app-shell .tb-chanpane-head{
  flex-direction:row;align-items:center;gap:12px;
  padding:12px 14px;min-height:72px;text-align:left;}
.app-shell .tb-chanpane-av{width:48px;height:48px;}
.app-shell .tb-chanpane-av img{
  width:48px;height:48px;}
.app-shell .tb-chanpane-av .tb-tl-disc{
  width:48px;height:48px;font-size:19px;}
.app-shell .tb-chanpane-who{text-align:left;}
.app-shell .tb-chanpane-name{font-size:15.5px;}
.app-shell .tb-chanpane-sub{font-size:12.5px;}
.app-shell .tb-chanpane-sprout{
  width:40px;height:40px;margin:0 0 0 auto;}

/* (v2.4 head start) Platform tiles, role strip, unified
   queue, briefing, timeline and business preview. Shared
   classes only, from the brand palette already in this
   file: green #2E7D32, sage #6B8F71, light sage var(--light-sage),
   navy #14213D as text and accent only. */
.app-shell .v24-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px;margin:16px 0;}
.app-shell .v24-tile{display:flex;flex-direction:column;text-align:left;border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:16px 18px;cursor:pointer;font:inherit;color:var(--tb-text);width:100%;}
.app-shell .v24-tile:hover{border-color:#6B8F71;}
.app-shell .v24-tiletitle{font-size:12.5px;color:var(--tb-muted);}
.app-shell .v24-tilefigure{font-size:28px;font-weight:500;line-height:1.2;margin:5px 0;color:#14213D;}
.app-shell .v24-tiledef{font-size:12.5px;color:var(--tb-muted);margin-top:auto;padding-top:5px;line-height:1.5;}
.app-shell .v24-tilelines{font-size:13px;line-height:1.6;margin:4px 0;}
.app-shell .v24-samplebadge{display:inline-block;background:var(--tb-soft);color: var(--tb-green);border:1px solid #6B8F71;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:600;margin-left:6px;vertical-align:middle;}
.app-shell .v24-testbadge{display:inline-block;background:var(--tb-soft);color:#14213D;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:600;margin-left:6px;vertical-align:middle;}
.app-shell .v24-rolestrip{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0;}
.app-shell .v24-rolebtn{border:1px solid var(--tb-line);background:#FFFFFF;border-radius:var(--tb-radius);padding:12px 16px;cursor:pointer;font:inherit;color:#14213D;text-align:left;}
.app-shell .v24-rolebtn strong{display:block;color: var(--tb-green);}
.app-shell .v24-rolebtn span{font-size:12.5px;color:var(--tb-muted);}
.app-shell .v24-queuesec{margin:0 0 18px;}
.app-shell .v24-queuerow{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--tb-line);}
.app-shell .v24-briefline{padding:9px 0;border-bottom:1px solid var(--tb-line);line-height:1.55;}
.app-shell .v24-briefline a{color: var(--tb-green);font-weight:600;}
.app-shell .v24-dayhead{font-weight:600;color: var(--tb-green);margin:14px 0 4px;}
.app-shell .v24-banner{background:var(--tb-soft);border:1px solid #6B8F71;border-radius:var(--tb-radius);padding:12px 16px;margin:0 0 16px;line-height:1.55;}
.app-shell button.tb-stat.v24-statbtn, .app-shell .tb-stat.v24-statbtn{cursor:pointer;text-align:left;font:inherit;width:100%;}
.app-shell .tb-stat.v24-statbtn:hover{border-color:#6B8F71;}

/* (v3.15) The Review Center on the Approvals surface:
   its five folder tabs wrap onto two rows at phone
   widths rather than spilling off the right edge
   (the fit strip does not scroll), the
   needs-attention pin, the band sign-off lines, the
   per-item QA panels and the proposal row. */
.app-shell #apx-tabs{flex-wrap:wrap;}
.app-shell #apx-tabs .tb-tab{margin-bottom:0;}
.app-shell .apx-pin{border:2px solid #B7791F;background:#FDF6E0;border-radius:12px;padding:6px 12px 12px;margin:0 0 20px;}
.app-shell .apx-pin .apx-item{background:#FFFFFF;border-radius:10px;margin-top:8px;padding:10px 12px;}
.app-shell .apx-signoff{margin:0 2px 14px;font-size:14.5px;line-height:1.55;color:#33502F;}
.app-shell .apx-signoff .ok{color: var(--tb-green);font-weight:700;}
.app-shell .apx-qa{border-top:1px solid var(--tb-line);margin-top:12px;padding-top:10px;}
.app-shell .apx-qah{font-weight:700;color: var(--tb-green);margin:0 0 6px;font-size:15px;}
.app-shell .apx-qaline{margin:0 0 6px;line-height:1.55;white-space:pre-line;}
.app-shell .apx-qaflag{color:#8A5A00;font-weight:600;}
.app-shell .apx-proposal{border:1px solid #6B8F71;background:var(--tb-side);border-radius:10px;padding:10px 12px;margin-top:12px;}
.app-shell .apx-proposal p{margin:0 0 8px;line-height:1.55;}

/* (Admin searches) The header record search and the
   Settings page search: one results-list language for
   both, scoped to the back office shell. The highlight
   is how a search landing shows the operator the exact
   control or row it brought them to. */
.app-shell .tb-gsearch{position:relative;flex:1 1 230px;max-width:470px;min-width:170px;}
.app-shell .tb-gsearch .tb-search{width:100%;background:var(--tb-panel);}
.app-shell .tb-gsearch-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:min(68vh,560px);overflow:auto;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;box-shadow:0 14px 34px rgba(20,33,61,.18);padding:6px;z-index:300;text-align:left;}
.app-shell .tb-gsearch-ghead{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 10px 2px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--sage);}
.app-shell .tb-gsearch-count{font-weight:600;color:var(--tb-muted);text-transform:none;letter-spacing:0;}
.app-shell .tb-gsearch-item{display:block;width:100%;text-align:left;background:none;border:0;border-radius:9px;padding:7px 10px;cursor:pointer;font:inherit;color:var(--tb-text);}
.app-shell .tb-gsearch-item:hover,.app-shell .tb-gsearch-item.active{background:var(--light-sage);}
.app-shell .tb-gsearch-title{display:block;font-weight:600;color:var(--navy);font-size:14px;overflow-wrap:anywhere;}
.app-shell .tb-gsearch-sub{display:block;font-size:12px;color:var(--tb-muted);margin-top:1px;overflow-wrap:anywhere;}
.app-shell .tb-gsearch-snip{display:block;font-size:12.5px;color:var(--ink);margin-top:2px;overflow-wrap:anywhere;}
.app-shell .tb-gsearch-note{padding:10px;font-size:13px;color:var(--tb-muted);margin:0;}
.app-shell .tb-setsearch{position:relative;margin:0 0 14px;}
.app-shell .tb-setsearch .tb-search{width:100%;max-width:520px;background:var(--tb-panel);}
.app-shell .tb-setsearch-results{margin-top:6px;max-width:640px;border:1px solid var(--tb-line);border-radius:12px;background:var(--tb-panel);padding:6px;max-height:min(60vh,480px);overflow:auto;}
.app-shell .tb-search-hl{outline:3px solid var(--green);outline-offset:2px;border-radius:10px;}

/* (Common search control, Oct 31, 2026) The shared
   .tb-search bar stands in the back-office top bar:
   guide.js lifts the records and settings blocks
   into this holder in the header cluster, so the
   bar is visible on landing - Trevor flagged that
   he could not see a search bar anywhere. One block
   shows at a time; the Records/Settings switch
   rides at the holder's left in its settled pill
   dress; the results panels drop under their bar,
   clear of the page. The control's own states are
   the platform-wide ones in the COMMON SEARCH
   CONTROL section. */
.app-shell .tb-hdr-searchwrap{display:flex;align-items:center;gap:8px;flex:1 1 330px;max-width:660px;min-width:0;}
.app-shell .tb-hdr-searchwrap .tb-gsearch{flex:1 1 auto;min-width:0;max-width:none;}
.app-shell .tb-hdr-searchwrap .tb-setsearch{flex:1 1 auto;min-width:0;margin:0;}
.app-shell .tb-hdr-searchwrap .tb-setsearch .tb-search{max-width:none;}
.app-shell .tb-hdr-searchwrap .tb-setsearch-results{position:absolute;top:calc(100% + 6px);left:0;right:0;margin-top:0;z-index:300;box-shadow:0 14px 34px rgba(20,33,61,.18);}
.app-shell .tb-hdr-searchwrap .tb-hsearch-modes{margin:0;gap:6px;flex-shrink:0;}
.app-shell .tb-hdr-searchwrap .tb-hsearch-mode{padding:4px 10px;font-size:12.5px;}
/* TaskDesk's placement of the common control: it
   flexes across its toolbar the way its retired
   bespoke wrapper did. */
.app-shell .td-searchctl{flex:1 1 auto;min-width:170px;width:auto;}

@media (max-width: 640px){
  .app-shell .tb-topbar-actions{flex:1 1 100%;margin-left:0;}
  .app-shell .tb-gsearch{flex:1 1 auto;width:100%;max-width:none;}
  .app-shell .tb-hdr-searchwrap{flex:1 1 100%;max-width:none;}
  .app-shell .tb-hdr-searchwrap .tb-gsearch-panel{left:auto;width:min(470px,calc(100vw - 20px));}
  .app-shell .tb-hdr-searchwrap .tb-setsearch-results{left:auto;width:min(470px,calc(100vw - 20px));}
}
/* (r4) The adopted r4 dashboard pieces, in the settled
   dress: digest-at-a-glance and time dividend on the
   customer home; exception rows on the admin home;
   the operations arrangement on the Platform view.
   Mobile discipline throughout: single column flow,
   two-up figure cards, one line per list row. */
/* Your digest, at a glance */
.app-shell .tb-glance{display:flex;gap:20px;align-items:center;}
.app-shell .tb-glance-donut{flex:0 0 auto;}
.app-shell .tb-glance-num{font-size:34px;font-weight:600;fill:var(--tb-text);}
.app-shell .tb-glance-word{font-size:12.5px;fill:var(--tb-muted);}
.app-shell .tb-glance-rows{flex:1;min-width:0;display:flex;flex-direction:column;}
.app-shell .tb-glancerow{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-top:1px solid var(--tb-line);font:inherit;text-align:left;padding:11px 8px;cursor:pointer;color:var(--tb-text);}
.app-shell .tb-glancerow:first-child{border-top:0;}
.app-shell .tb-glancerow:nth-child(even){background:#F2F6F2;}
.app-shell .tb-glance-swatch{flex:0 0 auto;width:10px;height:10px;border-radius:50%;}
.app-shell .tb-glance-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .tb-glance-count{font-weight:600;font-variant-numeric:tabular-nums;}
.app-shell .tb-glancerow::after{content:"\203A";color:var(--tb-green);font-weight:600;}
@media (max-width:640px){
  .app-shell .tb-glance{flex-direction:column;align-items:stretch;gap:10px;}
  .app-shell .tb-glance-donut{align-self:center;}
}
/* Your time dividend */
.app-shell .tb-dividend-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:4px 0 12px;}
.app-shell .tb-dividend-card{border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:16px 18px;}
.app-shell .tb-dividend-num{font-size:26px;letter-spacing:-.5px;font-weight:500;line-height:1.2;color:var(--tb-text);}
.app-shell .tb-dividend-label{font-size:12.5px;color:var(--tb-muted);margin-top:3px;}
/* (Slices 8+9, TB-1268) Weekly value bars: four
   columns, brand green for a recorded week, a pale
   outline for a week still measuring. */
.app-shell .tb-valuebars{display:flex;gap:12px;align-items:flex-end;margin:6px 0 10px;}
.app-shell .tb-valuebar-cell{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;}
.app-shell .tb-valuebar{width:70%;max-width:52px;height:64px;background:var(--tb-green,#2E7D32);border-radius:6px 6px 0 0;align-self:center;margin-top:auto;}
.app-shell .tb-valuebar.measuring{background:transparent;border:1.5px dashed var(--tb-line);border-bottom:none;}
.app-shell .tb-valuebar-val{font-size:12.5px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-valuebar-label{font-size:11.5px;color:var(--tb-muted);text-align:center;}
.app-shell .tb-draftrow{padding:10px 0;border-top:1px solid var(--tb-line);}
.app-shell .tb-draftrow-title{font-size:14.5px;font-weight:600;color:var(--tb-text);}
.app-shell .tb-draftrow-sub{font-size:12.5px;color:var(--tb-muted);margin-top:2px;}
/* (Rebase on v3.42, TB-1268) Time returned carries
   three figures: the week in the main column, the
   month and all-time as side figures sharing a row. */
.app-shell .cust-time-side{flex:0 1 auto;min-width:104px;}
/* Admin home exception rows: one line, own verb */
.app-shell .ad-exrow{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-top:1px solid var(--tb-line);font:inherit;text-align:left;padding:11px 8px;cursor:pointer;color:var(--tb-text);}
.app-shell .ad-exrow:first-child{border-top:0;}
.app-shell .ad-exrow:nth-child(even){background:var(--tb-side);}
.app-shell .ad-exrow-main{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .ad-exverb{flex:0 0 auto;font-weight:600;color:var(--tb-green);}
.app-shell .ad-exverb::after{content:"\203A";margin-left:5px;}
.app-shell .ad-exverb-static{display:block;margin-top:4px;font-weight:600;color:var(--tb-green);font-size:13.5px;}
.app-shell .ad-exverb-static::after{content:"\203A";margin-left:5px;}
/* Platform operations arrangement */
.app-shell .v24-briefband{background:var(--tb-green);color:#fff;border-radius:10px;padding:13px 16px;margin:2px 0 16px;line-height:1.55;}
.app-shell .v24-briefband-label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.85;margin-bottom:2px;}
.app-shell .v24-opsbar{display:block;width:100%;background:none;border:0;border-top:1px solid var(--tb-line);font:inherit;text-align:left;padding:12px 8px;cursor:pointer;color:var(--tb-text);}
.app-shell .v24-opsbar:first-child{border-top:0;}
.app-shell .v24-opsbar:nth-child(even){background:#F2F6F2;}
.app-shell .v24-opsbar-top{display:flex;align-items:baseline;gap:10px;}
.app-shell .v24-opsbar-title{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .v24-opsbar-count{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;}
.app-shell .v24-opsbar-track{display:block;height:8px;border-radius:4px;background:var(--tb-line);margin:7px 0 6px;}
.app-shell .v24-opsbar-fill{display:block;height:100%;border-radius:4px;background:var(--tb-green);}
.app-shell .v24-opsbar-def{display:block;font-size:12.5px;color:var(--tb-muted);}
.app-shell .v24-ops-assure{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:14px;}
.app-shell .v24-ops-card{border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:16px 18px;}
.app-shell .v24-ops-cardlabel{font-size:12.5px;color:var(--tb-muted);}
.app-shell .v24-ops-cardnum{font-size:26px;letter-spacing:-.5px;font-weight:500;line-height:1.2;margin:4px 0;color:var(--tb-text);}
.app-shell .v24-ops-carddef{font-size:12.5px;color:var(--tb-muted);margin:0;line-height:1.5;}
@media (max-width:640px){
  .app-shell .v24-ops-assure{grid-template-columns:1fr;}
}

/* (v3.28, TB-1225) Sprout conversation release:
   identity lines, role pills, centered system
   lines, quick-intent chips, the helpful tap, and
   the steps sheet door. */
.tb-chat-sysline { text-align: center; color: #6b7a6e;
  font-size: 12px; margin: 10px 8px; }
/* (Oct 27, 2026, Trevor's direction) The role pill wears
   the darker branded green with white text, in the
   website panel and the back office alike, so the two
   stay identical. The bubbles stay light sage; this is
   the pill only. White on #2E7D32 measures 5.13:1. */
.tb-chat-pill { display: inline-block; margin-left: 6px;
  padding: 0 6px; border-radius: 999px;
  background: var(--green); color: #FFFFFF;
  font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  vertical-align: 1px; }
.tb-chat-ghead-you { justify-content: flex-end; }
.tb-visitor-chips { display: flex; flex-wrap: wrap;
  gap: 6px; padding: 8px 12px 2px; }
.tb-visitor-chip { border: 1px solid var(--green);
  color: var(--green); background: #fff; border-radius: 999px;
  padding: 5px 11px; font-size: 13px; cursor: pointer; }
.tb-visitor-fb { display: flex; gap: 6px; margin: 4px 0 2px; }
.tb-visitor-fbbtn { border: 1px solid #c9d6c8;
  background: #f6f9f5; color: #47604a; border-radius: 999px;
  padding: 3px 9px; font-size: 12px; cursor: pointer; }
.tb-visitor-fbbtn.tb-on { background: var(--green);
  color: #fff; border-color: var(--green); }
.tb-visitor-fbbtn[disabled] { opacity: .65; cursor: default; }
.tb-visitor-stepsbtn { border: none; background: none;
  color: var(--green); font-weight: 600; font-size: 13px;
  padding: 4px 0; cursor: pointer; text-align: left; }
.tb-visitor-steps { position: fixed; left: 0; right: 0;
  bottom: 0; z-index: 1200; background: rgba(20,33,61,.45);
  padding: 10px; }
.tb-visitor-stepscard { background: #fff;
  border-radius: 14px; max-height: 72vh; overflow: auto;
  padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.tb-visitor-stepshead { display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 700; color: #14213d; margin-bottom: 8px; }
.tb-visitor-stepshead button { border: none;
  background: none; font-size: 20px; cursor: pointer;
  color: #47604a; }
.tb-visitor-stepsbody { white-space: pre-wrap;
  font-size: 14px; line-height: 1.5; color: #243026; }
.tb-visitor-stepssrc { color: #6b7a6e; font-size: 12px;
  margin-top: 10px; }
/* (Guided Help v1, TB-1240) The guide door.
   (TB-1323) The door is no longer in the page at all:
   one small Sprout launcher stands in the header, and
   the conversation lives in the body-level pop-up
   below, over a scroll lock, so the page underneath
   never moves. The header buttons match the bar's own
   control size (the hamburger's 40px box); Sprout's
   picture reads at about 32px inside it. */
.app-shell .tb-hdr-btn { font: inherit; width: 40px;
  height: 40px; border-radius: 50%; background: var(--tb-panel);
  border: 1px solid var(--tb-line); padding: 0;
  cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,33,61,.12);
  flex: 0 0 auto; }
.app-shell .tb-hdr-btn:focus-visible {
  outline: 3px solid var(--tb-text); outline-offset: 2px; }
/* (Header conformance, Oct 24, 2026) Every header
   cluster button shows a hover state (Trevor's hover
   rule); the cluster had none. */
.app-shell .tb-hdr-btn:hover { background: var(--tb-soft); }
.app-shell .tb-hdr-help { font-size: 16px; font-weight: 700;
  color: var(--tb-text); line-height: 1; }
/* The account avatar is a button too: its hover is a
   soft ring, since a photo fills the disc and a
   background change would hide behind it. */
.app-shell .tb-avatar-btn:hover {
  box-shadow: 0 0 0 3px var(--tb-soft); }
.app-shell .tb-hdr-sprout-img { width: 31px;
  height: 31px; border-radius: 50%; display: block; }
.app-shell .tb-hdr-search svg { width: 19px;
  height: 19px; color: var(--tb-text); display: block; }
/* (v4.30) One icon family in the top bar (Trevor's
   call, Oct 29, 2026): every header control wears the
   same 40px white circle with the hairline border and
   soft shadow, and every glyph is the same outline
   family at the same optical size (20px, stroke 2).
   The Callback Queue phone used to ride the small
   square .tb-iconbtn (a 30px box, a 16px glyph); in
   the top bar it now matches the cluster. Sprout
   stays the assistant's glyph, sized as a glyph inside
   the same circle instead of a 31px picture, and the
   search glyph comes up to the family size. */
.app-shell .tb-topbar .tb-iconbtn { width: 40px;
  height: 40px; border-radius: 50%; background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  box-shadow: 0 2px 8px rgba(20,33,61,.12);
  color: var(--tb-text); }
.app-shell .tb-topbar .tb-iconbtn svg { width: 20px;
  height: 20px; }
.app-shell .tb-topbar .tb-iconbtn:hover {
  background: var(--tb-soft);
  border-color: var(--tb-line); }
.app-shell .tb-topbar .tb-hdr-search svg { width: 20px;
  height: 20px; }
.app-shell .tb-hdr-btn .tb-hdr-sprout-img { width: 21px;
  height: 21px; }
/* The feedback button rides inside the profile block
   at the cluster's end: the same circle, border,
   shadow and glyph size as the rest of the row (it
   was a bare 38px glyph with no container). */
.app-shell .tb-feedback-btn { width: 40px;
  height: 40px; background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  box-shadow: 0 2px 8px rgba(20,33,61,.12); }
.app-shell .tb-feedback-btn svg { width: 20px;
  height: 20px; }
/* (Oct 29, 2026) The Callback Queue phone rides the same
   family (it now also carries the tb-hdr-btn class in the
   markup); the family dress is stated on its own class as
   well, so the small square .tb-iconbtn base can never
   pull it out of the cluster again (Trevor's catch: the
   phone did not match the other top bar buttons). */
.app-shell .tb-topbar .ad-cbq-top { width: 40px;
  height: 40px; border-radius: 50%; background: var(--tb-panel);
  border: 1px solid var(--tb-line); padding: 0;
  box-shadow: 0 2px 8px rgba(20,33,61,.12);
  color: var(--tb-text); flex: 0 0 auto; }
.app-shell .tb-topbar .ad-cbq-top svg { width: 20px;
  height: 20px; }
.app-shell .tb-topbar .ad-cbq-top:hover {
  background: var(--tb-soft); }
.app-shell .tb-topbar-actions { justify-content: flex-end; }
.tb-guide-sheettitle { font-weight: 700;
  color: var(--tb-text); flex: 1 1 auto;
  line-height: 1.35; }
/* The shell's button reset (.app-shell button, color:inherit)
   outranks the guide's own filled buttons; stated at bar
   scope, their white label wins as designed. */
.tb-guide-sheet .tb-guide-ask,
.tb-guide-sheet .tb-guide-door { color: #fff; }
.tb-guide-avatar { width: 26px; height: 26px;
  border-radius: 50%; background: #fff; }
/* (TB-1316) The guide chat window's keyboard
   contract: --tb-kb is the keyboard height guide.js
   keeps off the visual viewport, and the sheet reads
   it so the composer stays visible and tappable
   while a phone keyboard is up.
   (TB-1323) The sheet is built at body level as the
   one shared chat pop-up (id tb-guide-pop), so it
   carries its own copies of the shell tokens -
   body level is outside .app-shell's scope - and it
   stands over the shared scrim while guide.js holds
   the scroll lock.
   (v4.25) The pop-up now wears the standard chatbot
   geometry, the platform chat standard the planner
   sheet and the media Sprout panel carry: a
   right-docked panel, min(400px, 100%), full height
   at every width, square corners, the -14px side
   shadow. On a phone the dock resolves to the full
   screen. The keyboard contract survives as bottom
   padding: the panel itself stays docked while its
   contents lift by --tb-kb, so the composer and the
   voice bar ride above the keyboard. */
.tb-guide-sheet, .tb-hsearch-pop {
  --tb-green: #2E7D32; --tb-green-dark: #256629;
  --tb-line: var(--line); --tb-text: #18283A;
  --tb-muted: #68766E; --tb-panel: #FFFFFF;
  --tb-soft: var(--tb-soft-default); }
.tb-guide-sheet { position: fixed; top: 0; right: 0;
  bottom: 0; left: auto; z-index: 1250;
  width: min(400px, 100%); height: 100dvh;
  max-height: 100dvh; background: var(--tb-panel,#FFFFFF);
  border: 0; border-radius: 0;
  box-shadow: -14px 0 44px rgba(16,26,32,.28);
  padding: 0 0 var(--tb-kb, 0px);
  display: flex; flex-direction: column;
  box-sizing: border-box; }
.tb-guide-sheet[hidden] { display: none; }
/* (TB-1323) The shared pop-up scrim and the scroll
   lock: while a pop-up stands, guide.js holds the
   page at its current offset (overflow lock, inline
   as well as here); the stable gutter keeps the
   content width identical while the scrollbar is
   locked away. */
.tb-pop-scrim { position: fixed; inset: 0;
  background: rgba(20,33,61,.32); z-index: 1240; }
.tb-pop-scrim[hidden] { display: none; }
html.tb-pop-locked { overflow: hidden;
  scrollbar-gutter: stable; }
html.tb-pop-locked body { overflow: hidden; }
/* (TB-1323) The header search pop-up, carrying the
   two v3.22 search blocks whole. Their styles were
   written for .app-shell scope, so the rules they
   need are restated here at pop scope with the same
   values; the field reads 16px so a phone never
   focus-zooms it.
   (Search sheet placement fix, Oct 26, 2026) The
   pop-up no longer borrows the chat window's
   bottom-right anchor: Trevor, testing for the
   demo, tapped Search in the header and got the
   card in the screen's far corner. It is now a
   sheet at the top of the viewport, centered,
   directly under the header. guide.js measures
   the header's bottom at open time and publishes
   it as --tb-hsearch-top on the pop-up, which the
   top offset and the max-height both read, so the
   review bar, a wrapped header, and the phone
   offset are all inside the one measurement. The
   defaults here (77px, and 152px at phone widths)
   are the measured header bottoms plus a 12px
   gap, and stand if the measurement does not run.
   The head is the standard sheet head: the title
   centered in the bar, the close button at the
   bar's right end, a rule under the bar. The chat
   pop-up keeps its own bottom sheet, untouched. */
.tb-hsearch-pop { position: fixed; left: 50%;
  right: auto; bottom: auto;
  top: var(--tb-hsearch-top, 77px);
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 24px));
  z-index: 1250; background: var(--tb-panel,#FFFFFF);
  border: 1px solid var(--tb-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,33,61,.30);
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--tb-hsearch-top, 77px)
    - 12px);
  box-sizing: border-box;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14.5px; line-height: 1.45;
  color: var(--tb-text); }
.tb-hsearch-pop[hidden] { display: none; }
@media (max-width: 750px) {
  .tb-hsearch-pop { --tb-hsearch-top: 152px; }
}
.tb-hsearch-pop .tb-guide-sheethead { display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
  padding: 10px 14px; margin: 0; flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid var(--tb-line); }
.tb-hsearch-pop .tb-guide-sheettitle {
  grid-column: 2; justify-self: center;
  font-size: 15.5px; font-weight: 600; }
.tb-hsearch-pop .tb-guide-close { grid-column: 3;
  justify-self: end; width: 38px; height: 38px;
  border: 0; background: none; border-radius: 8px;
  color: var(--tb-text); font-size: 22px;
  line-height: 1; padding: 0; cursor: pointer;
  flex: 0 0 auto; }
.tb-hsearch-pop .tb-guide-close:hover {
  background: var(--tb-soft); }
.tb-hsearch-pop .tb-guide-close:active {
  background: var(--tb-line); }
.tb-hsearch-pop .tb-guide-close:focus-visible {
  outline: 3px solid var(--tb-text);
  outline-offset: 2px; }
.tb-hsearch-modes { display: flex; gap: 8px;
  margin: 12px 14px 10px; }
.tb-hsearch-mode { font: inherit; font-weight: 600;
  background: #fff; color: var(--tb-green);
  border: 1px solid var(--tb-green);
  border-radius: 999px; padding: 5px 14px;
  cursor: pointer; }
.tb-hsearch-mode.active { background: var(--tb-green);
  color: #fff; }
.tb-hsearch-mode:hover { background: var(--tb-soft); }
.tb-hsearch-mode.active:hover {
  background: var(--tb-green-dark); }
.tb-hsearch-mode:active { background: var(--tb-line); }
.tb-hsearch-mode.active:active {
  background: var(--tb-green-dark); }
.tb-hsearch-mode:focus-visible {
  outline: 3px solid var(--tb-text);
  outline-offset: 2px; }
.tb-hsearch-body { overflow-y: auto; min-height: 0;
  padding: 0 14px 14px; }
.tb-hsearch-pop .tb-search { display: flex;
  align-items: center; gap: 8px; padding: 8px 11px;
  border: 1px solid var(--tb-line); background: #fff;
  border-radius: 8px; width: 100%; max-width: 100%;
  color: var(--tb-muted); box-sizing: border-box; }
.tb-hsearch-pop .tb-search svg { width: 16px;
  height: 16px; flex-shrink: 0; }
.tb-hsearch-pop .tb-search input { border: 0;
  outline: 0; min-width: 0; width: 100%;
  background: none; color: var(--tb-text);
  font-size: 16px; font-family: inherit; }
.tb-hsearch-pop .tb-search
  input::-webkit-search-cancel-button { display: none; }
.tb-hsearch-pop .tb-searchclear { flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--tb-line);
  color: var(--tb-text); font-size: 14px;
  line-height: 1; cursor: pointer; padding: 0; }
.tb-hsearch-pop .tb-gsearch { position: static;
  max-width: none; min-width: 0; }
.tb-hsearch-pop .tb-gsearch-panel { position: static;
  margin-top: 6px; max-height: 42vh; overflow: auto;
  background: #fff; border: 1px solid var(--tb-line);
  border-radius: 12px; box-shadow: none; padding: 6px;
  text-align: left; }
.tb-hsearch-pop .tb-gsearch-ghead { display: flex;
  justify-content: space-between;
  align-items: baseline; gap: 10px;
  padding: 8px 10px 2px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sage); }
.tb-hsearch-pop .tb-gsearch-count { font-weight: 600;
  color: var(--tb-muted); text-transform: none;
  letter-spacing: 0; }
.tb-hsearch-pop .tb-gsearch-item { display: block;
  width: 100%; text-align: left; background: none;
  border: 0; border-radius: 9px; padding: 7px 10px;
  cursor: pointer; font: inherit;
  color: var(--tb-text); }
.tb-hsearch-pop .tb-gsearch-item:hover,
.tb-hsearch-pop .tb-gsearch-item.active {
  background: var(--light-sage); }
.tb-hsearch-pop .tb-gsearch-title { display: block;
  font-weight: 600; color: var(--navy);
  font-size: 14px; overflow-wrap: anywhere; }
.tb-hsearch-pop .tb-gsearch-sub { display: block;
  font-size: 12px; color: var(--tb-muted);
  margin-top: 1px; overflow-wrap: anywhere; }
.tb-hsearch-pop .tb-gsearch-snip { display: block;
  font-size: 12.5px; color: var(--ink);
  margin-top: 2px; overflow-wrap: anywhere; }
.tb-hsearch-pop .tb-gsearch-note { padding: 10px;
  font-size: 13px; color: var(--tb-muted); margin: 0; }
.tb-hsearch-pop .tb-setsearch { position: static;
  margin: 0; }
.tb-hsearch-pop .tb-setsearch-results { margin-top: 6px;
  max-width: none; border: 1px solid var(--tb-line);
  border-radius: 12px; background: #fff; padding: 6px;
  max-height: 42vh; overflow: auto; }
/* (TB-1323) The slot the search blocks ride in the
   page until guide.js lifts them into the pop-up:
   never a standing bar anywhere. */
.tb-hsearch-slot { display: none !important; }
.tb-guide-sheethead { display: flex; align-items: center;
  gap: 9px; margin-bottom: 6px; }
.tb-guide-sheethead .tb-guide-avatar { width: 30px;
  height: 30px; }
.tb-guide-close { font: inherit; font-size: 22px;
  line-height: 1; background: #fff; color: var(--tb-green);
  border: 1px solid var(--tb-line); border-radius: 50%;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  flex: 0 0 auto; }
.tb-guide-sheet .tb-guide-report { align-self: flex-start;
  margin-top: 2px; }
.tb-guide-sheet .tb-guide-out { overflow-y: auto;
  min-height: 0; }
.tb-guide-sheet .tb-guide-row { flex-wrap: nowrap;
  margin-top: 10px; }
.tb-guide-ctx { margin: 0 0 8px; font-size: 13px;
  color: #47604a; line-height: 1.5; }
.tb-guide-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-guide-ask { font: inherit; font-weight: 700;
  background: var(--tb-green); color: #fff; border: none;
  border-radius: 9px; padding: 9px 18px; cursor: pointer; }
.tb-guide-report { font: inherit; font-weight: 600;
  background: #fff; color: var(--tb-green);
  border: 1px solid var(--tb-green); border-radius: 9px;
  padding: 9px 14px; cursor: pointer; }
.tb-guide-out { margin-top: 10px; }
.tb-guide-answer { margin: 0 0 6px; line-height: 1.55;
  color: var(--tb-text); }
.tb-guide-fact { margin: 0 0 4px; font-weight: 600;
  color: var(--tb-text); }
.tb-guide-door { font: inherit; font-weight: 700;
  background: var(--tb-green); color: #fff; border: none;
  border-radius: 9px; padding: 9px 16px; cursor: pointer;
  margin-top: 6px; }
.tb-guide-text { width: 100%; font: inherit; padding: 9px 11px;
  border: 1px solid var(--tb-line); border-radius: 9px;
  box-sizing: border-box; }
/* (v4.25) The standard chatbot form inside the guide
   sheet, scoped to .tb-guide-sheet throughout: the
   header search pop-up reuses several of these class
   names for its own white head and is deliberately
   untouched by every rule below. The band is the
   master chat header: brand green, Sprout's
   medallion on a light sage disc with a white ring,
   the title and status in white, the close X at the
   band's right end. The context line becomes the
   standard sage context strip. Answers wear the
   standard team bubble (light sage, sage edge, the
   5px tail). The composer is the shared composer
   card: the rounded growing field and the circular
   green up-arrow send. The voice bar mounts flat
   between the answers and the composer card, as on
   the dashboard's Support surface. */
.tb-guide-sheet .tb-guide-sheethead {
  background: var(--tb-green); color: #FFFFFF;
  margin: 0; padding: 12px 8px 12px 14px;
  border-radius: 0; min-height: 72px; gap: 12px;
  box-sizing: border-box; flex: 0 0 auto;
  position: relative; }
.tb-guide-medallion { width: 48px; height: 48px;
  border-radius: 50%; background: var(--tb-soft);
  border: 3px solid #FFFFFF; flex: 0 0 auto;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(20,33,61,.22); }
.tb-guide-sheet .tb-guide-sheethead .tb-guide-avatar {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; background: transparent;
  display: block; }
.tb-guide-bandtexts { flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; }
.tb-guide-sheet .tb-guide-sheettitle {
  color: #FFFFFF; font-size: 15.5px; font-weight: 700;
  line-height: 1.25; flex: 0 0 auto; }
.tb-guide-bandstatus { font-size: 12.5px;
  color: rgba(255,255,255,.88); line-height: 1.3; }
.tb-guide-sheet .tb-guide-close {
  background: transparent; border: 0; color: #FFFFFF;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; }
.tb-guide-sheet .tb-guide-close:hover {
  background: rgba(255,255,255,.18); }
.tb-guide-sheet .tb-guide-close:focus-visible {
  outline: 3px solid #FFFFFF; outline-offset: -3px; }
.tb-guide-sheet .tb-guide-close:active {
  background: rgba(255,255,255,.30); }
.tb-guide-sheet .tb-guide-ctx { margin: 0;
  padding: 9px 16px; font-size: 12.5px;
  line-height: 1.4; color: #3C4A63;
  background: var(--tb-soft);
  border-bottom: 1px solid var(--tb-line);
  flex: 0 0 auto; }
.tb-guide-sheet .tb-guide-report {
  align-self: flex-start; margin: 10px 16px 0; }
.tb-guide-sheet .tb-guide-out { overflow-y: auto;
  min-height: 0; flex: 1 1 auto; margin-top: 0;
  padding: 16px; }
/* The answer region is the panel's spring: it stays
   in the layout while it stands empty (guide.js
   marks it hidden until the first answer), so the
   voice bar and the composer card rest at the
   panel's foot from the moment the panel opens,
   exactly where the standard panel keeps them. */
.tb-guide-sheet .tb-guide-out[hidden] {
  display: block; visibility: hidden; }
.tb-guide-bubble { background: var(--tb-soft);
  border: 1px solid var(--tb-line); border-radius: 14px;
  border-bottom-left-radius: 5px;
  padding: 10px 13px; max-width: 88%;
  font-size: 15px; line-height: 1.5; }
.tb-guide-bubble .tb-guide-answer { margin: 0 0 6px; }
.tb-guide-bubble .tb-guide-answer:last-child {
  margin-bottom: 0; }
.tb-guide-bubble .tb-guide-fact:last-child {
  margin-bottom: 0; }
.tb-guide-voice { flex: 0 0 auto; padding: 0 12px; }
.tb-guide-voice:empty { display: none; }
/* (Nov 1, 2026) The guide pop's composer slot: the
   pop's foot in the sheet's flex column, holding the
   platform composer component (.tbpc card) the
   convergence promotes; the card keeps the sheet's
   own floating shadow here. The pop's private
   composer skin retired onto the shared component
   in the same release. */
.tb-guide-popfoot { flex: 0 0 auto;
  margin: 8px 12px 12px; box-sizing: border-box; }
.tb-guide-popfoot .tbpc-card { margin-top: 0;
  box-shadow: 0 -6px 18px rgba(20,33,61,.05); }
/* (Oct 27, 2026) The guide chat's header options:
   the three-dot button and its menu, on the visitor
   chat's v4.27 pattern (white card under the band's
   right end, the X keeping the band's right end
   itself). The menu carries the Voice Mode toggle
   and, while Voice Mode is on, the Voice Settings
   section the shared voice bar's configuration rows
   move into, so the conversation surface itself
   stays the clean standard chat. The relocated rows
   keep their .tbv-* engine styles; only their
   spacing is tuned for the menu's narrower home. */
.tb-guide-sheet .tb-guide-menubtn {
  background: transparent; border: 0; color: #FFFFFF;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  flex: 0 0 auto; padding: 0; }
.tb-guide-sheet .tb-guide-menubtn svg {
  width: 21px; height: 21px; }
.tb-guide-sheet .tb-guide-menubtn:hover {
  background: rgba(255,255,255,.18); }
.tb-guide-sheet .tb-guide-menubtn:focus-visible {
  outline: 3px solid #FFFFFF; outline-offset: -3px; }
.tb-guide-sheet .tb-guide-menubtn:active {
  background: rgba(255,255,255,.30); }
.tb-guide-sheet .tb-guide-headmenu {
  position: absolute; top: calc(100% + 4px);
  right: 8px; width: min(300px, calc(100vw - 32px));
  box-sizing: border-box; background: #FFFFFF;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,33,61,.22);
  padding: 8px; z-index: 9; text-align: left;
  color: var(--tb-text); }
.tb-guide-sheet .tb-guide-headmenu[hidden] {
  display: none; }
.tb-guide-sheet .tb-guide-menuitem {
  display: flex; width: 100%; align-items: center;
  justify-content: space-between; gap: 10px;
  background: none; border: 0; border-radius: 8px;
  padding: 9px 10px; font: inherit;
  font-size: 14.5px; font-weight: 600;
  color: var(--tb-text); cursor: pointer;
  text-align: left; box-sizing: border-box; }
.tb-guide-sheet .tb-guide-menuitem:hover {
  background: var(--tb-soft); }
.tb-guide-sheet .tb-guide-menuitem:focus-visible {
  outline: 2px solid var(--tb-green);
  outline-offset: -2px; }
.tb-guide-sheet .tb-guide-menuitem:active {
  background: var(--tb-soft); }
.tb-guide-sheet .tb-guide-menustate {
  font-weight: 700; color: var(--tb-green); }
.tb-guide-sheet .tb-guide-voicesettings {
  border-top: 1px solid var(--tb-line);
  margin-top: 6px; padding: 10px 4px 2px; }
.tb-guide-sheet .tb-guide-voicesettings[hidden] {
  display: none; }
.tb-guide-sheet .tb-guide-menuhead {
  margin: 0 0 2px; padding: 0 6px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--tb-muted); }
.tb-guide-sheet .tb-guide-voiceconfig .tbv-opts {
  margin-top: 6px; }
.tb-guide-sheet .tb-guide-voiceconfig .tbv-voice {
  max-width: 100%; box-sizing: border-box; }
.tb-guide-sheet .tb-guide-voiceconfig .tbv-moderow {
  margin-top: 10px; }
.tb-guide-sheet .tb-guide-voice[hidden] {
  display: none; }
.tb-guide-stepscard { position: fixed; right: 14px;
  bottom: 14px; z-index: 1300; background: var(--tb-panel,#FFFFFF);
  border: 1px solid var(--tb-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,33,61,.30);
  padding: 14px 16px; max-width: min(420px, calc(100vw - 28px)); }
.tb-guide-stepstitle { font-weight: 700; color: var(--tb-green);
  margin-bottom: 8px; }
.tb-guide-stepslist { margin: 0 0 10px; padding-left: 20px;
  line-height: 1.55; color: var(--tb-text); }
.tb-guide-done { font: inherit; font-weight: 600;
  background: #fff; color: var(--tb-green);
  border: 1px solid var(--tb-green); border-radius: 9px;
  padding: 7px 14px; cursor: pointer; }
.tb-visitor-stepsdoor { font: inherit; font-weight: 700;
  background: var(--green); color: #fff; border: none;
  border-radius: 9px; padding: 9px 16px; cursor: pointer;
  margin-top: 10px; display: block; }
.tb-guide-offercard { position: fixed; right: 14px;
  bottom: 86px; z-index: 1290; background: var(--tb-panel,#FFFFFF);
  border: 1px solid var(--tb-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,33,61,.30);
  padding: 14px 16px; max-width: min(420px, calc(100vw - 28px)); }
.tb-visitor-stepsnote { color: #47604a; font-size: 13px;
  line-height: 1.5; margin-top: 10px; }

@media (max-width: 700px) {
  .tb-guide-stepscard { left: 10px; right: 10px;
    bottom: 10px; max-width: none; max-height: 46vh;
    overflow: auto; }
}


/* (Slice 1, Admin A) Platform command center head: crumb,
   KPI cards and paired gauges in the comp's visual
   language, built from the single design tokens. */
.app-shell .cc-crumb{font-size:13px;color:var(--tb-muted);margin:0 0 10px;}
.app-shell .cc-winwrap{display:flex;align-items:center;}
.app-shell .cc-win{font:inherit;font-weight:600;color:var(--tb-green);background:#fff;border:1px solid var(--tb-line);border-radius:999px;padding:10px 16px;box-shadow:0 1px 3px rgba(20,33,61,.08);cursor:pointer;}
.app-shell .cc-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px;margin:16px 0;}
.app-shell .cc-kpi{display:flex;flex-direction:column;text-align:left;border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:18px 20px;cursor:pointer;font:inherit;color:var(--tb-text);width:100%;}
.app-shell .cc-kpi:hover{border-color:#6B8F71;}
.app-shell .cc-kpilabel{font-size:13px;color:var(--tb-muted);display:flex;align-items:center;gap:8px;}
.app-shell .cc-kpinum{font-size:var(--tb-fig);font-weight:650;letter-spacing:-.5px;line-height:1.15;margin:6px 0 4px;font-variant-numeric:tabular-nums;color:var(--tb-navy);}
.app-shell .cc-kpicap{font-size:13.5px;color:var(--tb-muted);line-height:1.5;}
/* (Slice 4) The command center's KPI row on a phone:
   two cards per row, the comp's mobile form (2 x 2)
   and DESIGN-SYSTEM sec 6's canon, instead of a
   one-across stack. */
@media (max-width:700px){.app-shell .cc-kpis{grid-template-columns:1fr 1fr;}}
.app-shell .cc-gaugepanel{margin:0 0 16px;}
.app-shell .cc-gauges{display:grid;grid-template-columns:1fr 1fr;gap:15px;}
.app-shell .cc-gauge{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 10px 4px;}
.app-shell .cc-ring{width:168px;height:168px;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;}
.app-shell .cc-ring::before{content:"";position:absolute;inset:16px;border-radius:50%;background:var(--tb-panel);}
.app-shell .cc-ringnum{position:relative;font-size:27px;font-weight:600;color:var(--tb-text);font-variant-numeric:tabular-nums;}
.app-shell .cc-gaugelabel{font-weight:600;margin-top:10px;}
.app-shell .cc-gaugedef{font-size:12.5px;color:var(--tb-muted);margin:4px 0 0;line-height:1.5;max-width:340px;}
@media (max-width:720px){
  .app-shell .cc-ring{width:128px;height:128px;}
  .app-shell .cc-ringnum{font-size:21px;}
  .app-shell .cc-gaugedef{font-size:11.5px;}
}
@media (max-width:350px){
  .app-shell .cc-gauges{grid-template-columns:1fr;}
}

/* (Slice 2) Canonical exception banner + action row: ONE
   component, used by the Platform command center and the
   Admin home attention list alike (rollout step 1). */
.app-shell .tb-exc-banner{background:var(--tb-soft);border:1px solid var(--tb-line);border-radius:var(--tb-radius-lg);padding:20px 22px;margin:0 0 6px;}
.app-shell .tb-exc-banner-title{font-weight:700;font-size:24px;line-height:1.25;margin:0;color:var(--tb-navy);}
.app-shell .tb-exc-banner-sub{font-size:14.5px;color:var(--tb-muted);margin:4px 0 0;}
.app-shell .tb-exc-banner-btn{margin-top:2px;background:var(--tb-green);color:#fff;border:1px solid var(--tb-green);}
.app-shell .tb-action-row{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-top:1px solid var(--tb-line);font:inherit;text-align:left;padding:12px 8px;cursor:pointer;color:var(--tb-text);text-decoration:none;box-sizing:border-box;}
.app-shell .tb-action-row:nth-child(even){background:var(--tb-side);}
.app-shell .tb-action-row:hover{border-color:#6B8F71;}
.app-shell .tb-action-row-main{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;}
.app-shell .tb-action-row-title{font-weight:600;font-size:14.5px;}
.app-shell .tb-action-row-def{font-size:13px;color:var(--tb-muted);line-height:1.45;}
.app-shell .tb-action-row-value{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;}
.app-shell .tb-action-row-verb{color:var(--tb-green);font-weight:600;white-space:nowrap;}
@media (max-width:720px){.app-shell .tb-exc-banner-btn{width:100%;}}
.app-shell .tb-actchart{margin:6px 0 2px;}
.app-shell .tb-actchart-svg{width:100%;height:auto;display:block;}
.app-shell .tb-actchart-line{stroke:var(--tb-green);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;}
.app-shell .tb-actchart-fill{fill:var(--tb-soft);}
.app-shell .tb-actchart-grid{stroke:var(--tb-line);stroke-width:1;}
.app-shell .tb-actchart-axis{fill:var(--tb-muted);font-size:11px;}
.app-shell .tb-actchart-hit{fill:transparent;cursor:pointer;}
.app-shell .tb-actchart-read{font-size:13px;color:var(--tb-muted);margin:6px 0 0;}

/* ==== (R2+R3, TB-1238) Comp chrome dress + Platform
   arrangement. Pill tab bar (X3), mobile eyebrow (X7),
   navy panel titles on the comp interfaces (X5), the
   three-column row (FA3), the exception band's
   internals (FA6), Service pulse door (FA7), sidebar
   dress (X1-lite), launcher clearance (FA10). ==== */
/* (Vital Signs pass) The Command Center tab bar wears
   the Inbox kind tabs' dress: folder tabs on a ruled
   strip, the active tab white with the green top
   accent, counts in the shared green pill badge. */
.app-shell .cc-tabs{display:flex;gap:6px;border-bottom:1px solid var(--tb-line);padding:0 2px;margin:0 0 18px;overflow-x:auto;overflow-y:hidden;}
.app-shell .cc-tab{flex:1 1 auto;border:1px solid var(--tb-line);border-bottom:0;background:var(--tb-side);padding:9px 14px;border-radius:9px 9px 0 0;font:inherit;font-size:14.5px;color:var(--tb-muted);white-space:nowrap;cursor:pointer;text-align:center;margin-bottom:-1px;}
.app-shell .cc-tab:hover{color:var(--tb-text);}
.app-shell .cc-tab:focus-visible{outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .cc-tab.active{background:var(--tb-tab-tint);font-weight:600;color:var(--tb-text);box-shadow:inset 0 3px 0 var(--tb-brand);}
.app-shell .cc-tab .tb-tab-badge,.app-shell .cc-tab-badge{display:inline-block;background:var(--tb-green);color:#FFFFFF;font-size:12px;font-weight:700;line-height:1.5;padding:1px 8px;border-radius:999px;margin-left:7px;vertical-align:1px;}
.app-shell .cc-tab .tb-tab-badge[hidden],.app-shell .cc-tab-badge[hidden]{display:none;}
.app-shell .cc-serverline{display:flex;gap:10px;align-items:center;width:100%;text-align:left;font:inherit;font-size:14px;color:var(--tb-text);background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:10px;padding:10px 14px;margin:0 0 14px;cursor:pointer;}
.app-shell .cc-serverline:hover{border-color:var(--tb-green);}
.app-shell .cc-serverline:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .cc-serverline .cc-serverline-label{font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--tb-muted);font-weight:700;}
.app-shell .cc-serverline .cc-serverline-go{margin-left:auto;font-size:12.5px;color:var(--tb-green-dark);white-space:nowrap;}
.app-shell .cc-serverline.warn{border-color:#D9A821;background:#FDF6E0;}
.app-shell .cc-serverline.crit{border-color:var(--tb-danger);animation:ccSrvFlash 1s ease-in-out infinite;}
.app-shell .cc-srv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:10px;}
.app-shell .cc-srv-meter{border:1px solid var(--tb-line);border-radius:var(--tb-radius);background:var(--tb-panel);padding:10px 12px;display:flex;flex-direction:column;gap:3px;}
.app-shell .cc-srv-meter.warn{border-color:#D9A821;background:#FDF6E0;}
.app-shell .cc-srv-meter.crit{border-color:var(--tb-danger);animation:ccSrvFlash 1s ease-in-out infinite;}
.app-shell .cc-srv-label{font-size:11.5px;color:var(--tb-muted);text-transform:uppercase;letter-spacing:.4px;}
.app-shell .cc-srv-value{font-size:16px;font-weight:600;color:var(--tb-text);}
.app-shell .cc-srv-sub{font-size:12px;color:var(--tb-muted);line-height:1.4;}
.app-shell .cc-srv-bar{height:8px;background:var(--tb-soft);border-radius:5px;overflow:hidden;margin:4px 0 2px;}
.app-shell .cc-srv-fill{height:100%;background:var(--tb-green);border-radius:5px;width:0%;transition:width .4s ease;}
.app-shell .cc-srv-meter.warn .cc-srv-fill{background:#C77400;}
.app-shell .cc-srv-meter.crit .cc-srv-fill{background:var(--tb-danger);}
@keyframes ccSrvFlash{0%,100%{background:#FDECEA;}50%{background:#F6B8B0;}}
.app-shell .cc-eyebrow{display:none;}
.app-shell .cc-wincap{font-size:13.5px;}
#ad-view-platform h2.tb-section-title,#ad-view-platform h3.tb-section-title{color:var(--tb-navy);font-size:var(--tb-paneltitle);font-weight:650;letter-spacing:-.3px;line-height:1.25;}
#ad-attention-panel h2.tb-section-title{color:var(--tb-navy);font-size:20px;font-weight:650;}
.app-shell aside.tb-side{padding:24px 16px;}
.app-shell .tb-navlabel{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--tb-muted);padding:14px 10px 6px;}
.app-shell .cc-mid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,3fr);gap:16px;align-items:stretch;margin:0 0 16px;}
.app-shell .cc-mid>.tb-panel{margin-bottom:0;height:100%;}
.app-shell .cc-mid #ad-platform-exc{grid-column:1/-1;}
.app-shell .cc-mid .cc-ring{width:140px;height:140px;}
.app-shell .cc-mid .cc-ringnum{font-size:24px;}
.app-shell .cc-mid .cc-gauges{grid-template-columns:1fr;gap:8px;}
@media (max-width:1100px){
  .app-shell .cc-mid{grid-template-columns:1fr 1fr;}
  .app-shell .cc-mid #ad-platform-activity-panel{grid-column:1/-1;}
  .app-shell .cc-mid .cc-ring{width:140px;height:140px;}
}
.app-shell .tb-exc-band{display:flex;align-items:center;gap:16px;}
.app-shell .tb-exc-icon{flex:none;width:30px;height:30px;color:var(--tb-green);}
.app-shell .tb-exc-icon svg{width:100%;height:100%;display:block;}
.app-shell .tb-exc-main{flex:1;min-width:0;}
.app-shell .tb-exc-banner-btn{flex:none;margin-top:0;}
.app-shell .cc-pulse-door{display:block;margin-top:12px;border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--tb-green);cursor:pointer;}
.app-shell .cc-pulse-honest{margin-top:10px;}
.app-shell .cc-chartcap{font-size:13.5px;}
body.cc-onplatform #ad-view-platform{padding-bottom:110px;}
@media (min-width:701px){body.cc-onplatform .tb-chat-bubble-btn{position:absolute;bottom:24px;}body.cc-onplatform .app-shell{position:relative;}}
@media (max-width:700px){body.cc-onplatform .tb-chat-bubble-btn{display:none;}}
/* (TB-1296) The Platform launcher clearance extends to
   the Admin home and the customer dashboard: on phones
   the chat bubble is not rendered on these views, and
   on desktop it docks at the foot of the shell with
   clearance padding, never over a panel. The Ask bar
   on each surface remains the chat door. */
body.cc-onhome #ad-view-home{padding-bottom:110px;}
@media (min-width:701px){body.cc-onhome .tb-chat-bubble-btn{position:absolute;bottom:24px;}body.cc-onhome .app-shell{position:relative;}}
@media (max-width:700px){body.cc-onhome .tb-chat-bubble-btn{display:none;}}
body.cc-dash #dash-main{padding-bottom:110px;}
@media (min-width:701px){body.cc-dash .tb-chat-bubble-btn{position:absolute;bottom:24px;}body.cc-dash .app-shell{position:relative;}}
@media (max-width:700px){body.cc-dash .tb-chat-bubble-btn{display:none;}}
.app-shell .v24-testbadge{white-space:nowrap;flex:none;}
.app-shell .cc-kpilabel{flex-wrap:wrap;row-gap:4px;}
.app-shell .cc-kpinum-text{font-size:20px;font-weight:600;line-height:1.3;}
.app-shell .v24-tile{border-radius:var(--tb-radius);}
@media (min-width:1101px){body.cc-onplatform main.tb-main{padding-right:118px;}}
@media (max-width:700px){
  .app-shell .cc-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--tb-green);margin:0 0 8px;}
  #ad-view-platform .cc-crumb{display:none;}
  .app-shell .cc-tabs{flex-wrap:nowrap;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 40px),transparent 100%);
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 40px),transparent 100%);}
  .app-shell .cc-tabs::-webkit-scrollbar{display:none;}
  .app-shell .cc-tab{flex:none;}
  .app-shell .cc-mid{display:flex;flex-direction:column;}
  .app-shell .cc-mid #ad-platform-activity-panel{order:1;}
  .app-shell .cc-mid .cc-gaugepanel{order:2;}
  .app-shell .cc-mid #ad-platform-exc{order:3;}
  .app-shell .cc-mid #ad-platform-pulse-panel{order:4;}
  .app-shell .cc-mid .cc-ring{width:128px;height:128px;}
  .app-shell .tb-exc-band{flex-wrap:wrap;}
  body.cc-onplatform #ad-view-platform{padding-bottom:110px;}
  .app-shell .tb-actchart-axis{font-size:17px;}
}

/* ==== (R6+R7, TB-1260) The customer interfaces: comp
   arrangement for the merged customer dashboard, the
   customer pill tab bar (X3), the gradient briefing
   band, and the shared mobile bottom nav (X6). ==== */
.app-shell section[data-view="home"] h2.tb-section-title{color:var(--tb-navy);font-size:var(--tb-paneltitle);font-weight:650;letter-spacing:-.3px;line-height:1.25;}
.app-shell .cust-tabs{margin:0 0 18px;}
/* (TB-1302) The briefing wears the standard card
   palette: the full-field green text block was a
   treatment no composition uses, and where the panel
   now stands - a section of the Overview - white
   words on green would not read. */
.app-shell .cust-briefing{background:#FFFFFF;border:1px solid var(--tb-line);border-radius:var(--tb-radius-lg);color:var(--tb-text);}
.app-shell .cust-brief-eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--tb-green);margin:0 0 8px;}
.app-shell .cust-brief-sub{color:var(--tb-muted);font-size:14.5px;margin:0;}
.app-shell .cust-briefing .tb-note{color:var(--tb-muted);}
.app-shell .cust-briefing .v24-briefline{color:var(--tb-text);padding:7px 0;border-top:1px solid var(--tb-line);}
.app-shell .cust-briefing .v24-briefline a{color:var(--tb-green-dark);font-weight:700;}
.app-shell #dash-tab-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;}
/* FA10 on the customer home: the chat launcher never
   covers panel content - desktop panels keep a right
   gutter, and on phones the launcher rides above the
   bottom nav. */
@media (min-width:1101px){
 .app-shell #dash-tab-overview,.app-shell #dash-tab-activity,
 .app-shell #dash-tab-events{padding-right:104px;}}
@media (max-width:750px){
 .app-shell .tb-chat-bubble-btn{bottom:94px;}}
.app-shell #dash-tab-overview>*{grid-column:1/-1;margin-bottom:0;}
.app-shell #dash-tab-overview>#dash-dividend{grid-column:1/2;}
.app-shell #dash-tab-overview>#dash-aiteam{grid-column:2/3;}
@media (max-width:900px){
  .app-shell #dash-tab-overview{grid-template-columns:1fr;}
  .app-shell #dash-tab-overview>#dash-dividend,
  .app-shell #dash-tab-overview>#dash-aiteam{grid-column:1/-1;}
}
.app-shell .cust-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;}
.app-shell .cust-kpi{display:flex;flex-direction:column;text-align:left;border:1px solid var(--tb-line);background:var(--tb-panel);border-radius:var(--tb-radius);padding:18px 20px;font:inherit;color:var(--tb-text);width:100%;}
.app-shell button.cust-kpi{cursor:pointer;}
.app-shell button.cust-kpi:hover{border-color:#6B8F71;}
.app-shell .cust-kpi .tb-statnumber{font-size:var(--tb-fig);font-weight:650;color:var(--tb-navy);letter-spacing:-.5px;line-height:1.15;margin:6px 0 4px;}
.app-shell .cust-kpinum{font-size:var(--tb-fig);font-weight:650;color:var(--tb-navy);letter-spacing:-.5px;line-height:1.15;margin:6px 0 4px;font-variant-numeric:tabular-nums;}
.app-shell .cust-kpinum-text{font-size:20px;font-weight:600;line-height:1.3;}
.app-shell .cust-kpi-wide{grid-column:span 2;}
.app-shell .cust-decision-lines{margin:8px 0 6px;display:flex;flex-direction:column;gap:5px;}
.app-shell .cust-decision-line{display:flex;justify-content:space-between;gap:12px;font-size:14.5px;border-top:1px solid var(--tb-line);padding-top:5px;}
.app-shell .cust-decision-line strong{font-variant-numeric:tabular-nums;white-space:nowrap;}
@media (max-width:1100px){.app-shell .cust-kpis{grid-template-columns:1fr 1fr;}.app-shell .cust-kpi-wide{grid-column:1/-1;}}
.app-shell .cust-time{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap;}
.app-shell .cust-time-main{flex:1;min-width:230px;}
.app-shell .cust-time-num{font-size:44px;font-weight:700;color:var(--tb-green);line-height:1.1;letter-spacing:-.5px;}
.app-shell .cust-time-num2{font-size:30px;font-weight:650;color:var(--tb-navy);line-height:1.15;}
.app-shell .cust-time-label{font-size:14.5px;color:var(--tb-muted);margin-top:4px;}
.app-shell .cust-time-note{margin:10px 0 0;}
.app-shell .cust-team{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap;}
.app-shell .cust-team-meterwrap{flex:none;width:150px;}
.app-shell .cust-team-meter{width:132px;height:132px;border-radius:50%;background:var(--tb-soft);display:flex;align-items:center;justify-content:center;margin:0 auto;}
.app-shell .cust-team-meter span{background:#fff;border-radius:50%;width:96px;height:96px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:650;color:var(--tb-navy);}
.app-shell .cust-team-rows{flex:1;min-width:230px;display:flex;flex-direction:column;}
.app-shell .cust-team-row{display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid var(--tb-line);}
.app-shell .cust-team-row:first-child{border-top:0;}
.app-shell .cust-team-state{font-weight:650;color:var(--tb-navy);white-space:nowrap;}
.app-shell .cust-prepared{margin:0;}
.app-shell .cust-bottom3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;}
.app-shell .cust-bottom3>.tb-panel{margin-bottom:0;height:100%;}
@media (max-width:1100px){.app-shell .cust-bottom3{grid-template-columns:1fr;}}
.app-shell .cust-rowstatic{cursor:default;}
.app-shell button.cust-rowstatic{opacity:1;}
/* The bottom nav: ONE component, both shells. Shown
   only at phone widths; content carries matching
   bottom padding so the bar never covers it. */
.app-shell .tb-bottomnav{display:none;}
@media (max-width:750px){
  .app-shell .tb-bottomnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95;background:var(--tb-panel);border-top:1px solid var(--tb-line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px rgba(20,33,61,.06);}
  .app-shell .tb-bnav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;font:inherit;font-size:11.5px;color:var(--tb-muted);padding:6px 2px;cursor:pointer;min-height:48px;}
  .app-shell .tb-bnav-item svg{width:22px;height:22px;}
  .app-shell .tb-bnav-item.active{color:var(--tb-green);font-weight:700;}
  .app-shell .tb-main{padding-bottom:96px;}
}


/* ==== (X1+X7, TB-1263) The full sidebar rebuild (one
   shared rail construction, both shells) + the mobile
   masthead bar. The rail: sage ground (existing token),
   large logo, group label carrying the real workspace
   name, six primaries with sage line icons, the active
   item a white pill, ACCOUNT SHORTCUTS as quiet green
   doors, remaining destinations under MORE in quieter
   dress, and the owner card (the .tb-profile block,
   real name + role) pinned at the foot. The masthead
   (phone only): white bar, full logo left, grid-icon
   menu right, then eyebrow / navy title / subtitle. */
.app-shell aside nav{display:flex;flex-direction:column;}
.app-shell .tb-nav{font-size:15px;padding:10px 12px;border-radius:12px;}
.app-shell .tb-nav svg{width:20px;height:20px;color:var(--sage);}
.app-shell .tb-nav.active{background:color-mix(in srgb,var(--tb-brand) 16%,#FFFFFF);color:var(--tb-green-dark);font-weight:700;box-shadow:inset 3px 0 0 var(--tb-brand),0 1px 3px rgba(24,40,58,.12);}
.app-shell .tb-nav.tb-more{font-size:14px;color:var(--tb-muted);padding:8px 12px;}
.app-shell .tb-nav.tb-more.active{color:var(--tb-green-dark);}
.app-shell .tb-shortcut{display:flex;align-items:center;gap:5px;background:none;border:0;font:inherit;font-size:14.5px;color:var(--tb-green);padding:8px 12px;cursor:pointer;text-align:left;width:100%;border-radius:8px;}
.app-shell .tb-shortcut:hover{text-decoration:underline;}
.app-shell .tb-shortcut[hidden]{display:none;}
.app-shell .tb-shortcut.active{font-weight:700;}
.app-shell aside.tb-side>div:first-of-type .tb-version{display:none;}
.app-shell .tb-profile{border-top:1px solid var(--tb-line);padding-top:16px;}
.app-shell #ad-profile-name,.app-shell #dash-profile-name{font-size:15px;font-weight:600;color:var(--tb-navy);line-height:1.3;}
.app-shell #ad-profile-role,.app-shell #dash-profile-plan{font-size:13px;}
.app-shell .tb-masthead{display:none;}
@media (min-width:751px){
  .app-shell aside.tb-side{position:sticky;top:0;height:100vh;}
  .app-shell aside nav{overflow-y:auto;flex:1 1 auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--tb-line) transparent;}
  .app-shell aside nav::-webkit-scrollbar{width:6px;}
  .app-shell aside nav::-webkit-scrollbar-thumb{background:var(--tb-line);border-radius:3px;}
}
@media (max-width:750px){
  .app-shell aside nav{display:none;}
  .app-shell aside.tb-side{background:var(--tb-panel);padding:10px 14px;}
  .app-shell .tb-logo .tb-logo-img{display:inline-block;height:44px;}
  .app-shell .tb-logo .tb-logo-icon-img{display:none;}
  .app-shell aside .tb-burger{order:1;margin-left:0;}
  .app-shell .tb-topbar>span{display:none;}
  .app-shell .tb-masthead{display:block;padding:16px 2px 2px;}
  .app-shell .tb-mast-eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--tb-green);margin:0 0 6px;}
  .app-shell .tb-mast-title{font-size:32px;font-weight:700;color:var(--tb-navy);line-height:1.15;letter-spacing:-.5px;margin:0;}
  .app-shell .tb-mast-sub{font-size:14.5px;color:var(--tb-muted);margin:5px 0 0;}
  .app-shell .tb-heading>div:first-of-type h1{display:none;}
  .app-shell .tb-heading>div:first-of-type>p{display:none;}
  #ad-view-platform .cc-eyebrow{display:none;}
}

/* (R4+R5, Admin B) Operations command center forms, in
   the single source: the gradient briefing banner, the
   queue column chart, the five-stat strip, and the
   three-panel rows. The briefing gradient is the one
   gradient in the system (DESIGN-SYSTEM-v2 §9). */
.app-shell{--tb-briefing-gradient:linear-gradient(180deg,var(--tb-brand-dark) 0%,color-mix(in srgb,var(--tb-brand-dark) 55%,var(--tb-brand)) 55%,var(--tb-brand) 100%);}
#ad-view-operations h2.tb-section-title,#ad-view-operations h3.tb-section-title{color:var(--tb-navy);font-size:var(--tb-paneltitle);font-weight:650;letter-spacing:-.3px;line-height:1.25;}
#ad-view-operations{padding-bottom:110px;}
.app-shell .ops-brief{background:var(--tb-briefing-gradient);border-radius:20px;color:#fff;padding:24px 28px;display:flex;flex-direction:column;gap:6px;margin:0 0 16px;}
.app-shell .ops-brief-eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.92;}
.app-shell .ops-brief-head{font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-.4px;}
.app-shell .ops-brief-sub{font-size:15px;line-height:1.5;opacity:.95;}
.app-shell .ops-row3{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,3.6fr) minmax(0,3.6fr);gap:16px;align-items:stretch;margin:0 0 16px;}
.app-shell .ops-row3>.tb-panel,.app-shell .ops-row3b>.tb-panel{margin-bottom:0;height:100%;}
.app-shell .ops-row3b{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,4fr);gap:16px;align-items:stretch;margin:0 0 16px;}
.app-shell .ops-chart{display:flex;gap:10px;margin-top:8px;}
.app-shell .ops-axis{display:flex;flex-direction:column;justify-content:space-between;height:196px;padding:22px 0 30px;font-size:12px;color:var(--tb-muted);text-align:right;min-width:26px;}
.app-shell .ops-plot{flex:1;display:flex;align-items:stretch;gap:8px;height:196px;background-image:linear-gradient(to top,var(--tb-line) 1px,transparent 1px);background-size:100% 25%;border-bottom:1px solid var(--tb-line);}
.app-shell .ops-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:none;border:0;cursor:pointer;font:inherit;padding:0 2px;height:100%;}
.app-shell .ops-colval{font-size:17px;font-weight:700;color:var(--tb-navy);margin-bottom:5px;}
.app-shell .ops-colbar{display:block;width:min(64px,72%);background:#74917A;border-radius:5px 5px 0 0;min-height:3px;}
.app-shell .ops-colbar-last{background:var(--tb-green);}
.app-shell .ops-collabel{font-size:13.5px;color:var(--tb-muted);margin-top:8px;height:20px;}
.app-shell .ops-col:hover .ops-colbar{background:var(--tb-green);}
.app-shell .ops-coldefs{margin-top:10px;}
.app-shell .ops-coldef{margin:2px 0;}
.app-shell .ops-humancorr{display:inline-block;background:var(--tb-soft);color:var(--tb-green-dark);font-weight:650;font-size:14px;border-radius:999px;padding:6px 14px;margin:10px auto 4px;}
.app-shell .ops-calrow{display:flex;align-items:center;gap:12px;border-top:1px solid var(--tb-line);padding:12px 8px;margin-top:10px;width:100%;}
.app-shell .ops-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;background:var(--tb-soft);border-radius:16px;padding:18px 22px;margin:0 0 16px;}
.app-shell .ops-stat{display:flex;flex-direction:column;gap:3px;min-width:0;}
.app-shell .ops-statlabel{font-size:13.5px;color:var(--tb-muted);}
.app-shell .ops-statfig{font-size:34px;font-weight:700;color:var(--tb-navy);line-height:1.1;}
.app-shell .ops-statfig-text{font-size:16.5px;font-weight:600;line-height:1.35;}
.app-shell .ops-statdef{font-size:12.5px;color:var(--tb-muted);line-height:1.4;}
.app-shell .ops-svcrow{cursor:default;align-items:flex-start;}
.app-shell .ops-svcrow .tb-action-row-value{padding-top:2px;}
.app-shell .ops-calrow{align-items:flex-start;}
.app-shell .ops-calrow .tb-action-row-value{padding-top:2px;}
@media (max-width:1150px){
  .app-shell .ops-row3{grid-template-columns:1fr 1fr;}
  .app-shell .ops-row3 .ops-workpanel{grid-column:1/-1;}
  .app-shell .ops-row3b{grid-template-columns:1fr;}
  .app-shell .ops-strip{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:750px){
  .app-shell .ops-brief{display:none;}
  .app-shell .ops-row3{grid-template-columns:1fr;}
  .app-shell .ops-strip{grid-template-columns:1fr 1fr;padding:16px;}
  .app-shell .ops-axis{height:168px;}
  .app-shell .ops-plot{height:168px;}
  body.cc-onplatform #ad-view-operations{padding-bottom:110px;}
}
/* (v3.73, TB-1321) The ticket layout
   standard: the Quality Assurance card (in the
   summary card's dress), its checks subhead, the
   Feedback panel's disclosure, and grown ticket
   fields with no inner scroll. */
.app-shell .tb-qa-card{border:1px solid var(--tb-line);border-left:4px solid var(--tb-green);border-radius:var(--tb-radius);background:var(--tb-panel);padding:14px 16px;margin:0 0 14px;}
.app-shell .tb-qa-sub{margin:7px 0 0;line-height:1.55;font-size:14.5px;color:var(--tb-muted);}
.app-shell .tb-qa-checks-title{margin:14px 0 0;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--tb-green);font-weight:700;}
.app-shell .tb-disc-toggle{margin:0 0 12px;}
.app-shell .tb-inbox-ticketpanel.tb-collapsed > :not(.tb-section-title):not(.tb-disc-toggle){display:none;}
.app-shell .tb-inbox-ticketpanel textarea.tb-input{overflow-y:hidden;}

/* ==========================================================================
   Collaboration Mode (v3.82): the Settings panel pieces and the
   live console page (/collab-console.html). Every selector carries
   the .collab- prefix; this block is the only place these styles
   live. Brand rules hold: green header bar #2E7D32, white and
   light sage fields, navy text. Every button-like control carries
   a visible hover, a focus-visible ring and a pressed state.
   ========================================================================== */
.app-shell .collab-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:40px;padding:8px 16px;border-radius:8px;cursor:pointer;
  border:1px solid var(--tb-line);background:#FFFFFF;color:var(--tb-text);
  font:inherit;font-size:14px;font-weight:600;text-decoration:none;
}
.app-shell .collab-btn:hover{background:var(--tb-soft);border-color:var(--sage,#6B8F71);}
.app-shell .collab-btn:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}
.app-shell .collab-btn:active{background:var(--tb-line);transform:translateY(1px);}
.app-shell .collab-btn[disabled]{background:#E4E4E4;border-color:#AFAFAF;color:#666666;cursor:default;transform:none;}
.app-shell .collab-btn[disabled]:hover{background:#E4E4E4;border-color:#AFAFAF;}
.app-shell .collab-btn-primary{background:var(--tb-green);border-color:var(--tb-green);color:#FFFFFF;}
.app-shell .collab-btn-primary:hover{background:var(--tb-green-dark);border-color:var(--tb-green-dark);}
.app-shell .collab-btn-primary:active{background:var(--tb-green-dark);}
.app-shell .collab-btn-danger{background:#FFFFFF;border-color:#D8A49F;color:var(--tb-danger-text);}
.app-shell .collab-btn-danger:hover{background:#F9E3E1;border-color:var(--tb-danger);}
.app-shell .collab-btn-danger:active{background:#F3D2CE;}
.app-shell .collab-btn-on-dark{background:transparent;border-color:rgba(255,255,255,.65);color:#FFFFFF;}
.app-shell .collab-btn-on-dark:hover{background:rgba(255,255,255,.16);border-color:#FFFFFF;}
.app-shell .collab-btn-on-dark:active{background:rgba(255,255,255,.28);}
.app-shell .collab-btn-on-dark[disabled]{background:transparent;border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.55);}
.app-shell .collab-btn-on-dark[disabled]:hover{background:transparent;border-color:rgba(255,255,255,.35);}

/* Settings panel layout */
.app-shell .collab-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;}
@media (max-width:640px){.app-shell .collab-grid{grid-template-columns:1fr;}}
.app-shell .collab-grid .tb-formlabel{margin:0;}
.app-shell .collab-field{margin-top:12px;}
.app-shell .collab-field:first-child{margin-top:0;}
.app-shell .collab-statebox{
  border:1px solid var(--tb-line);border-left:4px solid var(--tb-green);
  border-radius:8px;background:#FFFFFF;padding:12px 14px;margin-top:12px;
}
.app-shell .collab-statebox p{margin:3px 0;line-height:1.5;overflow-wrap:anywhere;}
.app-shell .collab-audit{margin-top:10px;}
.app-shell .collab-audit-line{
  padding:7px 2px;border-top:1px solid var(--tb-line);
  font-size:13.5px;line-height:1.5;overflow-wrap:anywhere;
}
.app-shell .collab-audit-line:first-child{border-top:none;}
.app-shell .collab-audit-when{color:var(--tb-muted);white-space:nowrap;}
.app-shell .collab-confirm{
  border:1px solid #D8A49F;background:#FDF3F2;border-radius:8px;
  padding:12px 14px;margin-top:12px;
}
.app-shell .collab-inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;align-items:center;}
.app-shell .collab-check{display:flex;gap:9px;align-items:flex-start;margin-top:12px;cursor:pointer;}
.app-shell .collab-check input{width:19px;height:19px;margin-top:1px;flex:none;cursor:pointer;}
.app-shell .collab-check:hover .collab-check-label{color:var(--tb-green-dark);}
.app-shell .collab-check input:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;}

/* Live console page */
.collab-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;}
.app-shell .collab-top{background:var(--tb-green);color:#FFFFFF;padding:12px 16px 14px;}
.app-shell .collab-toprow{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  max-width:1060px;margin:0 auto;width:100%;
}
.app-shell .collab-wordmark{font-size:21px;font-weight:bold;letter-spacing:-.5px;color:#FFFFFF;text-decoration:none;line-height:1;}
.app-shell .collab-wordmark:hover{text-decoration:underline;text-underline-offset:4px;}
.app-shell .collab-wordmark:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px;}
.app-shell .collab-pagetitle{font-size:16.5px;font-weight:700;}
.app-shell .collab-identity{margin-left:auto;font-size:13.5px;color:var(--tb-soft);overflow-wrap:anywhere;}
.app-shell .collab-controls{display:flex;gap:8px;flex-wrap:wrap;max-width:1060px;margin:10px auto 0;width:100%;}
.app-shell .collab-vitals{
  background:var(--tb-side);border-bottom:1px solid var(--tb-line);
  padding:12px 16px;
}
.app-shell .collab-vitals-in{max-width:1060px;margin:0 auto;}
.app-shell .collab-vitrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px;}
.app-shell .collab-vitrow:first-child{margin-top:0;}
.app-shell .collab-chip{
  display:inline-flex;align-items:center;gap:6px;padding:4px 11px;
  border-radius:999px;font-size:13px;font-weight:700;line-height:1.35;
  background:#FFFFFF;border:1px solid var(--tb-line);color:var(--tb-text);
}
.app-shell .collab-chip-on{background:var(--tb-green);border-color:var(--tb-green);color:#FFFFFF;}
.app-shell .collab-chip-paused{background:#FBF0D3;border-color:#E3CF8F;color:#7A5A00;}
.app-shell .collab-chip-off{background:#E8E8E8;border-color:#C9C9C9;color:#555555;}
.app-shell .collab-vitline{font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.app-shell .collab-vitline .collab-vitlabel{font-weight:700;color:var(--tb-green-dark);}
.app-shell .collab-brief{cursor:pointer;}
.app-shell .collab-brief:hover .collab-brief-text{text-decoration:underline;text-underline-offset:3px;}
.app-shell .collab-brief:focus-visible{outline:2px solid var(--tb-green);outline-offset:2px;border-radius:6px;}
.app-shell .collab-brief-text{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.app-shell .collab-brief-open .collab-brief-text{display:block;-webkit-line-clamp:unset;overflow:visible;}
.app-shell .collab-threadwrap{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--tb-bg);}
.app-shell .collab-thread{
  flex:1;overflow-y:auto;padding:16px;width:100%;max-width:1060px;margin:0 auto;
}
.app-shell .collab-msg{max-width:78%;margin:0 0 12px;padding:10px 13px;border-radius:12px;background:#FFFFFF;border:1px solid var(--tb-line);overflow-wrap:anywhere;}
.app-shell .collab-msg-trevor{margin-left:auto;background:var(--tb-soft);border-color:#B9CCB4;}
.app-shell .collab-msg-chatgpt{border-left:4px solid var(--sage,#6B8F71);}
.app-shell .collab-msg-muse{border-left:4px solid var(--tb-navy);}
.app-shell .collab-msg-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:4px;}
.app-shell .collab-msg-actor{font-weight:700;font-size:13.5px;color:var(--tb-navy);}
.app-shell .collab-msg-trevor .collab-msg-actor{color:var(--tb-green-dark);}
.app-shell .collab-msg-when{font-size:12px;color:var(--tb-muted);}
.app-shell .collab-msg-body{white-space:pre-wrap;line-height:1.55;font-size:14.5px;}
.app-shell .collab-sysline{
  text-align:center;color:var(--tb-muted);font-size:13px;
  margin:10px auto 12px;max-width:88%;line-height:1.5;overflow-wrap:anywhere;
}
.app-shell .collab-empty{
  text-align:center;color:var(--tb-muted);padding:34px 12px;line-height:1.6;
}
/* (Nov 1, 2026) The collab console's composer column:
   the platform composer component (.tbpc) stands in
   this wrap at the thread column's own width; the
   console's private composer skin retired onto the
   shared component in the same release. The
   component's top border spans the column here, the
   shape the standard's panel foot carries. */
.app-shell .collab-wrap{max-width:1060px;margin:0 auto;}
.app-shell .collab-hint{font-size:13px;color:var(--tb-muted);margin-top:8px;line-height:1.5;padding:0 14px;}
.app-shell .collab-errline{font-size:13.5px;color:var(--tb-danger-text);font-weight:600;margin-top:8px;line-height:1.5;overflow-wrap:anywhere;padding:0 14px;}
.app-shell .collab-gate{
  max-width:560px;margin:48px auto;padding:26px 22px;background:#FFFFFF;
  border:1px solid var(--tb-line);border-radius:12px;text-align:center;line-height:1.6;
}
.app-shell .collab-gate h1{font-size:23px;}
.app-shell select.collab-select{
  border:1px solid rgba(255,255,255,.65);background:var(--tb-green-dark);color:#FFFFFF;
  border-radius:8px;padding:7px 9px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;max-width:100%;
}
.app-shell select.collab-select:hover{border-color:#FFFFFF;}
.app-shell select.collab-select:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px;}
@media (max-width:640px){
  .app-shell .collab-msg{max-width:92%;}
  .app-shell .collab-identity{margin-left:0;width:100%;}
}

/* ==========================================================================
   NAV ADOPTION - planner rail formatting model (first pass, Oct 25, 2026)
   Trevor's platform standard (Oct 25, 2026): the standard master
   left-hand navigation is a core master component whose FORMATTING
   models the planner's left-hand rail (the wbRail in the
   California-to-Las-Vegas planner); branding and navigational
   content stay each workspace's own. This block re-dresses the
   TidyBox rail (both shells, this one shared file) on that model.
   NOTHING here changes a link, a label, a route, a role gate, or
   a behavior: the same rows, in the same order, with the same
   handlers - only spacing, grouping, typography, the current-row
   treatment, the badge pill, and the footer block's dress change.
   The mapping, planner token -> TidyBox token:
     --mv-accent -> --tb-green-dark    --mv-soft  -> --tb-soft
     --mv-line   -> --tb-line          --mv-muted -> --tb-muted
     --mv-paper  -> --tb-panel         --mv-bg    -> --tb-side (tint base)
   Deliberate non-adoptions and deviations are listed at the foot
   of this block.
   ========================================================================== */
@media (min-width:751px){
  /* Rail frame: the planner's 240px column and its tint
     construction (paper laid over the page tint at 35%). The
     padding (27px 18px) and the hairline right border already
     matched the planner and are untouched. */
  .app-shell .tb-layout{grid-template-columns:240px minmax(0,1fr);}
  .app-shell aside.tb-side{background:color-mix(in srgb,var(--tb-panel) 35%,var(--tb-side));}
  /* Group labels: the planner's group eyebrow - 9px, weight
     750, 1.4px tracking, uppercase, muted, 20px of air above
     and 7px below, no hairline (the v2.59 navy label with its
     rule above retires). */
  .app-shell aside.tb-side nav .tb-navlabel{
    font-size:9px;font-weight:750;letter-spacing:1.4px;
    color:var(--tb-muted);border-top:0;
    margin:20px 10px 7px;padding:0;}
  .app-shell aside.tb-side nav .tb-navlabel:first-child{margin-top:8px;}
  /* Rows: the planner's row - 12.5px, padding 9px 10px, 7px
     radius, 2px gaps, muted text; the v2.59 hairline between
     adjacent rows retires. Icons keep their 20px box (the
     planner's disc size) and take the row's color. */
  .app-shell aside.tb-side nav .tb-nav{
    font-size:12.5px;padding:9px 10px;border-radius:7px;
    margin:0 0 2px;color:var(--tb-muted);}
  .app-shell aside.tb-side nav .tb-nav + .tb-nav{border-top:0;}
  .app-shell aside.tb-side nav .tb-nav svg{color:var(--tb-muted);}
  .app-shell aside.tb-side nav .tb-nav:hover{
    background:var(--tb-soft);color:var(--tb-green-dark);}
  .app-shell aside.tb-side nav .tb-nav:hover svg{color:var(--tb-green-dark);}
  .app-shell aside.tb-side nav .tb-nav:active{background:var(--tb-line);}
  /* Current row: the planner's soft fill + accent text at
     700 - the white pill and its shadow retire. The icon
     takes the accent, the way the planner's number disc
     fills when its step is the current one. */
  .app-shell aside.tb-side nav .tb-nav.active{
    background:color-mix(in srgb,var(--tb-brand) 16%,#FFFFFF);color:var(--tb-green-dark);
    font-weight:700;box-shadow:inset 3px 0 0 var(--tb-brand);}
  .app-shell aside.tb-side nav .tb-nav.active svg{color:var(--tb-green-dark);}
  .app-shell aside.tb-side nav .tb-nav.active:hover{
    background:color-mix(in srgb,var(--tb-green) 16%,var(--tb-soft));}
  .app-shell aside.tb-side nav .tb-nav.active:active{
    background:color-mix(in srgb,var(--tb-green) 28%,var(--tb-soft));}
  /* The quieter tier (tb-more) rides the same box at the
     planner's quiet-row size (12px, its Welcome & home row). */
  .app-shell aside.tb-side nav .tb-nav.tb-more{
    font-size:12px;padding:9px 10px;color:var(--tb-muted);}
  .app-shell aside.tb-side nav .tb-nav.tb-more.active{color:var(--tb-green-dark);}
  /* Flagged and quiet rows keep their standing meanings
     under the new metrics, restated so the row rule above
     cannot flatten them: the flag keeps its soft ground,
     the utility link keeps its bottom pin and never wears
     a pill, the separator keeps its hairline and air. */
  .app-shell aside.tb-side nav .tb-nav.tb-navflag{
    background:var(--tb-soft);color:var(--tb-green-dark);font-weight:700;}
  .app-shell aside.tb-side nav .tb-nav.tb-navutil{margin-top:auto;}
  .app-shell aside.tb-side nav .tb-nav.tb-navquiet{
    background:transparent;color:var(--tb-muted);font-weight:400;}
  .app-shell aside.tb-side nav .tb-nav.tb-navquiet:hover{
    background:transparent;color:var(--tb-green-dark);}
  .app-shell aside.tb-side nav .tb-nav.tb-navsep{
    margin-top:18px;padding-top:13px;}
  /* Account shortcuts: the planner's utility rows -
     full-width, ink at 600, the chevron trailing and
     muted; the green link dress and underline hover retire. */
  .app-shell aside.tb-side nav .tb-shortcut{
    font-size:12.5px;font-weight:600;color:var(--tb-text);
    padding:9px 10px;border-radius:7px;text-decoration:none;}
  .app-shell aside.tb-side nav .tb-shortcut span{
    margin-left:auto;color:var(--tb-muted);}
  .app-shell aside.tb-side nav .tb-shortcut:hover{
    background:var(--tb-soft);color:var(--tb-green-dark);text-decoration:none;}
  .app-shell aside.tb-side nav .tb-shortcut:active{background:var(--tb-line);}
  .app-shell aside.tb-side nav .tb-shortcut.active{
    background:var(--tb-soft);color:var(--tb-green-dark);font-weight:700;}
  /* Footer block: the planner's footer dress - the hairline
     above stays, the air above it becomes the planner's
     14px (the pin to the foot is unchanged). */
  .app-shell .tb-profile{padding-top:14px;}
}
/* Count badge: ONE definition, in the nav block above
   (Oct 30, 2026). A planner-pill override stood here
   (4px corners, 10px) dueling with that definition, so
   the rail's count bubbles were styled by two design
   generations at once - the older one winning shape
   and size (Trevor's Oct 30 catch: the bubbles were
   still the old version). Retired. The single
   definition governs now: the same pill as .tb-count,
   .tb-tabcount and .tb-tab-badge - 999px corners,
   12px, on --tb-brand. */
/* The rail's phone twins (the drawer and the More sheet are
   built from this same rail by site.js): the same current-row
   dress, and the drawer's hairlines retire to match the rail.
   Row size and touch targets stay TidyBox's own (15.5px /
   46px) - the planner's 12.5px row is a desktop dress and
   phones keep their ergonomics. */
.app-shell .tb-drawer .tb-burgeritem + .tb-burgeritem{border-top:0;}
.app-shell .tb-drawer .tb-burgeritem:hover,
.app-shell .tb-moresheet .tb-burgeritem:hover{
  background:var(--tb-soft);color:var(--tb-green-dark);}
.app-shell .tb-drawer .tb-burgeritem.active,
.app-shell .tb-moresheet .tb-burgeritem.active{
  background:var(--tb-soft);color:var(--tb-green-dark);font-weight:700;}
.app-shell .tb-moresheet .tb-burgeritem.active svg{color:var(--tb-green-dark);}
.app-shell .tb-drawer .tb-burgeritem:active,
.app-shell .tb-moresheet .tb-burgeritem:active{background:var(--tb-line);}
@media (max-width:750px){
  .app-shell .tb-burgeritem:hover{
    background:var(--tb-soft);color:var(--tb-green-dark);}
  .app-shell .tb-burgeritem.active{
    background:var(--tb-soft);color:var(--tb-green-dark);font-weight:700;}
  /* Bottom bar: the current door takes the same green-dark
     as the rail's current row (it was --tb-green). */
  .app-shell .tb-bnav-item.active{color:var(--tb-green-dark);}
}
/* Deliberate non-adoptions (this pass):
   - The planner's focus header (its "in focus" eyebrow and
     its device note card) has no TidyBox rail counterpart:
     the rail's header is the logo block, and its version
     stamp is hidden by standing design (X1+X7, TB-1263).
     Adding a header element is new content, not formatting;
     it waits for Trevor's word, with wording his to approve.
   - The planner's numbered discs stay planner content;
     TidyBox rows carry their product icons. The disc's
     behavior (the marker fills with the accent on the
     current row) is carried here by the icon's color.
   - Phone navigation behavior (top bar, drawer, More sheet,
     bottom bar) is unchanged; only the current row's dress
     follows the rail. */

/* ==========================================================================
   THEME ADOPTION - the planner's palette dropdown (first pass,
   Oct 25, 2026). One delimited block, appended after the NAV
   ADOPTION block; no existing rule is edited. How it works:
   site.js (and a pre-paint snippet in dashboard/admin heads)
   sets html[data-theme="<palette>"] from the visitor's saved
   choice; with no choice the attribute is absent and every
   rule below is inert, so the brand look is untouched.
   (1) The palettes' colors land on the two existing token
   families (:root for public pages, .app-shell for the app).
   Every rule that already paints through those tokens - the
   rail dress from the nav adoption included - follows.
   (2) Rules that paint with brand hex literals are re-pointed
   below, transformed copies carrying only the color-bearing
   declarations. Semantic colors (danger, warning, status
   blues/ambers, the password-strength family) are NOT themed.
   ========================================================================== */
/* (1a) Palette tokens - :root family (public pages). */
html[data-theme="ocean"]{--green:#205a70;--green-dark:#163d4c;--navy:#15272e;--ink:#15272e;--muted:#697579;--sage:#638c9b;--light-sage:#e4edf0;--line:#dce5e8;}
html[data-theme="coral"]{--green:#a75046;--green-dark:#723630;--navy:#282a32;--ink:#282a32;--muted:#75777c;--sage:#c1847e;--light-sage:#f3e8e6;--line:#ebe0df;}
html[data-theme="jade"]{--green:#246451;--green-dark:#184437;--navy:#182724;--ink:#182724;--muted:#6b7573;--sage:#669285;--light-sage:#e5ede9;--line:#dde5e1;}
html[data-theme="marine"]{--green:#264a79;--green-dark:#1a3252;--navy:#192c41;--ink:#192c41;--muted:#6c7885;--sage:#6780a1;--light-sage:#e5ebf4;--line:#dde3ed;}
html[data-theme="plum"]{--green:#654567;--green-dark:#452f46;--navy:#2d2632;--ink:#2d2632;--muted:#79747c;--sage:#937d95;--light-sage:#eee7ef;--line:#e6dfe7;}
html[data-theme="copper"]{--green:#a95732;--green-dark:#733b22;--navy:#282c30;--ink:#282c30;--muted:#75787b;--sage:#c38970;--light-sage:#f2e6df;--line:#eadfd8;}
html[data-theme="forest"]{--green:#365b42;--green-dark:#253e2d;--navy:#202e25;--ink:#202e25;--muted:#707973;--sage:#728c7b;--light-sage:#e6ede7;--line:#dee5df;}
html[data-theme="petrol"]{--green:#235859;--green-dark:#183c3d;--navy:#1b2d30;--ink:#1b2d30;--muted:#6d797b;--sage:#658a8b;--light-sage:#e2eeee;--line:#dae6e6;}
html[data-theme="clay"]{--green:#a76553;--green-dark:#724538;--navy:#302b2a;--ink:#302b2a;--muted:#7b7777;--sage:#c19387;--light-sage:#f1e7e2;--line:#e9dfdb;}
html[data-theme="indigo"]{--green:#4a5089;--green-dark:#32365d;--navy:#23273c;--ink:#23273c;--muted:#727582;--sage:#8084ac;--light-sage:#e9eaf3;--line:#e1e2ec;}
html[data-theme="berry"]{--green:#8c415c;--green-dark:#5f2c3f;--navy:#322731;--ink:#322731;--muted:#7c757b;--sage:#ae7a8d;--light-sage:#f2e5eb;--line:#eadde4;}
html[data-theme="slate"]{--green:#4d6070;--green-dark:#34414c;--navy:#242e36;--ink:#242e36;--muted:#73797e;--sage:#82909b;--light-sage:#e6ebef;--line:#dee3e8;}
html[data-theme="olive"]{--green:#606846;--green-dark:#414730;--navy:#2b3025;--ink:#2b3025;--muted:#777b73;--sage:#90957e;--light-sage:#eceee4;--line:#e4e6dc;}
html[data-theme="charcoal"]{--green:#353d46;--green-dark:#242930;--navy:#20262d;--ink:#20262d;--muted:#707479;--sage:#72777e;--light-sage:#e7e9ed;--line:#dfe1e5;}
html[data-theme="itps"]{--green:#146eac;--green-dark:#0e4b75;--navy:#14213d;--ink:#14213d;--muted:#54687e;--sage:#4e7fa8;--light-sage:#d9e6f1;--line:#b7cddd;--gold:#c29b4a;--accent:#2f6fed;}
html[data-theme="scott-midnight"]{--green:#d4a94e;--green-dark:#b8912f;--navy:#f2ebdd;--ink:#f2ebdd;--muted:#a9b6c2;--sage:#51708f;--light-sage:#122334;--line:#27405a;}
html[data-theme="chantelle-noir"]{--green:#d4af6a;--green-dark:#c29d4f;--navy:#f4eddc;--ink:#f4eddc;--muted:#b4a888;--sage:#a68f5f;--light-sage:#1b1813;--line:#3a3222;}
/* (1b) Palette tokens - .app-shell family (dashboard + back office). */
html[data-theme="ocean"] .app-shell{--tb-green:#205a70;--tb-green-dark:#163d4c;--tb-navy:#15272e;--tb-text:#15272e;--tb-muted:#697579;--tb-soft:#e4edf0;--tb-side:#eff5f6;--tb-bg:#f8fafb;--tb-line:#dce5e8;--tb-sage-mid:#638c9b;}
html[data-theme="coral"] .app-shell{--tb-green:#a75046;--tb-green-dark:#723630;--tb-navy:#282a32;--tb-text:#282a32;--tb-muted:#75777c;--tb-soft:#f3e8e6;--tb-side:#f8f2f0;--tb-bg:#fcf9f9;--tb-line:#ebe0df;--tb-sage-mid:#c1847e;}
html[data-theme="jade"] .app-shell{--tb-green:#246451;--tb-green-dark:#184437;--tb-navy:#182724;--tb-text:#182724;--tb-muted:#6b7573;--tb-soft:#e5ede9;--tb-side:#f0f5f2;--tb-bg:#f8fafa;--tb-line:#dde5e1;--tb-sage-mid:#669285;}
html[data-theme="marine"] .app-shell{--tb-green:#264a79;--tb-green-dark:#1a3252;--tb-navy:#192c41;--tb-text:#192c41;--tb-muted:#6c7885;--tb-soft:#e5ebf4;--tb-side:#f0f3f9;--tb-bg:#f8fafc;--tb-line:#dde3ed;--tb-sage-mid:#6780a1;}
html[data-theme="plum"] .app-shell{--tb-green:#654567;--tb-green-dark:#452f46;--tb-navy:#2d2632;--tb-text:#2d2632;--tb-muted:#79747c;--tb-soft:#eee7ef;--tb-side:#f5f1f6;--tb-bg:#fbf9fb;--tb-line:#e6dfe7;--tb-sage-mid:#937d95;}
html[data-theme="copper"] .app-shell{--tb-green:#a95732;--tb-green-dark:#733b22;--tb-navy:#282c30;--tb-text:#282c30;--tb-muted:#75787b;--tb-soft:#f2e6df;--tb-side:#f7f0ec;--tb-bg:#fcf9f7;--tb-line:#eadfd8;--tb-sage-mid:#c38970;}
html[data-theme="forest"] .app-shell{--tb-green:#365b42;--tb-green-dark:#253e2d;--tb-navy:#202e25;--tb-text:#202e25;--tb-muted:#707973;--tb-soft:var(--light-sage);--tb-side:#f0f5f1;--tb-bg:#f9faf9;--tb-line:var(--line);--tb-sage-mid:#728c7b;}
html[data-theme="petrol"] .app-shell{--tb-green:#235859;--tb-green-dark:#183c3d;--tb-navy:#1b2d30;--tb-text:#1b2d30;--tb-muted:#6d797b;--tb-soft:#e2eeee;--tb-side:#eef5f5;--tb-bg:#f8fbfb;--tb-line:#dae6e6;--tb-sage-mid:#658a8b;}
html[data-theme="clay"] .app-shell{--tb-green:#a76553;--tb-green-dark:#724538;--tb-navy:#302b2a;--tb-text:#302b2a;--tb-muted:#7b7777;--tb-soft:#f1e7e2;--tb-side:#f7f1ee;--tb-bg:#fcf9f8;--tb-line:#e9dfdb;--tb-sage-mid:#c19387;}
html[data-theme="indigo"] .app-shell{--tb-green:#4a5089;--tb-green-dark:#32365d;--tb-navy:#23273c;--tb-text:#23273c;--tb-muted:#727582;--tb-soft:#e9eaf3;--tb-side:#f2f3f8;--tb-bg:#fafafc;--tb-line:#e1e2ec;--tb-sage-mid:#8084ac;}
html[data-theme="berry"] .app-shell{--tb-green:#8c415c;--tb-green-dark:#5f2c3f;--tb-navy:#322731;--tb-text:#322731;--tb-muted:#7c757b;--tb-soft:#f2e5eb;--tb-side:#f7f0f3;--tb-bg:#fcf8fa;--tb-line:#eadde4;--tb-sage-mid:#ae7a8d;}
html[data-theme="slate"] .app-shell{--tb-green:#4d6070;--tb-green-dark:#34414c;--tb-navy:#242e36;--tb-text:#242e36;--tb-muted:#73797e;--tb-soft:#e6ebef;--tb-side:#f0f3f6;--tb-bg:#f9fafb;--tb-line:#dee3e8;--tb-sage-mid:#82909b;}
html[data-theme="olive"] .app-shell{--tb-green:#606846;--tb-green-dark:#414730;--tb-navy:#2b3025;--tb-text:#2b3025;--tb-muted:#777b73;--tb-soft:#eceee4;--tb-side:#f4f5ef;--tb-bg:#fafbf8;--tb-line:#e4e6dc;--tb-sage-mid:#90957e;}
html[data-theme="charcoal"] .app-shell{--tb-green:#353d46;--tb-green-dark:#242930;--tb-navy:#20262d;--tb-text:#20262d;--tb-muted:#707479;--tb-soft:#e7e9ed;--tb-side:#f1f2f5;--tb-bg:#f9fafa;--tb-line:#dfe1e5;--tb-sage-mid:#72777e;}
html[data-theme="itps"] .app-shell{--tb-green:#146eac;--tb-green-dark:#0e4b75;--tb-navy:#14213d;--tb-text:#14213d;--tb-muted:#54687e;--tb-soft:#d9e6f1;--tb-side:#cfdfed;--tb-bg:#e8eff6;--tb-line:#b7cddd;--tb-sage-mid:#4e7fa8;--tb-gold:#c29b4a;--tb-accent:#2f6fed;--tb-on-dark:#ffffff;--tb-on-dark-soft:color-mix(in srgb,var(--tb-on-dark) 74%,var(--tb-navy));--tb-navicon:color-mix(in srgb,var(--tb-on-dark) 62%,var(--tb-accent));--tb-grad-head:linear-gradient(120deg,var(--tb-navy) 0%,var(--tb-green-dark) 48%,var(--tb-green) 84%,var(--tb-accent) 135%);--tb-grad-btn:linear-gradient(180deg,var(--tb-green) 0%,var(--tb-green-dark) 100%);--tb-grad-btn-hover:linear-gradient(180deg,var(--tb-green-dark) 0%,var(--tb-navy) 100%);--tb-grad-side:linear-gradient(180deg,var(--tb-navy) 0%,var(--tb-green-dark) 78%,var(--tb-green) 135%);--tb-briefing-gradient:linear-gradient(180deg,var(--tb-navy) 0%,var(--tb-green-dark) 55%,var(--tb-green) 100%);}
html[data-theme="scott-midnight"] .app-shell{--tb-panel:#122334;--tb-green:#d4a94e;--tb-green-dark:#b8912f;--tb-navy:#f2ebdd;--tb-text:#f2ebdd;--tb-muted:#a9b6c2;--tb-soft:#122334;--tb-side:#0e1c2d;--tb-bg:#0b1622;--tb-line:#27405a;--tb-sage-mid:#1b3a57;}
html[data-theme="chantelle-noir"] .app-shell{--tb-panel:#1B1813;--tb-green:#d4af6a;--tb-green-dark:#c29d4f;--tb-navy:#f4eddc;--tb-text:#f4eddc;--tb-muted:#b4a888;--tb-soft:#1b1813;--tb-side:#080808;--tb-bg:#12100c;--tb-line:#3a3222;--tb-sage-mid:#a68f5f;}
/* (1c) Components that carry their own token copies (the help
   guide sheet and header search popover) inherit the theme. */
html[data-theme="scott-midnight"] .tb-guide-sheet,html[data-theme="scott-midnight"] .tb-hsearch-pop{--tb-panel:#122334;}
html[data-theme="chantelle-noir"] .tb-guide-sheet,html[data-theme="chantelle-noir"] .tb-hsearch-pop{--tb-panel:#1B1813;}
html[data-theme] .tb-guide-sheet,html[data-theme] .tb-hsearch-pop{--tb-green:var(--green);--tb-green-dark:var(--green-dark);--tb-line:var(--line);--tb-text:var(--ink);--tb-muted:var(--muted);--tb-soft:var(--light-sage);}
/* (1d) Checkboxes and radios painted with the brand green by
   inline style or JS follow the theme while one is chosen. */
html[data-theme] .app-shell input[type="checkbox"],html[data-theme] .app-shell input[type="radio"]{accent-color:var(--tb-green) !important;}
/* (2) Brand-literal rules re-pointed at the theme tokens. */
html[data-theme] .signin-btn{background:var(--green);}
html[data-theme] .signin-btn:hover{background:var(--green-dark);}
html[data-theme] .tb-saved-banner{border:1px solid var(--line); background:var(--light-sage); color:var(--green);}
html[data-theme] body .gbtn:hover{background:var(--green-dark); border-color:var(--green-dark);}
html[data-theme] .app-shell .tb-input{background:var(--tb-soft);}
html[data-theme] .app-shell .tb-inbox-note{background:var(--tb-soft);}
html[data-theme] .app-shell #ad-view-settings .tb-lists-row{border-bottom:1px solid var(--tb-line);}
html[data-theme] .app-shell .tb-tl-note{background:var(--tb-soft);}
html[data-theme] .app-shell .tb-lib-title{color:var(--tb-navy);}
html[data-theme] .app-shell .tb-lib-subject{color:var(--tb-navy);}
html[data-theme] .app-shell .tb-feedback-input{background:var(--tb-soft);}
html[data-theme] .app-shell .tb-feedback-actions .btn-quiet{color:var(--tb-navy);}
html[data-theme] .app-shell .tb-chat-send:hover{background:var(--tb-green-dark);}
html[data-theme] .app-shell .tb-chat-action:hover{background:var(--tb-green-dark);}
html[data-theme] .app-shell .tb-sweep-pill{background:var(--tb-navy);}
html[data-theme] .app-shell .tb-chat-badge{background:var(--tb-navy);}
html[data-theme] .app-shell .tb-chat-notemode{background:var(--tb-soft);}
html[data-theme] .tb-twr-flash{outline: 2px solid var(--green);}
html[data-theme] .tb-clip-btn{border: 1px solid var(--line); color: var(--green);}
html[data-theme] .tb-clip-badge{background: var(--green);}
html[data-theme] .tb-viewer-cap{color: var(--navy);}
html[data-theme] .tb-visitor-launcher:hover{background:var(--green-dark);}
html[data-theme] .app-shell .apx-head{background:var(--tb-brand);}
html[data-theme] .app-shell .apx-head p{color:var(--tb-soft);}
html[data-theme] .app-shell .apx-start{color:var(--tb-brand);}
html[data-theme] .app-shell .apx-section{color:var(--tb-brand);}
html[data-theme] .app-shell .apx-chip{background:var(--tb-soft); color:var(--tb-green);}
html[data-theme] .app-shell .apx-lr-meta{color:var(--tb-muted);}
html[data-theme] .app-shell .apx-rec{background:var(--tb-side); border-left:4px solid var(--tb-green);}
html[data-theme] .app-shell .apx-open{border:1px solid var(--tb-line); color:var(--tb-green);}
html[data-theme] .app-shell .apx-eyebrow{color:var(--tb-green);}
html[data-theme] .app-shell .tcb-bullets li::marker{color:var(--tb-green);}
html[data-theme] .app-shell .tcb-legacy-note{color:var(--tb-muted);}
html[data-theme] .app-shell .tcb-details > summary{color:var(--tb-green);}
html[data-theme] .app-shell .apx-listen{border:2px solid var(--tb-green); color:var(--tb-green);}
html[data-theme] .app-shell .apx-listen.speaking{background:var(--tb-green);}
html[data-theme] .app-shell .apx-btn{border:1px solid var(--tb-line);}
html[data-theme] .app-shell .apx-btn.primary{background:var(--tb-brand); border-color:var(--tb-brand);}
html[data-theme] .app-shell .apx-btn.quiet{color:var(--tb-muted); border-color:var(--tb-line);}
html[data-theme] .app-shell .apx-sitmeta{color:var(--tb-muted);}
html[data-theme] .app-shell .apx-sitmeta a{color:var(--tb-green);}
html[data-theme] .app-shell .apx-comment{border:1px solid var(--tb-line);}
html[data-theme] .app-shell .apx-state{background:var(--tb-soft); color:var(--tb-green);}
html[data-theme] .app-shell .apx-timeline .apx-tl-kind{color:var(--tb-green);}
html[data-theme] .app-shell .apx-bandtitle{color:var(--tb-green);}
html[data-theme] .app-shell .apx-attach-chip{color:var(--tb-green); border:1px solid var(--tb-line);}
html[data-theme] .app-shell .ws-switchbtn{border:1px solid var(--tb-line); color:var(--tb-green);}
html[data-theme] .app-shell .ws-switchbtn.selected{background:var(--tb-green); border-color:var(--tb-green);}
html[data-theme] .app-shell .ws-rowmain{color:var(--tb-navy);}
html[data-theme] .app-shell .ws-role{color:var(--tb-green); background:var(--tb-soft);}
html[data-theme] .app-shell .ws-projrow:hover{background:var(--tb-soft);}
html[data-theme] .app-shell .ws-status{color:var(--tb-green); background:var(--tb-soft);}
html[data-theme] .app-shell .ws-here{color:var(--tb-green-dark); border:1px solid var(--tb-line);}
html[data-theme] .app-shell .ws-launch{background:var(--tb-green); border:1px solid var(--tb-green);}
html[data-theme] .app-shell .ws-launch:hover{background:var(--tb-green-dark); border-color:var(--tb-green-dark);}
html[data-theme] .app-shell .ws-launch:focus-visible{outline:2px solid var(--tb-navy);}
html[data-theme] .app-shell .ws-dash{background:var(--tb-green); border:1px solid var(--tb-green); color:#fff;}
html[data-theme] .app-shell .ws-dash:hover{background:var(--tb-green-dark); border-color:var(--tb-green-dark);}
html[data-theme] .app-shell .ws-dash:active{background:var(--tb-green-dark); border-color:var(--tb-green-dark);}
html[data-theme] .app-shell .ws-dash:focus-visible{outline:2px solid var(--tb-navy);}
html[data-theme] .app-shell .ws-dash.current{background:transparent; color:var(--tb-green-dark); border:1px solid var(--tb-line);}
html[data-theme] .app-shell .ws-open{color:var(--tb-green); border:1px solid var(--tb-green); background:transparent;}
html[data-theme] .app-shell .ws-open:hover{background:var(--tb-soft); color:var(--tb-green-dark); border-color:var(--tb-green-dark);}
html[data-theme] .app-shell .ws-open:focus-visible{outline:2px solid var(--tb-navy);}
html[data-theme] .app-shell .ws-loadtitle{color:var(--tb-navy);}
html[data-theme] .app-shell .apx-filters select, html[data-theme] .app-shell .apx-filters input{border:1px solid var(--tb-line);}
html[data-theme] .app-shell .tb-lr-eyebrow{color:var(--tb-green);}
html[data-theme] .app-shell .apx-walk-progress{color:var(--tb-green);}
html[data-theme] .app-shell .tb-voice-val{background:var(--tb-soft); color:var(--tb-green);}
html[data-theme] .app-shell .tb-voice-range{accent-color:var(--tb-green);}
html[data-theme] .app-shell .tb-voice-previewlabel{color:var(--tb-green);}
html[data-theme] .app-shell .tb-voice-previewbox p{color:var(--tb-navy);}
html[data-theme] .app-shell #ad-voice-preview.speaking{background:var(--tb-navy); border-color:var(--tb-navy);}
html[data-theme] .app-shell .tb-voice-chip{color:var(--tb-green); border:1.5px solid var(--tb-green);}
html[data-theme] .app-shell .tb-voice-pop{color:var(--tb-navy); border:1px solid var(--tb-line);}
html[data-theme] .app-shell .tb-voice-pop-label{color:var(--tb-navy);}
html[data-theme] .app-shell .tb-voice-pop-label select{border:1.5px solid var(--tb-line); color:var(--tb-navy);}
html[data-theme] .app-shell .tb-voice-pop input[type="range"]{accent-color:var(--tb-green);}
html[data-theme] .app-shell .tb-voice-preview{background:var(--tb-green); border:1.5px solid var(--tb-green);}
html[data-theme] .app-shell .tb-voice-preview.speaking{background:var(--tb-navy); border-color:var(--tb-navy);}
html[data-theme] .app-shell .tb-voice-all{color:var(--tb-green);}
html[data-theme] .app-shell .v24-tile:hover{border-color:var(--tb-sage-mid);}
html[data-theme] .app-shell .v24-tilefigure{color:var(--tb-navy);}
html[data-theme] .app-shell .v24-samplebadge{background:var(--tb-soft); color:var(--tb-green); border:1px solid var(--tb-sage-mid);}
html[data-theme] .app-shell .v24-testbadge{background:var(--tb-soft); color:var(--tb-navy);}
html[data-theme] .app-shell .v24-rolebtn{color:var(--tb-navy);}
html[data-theme] .app-shell .v24-rolebtn strong{color:var(--tb-green);}
html[data-theme] .app-shell .v24-briefline a{color:var(--tb-green);}
html[data-theme] .app-shell .v24-dayhead{color:var(--tb-green);}
html[data-theme] .app-shell .v24-banner{background:var(--tb-soft); border:1px solid var(--tb-sage-mid);}
html[data-theme] .app-shell .tb-stat.v24-statbtn:hover{border-color:var(--tb-sage-mid);}
html[data-theme] .app-shell .apx-signoff .ok{color:var(--tb-green);}
html[data-theme] .app-shell .apx-qah{color:var(--tb-green);}
html[data-theme] .app-shell .apx-proposal{border:1px solid var(--tb-sage-mid); background:var(--tb-side);}
html[data-theme] .tb-chat-pill{background: var(--green); color: #FFFFFF;}
html[data-theme] .tb-visitor-chip{border: 1px solid var(--green); color: var(--green);}
html[data-theme] .tb-visitor-fbbtn.tb-on{background: var(--green); border-color: var(--green);}
html[data-theme] .tb-visitor-stepsbtn{color: var(--green);}
html[data-theme] .tb-visitor-stepshead{color: var(--navy);}
html[data-theme] .tb-visitor-stepsdoor{background: var(--green);}
html[data-theme] .app-shell .cc-kpi:hover{border-color:var(--tb-sage-mid);}
html[data-theme] .app-shell .tb-action-row:hover{border-color:var(--tb-sage-mid);}
html[data-theme] .app-shell button.cust-kpi:hover{border-color:var(--tb-sage-mid);}
html[data-theme] .app-shell .collab-msg-trevor{border-color:var(--tb-line);}
/* (3) Admin TaskDesk rules live in admin.html's page-local
   <style> block with hex literals; re-pointed from here. */
html[data-theme] .td-row{border-top-color:var(--tb-line);}
html[data-theme] .td-title{color:var(--tb-navy);}
html[data-theme] .td-no{color:var(--tb-muted);}
html[data-theme] .td-prog{color:var(--tb-green);}
html[data-theme] .td-line2{color:var(--tb-muted);}
html[data-theme] .td-pill-todo{background:var(--tb-soft);color:var(--tb-muted);}
html[data-theme] .td-pill-done{background:var(--tb-green);}
html[data-theme] .td-kids{border-left-color:var(--tb-line);}
html[data-theme] .td-kids .td-row{border-top-color:var(--tb-line);}
html[data-theme] .td-empty{color:var(--tb-text);}
html[data-theme] .td-empty h3{color:var(--tb-navy);}
html[data-theme] .td-meta{color:var(--tb-muted);}
html[data-theme] .td-sect{color:var(--tb-green);}
html[data-theme] .td-source{background:var(--tb-side);color:var(--tb-text);}
html[data-theme] .td-noteitem{border-top-color:var(--tb-line);}
html[data-theme] .td-journal{color:var(--tb-text);}
html[data-theme] .td-journal .td-jmeta{color:var(--tb-muted);}
html[data-theme] .td-earn{color:var(--tb-green);}
html[data-theme] .td-strip-title{color:var(--tb-navy);}
html[data-theme] .td-strip-line{color:var(--tb-text);}
html[data-theme] .td-chip{background:var(--tb-soft);color:var(--tb-green);}
html[data-theme] .td-tabcount{background:var(--tb-green);}
html[data-theme] .td-sortseg button.on{background:var(--tb-green);}
html[data-theme] .td-check:hover{border-color:var(--tb-green);}
html[data-theme] .td-check.on{background:var(--tb-green);border-color:var(--tb-green);}
html[data-theme] .td-expand{color:var(--tb-green);}
html[data-theme] .td-title.done{color:var(--tb-muted);}
/* === End THEME ADOPTION block === */
/* ==========================================================================
   POP-UP HEADER STANDARD (Oct 26, 2026 audit, public train):
   every pop-up sheet, modal, confirm dialog and overlay card
   carries ONE header bar: brand green #2E7D32 (var(--tb-green)
   in the shell, #2E7D32 at body level), its title INSIDE the
   bar in white, and its X at the bar's right end in white.
   An X always closes. Help and Back affordances live below
   the bar (builders in site.js place them in .tb-popsubrow);
   these rules paint the bars and keep hover, focus-visible
   and pressed states on every control that rides a bar.
   ========================================================================== */
.app-shell .tb-sheethead{background:var(--tb-brand);color:#FFFFFF;border-bottom:0;}
.app-shell .tb-sheethead .tb-sheettitle{color:#FFFFFF;}
.app-shell .tb-sheethead .tb-sheetbtn{color:#FFFFFF;}
.app-shell .tb-sheethead .tb-sheetbtn:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-sheethead .tb-sheetbtn:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-sheethead .tb-sheetbtn:active{background:rgba(255,255,255,.30);}
.app-shell .tb-rws-head{background:var(--tb-brand);color:#FFFFFF;border-bottom:0;}
.app-shell .tb-rws-head .tb-rws-title{color:#FFFFFF;}
.app-shell .tb-rws-head .tb-twr-subtitle{color:rgba(255,255,255,.88);}
.app-shell .tb-rws-x{color:var(--tb-text);}
.app-shell .tb-rws-head .tb-rws-x{color:#FFFFFF;}
.app-shell .tb-rws-head .tb-rws-x:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-rws-head .tb-rws-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-rws-head .tb-rws-x:active{background:rgba(255,255,255,.30);}
.app-shell .tb-rws-x:hover{background:var(--tb-soft);}
.app-shell .tb-rws-x:focus-visible{outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-popsubrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px 0;flex:0 0 auto;}
.app-shell .tb-popsubrow .tb-sheetbtn.tb-sheetback{color:var(--tb-green);}
.app-shell .tb-popsubrow .tb-sheetbtn.tb-sheetback:hover{color:var(--tb-green-dark);background:var(--tb-soft);}
.app-shell .tb-popsubrow .tb-sheetbtn.tb-sheetback:focus-visible{outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-rws-sheet .tb-popsubrow,.app-shell .tb-twr-sheet .tb-popsubrow{justify-content:flex-end;padding-bottom:2px;}
.app-shell .tb-morehead{background:var(--tb-brand);color:#FFFFFF;margin:-8px -14px 8px;padding:10px 14px;border-radius:16px 16px 0 0;}
.app-shell .tb-moretitle{color:#FFFFFF;}
.app-shell .tb-moreclose{color:#FFFFFF;}
.app-shell .tb-moreclose:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-moreclose:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-moreclose:active{background:rgba(255,255,255,.30);}
.app-shell .tb-drawerhead{background:var(--tb-brand);color:#FFFFFF;margin:-14px -14px 10px;padding:12px 14px;border-radius:0 16px 0 0;align-items:center;}
.app-shell .tb-drawerhead .tb-version{color:rgba(255,255,255,.88);}
.app-shell .tb-drawerclose{color:#FFFFFF;}
.app-shell .tb-drawerclose:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-drawerclose:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-drawerclose:active{background:rgba(255,255,255,.30);}
.app-shell .tb-help-card{overflow:hidden;}
.app-shell .tb-help-head{background:var(--tb-brand);color:#FFFFFF;margin:-16px -16px 6px;padding:12px 16px;}
.app-shell .tb-help-title{color:#FFFFFF;}
.app-shell .tb-help-head .tb-rws-x{color:#FFFFFF;}
.app-shell .tb-help-head .tb-rws-x:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-help-head .tb-rws-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-help-head .tb-rws-x:active{background:rgba(255,255,255,.30);}
.app-shell .tb-modal-overlay .tb-confirmbox{padding:0 14px 14px;}
.tb-popbar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--tb-green,#2E7D32);color:#FFFFFF;margin:0 -14px 12px;padding:12px 16px;border-radius:16px 16px 0 0;font-weight:600;}
.tb-popbar .tb-dlgx{position:static;color:#FFFFFF;flex:0 0 auto;}
.app-shell .tb-modal-overlay .tb-confirmbox:not(.tb-guardbox)>p:first-of-type{background:var(--tb-brand);color:#FFFFFF;margin:0 -14px 12px;padding:12px 54px 12px 16px;border-radius:16px 16px 0 0;}
/* (Reboot confirmation) The one deliberate exception
   to the green pop-up header: the danger register. */
.app-shell .tb-modal-overlay .tb-confirmbox.cc-dangerbox>p:first-of-type{background:var(--tb-danger);}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-dlgx{color:#FFFFFF;top:5px;right:9px;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-dlgx:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-dlgx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-dlgx:active{background:rgba(255,255,255,.30);}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-popbar .tb-dlgx{top:auto;right:auto;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-guardx{color:#FFFFFF;top:5px;right:9px;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-guardx:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-modal-overlay .tb-confirmbox .tb-guardx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-receipt-box{padding:0 18px 18px;overflow:hidden;}
.app-shell .tb-receipt-head{background:var(--tb-brand);color:#FFFFFF;margin:0 -18px 12px;padding:10px 52px 10px 16px;border-radius:var(--tb-radius) var(--tb-radius) 0 0;}
.app-shell .tb-receipt-head span{color:#FFFFFF;}
.app-shell .tb-receipt-head a.tb-action{background:#FFFFFF;color:var(--tb-green-dark);border-color:#FFFFFF;}
.app-shell .tb-receipt-head a.tb-action:hover{background:var(--tb-soft);}
.app-shell .tb-receipt-box .tb-dlgx{top:5px;right:10px;color:#FFFFFF;}
.app-shell .tb-receipt-box .tb-dlgx:hover{background:rgba(255,255,255,.18);color:#FFFFFF;}
.app-shell .tb-receipt-box .tb-dlgx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-receipt-box .tb-dlgx:active{background:rgba(255,255,255,.30);}
.tb-viewer-card{padding:0 14px 14px;overflow:hidden;}
.tb-viewer-head{background: var(--green);color:#FFFFFF;margin:0 -14px 12px;padding:10px 14px;}
.tb-viewer-cap{color:#FFFFFF;}
.tb-viewer-head .tb-dlgx{position:static;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;cursor:pointer;flex:0 0 auto;}
.tb-viewer-head .tb-dlgx svg{width:21px;height:21px;}
.tb-viewer-head .tb-dlgx:hover{background:rgba(255,255,255,.18);}
.tb-viewer-head .tb-dlgx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-viewer-head .tb-dlgx:active{background:rgba(255,255,255,.30);}
.tb-chatconfirm-card{padding:0 18px 18px;overflow:hidden;}
.tb-chatconfirm-head{background:var(--tb-green,#2E7D32);color:#FFFFFF;margin:0 -18px 12px;padding:10px 14px;}
.tb-chatconfirm-title{color:#FFFFFF;}
.tb-chatconfirm-x{margin-left:auto;display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;font-size:22px;line-height:1;cursor:pointer;flex:0 0 auto;}
.tb-chatconfirm-x:hover{background:rgba(255,255,255,.18);}
.tb-chatconfirm-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-chatconfirm-x:active{background:rgba(255,255,255,.30);}
.app-shell .tb-rws-notes-card{padding:0 16px 16px;overflow:hidden;}
.app-shell .tb-rws-notes-title{background:var(--tb-brand);color:#FFFFFF;margin:0 -16px 12px;padding:12px 48px 12px 16px;border-radius:14px 14px 0 0;}
.tb-popx{position:absolute;top:6px;right:10px;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;font-size:20px;line-height:1;cursor:pointer;}
.tb-popx:hover{background:rgba(255,255,255,.18);}
.tb-popx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-popx:active{background:rgba(255,255,255,.30);}
.app-shell .tb-rws-confirm-card{padding:0 16px 16px;overflow:hidden;}
.app-shell .tb-rws-confirm-card .tb-popbar{margin:0 -16px 12px;border-radius:16px 16px 0 0;}
.app-shell .tb-rws-confirm-card .tb-rws-confirm-title{color:#FFFFFF;margin:0;}
.app-shell .tb-rws-confirm-card .tb-popbar .tb-popx{position:static;}
.tb-guide-sheethead{background:var(--tb-brand);color:#FFFFFF;margin:-14px -14px 8px;padding:10px 14px;border-radius:18px 18px 0 0;}
.tb-guide-sheettitle{color:#FFFFFF;}
.tb-guide-close{background:transparent;border-color:rgba(255,255,255,.55);color:#FFFFFF;}
.tb-guide-close:hover{background:rgba(255,255,255,.18);}
.tb-guide-close:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-guide-close:active{background:rgba(255,255,255,.30);}
.tb-guide-stepstitle{background: var(--green);color:#FFFFFF;margin:-14px -16px 10px;padding:10px 54px 10px 16px;border-radius:16px 16px 0 0;}
.tb-guide-cardx{position:absolute;top:5px;right:9px;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;font-size:20px;line-height:1;cursor:pointer;}
.tb-guide-cardx:hover{background:rgba(255,255,255,.18);}
.tb-guide-cardx:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-guide-cardx:active{background:rgba(255,255,255,.30);}
.tb-visitor-stepshead{background: var(--green);color:#FFFFFF;margin:-14px -16px 10px;padding:10px 16px;border-radius:14px 14px 0 0;}
.tb-visitor-stepshead button{color:#FFFFFF;}
.tb-visitor-stepshead button:hover{background:rgba(255,255,255,.18);}
.tb-visitor-stepshead button:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-voice-pop{padding:0 14px 14px;overflow:hidden;}
.tb-voice-pop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--tb-green,#2E7D32);color:#FFFFFF;margin:0 -14px 12px;padding:10px 14px;font-weight:600;}
.tb-voice-pop-x{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;font-size:20px;line-height:1;cursor:pointer;flex:0 0 auto;}
.tb-voice-pop-x:hover{background:rgba(255,255,255,.18);}
.tb-voice-pop-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.tb-voice-pop-x:active{background:rgba(255,255,255,.30);}
.avatar-panel{overflow:hidden;padding:0 8px 8px;}
.avatar-panel-head{background:var(--green);color:#FFFFFF;margin:0 -8px 6px;padding:10px 40px 10px 12px;border-radius:12px 12px 0 0;border-bottom:0;position:relative;}
.avatar-panel-name{color:#FFFFFF;}
.avatar-panel-email{color:rgba(255,255,255,.88);}
.avatar-panel-x{position:absolute;top:6px;right:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:0;border-radius:8px;color:#FFFFFF;font-size:20px;line-height:1;cursor:pointer;}
.avatar-panel-x:hover{background:rgba(255,255,255,.18);}
.avatar-panel-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px;}
.avatar-panel-x:active{background:rgba(255,255,255,.30);}

/* (Oct 30, 2026, presentation conformance, Part 1) Every dialog-class
   pop-up now carries the master .tb-sheet attributes: 16px radius,
   shadow 0 24px 60px rgba(20,33,61,.30), the brand header bar, and
   ONE close control at the .tb-sheetbtn geometry (40px box, 8px
   radius, 21px glyph): .tb-inbox-sheet, .tb-confirmbox (inline and
   modal), .tb-receipt-box, .tb-rws-confirm-card, .tb-rws-notes-card,
   .tb-help-card, .tb-chatconfirm-card, .tb-visitor-queue,
   .tb-hsearch-pop, the guide steps/offer cards, .tb-popbar corners,
   and the .tb-dlgx / .tb-guardx / .tb-popx / .tb-guide-cardx /
   .tb-inbox-sheetx closes were conformed in place. Dropdown menus
   and the docked chat panels keep their own settled classes.
   Record: ~/workspace/presentation-conformance-2026-10-30/RECORD.md */
/* (Oct 30, 2026, presentation conformance, Part 2) Button conformance:
   the 999px island action buttons (.tb-inbox-sheetdone,
   .tb-saved-banner-action, .tb-inbox-sheet-cat) now carry the
   .tb-action box (8px radius, 7px 12px padding); .tb-secondary and
   .tb-outline are one definition. .ad-ws-public is untouched:
   previously approved banner dress. Record:
   ~/workspace/presentation-conformance-2026-10-30/RECORD.md */
/* ==== Pop-up header standard: back-office additions (Oct 26, 2026,
   admin train), merged into the union block above at landing prep.
   The shared sheet head, More sheet head, receipt head and viewer
   head are carried by the public block (preferred on shared
   selectors); what follows is what only this train's copy held:
   the in-head Back and help whites for sheets that still carry
   them, the body bar the Settings and Customer sheets moved their
   Back (and How this works link) into, the inbox Filter head, the
   sent-message head, and the guard-box bar. ==== */
.app-shell .tb-sheethead .tb-sheetback,
.app-shell .tb-sheethead .tb-sheetback span{color:#FFFFFF;}
.app-shell .tb-sheethead .tb-sheetback:hover{
  background:rgba(255,255,255,.16);color:#FFFFFF;}
.app-shell .tb-sheethead .tb-help-btn{
  color:#FFFFFF;border-color:rgba(255,255,255,.7);}
.app-shell .tb-sheethead .tb-help-btn:hover{
  background:rgba(255,255,255,.16);color:#FFFFFF;}
.app-shell .tb-sheetbodybar{
  display:flex;align-items:center;
  justify-content:space-between;gap:10px;
  margin:0 0 12px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-head{
  background:var(--tb-brand);color:#FFFFFF;
  border-bottom:0;padding:10px 16px;}
.app-shell #ad-view-feedback .tb-inbox-sheet-head strong{
  color:#FFFFFF;}
.app-shell #ad-view-feedback .tb-inbox-sheet-count{
  color:rgba(255,255,255,.88);}
.app-shell #ad-view-feedback .tb-inbox-sheetx{
  color:#FFFFFF;border-radius:8px;}
.app-shell #ad-view-feedback .tb-inbox-sheetx:hover{
  background:rgba(255,255,255,.16);color:#FFFFFF;}
.app-shell #ad-view-feedback .tb-inbox-sheetx:focus-visible{
  outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-sendhead{
  display:flex;align-items:center;gap:8px;
  background:var(--tb-brand);color:#FFFFFF;
  margin:-18px -20px 14px;
  padding:10px 14px 10px 20px;
  border-radius:13px 13px 0 0;}
.app-shell .tb-sendhead .tb-sheettitle{color:#FFFFFF;}
.app-shell .tb-sendhead .tb-sheetbtn{color:#FFFFFF;}
.app-shell .tb-sendhead .tb-sheetbtn:hover{
  background:rgba(255,255,255,.16);color:#FFFFFF;}
.app-shell .tb-sendhead .tb-sheetbtn:focus-visible{
  outline:2px solid #FFFFFF;outline-offset:-2px;}
.app-shell .tb-confirmbox.tb-guardbox{padding:0 0 12px;}
.app-shell .tb-guardhead{
  display:flex;align-items:center;gap:8px;
  background:var(--tb-brand);color:#FFFFFF;
  padding:10px 14px;margin:0 0 12px;
  border-radius:7px 7px 0 0;}
.app-shell .tb-guardtitle{
  flex:1;font-size:15.5px;font-weight:600;}
.app-shell .tb-guardbox>p,
.app-shell .tb-guardbox>.tb-changesum,
.app-shell .tb-guardbox>.tb-inline{
  margin-left:14px;margin-right:14px;}
.app-shell .tb-guardbox>p{padding-right:0;}
.app-shell .tb-guardbox .tb-guardx{
  position:static;flex:0 0 auto;color:#FFFFFF;}
.app-shell .tb-guardbox .tb-guardx:hover{
  background:rgba(255,255,255,.16);color:#FFFFFF;}
.app-shell .tb-guardbox .tb-guardx:focus-visible{
  outline:2px solid #FFFFFF;outline-offset:2px;}

/* Union reconciliation (landing prep, Oct 26, 2026): the header
   search pop-up keeps the search train's own head treatment
   (scoped rules in the .tb-hsearch block above, which win on
   specificity for every property they set). The one property the
   public block's unscoped .tb-guide-sheettitle rule would
   otherwise leak into it is the title color; the search head is
   a white bar, so its title keeps the shell text color. */
.tb-hsearch-pop .tb-guide-sheettitle{color:var(--tb-text);}

/* (v4.27, Trevor Oct 27, 2026) Visitor chat header: the
   X stands at the RIGHT END of the green bar and the
   options button (vertical three dots) sits beside it.
   The options the composer's + card used to carry
   (Attach a photo or file, Sound) drop from this header
   menu; the + now opens the file picker directly. */
.app-shell .tb-visitorwrap .tb-visitor-head .tb-sheetbtn{
  position:absolute;top:50%;
  transform:translateY(-50%);z-index:4;}
.app-shell .tb-visitorwrap .tb-visitor-head
  [data-v="close"]{right:8px;}
.app-shell .tb-visitorwrap .tb-visitor-head
  [data-v="menubtn"]{right:52px;}
.app-shell .tb-visitor-head .tb-sheetbtn:hover{
  background:rgba(255,255,255,.16);}
.app-shell .tb-visitor-head .tb-sheetbtn:focus-visible{
  outline:2px solid #FFFFFF;outline-offset:2px;}
.app-shell .tb-visitor-head .tb-sheetbtn:active{
  background:rgba(255,255,255,.30);}
.app-shell .tb-visitor-headmenu{
  position:absolute;top:calc(100% + 4px);right:8px;
  width:min(272px,calc(100vw - 32px));
  box-sizing:border-box;background:#FFFFFF;
  border:1px solid var(--tb-line);border-radius:12px;
  box-shadow:0 12px 30px rgba(20,33,61,.22);
  padding:8px;z-index:9;text-align:left;}
.app-shell .tb-visitor-headmenu[hidden]{display:none;}
.app-shell .tb-visitor-headmenu>button{
  display:block;width:100%;text-align:left;
  background:none;border:0;border-radius:8px;
  padding:9px 10px;font:inherit;font-size:14.5px;
  font-weight:600;color:var(--tb-text);cursor:pointer;}
.app-shell .tb-visitor-headmenu>button:hover{
  background:var(--tb-soft);}
.app-shell .tb-visitor-headmenu>button:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-visitor-headmenu>button:active{
  background:var(--tb-soft);}
.app-shell .tb-visitor-menuhint{
  display:block;margin-top:3px;font-size:12.5px;
  font-weight:400;line-height:1.45;color:var(--tb-muted);}

/* (Oct 27, 2026, ticket sheet restore) The dashboard's
   conversation sheet is a sheet, not a near-fullscreen
   box: on a desktop it takes the platform's standard
   sheet size (the .tb-sheet measure, min(700px, 94vw),
   height fitted to its content up to 90vh, scrolling
   inside itself past that). The back office's record
   sheet keeps the wide two-column card it needs; this
   rule is scoped to the dashboard sheet alone. The
   band also carries the ticket's full subject line
   under its number and state, complete and unwrapped
   by any shortening. */
@media (min-width:751px){
  .app-shell #sup-thread-sheet.tb-sheet-active
    .tb-osheet-panel{
    width:min(700px,94vw);max-width:700px;
    height:auto;max-height:90vh;}
}
#sup-thread-band .tb-sheetband-subject{
  display:block;font-size:13.5px;font-weight:500;
  line-height:1.4;color:rgba(255,255,255,.92);
  overflow-wrap:anywhere;}

/* (Oct 27, 2026, chat linkify) Links inside chat message
   bodies: brand green with an underline on the pale team
   bubbles and the summary block; white on the visitor's
   own blue bubbles, where green would not read. */
.app-shell .tb-chat-body a.tb-chat-link,
.tb-chat-body a.tb-chat-link,
.app-shell .tb-chat-summary-block a.tb-chat-link,
.tb-chat-summary-block a.tb-chat-link{
  color: var(--tb-green);text-decoration:underline;
  text-underline-offset:2px;overflow-wrap:anywhere;}
.app-shell .tb-chat-you .tb-chat-body a.tb-chat-link,
.tb-chat-you .tb-chat-body a.tb-chat-link{color:#FFFFFF;}
/* (Oct 27, 2026, chat linkify, panel contrast) Inside the
   visitor panel the team bubbles are brand green with
   white text, so their links are white there too; the
   green treatment above is for the pale back office
   bubbles and the summary block. */
.tb-visitorwrap .tb-chat-you .tb-chat-body a.tb-chat-link{color:#FFFFFF;}

/* ==========================================================================
   BRAND INHERITANCE (Oct 29, 2026, Trevor's live-review catch):
   the back office's primary surfaces were wearing the personal
   palette's blue because they read var(--tb-green), which the
   THEME ADOPTION block re-points at the palette primary. The
   branded surfaces never moved (the View As Customer button and
   the TaskDesk strip carry the brand family literally). These
   surfaces are BRAND surfaces, not palette surfaces: they take
   the workspace's branded color from Theme Management - the
   TidyBox brand green family (var(--tb-brand) to its deep shade
   var(--tb-brand-dark), the gradient pair the header standard now uses) -
   and no palette choice recolors them. Navy stays text and
   accent only; no blue fields, no blue badges.
   ========================================================================== */
html[data-theme] .app-shell .tb-sheethead,
.app-shell .tb-sheethead{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));}
html[data-theme] .app-shell .tb-rws-head,
.app-shell .tb-rws-head{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));}
html[data-theme] .app-shell .tb-chathead,
.app-shell .tb-chathead{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));}
html[data-theme] .tb-chatband,
.tb-chatband{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));}
html[data-theme] .app-shell .tb-sheetband,
.app-shell .tb-sheetband{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));
  color:#FFFFFF;}
html[data-theme] .app-shell .apx-head,
.app-shell .apx-head{
  background:linear-gradient(135deg,var(--tb-brand),var(--tb-brand-dark));}
html[data-theme] .app-shell .apx-head p,
.app-shell .apx-head p{color:var(--tb-soft);}
html[data-theme] .app-shell .apx-start,
.app-shell .apx-start{color:var(--tb-brand-dark);}
html[data-theme] .app-shell .apx-section,
.app-shell .apx-section{color:var(--tb-brand);}
html[data-theme] .app-shell .apx-eyebrow,
.app-shell .apx-eyebrow{color:var(--tb-brand);}
html[data-theme] .app-shell .apx-bandtitle,
.app-shell .apx-bandtitle{color:var(--tb-brand);}
html[data-theme] .app-shell .apx-btn.primary,
.app-shell .apx-btn.primary{
  background:var(--tb-brand);border-color:var(--tb-brand);color:#FFFFFF;}
html[data-theme] .app-shell .apx-chip,
.app-shell .apx-chip{background:var(--tb-soft);color:var(--tb-brand-dark);}
html[data-theme] .app-shell .apx-state,
.app-shell .apx-state{background:var(--tb-soft);color:var(--tb-brand-dark);}
html[data-theme] .app-shell .tb-tabcount,
.app-shell .tb-tabcount,
html[data-theme] .td-tabcount,
.td-tabcount{background:var(--tb-brand);color:#FFFFFF;}
html[data-theme] .app-shell .tb-tab.selected,
.app-shell .tb-tab.selected,
html[data-theme] .app-shell .tb-tab.active,
.app-shell .tb-tab.active{
  box-shadow:inset 0 3px 0 var(--tb-brand);}
html[data-theme] .app-shell .tb-chat-send,
.app-shell .tb-chat-send{background:var(--tb-brand);}
html[data-theme] .app-shell .tb-chat-send:hover,
.app-shell .tb-chat-send:hover{background:var(--tb-brand-dark);}
/* The v2.56 visitor-bubble trial (Apple blue #0A84FF) ends:
   in the back office thread the visitor's bubbles wear the
   branded green, white text, distinct from the pale team
   bubbles, exactly as the visitor panel already treats them. */
html[data-theme] .app-shell .tb-chat-you .tb-chat-bubble,
.app-shell .tb-chat-you .tb-chat-bubble{
  background:var(--tb-brand);color:#FFFFFF;}
html[data-theme] .app-shell .tb-ibx-headcell.sorted,
.app-shell .tb-ibx-headcell.sorted{color:var(--tb-brand-dark);}
html[data-theme] .tb-guide-sheethead,
.tb-guide-sheethead{background:var(--tb-brand);}

/* (Oct 29, 2026) The tab cascade (Trevor, from the Inbox):
   the two tab rows read as nested folders, not two loose
   strips. The selected kind tab wraps down and connects
   into the panel beneath it - the white chamber carrying
   the state row - and inside that chamber the selected
   state tab, smaller and clearly subordinate, wraps into
   the conversation list the same way. Unselected tabs
   recede in the light side tint. Presentation only: every
   count, filter, sort and click behaves exactly as before. */
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  margin:2px 0 0;border-bottom:1px solid var(--tb-line);}
.app-shell #ad-view-feedback #ad-inbox-kinds{
  border-bottom:0;margin-bottom:0;}
.app-shell #ad-inbox-kinds .tb-tab{background:var(--tb-side);}
.app-shell #ad-inbox-kinds .tb-tab.selected{
  background:var(--tb-tab-tint);border-bottom:1px solid #FFFFFF;
  position:relative;z-index:1;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-top:0;border-radius:0;margin:0;
  padding:10px 12px 12px;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  border-bottom:1px solid var(--tb-line);margin-bottom:0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
  font-size:13.5px;padding:7px 11px;background:var(--tb-side);}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  background:var(--tb-tab-tint);position:relative;z-index:1;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:#FFFFFF;border-left:1px solid var(--tb-line);
  border-right:1px solid var(--tb-line);margin:0;
  padding:8px 12px;}
.app-shell #ad-inbox-list{margin-bottom:14px;}
@media (min-width:901px){
  .app-shell #ad-view-feedback .tb-inbox-scrollwrap{
    border-top:0;border-radius:0 0 var(--tb-radius) var(--tb-radius);}
}
/* The Review Center tab row wears the same folder dress:
   unselected tabs recede in the tint, the selected tab is
   the white folder standing open over the strip's seam. */
.app-shell #apx-tabs .tb-tab{background:var(--tb-side);}
.app-shell #apx-tabs .tb-tab.selected{
  background:var(--tb-tab-tint);position:relative;z-index:1;}

/* (Oct 29, 2026) The Inbox record pop-up takes the
   active workspace theme's branded tokens (the
   three-tier resolution: personal pick, workspace
   default, platform default), never a hard-coded
   brand color: the sheet's header band, the
   visitor's bubbles in the thread, the staff
   composer's send button, and the pickup strip in
   the rail. */
#ad-thread-band{background:var(--tb-green);}
html[data-theme] .app-shell #ad-inbox-thread .tb-chat-you .tb-chat-bubble,
.app-shell #ad-inbox-thread .tb-chat-you .tb-chat-bubble{
  background:var(--tb-green);color:#FFFFFF;}
html[data-theme] .app-shell #ad-inbox-thread .tb-chat-send,
.app-shell #ad-inbox-thread .tb-chat-send{
  background:var(--tb-green);}
html[data-theme] .app-shell #ad-inbox-thread .tb-chat-send:hover,
.app-shell #ad-inbox-thread .tb-chat-send:hover{
  background:var(--tb-green-dark);}
.app-shell .tb-vp-claimed{background:var(--tb-soft);}

/* (Oct 29, 2026) Tab outline completion (Item 9): the
   outline draws around the selected tab and continues
   around the content box below it as ONE outlined piece.
   The kind row becomes the chamber's top edge; the state
   row and the results strip carry its sides; the list
   box closes it at the bottom at every width. Selected
   tabs stand white and bold with the branded top accent;
   unselected tabs recede in the side tint. */
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  border:1px solid var(--tb-line);border-bottom:0;
  border-radius:var(--tb-radius) var(--tb-radius) 0 0;
  padding:8px 10px 0;margin:2px 0 0;}
.app-shell #ad-view-feedback .tb-tabrow{
  border-bottom:0;}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  border-top:0;
  border-radius:0 0 var(--tb-radius) var(--tb-radius);}
.app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected,
.app-shell #apx-tabs .tb-tab.selected{
  color:var(--tb-text);font-weight:700;
  box-shadow:inset 0 3px 0 var(--tb-brand);}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  border-bottom:1px solid #FFFFFF;}
/* (Oct 29, 2026) The record's Activity tab: the
   journal as a table on its own tab in the record
   pop-up - sortable columns, alternating rows, and
   the table contained in its own card so the page
   itself never scrolls sideways. */
.app-shell .tb-rectabs{margin-bottom:16px;}
.app-shell .tb-recact-scroll{overflow-x:auto;border:1px solid var(--tb-line);border-radius:12px;background:#FFFFFF;}
.app-shell .tb-acttable{width:100%;border-collapse:collapse;font-size:13.5px;color:var(--tb-text);}
.app-shell .tb-acttable th{text-align:left;background:var(--tb-soft);border-bottom:1px solid var(--tb-line);padding:0;}
.app-shell .tb-acttable th button{display:block;width:100%;background:none;border:0;padding:9px 12px;font:inherit;font-weight:700;color:var(--tb-brand-dark);text-align:left;cursor:pointer;white-space:nowrap;}
.app-shell .tb-acttable th button:hover{background:var(--tb-bg);}
.app-shell .tb-acttable th button:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}
.app-shell .tb-acttable td{padding:8px 12px;border-top:1px solid var(--tb-line);vertical-align:top;line-height:1.45;}
.app-shell .tb-acttable tbody tr:nth-child(even){background:var(--tb-soft);}
.app-shell .tb-acttable .tb-actwhen{white-space:nowrap;color:var(--tb-muted);}
.app-shell .tb-acttable .tb-actwhat{font-weight:600;}
.app-shell .tb-acttable .tb-actwho{color:var(--tb-muted);}
.app-shell .tb-recact-empty{color:var(--tb-muted);font-size:13.5px;margin:6px 0;}
@media (max-width:560px){
  .app-shell .tb-acttable{font-size:12.5px;}
  .app-shell .tb-acttable th button{padding:8px;}
  .app-shell .tb-acttable td{padding:7px 8px;}
}

/* (Oct 29, 2026, overnight WS3) Folder tabs, completed as
   one standard. The Oct 29 tab cascade dressed only the
   Admin Home and the Inbox kind rows as connected folders;
   every other strip kept the generic shape: a tab row with
   its own line, a 22px gap, then a separate rounded box, so
   on the record sheet and most tabbed surfaces the selected
   tab read as a pale button, not a folder. Three fixes at
   the shared layer: (1) the selected tab now merges into the
   strip line under it (its tint covers the line segment, it
   stands above the strip, and its outline matches the
   content box outline); (2) the record sheet's tab bar and
   its mount become one connected box, the same construction
   the Admin Home already used; (3) the tab overflow menu's
   selected row wears the same tint and brand edge, so a tab
   that lives in More reads selected the same way. */
.app-shell .tb-tab{position:relative;}
.app-shell .tb-tab.selected,.app-shell .tb-tab.active{
  z-index:2;border-color:var(--tb-line);
  box-shadow:inset 0 3px 0 var(--tb-brand),
             inset 0 -2px 0 var(--tb-tab-tint);}
.app-shell .tb-tabmenu .tb-tab.selected{
  background:var(--tb-tab-tint);box-shadow:inset 3px 0 0 var(--tb-brand);}
.app-shell #ad-detail-tabsbar .tb-tabs{margin-bottom:0;}
.app-shell #ad-detail-mount{
  border:1px solid var(--tb-line);border-top:0;
  border-radius:0 0 14px 14px;background:var(--tb-panel);
  padding:16px 16px 4px;margin-bottom:6px;}
@media (max-width:750px){
  .app-shell #ad-detail-mount{padding:12px 10px 2px;}}
/* Plain header cells for activity tables that do not sort
   (the Inbox table's headers are buttons; the customer
   record's Activity table orders newest first and its
   headers are words, not controls). */
.app-shell .tb-acttable th.tb-actth{
  padding:9px 12px;font-weight:700;color:var(--tb-brand-dark);
  white-space:nowrap;}

/* (Oct 30, 2026) SOLID ENVELOPE - the adopted tab standard
   (Trevor, Oct 30, 2026, ~12:06 PM PT, by adoption of the
   ChatGPT "Solid Envelope" design he supplied,
   it-problem-solver-solid-envelope.html; DECISIONS.md):
   the selected tab and the panel under it share ONE solid
   light tint of the theme accent, so tab and content read
   as one piece; unselected tabs recede on the page
   background; folder tabs keep the 12px top radius and
   the -1px join into the panel. This block REPLACES the
   background-only envelope block shipped the same morning
   (selected tab in panel white), which it supersedes
   wherever the two differ. The tint token derives from
   --tb-brand by color-mix exactly as the source design
   derives its envelope from its accent - the design
   file's own final cascade value, a 12 percent mix over
   the panel - so every workspace's tabs wear its own
   theme's accent and no new literal color enters the
   file. The overflow menu's selected row keeps its wash
   (a menu row, not a folder tab). Counts, filters, sorts
   and clicks are exactly as they were. */
.app-shell .tb-tab{border-radius:12px 12px 0 0;}
html[data-theme] .app-shell .tb-tab.selected,
.app-shell .tb-tab.selected,
html[data-theme] .app-shell .tb-tab.active,
.app-shell .tb-tab.active{
  background:var(--tb-tab-envelope);border-color:transparent;
  box-shadow:none;color:var(--tb-text);font-weight:650;}
html[data-theme] .app-shell .tb-tabmenu .tb-tab.selected,
.app-shell .tb-tabmenu .tb-tab.selected{
  background:var(--tb-tab-tint);border-color:var(--tb-line);
  box-shadow:inset 3px 0 0 var(--tb-brand);}
.app-shell .cc-tab{border-radius:12px 12px 0 0;}
.app-shell .cc-tab.active{
  background:var(--tb-tab-envelope);border-color:transparent;
  box-shadow:none;color:var(--tb-text);font-weight:650;}
/* The record sheet's mount is the panel its tab bar
   stands on: the pair wears the envelope together. */
.app-shell #ad-detail-mount{
  background:var(--tb-tab-envelope);border-color:transparent;}
/* The Inbox two-tier envelope: the whole list area is
   the tinted panel the kind tabs stand in; the selected
   kind tab wears the same tint and loses its outline, so
   tab and panel are one piece. Inside the panel the
   state tabs are the smaller second tier: unselected
   state tabs sit on the page tone, the selected state
   tab stands in panel white with the branded top accent,
   over the white list box, whose outline is the design's
   20 percent mix of accent and line. */
.app-shell #ad-view-feedback #ad-inbox-list{
  background:var(--tb-tab-envelope);
  border-radius:0 12px 12px 12px;padding:2px 16px 16px;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  border:0;border-radius:0;background:transparent;
  padding:6px 0 0;margin:2px 0 0;}
.app-shell #ad-inbox-kinds .tb-tab{background:var(--tb-bg);}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  background:var(--tb-tab-envelope);border-color:transparent;
  border-bottom:0;box-shadow:none;font-weight:650;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:transparent;border:0;border-radius:0;
  padding:12px 0 8px;margin:0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  border-bottom:0;margin-bottom:0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
  background:var(--tb-bg);}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  background:var(--tb-panel);border-bottom:1px solid var(--tb-panel);
  box-shadow:inset 0 3px 0 var(--tb-brand);font-weight:650;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:transparent;border:0;margin:0;padding:0 0 8px;}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  border:1px solid color-mix(in srgb,var(--tb-brand) 20%,var(--tb-line));
  border-radius:0 10px 10px 10px;background:var(--tb-panel);}
/* The Review Center inherits the same envelope: its
   strip loses the seam and the gap, and the bundles
   panel under it wears the tint with its cards inside. */
.app-shell #apx-tabs{border-bottom:0;margin-bottom:0;}
.app-shell #apx-tabs .tb-tab{background:var(--tb-bg);margin-bottom:-1px;}
html[data-theme] .app-shell #apx-tabs .tb-tab.selected,
.app-shell #apx-tabs .tb-tab.selected{
  background:var(--tb-tab-envelope);border-color:transparent;
  box-shadow:none;font-weight:650;}
.app-shell #apx-bundles{
  background:var(--tb-tab-envelope);
  border-radius:0 12px 12px 12px;padding:16px;}

/* Drawer scroll lock (Oct 30, 2026): while the hamburger
   drawer is open, the page behind it stays put and the
   drawer scrolls its own contents only. Trevor reported
   swipes scrolling the page behind the open menu. */
.app-shell .tb-burgermenu.tb-drawer{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;}
body:has(.tb-burgermenu.tb-drawer:not([hidden])){overflow:hidden;}

/* Inbox envelope fidelity (Oct 30, 2026): the kind tabs
   stand on the page tone like the Solid Envelope example;
   only the selected kind tab and the panel beneath it
   carry the tint, as one piece. Rows share one rhythm,
   with the example banding on even rows. */
.app-shell #ad-view-feedback #ad-inbox-list{
  background:transparent;border-radius:0;padding:2px 0 16px;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  padding:6px 16px 0;margin:0;}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  position:relative;z-index:1;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-tab-envelope);border-radius:0 12px 0 0;
  padding:12px 16px 8px;margin:0;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:var(--tb-tab-envelope);
  padding:0 16px 16px;border-radius:0 0 12px 12px;}
.app-shell .tb-ibx-row{
  align-items:center;min-height:78px;box-sizing:border-box;}
.app-shell .tb-ibx-list .tb-ibx-row:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 4%,var(--tb-panel));}

/* (Oct 30, 2026) Inbox folder position, modeled on the Solid
   Envelope comp: the kind tabs stand ON the panel's top edge.
   The tab strip sits in a page-tone band across the panel's
   top, so the selected tab's rounded folder corners show
   against the page tone and its tint fuses into the panel
   tint at the join; unselected tabs recede in the side tint.
   The panel tint resumes below the strip. */
.app-shell #ad-view-feedback #ad-inbox-list{
  padding-top:0;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  background:var(--tb-bg);border:0;border-radius:0;
  margin:0 -16px;padding:8px 16px 0;}
.app-shell #ad-inbox-kinds .tb-tab{
  background:var(--tb-side);border-radius:12px 12px 0 0;
  margin-bottom:-1px;}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  background:var(--tb-tab-envelope);}
/* Inbox rows: comp alignment (Oct 30, 2026) - uniform line-item rows inside the envelope panel, matching the ChatGPT Solid Envelope comp: same height, same spacing, white row on the tint. */
.app-shell #ad-inbox-list .tb-ibx-list{display:flex;flex-direction:column;gap:6px;padding:10px 2px 4px;}
.app-shell #ad-inbox-list .tb-ibx-row{background:#fff;border:1px solid var(--tb-line);border-radius:10px;padding:12px 14px;min-height:64px;align-items:center;}
.app-shell #ad-inbox-list .tb-ibx-row:hover{background:#fff;border-color:var(--tb-brand);}
.app-shell #ad-inbox-list .tb-ibx-row.tb-ibx-row-cols{min-height:56px;}
/* Sweep surface 2: Review Center items and Chat list rows (Oct 30, 2026) - same uniform line-item shape as the Inbox rows: white card row, 10px radius, even padding and spacing. */
.app-shell .apx-item{background:#fff;border:1px solid var(--tb-line);border-radius:10px;padding:12px 14px;margin:6px 0;}
.app-shell #ad-view-chat .tb-ibx-list{display:flex;flex-direction:column;gap:6px;padding:10px 2px 4px;}
.app-shell #ad-view-chat .tb-ibx-row{background:#fff;border:1px solid var(--tb-line);border-radius:10px;padding:12px 14px;min-height:64px;align-items:center;}
.app-shell #ad-view-chat .tb-ibx-row:hover{background:#fff;border-color:var(--tb-brand);}
/* Inbox envelope restart (Oct 30, 2026, Trevor stop-and-restart):
   one small release, Inbox list only. The conversation list
   moves INSIDE the tinted envelope panel: the state tab row,
   the results line and the list wrapper share one continuous
   envelope background with one set of panel corners, so the
   white list no longer sits below the panel as a separate
   area. Rows keep the comp uniform card rhythm and gain the
   alternating banding on even rows. Kind tabs keep the
   folder corners (12px top radius, -1px join) and, at phone
   widths, compress to fit instead of running off the edge. */
.app-shell #ad-view-feedback #ad-inbox-list{
  background:transparent;border-radius:0;padding:0;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  background:transparent;border:0;border-radius:0;
  margin:0;padding:8px 0 0;}
.app-shell #ad-inbox-kinds .tb-tab{
  border-radius:12px 12px 0 0;margin-bottom:-1px;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-tab-envelope);border:0;
  border-radius:0 12px 0 0;padding:12px 16px 8px;margin:0;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:var(--tb-tab-envelope);border:0;
  border-radius:0;padding:2px 16px 6px;margin:0;}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  background:var(--tb-tab-envelope);border:0;
  border-radius:0 0 12px 12px;padding:2px 16px 16px;margin:0;}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 7%,var(--tb-panel));}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even):hover{
  background:color-mix(in srgb,var(--tb-brand) 7%,var(--tb-panel));
  border-color:var(--tb-brand);}
@media (max-width:480px){
  .app-shell #ad-inbox-kinds{
    flex-wrap:nowrap;gap:4px;overflow-x:hidden;padding:0;}
  .app-shell #ad-inbox-kinds .tb-tab{
    flex:0 1 auto;min-width:0;padding:8px 5px;
    font-size:12.5px;white-space:nowrap;}
  .app-shell #ad-inbox-kinds .tb-tab-badge{
    margin-left:2px;padding:0 4px;font-size:10.5px;}
}
/* Inbox envelope restart, pass 2 (Oct 30, 2026, Trevor
   immediate release): Inbox list only, shared stylesheet.
   From Trevor's own screenshots against the Solid Envelope
   example: (1) rows become flat full-bleed bands flush to
   the panel edges, hairline separated, banding as the band
   background itself, no card margins, radius or shadow;
   (2) count pills: white with accent numbers on unselected
   tabs in BOTH rows, solid accent with white numbers only
   on the selected tab; (3) the state tab row compresses at
   phone widths so Closed is no longer clipped; (4) the
   selected state tab is a flat-bottom folder tab fused
   into the list below it with a -1px join. */
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  padding:0;overflow:hidden;}
.app-shell #ad-inbox-list .tb-ibx-list{
  display:flex;flex-direction:column;gap:0;
  padding:0;margin:0;}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row{
  margin:0;border:0;border-bottom:1px solid var(--tb-line);
  border-radius:0;box-shadow:none;
  background:var(--tb-panel);
  padding:12px 14px;min-height:64px;align-items:center;}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row.tb-ibx-row-cols{
  min-height:56px;}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 7%,var(--tb-panel));}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(odd):hover{
  background:var(--tb-panel);}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even):hover{
  background:color-mix(in srgb,var(--tb-brand) 7%,var(--tb-panel));}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:last-child{
  border-bottom:0;}
.app-shell #ad-view-feedback .tb-ibx-head{
  background:transparent;padding-left:14px;padding-right:14px;}
.app-shell #ad-inbox-kinds .tb-tab:not(.selected) .tb-tab-badge,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab:not(.selected) .tb-tab-badge{
  background:#FFFFFF;color:var(--tb-brand);
  border:1px solid color-mix(in srgb,var(--tb-brand) 30%,var(--tb-line));}
.app-shell #ad-inbox-kinds .tb-tab.selected .tb-tab-badge,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected .tb-tab-badge{
  background:var(--tb-brand);color:#FFFFFF;border:1px solid transparent;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge{
  display:inline-block;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge[hidden]{
  display:none;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  border-radius:12px 12px 0 0;border-bottom:1px solid var(--tb-panel);
  margin-bottom:-1px;position:relative;z-index:1;}
@media (max-width:480px){
  .app-shell #ad-view-feedback .tb-tabrow{
    padding-left:10px;padding-right:10px;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
    flex-wrap:nowrap;gap:4px;overflow-x:hidden;padding:0;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
    flex:0 1 auto;min-width:0;padding:7px 5px;
    font-size:12.5px;white-space:nowrap;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge{
    margin-left:2px;padding:0 4px;font-size:10.5px;}
}
/* Inbox envelope pass 3 (Oct 30, 2026, immediate release):
   the two-tier separation modeled on the Solid Envelope
   example. (1) Both tab tiers wrap in a two column grid,
   exactly as the example shows on a phone: kind tabs in
   pairs on the page tone, additional items wrap to the
   next pair row instead of clipping or scrolling off the
   edge. (2) The state tier sits INSIDE the tinted panel,
   inset from the panel edges by the panel padding, so the
   separation between the top tier and the secondary tier
   is visible as tint around the state tabs. (3) The
   results line and the conversation list form one white
   sheet directly under the state tier with no tint gap,
   so the selected state tab, white and flat on its bottom
   edge, fuses straight into that sheet. */
.app-shell #ad-view-feedback #ad-inbox-list{
  background:transparent;padding:0;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  background:transparent;padding:0;margin:0 0 0;}
.app-shell #ad-inbox-kinds{
  display:grid;grid-template-columns:1fr 1fr;
  gap:10px 12px;border-bottom:0;margin-bottom:0;
  overflow:visible;padding:0;}
.app-shell #ad-inbox-kinds .tb-tab{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;margin:0;padding:11px 6px;font-size:14.5px;
  white-space:nowrap;border-radius:12px 12px 0 0;
  border-bottom:0;text-align:center;min-width:0;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-tab-envelope);
  border-radius:0 12px 0 0;
  padding:14px 14px 0;margin:10px 0 0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  display:grid;grid-template-columns:1fr 1fr;
  gap:10px 12px;border-bottom:0;margin-bottom:0;
  overflow:visible;padding:0;width:100%;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;margin:0;padding:11px 6px;font-size:14.5px;
  white-space:nowrap;border-radius:12px 12px 0 0;
  border-bottom:0;text-align:center;min-width:0;
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  background:var(--tb-panel);
  border-bottom:1px solid var(--tb-panel);
  box-shadow:inset 0 3px 0 var(--tb-brand);}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:var(--tb-panel);color:var(--tb-muted);
  padding:12px 16px 8px;margin:0;border-radius:0;}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  background:var(--tb-panel);border:0;
  border-radius:0 0 12px 12px;
  padding:0 0 6px;margin:0;overflow:hidden;}
/* Inbox envelope restart, pass 3 (Oct 30, 2026, Trevor
   immediate release): fixes the pass 2 state tab overlap
   on phones and carries the tier separation. Following the
   Solid Envelope example mobile layout: tabs WRAP into a
   two-per-row grid instead of compressing into one row,
   and the count pill stays inline beside the tab name.
   The state tier sits inset inside the tinted panel, and
   the results line moves into the white sheet under the
   state tabs so the selected state tab white continues
   straight down with no tint gap. Shared stylesheet only. */
.app-shell #ad-view-feedback .tb-tabrow{
  padding:12px 16px 0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  flex-wrap:wrap;overflow:visible;border-bottom:0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge{
  position:static;flex:none;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:var(--tb-panel);border:0;border-radius:0;
  padding:8px 16px 10px;margin:0;}
@media (max-width:480px){
  .app-shell #ad-view-feedback .tb-tabrow{
    padding:10px 10px 0;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
    flex-wrap:wrap;gap:6px;overflow:visible;padding:0;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
    flex:1 1 44%;box-sizing:border-box;min-width:0;
    display:flex;align-items:center;justify-content:center;
    padding:8px 6px;font-size:12.5px;white-space:nowrap;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge{
    margin-left:6px;padding:0 6px;font-size:11px;}
  .app-shell #ad-inbox-kinds .tb-tab-badge{
    position:static;flex:none;}
}
/* Inbox envelope pass 4 (Oct 30, 2026, immediate release):
   the state tier carried TWO count pills on the selected
   tab and solid pills on every tab. Root cause found in
   the page itself: each state tab gets its count as a
   .tb-count pill from the list renderer, and the Needs
   reply tab ALSO carries the mirrored .tb-tab-badge
   (the same number whose real homes are the nav badge
   and the bell). A pass 2 rule un-hid that mirror inside
   the chips, so Needs reply showed 291 twice. And the
   pass 2 white pill rule targeted .tb-tab-badge only,
   so the state counts, which are .tb-count, stayed solid
   on every tab. Fix: the mirror badge stays hidden
   inside the state tabs, and .tb-count gets the same
   pill treatment as the kind tier: white with accent
   numbers on unselected tabs, solid accent with white
   numbers only on the selected tab. */
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab-badge{
  display:none !important;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab:not(.selected) .tb-count{
  background:#FFFFFF;color:var(--tb-brand);
  border:1px solid color-mix(in srgb,var(--tb-brand) 30%,var(--tb-line));}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected .tb-count{
  background:var(--tb-brand);color:#FFFFFF;
  border:1px solid transparent;}
/* Inbox envelope pass 5 (Oct 30, 2026, immediate release):
   layout correction per Trevor's ChatGPT Tab Studio spec.
   This pass SUPERSEDES the two-per-row grid of passes 3-4:
   each navigation level returns to ONE horizontal row,
   content-width tabs, nowrap, flex-shrink 0, each row
   scrolling horizontally on its own at phone widths.
   Selected channel tab joins the panel beneath it (same
   fill, no seam under it, rounded top corners, square
   bottom corners). The nested status tier uses ONE
   restrained active treatment: white fill and bold text,
   no stacked blue top bar. Status tabs are delineated
   with a full hairline border; the selected status tab's
   bottom border takes the sheet white so it fuses into
   the white list sheet. Counts render once (pass 4) as
   compact pills beside the label on the same line. */
.app-shell #ad-view-feedback #ad-inbox-list{
  background:transparent;padding:0;margin-top:0;}
.app-shell #ad-inbox-heading{margin:0 0 8px;padding:0;}
.app-shell #ad-view-feedback .tb-ibx-kindrow{
  background:transparent;padding:0;margin:0;}
.app-shell #ad-inbox-kinds{
  display:flex;flex-wrap:nowrap;gap:6px;
  overflow-x:auto;overflow-y:hidden;
  border-bottom:0;margin-bottom:0;padding:0 2px;
  -webkit-overflow-scrolling:touch;}
.app-shell #ad-inbox-kinds .tb-tab{
  flex:0 0 auto;width:auto;min-width:0;height:46px;
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;padding:0 14px;margin:0;font-size:15px;
  white-space:nowrap;border-radius:12px 12px 0 0;}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  background:var(--tb-tab-envelope);
  border-color:transparent;border-bottom:0;box-shadow:none;}
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-tab-envelope);
  border-radius:0 12px 0 0;
  padding:12px 12px 0;margin:0;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  display:flex;flex-wrap:nowrap;gap:6px;
  overflow-x:auto;overflow-y:hidden;
  border-bottom:0;margin-bottom:0;padding:0;width:auto;
  -webkit-overflow-scrolling:touch;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
  flex:0 0 auto;width:auto;min-width:0;height:46px;
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;padding:0 14px;margin:0;font-size:15px;
  white-space:nowrap;border-radius:12px 12px 0 0;
  border:1px solid var(--tb-line);
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  background:var(--tb-panel);font-weight:650;
  border:1px solid var(--tb-line);
  border-bottom:1px solid var(--tb-panel);
  box-shadow:none;}
.app-shell #ad-inbox-kinds .tb-tab-badge,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-count{
  display:inline-flex;align-items:center;height:20px;
  padding:0 7px;font-size:11.5px;line-height:20px;
  border-radius:999px;margin-left:0;flex:none;}
.app-shell #ad-view-feedback .tb-inbox-results{
  background:var(--tb-panel);color:var(--tb-muted);
  padding:10px 16px 6px;margin:0;border-radius:0;
  border-left:12px solid var(--tb-tab-envelope);
  border-right:12px solid var(--tb-tab-envelope);}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  background:var(--tb-panel);border:0;
  border-left:12px solid var(--tb-tab-envelope);
  border-right:12px solid var(--tb-tab-envelope);
  border-bottom:12px solid var(--tb-tab-envelope);
  border-radius:0 0 12px 12px;
  padding:0;margin:0;overflow:hidden;}
@media (max-width:820px){
  .app-shell #ad-view-feedback{padding-bottom:96px;}
}
/* Inbox envelope pass 6 (Oct 30, 2026, immediate release):
   scroll discoverability for the one-row tab tiers. A
   first-time user cannot be expected to guess that the
   rows swipe: the tabs keep their content width and never
   shrink to fit (pass 5), so the next tab always peeks
   cut off at the right edge, and each row now carries a
   soft fade at its right edge on phone widths, the
   standard cue that more sits off to the side. The fade
   never takes a tap. Desktop rows fit, so no fade there. */
@media (max-width:820px){
  .app-shell #ad-view-feedback .tb-ibx-kindrow{
    position:relative;}
  .app-shell #ad-view-feedback .tb-ibx-kindrow::after{
    content:"";position:absolute;right:0;top:0;bottom:0;
    width:28px;pointer-events:none;z-index:2;
    background:linear-gradient(to right,
      transparent,var(--tb-bg));}
  .app-shell #ad-view-feedback .tb-tabrow{
    position:relative;}
  .app-shell #ad-view-feedback .tb-tabrow::after{
    content:"";position:absolute;right:0;top:0;bottom:0;
    width:28px;pointer-events:none;z-index:2;
    background:linear-gradient(to right,
      transparent,var(--tb-tab-envelope));}
}
/* Inbox envelope pass 5, completion (Oct 30, 2026,
   immediate release): two small closers on the Tab
   Studio brief, appended after passes 5 and 6.
   (1) A count pill the renderer has flagged hidden
   must stay hidden: the pass 5 pill rule sets
   display:inline-flex on the status tier .tb-count,
   which overrides the hidden attribute, so the Sent
   pill would paint as an empty sliver before its
   number loads, and forever if that load fails.
   Hidden means hidden; the pill appears only when
   the renderer unhides it with a real number, so
   every count renders exactly once and only when
   it has a number. (2) Keyboard focus stays visible
   on both tab tiers. */
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-count[hidden]{
  display:none;}
.app-shell #ad-inbox-kinds .tb-tab:focus-visible,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab:focus-visible{
  outline:2px solid var(--tb-brand);outline-offset:2px;}

/* Drag-to-scroll tab strips (Oct 30, 2026): an overflowing tab
   row shows a grab cursor on desktop-class pointers; while a
   drag is in flight the cursor is grabbing and nothing in the
   strip can be selected. Scoped to fine pointers so touch
   behavior is untouched. Companion script: tbDragScroll. */
@media (hover:hover) and (pointer:fine){
  .tb-can-drag{cursor:grab;}
  .tb-dragging, .tb-dragging *{cursor:grabbing !important;
    user-select:none;-webkit-user-select:none;}
}

/* Inbox envelope pass 7 (Oct 30, 2026, immediate release):
   the jagged step at the selected kind tab join, spotted
   by Trevor on desktop (arrow at the left edge of the
   selected "All kinds" tab). Geometry from the cascade:
   the panel pieces (.tb-tabrow, .tb-inbox-results,
   .tb-inbox-scrollwrap) are full-width children of
   #ad-inbox-list (padding:0, pass 5), so the tinted
   panel left edge sits at the list edge, x=0. But the
   kind strip #ad-inbox-kinds carried padding:0 2px
   (pass 5, inheriting the base .tb-tabs padding), so
   the selected tab border box, and its envelope tint
   with it, started at x=2px: a 2px notch of page
   background stood above the panel top-left corner,
   the full 46px height of the kind row. Everything
   else already agreed (tab bottom corners square,
   panel top-left radius 0, tab margin-bottom 0, sheet
   framing on the same x=0 line). Fix: the strip side
   padding goes to 0, so the selected tab left edge,
   the panel left edge and the sheet framing share
   one vertical line. With the padding gone, the
   first tab focus outline (offset 2px, pass 5
   completion) would clip at the strip left edge, so
   kind tab focus draws its outline inset instead.
   Right side checked: no tab fuses at the panel
   top-right corner and the tabrow radius plus the
   results/scrollwrap right borders already share
   the full-width line, so no step of this class
   exists there; the strip right padding is zeroed
   with the left for symmetric scroll ends. */
.app-shell #ad-inbox-kinds{padding-left:0;padding-right:0;}
.app-shell #ad-inbox-kinds .tb-tab:focus-visible{
  outline-offset:-2px;}
/* (Oct 30, 2026) Control Tower tabs: the selected
   tab must read at a glance. The generic selected
   tab wears the envelope fill with a transparent
   border, which inside the Tower sheet left the
   current tab looking like its neighbours, so the
   active view was unclear. Scoped to the Tower
   only: the selected tab keeps the envelope fill
   and gains a full brand outline around itself,
   with the brand top edge, so which tab is on is
   unmistakable. No other tabs are touched. */
html[data-theme] .app-shell .tb-twr-tabs .tb-tab.selected,
.app-shell .tb-twr-tabs .tb-tab.selected{
  background:var(--tb-tab-envelope);
  border:1px solid var(--tb-brand);
  color:var(--tb-text);font-weight:650;
  box-shadow:inset 0 3px 0 var(--tb-brand);}
/* (Oct 30, 2026) Development Report section tabs: one
   horizontal row, the Tab Studio rule that governs
   every tab tier. The report page-local .tabs rule
   wrapped (flex-wrap:wrap), so its nine section tabs
   fell onto two rows. Scoped to the report tablist
   inside its app-shell wrapper: nowrap, content-width
   tabs, the row scrolls horizontally on its own, and
   the shared drag-to-scroll already covers .tabs.
   Specificity beats the page-local rule, which loads
   after this sheet; the builder carries the same fix
   at the source so republication keeps it. */
.app-shell .tabs[role="tablist"]{
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;}
.app-shell .tabs[role="tablist"]>.tb-tab{
  flex:0 0 auto;white-space:nowrap;}

/* Back office header stays fixed (Trevor, Oct 30, 2026): the top bar sticks
   to the top of the viewport while the page scrolls under it. */
.tb-topbar{position:sticky;top:0;background:var(--tb-bg,#F5F8FC);padding-top:10px;padding-bottom:10px;}

/* Version number prominent under the logo (Trevor, Oct 30, 2026): an older
   rule hid .tb-version entirely; the site version always shows, directly
   under the TidyBox logo in the upper left of the back office rail. */
.app-shell aside.tb-side>div:first-of-type .tb-version{display:block;font-size:13px;font-weight:600;color:var(--tb-text);padding:4px 9px 0;}

/* Version stamp, second pass (Trevor, Oct 30, 2026): admin.html carries its
   own inline #ad-version{display:none} rule, which outranks class rules.
   This ID rule with !important is the override until the shell build removes
   the inline rule at the source. */
#ad-version{display:block !important;font-size:13px !important;font-weight:600;color:var(--tb-text);padding:4px 9px 0;}

/* (Oct 30, 2026) Tab Overflow Standard: More, never a
   scrollbar (Trevor, Oct 30, 2026, ~6:48 PM PT,
   reaffirming his ~3:07 PM ruling): a standard tab row
   never scrolls sideways and never shows a scrollbar.
   The tabs that cannot fit move into the More menu
   the shared engine (site.js, tbTabsMore) builds at
   the end of the row. This block supersedes the
   horizontal-scroll treatments above wherever they
   differ: the base strip rule (Oct 27, 2026), Inbox
   passes 5-6 (pass 6's right-edge fade cue goes away
   with this block: there is nothing off to the side
   anymore), and the report tablist rule. One single
   row, content-width tabs, the Solid Envelope
   selected treatment and the counts are unchanged. */
.app-shell .tb-tabs{overflow-x:hidden;overflow-y:hidden;
  scrollbar-width:none;}
.app-shell #ad-inbox-kinds{overflow-x:hidden;
  overflow-y:hidden;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{
  overflow-x:hidden;overflow-y:hidden;}
.app-shell .tabs[role="tablist"]{overflow-x:hidden;
  overflow-y:hidden;scrollbar-width:none;}
@media (max-width:820px){
  .app-shell #ad-view-feedback .tb-ibx-kindrow::after,
  .app-shell #ad-view-feedback .tb-tabrow::after{
    display:none;}
}

/* (Oct 30, 2026) Solid Envelope reference fidelity, final
   (module standardization build, overnight): Trevor's
   ruling tonight (~7:02-7:05 PM PT) is that the live
   standard tabs look IDENTICAL to his Solid Envelope
   example (it-problem-solver-solid-envelope.html), the
   More control the only addition. This block takes the
   example's own final-cascade values and supersedes the
   day's pass blocks wherever they differ:
   - the envelope tint is the example's 12 percent accent
     mix (the day's 22 percent mix is the saturated blue
     Trevor called hard to read);
   - kind tier: min-height 50px, padding 12px 19px, label
     13px, gaps 12px/8px; state tier: min-height 44px,
     padding 10px 19px, label 12px;
   - unselected tabs sit on the page tone (a 4 percent
     accent mix, the example's #F5F8FC family);
   - the selected kind tab wears the envelope tint with
     an ACCENT label at 650 weight (the example), not the
     ink color the day blocks used;
   - the selected state tab is panel white, fused to the
     white list under it, with the example's thin accent
     line across its top (inset 3px) and an accent label;
   - count pills already match the example (white ground
     and accent number unselected, solid accent and white
     number selected) and are untouched;
   - inbox rows take the example's banding proportions:
     alternate rows a 6 percent mix, hover a 13 percent
     mix, and hover no longer repaints the row border in
     the full brand color.
   The tab strips themselves are managed by the shared
   More engine (site.js, tbTabsMore): one row, no scroll,
   no scrollbar, overflow in the More menu. */
.app-shell{
  --tb-tab-envelope:color-mix(in srgb,var(--tb-brand) 12%,var(--tb-panel));}
html[data-theme] .app-shell .tb-tab.selected,
.app-shell .tb-tab.selected,
html[data-theme] .app-shell .tb-tab.active,
.app-shell .tb-tab.active{color:var(--tb-brand);}
.app-shell #ad-inbox-kinds{gap:8px;}
.app-shell #ad-inbox-kinds .tb-tab{
  min-height:50px;height:auto;padding:12px 19px;
  font-size:13px;gap:12px;
  background:color-mix(in srgb,var(--tb-brand) 4%,var(--tb-panel));}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  background:var(--tb-tab-envelope);color:var(--tb-brand);}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips{gap:7px;}
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
  min-height:44px;height:auto;padding:10px 19px;
  font-size:12px;gap:12px;
  background:color-mix(in srgb,var(--tb-brand) 4%,var(--tb-panel));}
html[data-theme] .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected,
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab.selected{
  background:var(--tb-panel);color:var(--tb-brand);
  border-bottom:1px solid var(--tb-panel);
  box-shadow:inset 0 3px 0 var(--tb-brand);font-weight:650;}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(odd):hover,
.app-shell #ad-inbox-list .tb-ibx-list .tb-ibx-row:nth-child(even):hover{
  background:color-mix(in srgb,var(--tb-brand) 13%,var(--tb-panel));
  border-color:var(--tb-line);}
@media (max-width:480px){
  .app-shell #ad-inbox-kinds .tb-tab{
    padding:10px 12px;font-size:12.5px;gap:8px;}
  .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab{
    padding:8px 12px;font-size:11.5px;gap:8px;}
}

/* ================================================================
   TAB + BADGE BRANDING, UNIVERSAL (Oct 31, 2026, immediate
   release; Trevor's live-walk dictation, record
   ~/workspace/tab-branding-fix/RECORD.md)
   1. Count pills inside tabs take the Solid Envelope
      exemplar's treatment everywhere, not only in the back
      office Inbox chips where pass 4 (Oct 30) first applied
      it: panel ground with an accent number on unselected
      tabs, solid accent with a white number only on the
      selected tab. No pill is a fixed color: every value
      resolves from the active palette's tokens.
   2. The rail count badge (.tb-navbadge) is contrast-aware
      against its ground by construction: a panel bubble
      with a brand-dark number and a brand-tinted ring, so
      on a dark rail it reads as the light bubble Trevor
      specified and on a light rail it stays a quiet bubble
      in the palette.
   3. Envelope fusion for tabbed panels: a tab strip that
      heads a panel loses the separating line and the gap
      beneath it (Trevor: in his configuration that line is
      not there), and the panel wears the envelope tint, so
      the selected tab and its panel are one solid piece.
   ================================================================ */
.app-shell .tb-tab:not(.selected):not(.active) .tb-count,
.app-shell .tb-tab:not(.selected):not(.active) .tb-tabcount,
.app-shell .tb-tab:not(.selected):not(.active) .tb-tab-badge{
  background:var(--tb-panel);color:var(--tb-brand-dark);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tb-brand) 30%,var(--tb-line));}
.app-shell .tb-tab.selected .tb-count,
.app-shell .tb-tab.selected .tb-tabcount,
.app-shell .tb-tab.selected .tb-tab-badge,
.app-shell .tb-tab.active .tb-count,
.app-shell .tb-tab.active .tb-tabcount,
.app-shell .tb-tab.active .tb-tab-badge{
  background:var(--tb-brand);color:#FFFFFF;box-shadow:none;}
.app-shell .tb-navbadge{
  background:var(--tb-panel);color:var(--tb-brand-dark);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tb-brand) 35%,transparent);}
.app-shell .tb-panel > .tb-tabs{border-bottom:0;margin-bottom:0;}
.app-shell .tb-panel:has(> .tb-tabs){
  background:var(--tb-tab-envelope);border-color:transparent;}

/* ================================================================
   PLATFORM NO-ZOOM STANDARD + DRAWER STANDARD REPAIRS
   (Oct 31, 2026; record ~/workspace/menu-zoom-audit/RECORD.md)

   tb-no-zoom: Trevor's no-zoom rule is a PLATFORM standard, not a
   page patch (the Oct 30 Chairside page-local block was the proof,
   never the home). Every page that loads this shared stylesheet
   inherits: no double-tap zoom (touch-action: manipulation on
   every element; the gesture half lives in site.js under the
   tbNoZoom marker). Normal scrolling is untouched; the drawer
   keeps its own pan-y rule above (higher specificity). The one
   media viewer (.tb-viewer) implements no pinch zoom of its own,
   so nothing legitimate loses pinch. The definition gate and the
   standard control gate both FAIL if this block or the tbNoZoom
   script marker goes missing.
   ================================================================ */
*{touch-action:manipulation;}

/* iOS focus zoom floor (Oct 31, 2026): on phone widths the shared
   form controls never render under 16px, so tapping a field can
   never trigger Safari's focus zoom (the zoom that then leaves
   the page panned sideways). Desktop density is untouched. */
@media (max-width:750px){
  .app-shell .tb-input,
  .app-shell .tb-search input,
  .app-shell .tb-thr-strip-cat select.tb-input,
  .app-shell .apx-filters select,
  .app-shell .apx-filters input,
  .app-shell .tb-voice-pop-label select,
  .app-shell select.collab-select{font-size:16px;}
}

/* Drawer head on the white rail standard (Oct 31, 2026): the
   solid brand band retired. The logo wordmark is a white-ground
   image (navy + brand green, zero light pixels); on the band the
   green half washed out and the version line read dark on blue.
   On the panel ground the wordmark reads exactly as designed,
   the version is legible, and the close control keeps full
   hover / focus / pressed states on the light ground. */
.app-shell .tb-drawerhead{background:var(--tb-panel);color:var(--tb-text);
  border-bottom:1px solid var(--tb-line);border-radius:0 16px 0 0;}
.app-shell .tb-drawerhead .tb-logo img{max-height:36px;}
.app-shell .tb-drawerhead .tb-version{color:var(--tb-muted);}
.app-shell .tb-drawerclose{color:var(--tb-text);}
.app-shell .tb-drawerclose:hover{background:var(--tb-soft);color:var(--tb-text);}
.app-shell .tb-drawerclose:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}
.app-shell .tb-drawerclose:active{background:var(--tb-line);}

/* More sheet head: same white treatment, same reason. */
.app-shell .tb-morehead{background:var(--tb-panel);color:var(--tb-text);
  border-bottom:1px solid var(--tb-line);}
.app-shell .tb-moretitle{color:var(--tb-text);}
.app-shell .tb-moreclose{color:var(--tb-text);}
.app-shell .tb-moreclose:hover{background:var(--tb-soft);color:var(--tb-text);}
.app-shell .tb-moreclose:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}
.app-shell .tb-moreclose:active{background:var(--tb-line);}

/* Drawer group headers and rows: full state coverage
   (Oct 31, 2026). The accordion parents shipped with no hover,
   focus or pressed state at all, and drawer rows had no
   focus-visible ring; the hover rule covers every button and
   button-like control, phones included via focus and press. */
.app-shell .tb-accparent:hover{background:var(--tb-soft);}
.app-shell .tb-accparent:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}
.app-shell .tb-accparent:active{background:var(--tb-line);}
.app-shell .tb-drawer .tb-burgeritem:focus-visible,
.app-shell .tb-moresheet .tb-burgeritem:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}

/* Drawer footer block + safe area (Oct 31, 2026): the drawer is
   a column; the footer block (Sign out, workspace name, version)
   that site.js now builds sits at the BOTTOM, and the drawer's
   bottom padding respects the home-indicator safe area the way
   the More sheet and bottom bar already did. */
.app-shell .tb-burgermenu.tb-drawer{display:flex;flex-direction:column;
  padding-bottom:calc(22px + env(safe-area-inset-bottom));}
.app-shell .tb-burgermenu.tb-drawer>*{flex:0 0 auto;}
.app-shell .tb-drawerfoot{margin-top:auto;border-top:1px solid var(--tb-line);
  padding-top:10px;margin-top:auto;}
.app-shell .tb-drawerfoot .tb-burgeritem{width:100%;}
.app-shell .tb-drawerws{font-size:13px;font-weight:600;color:var(--tb-text);padding:8px 10px 0;}
.app-shell .tb-drawerfoot .tb-version{display:block;font-size:12px;
  color:var(--tb-muted);padding:3px 10px 0;}

/* Drawer coexistence + top safe area (Oct 31, 2026, audit
   addendum): while the drawer is open the floating chat bubble
   steps aside instead of crowding the drawer's edge in the
   page-peek strip, and the drawer head clears the top safe
   area on standalone displays (zero inset in a browser tab,
   so nothing moves there). */
body:has(.tb-burgermenu.tb-drawer:not([hidden])) .tb-chat-bubble-btn{visibility:hidden;}
.app-shell .tb-burgermenu.tb-drawer{padding-top:calc(14px + env(safe-area-inset-top));}
.app-shell .tb-drawerhead{margin-top:calc(-14px - env(safe-area-inset-top));}

/* ==========================================================================
   RICH ITPS TREATMENT (Oct 31, 2026, Trevor's direction from Chantelle's
   Salon HQ site): the IT Problem Solver default stops reading pale. The
   back office gets the graduated treatment her site wears - a dark navy
   band, saturated gradient heads on sheets, pop-ups and chat, gradient
   primary buttons, layered grounds - in darker ITPS blues, with the
   brand gold kept to thin accents (the active nav bar, the logo's second
   word, the hairline under gradient heads). Every value below resolves
   through the itps token definitions above; no new palette literal
   enters here. Status lights are untouched (fixed platform colors).
   ========================================================================== */
/* Back office washes deepen: the brand-lock color-mix percentages were
   mixed for a light brand; under itps the same derivations run stronger
   so panels layer against a real ground instead of near-white. */
html[data-theme="itps"] #ad-shell,html[data-theme="itps"] #ad-states{
  --tb-soft:color-mix(in srgb,var(--tb-brand) 15%,var(--tb-panel,#FFFFFF));
  --tb-side:color-mix(in srgb,var(--tb-brand) 20%,var(--tb-panel,#FFFFFF));
  --tb-bg:color-mix(in srgb,var(--tb-brand) 8%,var(--tb-panel,#FFFFFF));
  --tb-line:color-mix(in srgb,var(--tb-brand) 24%,var(--tb-panel,#FFFFFF));
  --tb-sage-mid:color-mix(in srgb,var(--tb-brand) 58%,var(--tb-navy));
}
/* The dark band: sidebar (desktop rail, phone top bar) in graduated
   navy-to-deep-blue, its text family lifted to the on-dark tokens. */
html[data-theme="itps"] .app-shell aside.tb-side{
  background:var(--tb-grad-side);
  border-right:1px solid var(--tb-gold);
  border-bottom:2px solid var(--tb-gold);
}
html[data-theme="itps"] .app-shell aside.tb-side .tb-logo .tidy{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-logo .box{color:var(--tb-gold);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-label,
html[data-theme="itps"] .app-shell aside.tb-side .tb-navlabel,
html[data-theme="itps"] .app-shell aside.tb-side .tb-version{color:var(--tb-on-dark-soft);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav svg{color:var(--tb-navicon);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav:hover{background:color-mix(in srgb,var(--tb-on-dark) 12%,transparent);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.active{
  background:color-mix(in srgb,var(--tb-accent) 38%,var(--tb-navy));
  color:var(--tb-on-dark);
  box-shadow:inset 3px 0 0 var(--tb-gold),0 1px 3px rgba(20,33,61,.25);
}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.active:hover{background:color-mix(in srgb,var(--tb-accent) 48%,var(--tb-navy));}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.tb-navflag{background:color-mix(in srgb,var(--tb-on-dark) 14%,transparent);color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.tb-navquiet{color:var(--tb-on-dark-soft);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.tb-navquiet:hover{background:transparent;color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-nav.tb-navsep{border-top-color:color-mix(in srgb,var(--tb-on-dark) 22%,transparent);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-profile{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-profile .tb-signout{color:var(--tb-on-dark-soft);}
html[data-theme="itps"] .app-shell aside.tb-side .tb-profile .tb-signout:hover{color:var(--tb-gold);}
html[data-theme="itps"] .app-shell aside.tb-side :focus-visible{outline-color:var(--tb-gold);}
/* Graduated heads: sheets, pop-ups, chat, review and guide heads take
   the navy-led gradient with the bright blue as its lit edge, over a
   thin gold hairline - the espresso-to-gold move, in ITPS blues. */
html[data-theme="itps"] .app-shell .tb-sheethead,
html[data-theme="itps"] .app-shell .tb-chathead,
html[data-theme="itps"] .app-shell .tb-rws-head,
html[data-theme="itps"] .app-shell .tb-sheetband,
html[data-theme="itps"] .tb-chatband,
html[data-theme="itps"] .app-shell .apx-head,
html[data-theme="itps"] .tb-guide-sheethead{
  background:var(--tb-grad-head);
  border-bottom:2px solid var(--tb-gold);
}
html[data-theme="itps"] .app-shell .tb-modal-overlay .tb-confirmbox:not(.tb-guardbox)>p:first-of-type{
  background:var(--tb-grad-head);
  border-bottom:2px solid var(--tb-gold);
}
/* Sheets and pop-ups sit deeper over the scrim: layered shadow. */
html[data-theme="itps"] .app-shell .tb-sheet{
  box-shadow:0 30px 70px rgba(20,33,61,.38),0 4px 18px rgba(20,33,61,.18);
}
html[data-theme="itps"] .app-shell .tb-modal-overlay .tb-confirmbox{
  box-shadow:0 30px 70px rgba(20,33,61,.38),0 4px 18px rgba(20,33,61,.18);
}
/* Primary buttons graduate brand-to-deep; hover falls to navy. */
html[data-theme="itps"] .app-shell .tb-primary,
html[data-theme="itps"] .app-shell .collab-btn-primary,
html[data-theme="itps"] .app-shell .apx-btn.primary,
html[data-theme="itps"] .app-shell .ws-launch,
html[data-theme="itps"] .app-shell .ws-dash{
  background:var(--tb-grad-btn);
  border-color:var(--tb-green-dark);
}
html[data-theme="itps"] .app-shell .tb-primary:hover,
html[data-theme="itps"] .app-shell .collab-btn-primary:hover,
html[data-theme="itps"] .app-shell .apx-btn.primary:hover,
html[data-theme="itps"] .app-shell .ws-launch:hover,
html[data-theme="itps"] .app-shell .ws-dash:hover{
  background:var(--tb-grad-btn-hover);
  border-color:var(--tb-navy);
}
html[data-theme="itps"] .app-shell .tb-primary:active,
html[data-theme="itps"] .app-shell .collab-btn-primary:active,
html[data-theme="itps"] .app-shell .ws-dash:active{background:var(--tb-grad-btn-hover);}
html[data-theme="itps"] .app-shell .tb-chat-send{background:var(--tb-grad-btn);}
html[data-theme="itps"] .app-shell .tb-chat-send:hover{background:var(--tb-grad-btn-hover);}
html[data-theme="itps"] .app-shell .tb-seg button.selected{background:var(--tb-grad-btn);}

/* ================================================================
   DIGEST / INBOX SECTION ROUND (Oct 31, 2026, immediate release;
   Trevor's live dictation ~12:00-12:28 PM PT; record
   ~/workspace/digest-inbox-round/RECORD.md)
   1. Row model: desktop columns + sort (dashboard.html
      .dc-colhead), stacked on mobile, never a table.
   2. White content + outline envelope: the Digest panel
      leaves the full-section --tb-tab-envelope wash; the
      selected tab keeps its tint and ONE continuous
      brand-colored outline wraps tab + panel, the tab's
      bottom edge merging into the panel outline.
   3. Zebra rows, the Inbox pattern (6% brand over panel).
   4. The Detailed/Summary toggle sits ABOVE the tab strip
      with clear spacing (markup order in dashboard.html;
      the spacing lands here).
   5. Select All sits all the way LEFT (markup order).
   6. The bulk action bar collapses to a slim strip.
   7. Source chip: Gmail / Outlook on every row header.
   8. Expand/contract state: a LIGHTER BLUE derived from
      the active theme's brand token by color-mix - never
      green, never a hard-coded palette, never the dark
      brand blue itself.
   9. The version banner takes clicks when it is sticky
      or carries an action (its Reload button was dead:
      the base banner is pointer-events:none and only the
      error variant opted back in).
   10. The tab strip never scrolls sideways here: the
       shared tbTabsFit engine moves overflow into the
       More drop-down (markup + fit call in
       dashboard.html's dcRenderTabs).
   Every color below resolves from the active theme's
   tokens; no new literal palette enters the file.
   ================================================================ */
.app-shell #dc-review{
  --tb-dc-state:color-mix(in srgb,var(--tb-brand) 55%,var(--tb-panel,#FFFFFF));
  --tb-dc-outline:color-mix(in srgb,var(--tb-brand) 45%,var(--tb-line));}
/* 9 - sticky / action banners take clicks. */
.tb-saved-banner.tb-saved-banner-sticky{pointer-events:auto;}
/* 2 - white panel; the envelope lives on the folder unit below. */
.app-shell #dc-review.tb-panel{background:var(--tb-panel);}
/* 2b - the folder unit (envelope fix, Oct 31, Trevor's live-walk
   finding: the v4.52 outline sat on the whole card, whose top edge is
   the card head, so the tab strip floated mid-card and fused with
   nothing). .dc-env wraps #dc-tabs + .dc-env-panel: the strip loses
   its own hairline and gap so it IS the panel's top edge; the panel
   wears the continuous --tb-dc-outline border (squared top corners,
   the folder join); the selected tab keeps its tint, gains the same
   outline on its exposed edges and merges its bottom edge into the
   panel top (transparent bottom border over the panel's top line).
   Same recipe the back-office Inbox sheet converges on. */
.app-shell #dc-review .dc-env > .tb-tabs{
  border-bottom:0;margin-bottom:0;padding-bottom:0;
  /* The base strip clips overflow-y, which would also clip
     the selected tab's merged bottom edge and leave the
     panel's top line drawn across it; visible lets the
     tab's tint flow over the seam (the #ad-detail-tabsbar
     strip runs the same way). The shared More engine still
     owns any tabs that do not fit. */
  overflow:visible;}
.app-shell #dc-review .dc-env-panel{
  border:1px solid var(--tb-dc-outline);
  border-radius:0 0 12px 12px;background:var(--tb-panel);
  padding:14px 16px 16px;}
html[data-theme] .app-shell #dc-tabs .tb-tab.selected,
.app-shell #dc-tabs .tb-tab.selected{
  /* (White-tab ruling, Oct 31, 2026; supersedes the tint
     the selected tab wore: the selected tab takes the
     panel ground as one continuous surface, marked by the
     fused outline, its solid count pill and the restored
     brand accent bar along its top edge.) */
  background:var(--tb-panel);border-color:var(--tb-dc-outline);
  border-bottom-color:transparent;position:relative;z-index:1;
  box-shadow:inset 0 3px 0 var(--tb-brand);}
/* (White-tab ruling) The unselected Digest tabs carry the
   pale tint the selected tab used to wear. */
.app-shell #dc-tabs > .tb-tab:not(.selected){
  background:var(--tb-tab-tint);}
/* 4 - toggle row spacing above the tabs. */
.app-shell #dc-review #dc-viewbar{margin:2px 0 18px;}
/* 2c - the Digest search (envelope release item 2): the
   Inbox's shared .tb-search treatment, sized for the
   controls row above the envelope; the focus ring comes
   from the theme tokens, never a hard-coded palette. */
/* (Common search control, Oct 31, 2026) The Digest's search
   is the platform's shared .tb-search control, placed in the
   viewbar immediately after the Account dropdown - see the
   COMMON SEARCH CONTROL section at the end of this file. */
.app-shell .dc-acct-wrap{display:inline-flex;align-items:center;gap:8px;font-weight:600;}
.app-shell .dc-acct-wrap[hidden]{display:none;}
.app-shell .dc-acct-wrap select{font:inherit;padding:7px 10px;border:1px solid var(--tb-line);border-radius:8px;background:var(--tb-panel);color:var(--tb-text);}
/* 1 - column header (Detailed, desktop) + sort state. */
.app-shell .dc-colhead{display:none;}
.app-shell .dc-colhead[hidden]{display:none;}
@media (min-width:900px){
  .app-shell .dc-colhead{display:grid;
    grid-template-columns:1.05fr 1.5fr .95fr .55fr .45fr .6fr;
    gap:10px;align-items:center;padding:8px 6px 6px 42px;
    border-bottom:1px solid var(--tb-line);}
  .app-shell .dc-col{font:inherit;font-size:12.5px;font-weight:700;
    letter-spacing:.03em;text-transform:uppercase;text-align:left;
    background:none;border:0;padding:4px 2px;cursor:pointer;
    color:var(--tb-brand-dark);}
  .app-shell .dc-col-static{cursor:default;}
  .app-shell .dc-col.dc-col-on{color:var(--tb-brand);}
  .app-shell .dc-col.dc-col-on[data-dir="asc"]::after{content:" \2191";}
  .app-shell .dc-col.dc-col-on[data-dir="desc"]::after{content:" \2193";}
  .app-shell .dc-col:hover{background:var(--tb-soft);}
  .app-shell .dc-col-static:hover{background:none;}
}
/* 1 - the row cells: stacked on mobile, columns on desktop. */
.app-shell .dc-inbox-main{display:flex;flex-direction:column;gap:1px;}
.app-shell .dc-c-name{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;order:1;}
.app-shell .dc-c-subj{order:2;margin:0;}
.app-shell .dc-c-addr{order:3;}
.app-shell .dc-c-when{order:4;margin-left:0;}
.app-shell .dc-c-meta{order:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--tb-muted);font-size:13.5px;}
@media (min-width:900px){
  .app-shell .dc-inbox-main{display:grid;
    grid-template-columns:1.05fr 1.5fr .95fr;
    grid-template-areas:"name subj when" "addr subj meta";
    column-gap:10px;row-gap:1px;align-items:start;}
  .app-shell .dc-c-name{grid-area:name;}
  .app-shell .dc-c-subj{grid-area:subj;}
  .app-shell .dc-c-when{grid-area:when;}
  .app-shell .dc-c-addr{grid-area:addr;}
  .app-shell .dc-c-meta{grid-area:meta;}
}
/* 3 - zebra rows, Detailed + Summary, candidates + bundles. */
.app-shell #dc-cand-rows .dc-item:nth-child(even) > .dc-row,
.app-shell #dc-cand-rows > .dc-row:nth-child(even),
.app-shell #dc-group-rows > .dc-row:nth-child(even){
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));}
/* 7 - the source chip. */
.app-shell .dc-src{display:inline-flex;align-items:center;gap:5px;
  padding:2px 8px;border:1px solid var(--tb-line);border-radius:999px;
  background:var(--tb-panel);color:var(--tb-muted);
  font-size:12px;font-weight:600;white-space:nowrap;flex:none;}
.app-shell .dc-src svg{width:13px;height:13px;flex:none;}
.app-shell .dc-src img.dc-src-mark{width:16px;height:16px;object-fit:contain;flex:none;}
/* 8 - expand/contract state in the lighter theme blue. */
.app-shell .dc-expand:hover{background:var(--tb-soft);color:var(--tb-dc-state);}
.app-shell .dc-expand[aria-expanded="true"]{color:var(--tb-dc-state);}
.app-shell .dc-item.dc-open > .dc-row{
  background:color-mix(in srgb,var(--tb-brand) 8%,var(--tb-panel));
  box-shadow:inset 3px 0 0 var(--tb-dc-state);}
.app-shell .dc-details{
  background:color-mix(in srgb,var(--tb-brand) 5%,var(--tb-panel));
  border-color:var(--tb-line);
  box-shadow:inset 3px 0 0 var(--tb-dc-state);}
/* 1 - per-item actions live inside the expanded area only. */
.app-shell .dc-det-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.app-shell .dc-det-act{padding:7px 12px;font-size:13.5px;}
/* 6 - the bulk bar's collapse/expand arrow. */
.app-shell .dc-bar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;}
.app-shell .dc-bar-count{flex:1 1 auto;margin:2px 0 8px;}
.app-shell .dc-bar-btns,.app-shell .dc-bar-more{flex:1 1 100%;}
.app-shell .dc-bar-toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:30px;height:30px;padding:0;background:none;border:1px solid var(--tb-line);
  border-radius:8px;color:var(--tb-muted);cursor:pointer;}
.app-shell .dc-bar-toggle svg{width:17px;height:17px;transition:transform .15s ease;}
.app-shell .dc-bar-toggle:hover{background:var(--tb-soft);color:var(--tb-brand);}
.app-shell .dc-bar.dc-bar-collapsed{padding-top:8px;padding-bottom:8px;}
.app-shell .dc-bar.dc-bar-collapsed .dc-bar-count{margin-bottom:0;}
.app-shell .dc-bar.dc-bar-collapsed .dc-bar-btns,
.app-shell .dc-bar.dc-bar-collapsed .dc-bar-more{display:none;}
.app-shell .dc-bar.dc-bar-collapsed .dc-bar-toggle svg{transform:rotate(180deg);}

/* (Oct 31, 2026, guided walk) The hamburger is the phone
   navigation's door. At desktop widths the rail IS the
   navigation - every destination the menu lists stands
   in the rail itself - so the button never renders
   there. Trevor's find, twice in one walk (back office
   and customer dashboard): the glyph sat in the rail at
   desktop width with nothing to do. Phone widths are
   untouched: below the breakpoint the button is the
   drawer's only door. */
@media (min-width:751px){
  .app-shell .tb-burger{display:none;}
}

/* ================================================================
   COMMON SEARCH CONTROL (Oct 31, 2026). Search is ONE shared
   control platform-wide - the .tb-search bar defined with the
   shell's controls - never a per-module invention. These are
   its platform-wide states (the hover rule): every .tb-search
   bar - Digest, list toolbars, the back-office top bar -
   answers the pointer and the keyboard the same way. Border
   and ring only, resolved from the theme tokens; each
   surface's own dress is untouched.
   ================================================================ */
.app-shell .tb-search:hover{border-color:color-mix(in srgb,var(--tb-brand) 38%,var(--tb-line));}
.app-shell .tb-search:focus-within{border-color:var(--tb-brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--tb-brand) 18%,transparent);}
.app-shell .tb-searchclear:hover{background:color-mix(in srgb,var(--tb-brand) 22%,var(--tb-line));}
.app-shell .tb-searchclear:active{transform:scale(.92);}
/* The Digest's placement of the common control (Trevor's
   settled placement, Oct 31, 2026): in the controls row,
   immediately after the Account dropdown. The full-width bar
   that stood above the review panel (.dc-searchrow) is
   removed; the control wears the shared dress, sized to sit
   with the row's other controls, and takes its own line at
   phone widths so nothing squeezes sideways. */
.app-shell #dc-viewbar .dc-searchctl{flex:1 1 240px;
  max-width:360px;min-width:180px;width:auto;}
@media (max-width:640px){
  .app-shell #dc-viewbar .dc-searchctl{flex:1 1 100%;
    max-width:none;}
}

/* ================================================================
   DIGEST ENVELOPE CORNER FUSION (Oct 31, 2026, immediate release;
   Trevor's re-check screenshot, arrow at the All tab's
   bottom-left). The v4.53 folder join still stepped at the
   junction: the tab strip's base horizontal padding (0 2px) held
   the first tab's left border 2px inside the panel's left
   border, so the outline jogged sideways where tab meets panel
   and the corner read as its own notch (measured on live bytes:
   tab left x - panel left x = +2px). The strip now sits flush
   with the panel's edges and the selected tab's bottom corners
   are squared explicitly, so the tab's outline runs straight
   into the panel's as one continuous line - the back-office
   Inbox recipe.
   ================================================================ */
.app-shell #dc-review .dc-env > .tb-tabs{padding-left:0;padding-right:0;}
.app-shell #dc-review .dc-env #dc-tabs .tb-tab.selected{
  border-bottom-left-radius:0;border-bottom-right-radius:0;}

/* ================================================================
   INBOX CONVERGENCE (Oct 31, 2026, immediate release; record
   ~/workspace/inbox-convergence/RECORD.md)
   The two Inboxes take the Digest round's presentation
   standard: white content, one continuous outline envelope,
   controls above the tabs, state accents in the lighter
   token blue.
   A. Back office: the state tier band leaves the 12 percent
      envelope wash and the list loses its 12px tint frame;
      the sheet unit (kind strip + state band + results +
      list) wears ONE continuous outline in the Digest
      recipe (brand 45% over line). The selected kind tab
      wears the panel ground with the brand top accent
      (the white-tab ruling below) and gains the outline on
      its exposed edges; the selected state tab keeps its
      shipped white + brand top bar treatment.
   B. Dashboard: the kind tabs live inside the list panel
      as its first element (markup in dashboard.html); the
      search + state controls ride a row ABOVE the tabs.
      The panel border takes the same outline mix and the
      selected tab fuses to the panel (panel ground +
      outline + accent + merged bottom edge), superseding
      the universal tabbed-panel tint for this one panel.
   C. Dashboard rows carry the channel chip (.dc-src
      pattern) on the subject cell's sub-line.
   D. Sorted column heads take the lighter token blue
      (brand 55% over panel), never green, never the
      dark brand blue.
   Every color resolves from the active theme's tokens;
   no new literal palette enters the file.
   ================================================================ */
.app-shell #ad-view-feedback{
  --tb-ibx-outline:color-mix(in srgb,var(--tb-brand) 45%,var(--tb-line));}
/* A - one continuous outline around the back-office sheet. */
.app-shell #ad-view-feedback .tb-tabrow{
  background:var(--tb-panel);
  border:1px solid var(--tb-ibx-outline);border-bottom:0;
  border-radius:0;}
.app-shell #ad-view-feedback .tb-inbox-results{
  border-left:1px solid var(--tb-ibx-outline);
  border-right:1px solid var(--tb-ibx-outline);}
.app-shell #ad-view-feedback .tb-inbox-scrollwrap{
  border-left:1px solid var(--tb-ibx-outline);
  border-right:1px solid var(--tb-ibx-outline);
  border-bottom:1px solid var(--tb-ibx-outline);
  border-radius:0 0 12px 12px;}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  border-color:var(--tb-ibx-outline);
  border-bottom-color:transparent;
  position:relative;z-index:1;
  /* (White-tab ruling, Oct 31, 2026) The selected kind tab
     takes the panel ground with the brand accent bar along
     its top edge, like the state chip below it. */
  background:var(--tb-panel);
  box-shadow:inset 0 3px 0 var(--tb-brand);}
/* (White-tab ruling) Unselected kind + state tabs carry
   the pale tint the selected tabs used to wear. */
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab:not(.selected),
.app-shell #ad-inbox-kinds .tb-tab:not(.selected){
  background:var(--tb-tab-tint);}
html[data-theme] .app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab:not(.selected),
.app-shell #ad-view-feedback .tb-tabrow #ad-inbox-chips .tb-tab:not(.selected){
  background:var(--tb-tab-tint);}
@media (max-width:820px){
  .app-shell #ad-view-feedback .tb-tabrow::after{
    background:linear-gradient(to right,
      transparent,var(--tb-panel));}
}
/* B - the dashboard panel envelope. */
.app-shell #sup-list-panel{
  --tb-sup-outline:color-mix(in srgb,var(--tb-brand) 45%,var(--tb-line));}
html[data-theme] .app-shell #sup-list-panel.tb-panel:has(> .tb-tabs),
.app-shell #sup-list-panel.tb-panel:has(> .tb-tabs){
  background:var(--tb-panel);border-color:var(--tb-sup-outline);}
.app-shell #sup-list-panel > .tb-tabs{padding:10px 12px 0;}
html[data-theme] .app-shell #sup-list-panel #sup-kindtabs .tb-tab.active,
.app-shell #sup-list-panel #sup-kindtabs .tb-tab.active{
  /* (White-tab ruling, Oct 31, 2026) The selected tab
     takes the panel ground with the brand accent bar
     along its top edge; the tint moves to the unselected
     tabs (rule below). */
  background:var(--tb-panel);border-color:var(--tb-sup-outline);
  border-bottom-color:transparent;position:relative;z-index:1;
  box-shadow:inset 0 3px 0 var(--tb-brand);}
html[data-theme] .app-shell #sup-list-panel #sup-kindtabs .tb-tab:not(.active),
.app-shell #sup-list-panel #sup-kindtabs .tb-tab:not(.active){
  background:var(--tb-tab-tint);}
.app-shell .sup-kindrow{margin:0 0 14px;}
.app-shell .sup-kindrow .sup-searchrow{flex:1 1 260px;margin:0;}
/* C - the channel chip on the subject sub-line. */
.app-shell .sup-chan{margin-top:4px;}
/* D - sorted heads in the lighter token blue. */
.app-shell{
  --tb-ibx-state:color-mix(in srgb,var(--tb-brand) 55%,var(--tb-panel,#FFFFFF));}
html[data-theme] .app-shell .tb-ibx-headcell.sorted,
.app-shell .tb-ibx-headcell.sorted,
.app-shell .sup-colshead .tb-ibx-headcell.sorted{
  color:var(--tb-ibx-state);}

/* ==========================================================================
   GLOBAL NAV THEME (Oct 31, 2026; Trevor's live-walk rulings, record
   ~/workspace/global-nav-theme/RECORD.md)

   1. The drawer wears the RAIL'S ground on every palette. The phone rail
      paints from --tb-panel (the X1+X7 masthead bar), so the drawer now
      resolves its ground from the same token, and every other piece -
      text, section headers, dividers, selected row, count pills, close
      control - from the palette's text/primary family. On the dark
      palettes the panel token is dark, so the menu finally reads dark;
      on ITPS, whose rail is the navy gradient while its panel stays
      white (the exact mismatch in Trevor's screenshot), the drawer
      mirrors the rail's own rich block (gradient + on-dark + gold).
      No palette literal enters here; only the three status lights are
      fixed platform-wide and they are not used.
   2. On phone widths the drawer stops ABOVE the mobile bottom nav
      (60px + safe area, the bar's own height) and keeps its internal
      pan-y scroll, so the footer - Sign out - is always fully inside
      the visible drawer box instead of clipped behind the bar.
   3. The phone header carries the icon alone across the whole phone
      layout (the Oct 16 icon-only rule stopped at 640px; the shell's
      phone layout runs to 750px), the version leaves the phone header,
      and the drawer head is exempted so it always shows the FULL lockup
      with the version number under it (Trevor's Oct 19 drawer-head
      standard, restated Oct 31, 2026).
   4. The public mobile nav panel (#navlinks) was the one literally
      theme-blind surface - a hard-coded white card. Under a chosen
      theme it now paints from the public token family.
   ========================================================================== */
/* 1 - the drawer's ground family */
.app-shell .tb-burgermenu.tb-drawer{
  background:var(--tb-panel);color:var(--tb-text);
  border-right:1px solid var(--tb-line);}
.app-shell .tb-drawerhead{background:transparent;color:var(--tb-text);
  border-bottom:1px solid var(--tb-line);}
.app-shell .tb-drawer-version{font-size:12px;color:var(--tb-muted);
  padding:3px 2px 0;}
.app-shell .tb-drawerclose{color:var(--tb-text);}
.app-shell .tb-drawerclose:hover{
  background:color-mix(in srgb,var(--tb-text) 10%,transparent);
  color:var(--tb-text);}
.app-shell .tb-drawerclose:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-drawerclose:active{
  background:color-mix(in srgb,var(--tb-text) 20%,transparent);}
.app-shell .tb-accparent{color:var(--tb-text);
  border-top-color:var(--tb-line);}
.app-shell .tb-accparent:hover{
  background:color-mix(in srgb,var(--tb-text) 7%,transparent);}
.app-shell .tb-accparent:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-accparent:active{
  background:color-mix(in srgb,var(--tb-text) 14%,transparent);}
.app-shell .tb-acchev{color:var(--tb-muted);}
.app-shell .tb-drawer .tb-burgeritem{color:var(--tb-text);}
.app-shell .tb-drawer .tb-burgeritem svg{color:var(--tb-muted);}
.app-shell .tb-drawer .tb-burgeritem:hover{
  background:color-mix(in srgb,var(--tb-text) 7%,transparent);}
.app-shell .tb-drawer .tb-burgeritem:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-drawer .tb-burgeritem:active{
  background:color-mix(in srgb,var(--tb-text) 14%,transparent);}
.app-shell .tb-drawer .tb-burgeritem.active{
  background:color-mix(in srgb,var(--tb-text) 13%,transparent);
  box-shadow:inset 3px 0 0 var(--tb-green);font-weight:600;}
.app-shell .tb-drawer .tb-burgeritem.active svg{color:var(--tb-green);}
.app-shell .tb-drawer .tb-navbadge{
  background:var(--tb-text);color:var(--tb-side);box-shadow:none;}
.app-shell .tb-drawerfoot{border-top-color:var(--tb-line);}
.app-shell .tb-drawerws{color:var(--tb-text);}
.app-shell .tb-burger:hover{
  background:color-mix(in srgb,var(--tb-text) 8%,transparent);}
.app-shell .tb-burger:focus-visible{
  outline:2px solid var(--tb-green);outline-offset:-2px;}
.app-shell .tb-burger:active{
  background:color-mix(in srgb,var(--tb-text) 16%,transparent);}
/* 1b - the ITPS rich treatment mirrors its rail */
html[data-theme="itps"] .app-shell .tb-burgermenu.tb-drawer{
  background:var(--tb-grad-side);color:var(--tb-on-dark);
  border-right:1px solid var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-drawerhead{
  border-bottom-color:color-mix(in srgb,var(--tb-on-dark) 22%,transparent);}
html[data-theme="itps"] .app-shell .tb-drawer-version{
  color:var(--tb-on-dark-soft);}
html[data-theme="itps"] .app-shell .tb-drawerclose{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell .tb-drawerclose:hover{
  background:color-mix(in srgb,var(--tb-on-dark) 12%,transparent);
  color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell .tb-drawerclose:focus-visible{
  outline-color:var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-drawerclose:active{
  background:color-mix(in srgb,var(--tb-on-dark) 24%,transparent);}
html[data-theme="itps"] .app-shell .tb-accparent{color:var(--tb-on-dark);
  border-top-color:color-mix(in srgb,var(--tb-on-dark) 18%,transparent);}
html[data-theme="itps"] .app-shell .tb-accparent:hover{
  background:color-mix(in srgb,var(--tb-on-dark) 10%,transparent);}
html[data-theme="itps"] .app-shell .tb-accparent:focus-visible{
  outline-color:var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-accparent:active{
  background:color-mix(in srgb,var(--tb-on-dark) 20%,transparent);}
html[data-theme="itps"] .app-shell .tb-acchev{color:var(--tb-on-dark-soft);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem{
  color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem svg{
  color:var(--tb-navicon);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem:hover{
  background:color-mix(in srgb,var(--tb-on-dark) 10%,transparent);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem:focus-visible{
  outline-color:var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem:active{
  background:color-mix(in srgb,var(--tb-on-dark) 20%,transparent);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem.active{
  background:color-mix(in srgb,var(--tb-accent) 38%,var(--tb-navy));
  box-shadow:inset 3px 0 0 var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-burgeritem.active svg{
  color:var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-drawer .tb-navbadge{
  background:var(--tb-on-dark);color:var(--tb-navy);}
html[data-theme="itps"] .app-shell .tb-drawerfoot{
  border-top-color:color-mix(in srgb,var(--tb-on-dark) 18%,transparent);}
html[data-theme="itps"] .app-shell .tb-drawerws{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell .tb-burger{color:var(--tb-on-dark);}
html[data-theme="itps"] .app-shell .tb-burger:hover{
  background:color-mix(in srgb,var(--tb-on-dark) 12%,transparent);}
html[data-theme="itps"] .app-shell .tb-burger:focus-visible{
  outline-color:var(--tb-gold);}
html[data-theme="itps"] .app-shell .tb-burger:active{
  background:color-mix(in srgb,var(--tb-on-dark) 22%,transparent);}
/* 2 + 3 - phone widths */
@media (max-width:750px){
  .app-shell .tb-burgermenu.tb-drawer{
    bottom:calc(60px + env(safe-area-inset-bottom));
    border-bottom-left-radius:16px;}
  .app-shell .tb-logo .tb-logo-img{display:none;}
  .app-shell .tb-logo .tb-logo-icon-img{
    display:inline-block;height:36px;width:auto;}
  .app-shell aside.tb-side>div:first-of-type .tb-version{display:none;}
  /* The back office's version line carries an ID-level always-show rule
     (the Oct 31 visible-numbering fix, !important against that page's own
     Tasks-view hide). The phone ruling outranks it on phone widths only,
     applied with the same force; the number still lives in the drawer
     head, and on desktop the always-show rule stands untouched. */
  .app-shell #ad-version{display:none !important;}
  .app-shell .tb-drawerhead .tb-logo .tb-logo-img{
    display:inline-block;height:auto;max-height:36px;width:auto;}
  .app-shell .tb-drawerhead .tb-logo .tb-logo-icon-img{display:none;}
}
/* 4 - the public nav panel follows the chosen theme */
html[data-theme] .navtoggle:focus-visible,
html[data-theme] .navlinks a:focus-visible{
  outline:2px solid var(--green);outline-offset:2px;}
@media (max-width:640px){
  html[data-theme] .navlinks{
    background:var(--light-sage);border-color:var(--line);}
  html[data-theme] .navrow .navlinks a:hover{
    background:color-mix(in srgb,var(--green) 14%,var(--light-sage));}
  html[data-theme] .navrow .navlinks a:active{
    background:color-mix(in srgb,var(--green) 24%,var(--light-sage));}
}

/* ===== DIGEST REFRESH SPINNER (Oct 31, 2026) =====
   The Digest view's manual Refresh button carries a
   small spinner ring while a forced candidate scan is
   working. Theme tokens only; the [hidden] state wins
   over the inline-block display. */
.app-shell #dc-refresh .dc-spin{
  display:inline-block;width:12px;height:12px;
  margin-right:8px;border-radius:50%;vertical-align:-2px;
  border:2px solid var(--tb-soft);
  border-top-color:var(--tb-brand);
  animation:dc-spin .8s linear infinite;}
.app-shell #dc-refresh .dc-spin[hidden]{display:none;}
@keyframes dc-spin{to{transform:rotate(360deg);}}

/* ================================================================
   SELECTED TAB LIFT + FOLDER PANEL CORNER (Oct 31, 2026,
   immediate release; Trevor's live walk + annotated
   screenshot).
   1 - The selected tab rises 4px above its neighbours with a
   soft shadow, so the selection pops. The tab grows UPWARD
   from its fused bottom edge: each strip gains 4px of
   headroom (padding-top; the dashboard Inbox strip's
   existing 10px top padding already serves as its
   headroom) and the selected tab gains
   margin-top:-4px, so under flex stretch its box starts
   4px above the line while its bottom edge stays exactly
   where the merge put it and its left edge stays flush
   with the panel's (the corner-fusion fix is untouched).
   The shadow is thrown upward with negative spread - its
   shape stays above the tab's bottom edge - in the file's
   shadow color family, so it reads as lift, never as a
   separation line under the tab. Unselected tabs are
   untouched (pale tint, no accent, no lift, no shadow).
   Applies wherever the shared selected-tab treatment
   applies: the Digest envelope and both Inbox kind strips.
   2 - The folder panels' top-right corners are rounded to
   each panel's own radius, matching their bottom corners
   (Trevor's callout: the corner past the last tab was
   square while the rest of the panel is rounded). The
   Digest panel's top-left stays square: the selected
   tab's fused left edge IS that corner. The back-office
   sheet's header band takes both top corners - no tab
   fuses to its top edge. The dashboard Inbox panel is a
   standard .tb-panel (radius var(--tb-radius) on every
   corner) and needed no rule; verified in QA.
   ================================================================ */
.app-shell #dc-review .dc-env > .tb-tabs{padding-top:4px;}
html[data-theme] .app-shell #dc-tabs .tb-tab.selected,
.app-shell #dc-tabs .tb-tab.selected{
  margin-top:-4px;
  box-shadow:inset 0 3px 0 var(--tb-brand),
    0 -5px 12px -6px rgba(20,33,61,.30);}
.app-shell #ad-inbox-kinds{padding-top:4px;}
html[data-theme] .app-shell #ad-inbox-kinds .tb-tab.selected,
.app-shell #ad-inbox-kinds .tb-tab.selected{
  margin-top:-4px;
  box-shadow:inset 0 3px 0 var(--tb-brand),
    0 -5px 12px -6px rgba(20,33,61,.30);}
html[data-theme] .app-shell #sup-list-panel #sup-kindtabs .tb-tab.active,
.app-shell #sup-list-panel #sup-kindtabs .tb-tab.active{
  margin-top:-4px;
  box-shadow:inset 0 3px 0 var(--tb-brand),
    0 -5px 12px -6px rgba(20,33,61,.30);}
.app-shell #dc-review .dc-env-panel{border-top-right-radius:12px;}
.app-shell #ad-view-feedback .tb-tabrow{
  border-top-left-radius:12px;border-top-right-radius:12px;}

/* (Digest columns, Oct 31, 2026) The Detailed candidate
   list as a real inbox column layout: one grid template
   shared by the column header and every row, so the
   columns align down the list - checkbox, provider,
   received stamp, sender, subject, messages, junk,
   chevron. Replaces the two-row grid-area arrangement
   (.dc-inbox-main) for candidate rows; group and summary
   rows keep their existing layout. */
.app-shell #dc-cand-rows .dc-row.dc-cols > *{order:0;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-check{margin-top:0;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name{display:block;min-width:0;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-row-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-addr{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-subj{margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-subj.dc-unread{font-weight:700;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-when{font-size:13.5px;color:var(--tb-muted);white-space:nowrap;}
/* (Inbox-feel, Oct 31, 2026) Bold strictly means
   unread, the way a real inbox behaves (Trevor,
   live, 6:53 PM): inside the column rows the sender
   name rests at normal weight (overriding the
   shared 600), and sender, subject and the Received
   stamp all go 700 only under .dc-unread, which the
   row builder sets from the candidate's unread flag
   alone - never from anything else. */
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-row-name{font-weight:400;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-row-name.dc-unread{font-weight:700;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-when.dc-unread{font-weight:700;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-prov,
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-when,
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name,
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-subj{cursor:pointer;}
.app-shell #dc-cand-rows .dc-row.dc-cols > .tb-waitrow-acts{grid-column:1 / -1;justify-self:end;}
@media (min-width:900px){
  .app-shell .dc-colhead{grid-template-columns:30px 52px 218px minmax(150px,.85fr) minmax(200px,1.55fr) 32px;gap:10px;padding:8px 0 6px;}
  .app-shell #dc-cand-rows .dc-row.dc-cols{display:grid;grid-template-columns:30px 52px 218px minmax(150px,.85fr) minmax(200px,1.55fr) 32px;gap:10px;align-items:center;}
}
@media (max-width:899px){
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-prov .dc-src{font-size:0;padding:2px 4px;gap:0;}
}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-prov .dc-src:hover{border-color:var(--tb-brand);}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name:hover .dc-row-name{color:var(--tb-brand-dark);}
/* The legacy grid-area names (name/subj/when, from the
   retired .dc-inbox-main arrangement) must not reach
   the column row's cells: a named grid-area with no
   matching template throws the cell into implicit
   tracks outside the columns. Reset to auto placement
   so the cells take the shared template in order. */
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name,
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-subj,
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-when{grid-area:auto;}
/* (Mobile stacked rows, Oct 31, 2026) Trevor's 6:27 PM
   iPhone read: the <=899px template squeezed the sender
   and subject tracks to ~22px/~32px (one or two letters)
   while the stamp track held 106px, and the badges piled
   onto the subject. Mobile gets its own STACKED layout,
   not a compressed desktop grid: line 1 = checkbox,
   provider mark, received stamp, chevron; line 2 = the
   sender (full width) with its badge inline and the
   address under it; line 3 = the subject, full width,
   up to two lines. Placed AFTER the grid-area:auto reset
   above so its named areas win. */
/* One chevron treatment on every column row, all widths:
   plain chevron, no filled box in any state; open rows
   show the same chevron rotated. */
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-expand{background:transparent;border:0;border-radius:8px;padding:6px 4px;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-expand svg{transition:transform .15s ease;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-expand[aria-expanded="true"] svg{transform:rotate(180deg);}
/* (Follow-on release, Oct 31, 2026) Acted rows: a
   queued or completed row carries its own tint plus a
   solid left edge, so it can never blend with the rows
   around it (Trevor's annotated screenshot, 5:59 PM). */
.app-shell #dc-cand-rows .dc-item.dc-acted > .dc-row,
.app-shell #dc-cand-rows .dc-row.dc-acted{
  background:color-mix(in srgb,var(--tb-brand) 10%,var(--tb-panel));
  box-shadow:inset 3px 0 0 var(--tb-dc-state);}
/* Deleted items: the single line in All, and the
   Deleted view's grayed read-only record (single line
   by default, expandable to the full record). */
.app-shell .dc-deleted-line{display:flex;gap:8px;align-items:baseline;
  padding:7px 2px;color:var(--tb-muted);font-size:13.5px;min-width:0;}
.app-shell .dc-deleted-line .dc-del-name{font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .dc-deleted-line .dc-del-state{font-weight:700;flex:none;}
.app-shell .dc-deleted-line .dc-del-when{flex:none;}
.app-shell .dc-deleted-item{color:var(--tb-muted);}
.app-shell .dc-deleted-item > .dc-row{display:flex;gap:8px;align-items:center;
  background:color-mix(in srgb,var(--tb-muted) 12%,var(--tb-panel));}
.app-shell .dc-deleted-item .dc-del-name{font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .dc-deleted-item .dc-del-state{font-weight:700;flex:none;}
.app-shell .dc-deleted-item .dc-expand{background:transparent;border:0;border-radius:8px;padding:6px 4px;flex:none;}
.app-shell .dc-deleted-item .dc-expand svg{transition:transform .15s ease;}
.app-shell .dc-deleted-item .dc-expand[aria-expanded="true"] svg{transform:rotate(180deg);}
.app-shell .dc-deleted-rec{padding:6px 2px 10px 36px;font-size:13.5px;}
.app-shell .dc-deleted-rec p{margin:0 0 4px;}
/* The real-time action status bubble: the latest
   action's completion, in the provider's own word,
   with its click-to-completion time. */
.app-shell .dc-action-status{margin:0 0 8px;padding:8px 12px;
  border:1px solid var(--tb-line);border-radius:10px;
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));
  font-size:13.5px;}
.app-shell .dc-action-status.is-failed{border-color:var(--tb-danger);
  color:var(--tb-danger-text);background:var(--tb-panel);}
.app-shell .dc-action-status a{font-weight:600;}
/* The record context menu (right-click / long-press). */
.dc-ctxmenu{position:fixed;z-index:1200;min-width:210px;
  background:var(--tb-panel,#fff);border:1px solid var(--tb-line,#ccc);
  border-radius:10px;box-shadow:0 10px 32px rgba(0,0,0,.18);
  padding:4px;}
.dc-ctxmenu button{display:block;width:100%;text-align:left;
  background:transparent;border:0;padding:8px 10px;border-radius:7px;
  font:inherit;font-size:14px;cursor:pointer;color:inherit;}
.dc-ctxmenu button:hover,.dc-ctxmenu button:focus-visible{background:var(--tb-soft,#eef2ee);}
.dc-ctxmenu button:active{background:var(--tb-line,#dde5dd);}
.dc-ctxmenu .dc-ctx-sep{height:1px;background:var(--tb-line,#ccc);margin:4px 2px;}
.app-shell #dc-cand-rows .dc-row,.app-shell #dc-cleared-list .dc-row{-webkit-touch-callout:none;}
@media (max-width:899px){
  .app-shell #dc-cand-rows .dc-row.dc-cols{display:grid;
    grid-template-columns:26px minmax(0,1fr) auto 30px;
    grid-template-areas:"check prov when tog" "name name name name" "subj subj subj subj";
    column-gap:8px;row-gap:3px;align-items:center;padding-top:9px;padding-bottom:9px;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-check{grid-area:check;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-prov{grid-area:prov;justify-self:start;min-width:0;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-when{grid-area:when;justify-self:end;font-size:12px;white-space:nowrap;line-height:1.35;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name{grid-area:name;display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:1px;min-width:0;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-row-name{flex:0 1 auto;min-width:0;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-badge{flex:0 0 auto;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-c-addr{flex:1 0 100%;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-subj{grid-area:subj;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px;line-height:1.35;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-expand{grid-area:tog;justify-self:end;}
}

/* (Open Email pop-up, Oct 31, 2026) The in-app message
   view the detection switch opens. Built on the shared
   modal overlay + confirm box; wider, with a scrolling
   plain-text body region. */
.app-shell .dc-msgpop-box{max-width:720px;}
.app-shell .dc-msgpop-box .dc-msg-subj{line-height:1.35;font-weight:700;font-size:17px;margin:0 28px 2px 0;}
.app-shell .dc-msgpop-box .dc-msg-meta{margin:0 0 8px;}
.app-shell .dc-msgpop-box .dc-msg-body{white-space:pre-wrap;word-break:break-word;line-height:1.55;max-height:55vh;overflow-y:auto;border-top:1px solid var(--tb-line);padding-top:10px;}
.app-shell .dc-msgpop-box .dc-msgpop-webmail{text-decoration:none;display:inline-flex;align-items:center;}
.app-shell .dc-openmail svg{width:16px;height:16px;flex:none;}

/* ================================================================
   ONE NAVIGATION AT DESKTOP WIDTHS (Nov 1, 2026,
   master-dashboard-nav-fix). This rule stands at the END of
   the stylesheet on purpose: at desktop widths the left-hand
   rail IS the navigation, so the hamburger trigger, its
   drawer and its scrim do not render there at all - no
   second navigation, whatever any earlier rule says. Phone
   widths are untouched: below the line the hamburger is the
   drawer's only door. Theme-blind on purpose (display only,
   no colors).
   ================================================================ */
@media (min-width:751px){
  .app-shell aside.tb-side .tb-burger{display:none !important;}
  .app-shell .tb-burgermenu.tb-drawer{display:none !important;}
  .app-shell .tb-drawerscrim{display:none !important;}
}

/* (R4.14, Nov 1, 2026) Digest More options tab, tools
   view and the phone-width category drop-down. The
   toolstab mirrors the shared tab look with theme
   tokens only; it is not a .tb-tab, so the shared tab
   engine never manages it. At <=1000px the strip
   shows All, the selected category and More options;
   the rest live in the anchored drop-down. */
.dc-toolstab{border:1px solid var(--tb-line);border-bottom:0;border-radius:9px 9px 0 0;background:var(--tb-side);padding:9px 14px;color:var(--tb-muted);white-space:nowrap;font-size:14.5px;margin-bottom:-1px;cursor:pointer;font:inherit;}
.dc-toolstab:hover{color:var(--tb-text);}
.dc-toolstab:focus-visible{outline:2px solid var(--tb-brand);outline-offset:2px;color:var(--tb-text);}
.dc-toolstab:active,.dc-toolstab.dc-open{background:var(--tb-tab-tint);color:var(--tb-text);font-weight:600;box-shadow:inset 0 3px 0 var(--tb-brand);}
.dc-env{position:relative;}
.dc-moremenu{position:absolute;top:52px;right:8px;z-index:60;min-width:230px;background:var(--tb-panel);border:1px solid var(--tb-line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.20);padding:6px;display:flex;flex-direction:column;gap:2px;}
.dc-moremenu[hidden]{display:none;}
.dc-moremenu-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:10px 12px;font:inherit;font-size:14.5px;color:var(--tb-text);cursor:pointer;}
.dc-moremenu-item:hover{background:var(--tb-soft);}
.dc-moremenu-item:focus-visible{outline:2px solid var(--tb-brand);outline-offset:-2px;}
.dc-moremenu-item:active{background:var(--tb-tab-tint);}
.dc-moremenu-tools{border-top:1px solid var(--tb-line);margin-top:4px;padding-top:12px;font-weight:600;color:var(--tb-brand);}
.dc-tools-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.dc-tools-title{margin:4px 0 8px;}
.dc-tools-h{margin:18px 0 8px;}
.dc-tools-list{display:flex;flex-wrap:wrap;gap:8px;}
@media (max-width:1000px){
  #dc-tabs>.tb-tab[data-dctab]:not([data-dctab="all"]):not(.selected){display:none;}
  #dc-tabs .tb-tabmore-wrap{display:none;}
  .dc-moremenu{top:56px;right:4px;left:4px;min-width:0;}
}
@media (max-width:750px){
  .dc-toolstab,.dc-moremenu-item{min-height:44px;}
}

/* (R4.14, Nov 1, 2026) Bulk bar label + guidance
   line. The label reads beside the collapse toggle;
   the guidance line shows only with no selection. */
.dc-bar-label{font-weight:600;font-size:14.5px;align-self:center;}
.dc-bar-guide{flex:1 1 auto;margin:2px 0 8px;color:var(--tb-muted);}
.dc-bar-guide[hidden]{display:none;}
#dc-othermenu .tb-action[disabled]{opacity:.45;cursor:default;}
.dc-bar-btns #dc-other-btn[disabled]{opacity:.45;cursor:default;}
.dc-bar-btns #dc-act-cancel[disabled]{opacity:.45;cursor:default;}

/* (R4.14, Nov 1, 2026) Search scope sits in the
   controls row with the Account filter's own pattern;
   the fold scope text rides beside the master fold
   control. */
.dc-scope-wrap{margin-left:2px;}
#dc-fold-scope{align-self:center;}

/* ==========================================================================
   (Nov 1, 2026) THE PLATFORM COMPOSER (.tbpc-) — the one composer
   standard, promoted into the shared layer from the tb-chat composer
   as it works on Chantelle's site (Trevor's ruling, Oct 30, 2026
   ~7:57 PM: the message send section — text field, microphone,
   voice balloon, send control, attachments where supported — is
   one standard everywhere). The geometry is the standard's own,
   carried on the shell theme tokens; the wiring is the shared
   factory in /assets/tb-composer.js (window.tbComposer). Modes
   are flags on this one component — the root carries
   data-tbpc-mode and a mode class: base, note, reply, internal
   (Internal Note tints the root ground with the theme's side
   tint, the treatment the standard's mode design specifies).
   Divergent composer families retire onto this block one surface
   at a time; the definition gate's COMPOSER module is the
   scoreboard. (Element-bearing rules carry the .tbpc prefix
   twice: the shell's own .app-shell button/textarea font reset
   otherwise outranks a single class.) */
.tbpc{--tbpc-accent:var(--tb-brand,#2E7D32);--tbpc-accent-deep:var(--tb-brand-dark,#256629);--tbpc-accent-fg:#FFFFFF;--tbpc-panel:var(--tb-panel,#FFFFFF);--tbpc-line:var(--tb-line,#D9E5F0);--tbpc-ink:var(--tb-text,#18283A);--tbpc-ink-soft:var(--tb-muted,#68766E);--tbpc-chip:var(--tb-side,#F0F4EF);position:relative;background:var(--tbpc-panel);border-top:1px solid var(--tbpc-line);padding:12px 14px 10px;font:inherit;color:var(--tbpc-ink);box-sizing:border-box;}
.tbpc.tbpc-card{background:var(--tbpc-panel);border:1px solid var(--tbpc-line);border-radius:16px;padding:8px 10px 10px;margin-top:12px;}
.tbpc.tbpc-mode-internal{background:var(--tbpc-chip);}
.tbpc-quotechip{font-size:12.5px;background:var(--tbpc-chip);border-left:3px solid var(--tbpc-accent);border-radius:10px;padding:8px 11px;margin-bottom:8px;}
.tbpc.tbpc-mode-internal .tbpc-quotechip{background:var(--tbpc-panel);}
.tbpc-quotechip[hidden]{display:none;}
.tbpc-quotechip-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:var(--tbpc-ink-soft);}
.tbpc .tbpc-quotechip-x{background:none;border:none;font-size:16px;cursor:pointer;color:inherit;padding:0 2px;}
.tbpc .tbpc-quotechip-x:hover{color:var(--tbpc-ink);}
.tbpc .tbpc-quotechip-x:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:2px;}
.tbpc-quotechip-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tbpc-tray{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.tbpc-tray[hidden]{display:none;}
.tbpc-traychip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;background:var(--tbpc-chip);border:1px solid var(--tbpc-line);border-radius:999px;padding:4px 6px 4px 10px;}
.tbpc.tbpc-mode-internal .tbpc-traychip{background:var(--tbpc-panel);}
.tbpc .tbpc-traychip button{background:none;border:none;cursor:pointer;font-size:14px;line-height:1;padding:2px;color:var(--tbpc-ink-soft);}
.tbpc .tbpc-traychip button:hover{color:#B3261E;}
.tbpc .tbpc-traychip button:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:2px;}
.tbpc-modeswitch{display:inline-flex;gap:2px;background:var(--tbpc-chip);border:1px solid var(--tbpc-line);border-radius:999px;padding:2px;margin-bottom:10px;}
.tbpc .tbpc-modebtn{font:inherit;font-size:13px;font-weight:600;cursor:pointer;background:transparent;border:none;border-radius:999px;padding:6px 14px;line-height:1.25;color:var(--tbpc-ink-soft);transition:background .18s ease,color .18s ease,transform .12s ease;}
.tbpc .tbpc-modebtn:hover{background:var(--tbpc-panel);color:var(--tbpc-ink);}
.tbpc .tbpc-modebtn:active{transform:scale(.97);}
.tbpc .tbpc-modebtn:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:2px;}
.tbpc .tbpc-modebtn.tbpc-modebtn-on{background:var(--tbpc-accent);color:var(--tbpc-accent-fg);}
.tbpc .tbpc-modebtn.tbpc-modebtn-on:hover{background:var(--tbpc-accent-deep);color:var(--tbpc-accent-fg);}
.tbpc-modelabel{font-size:12.5px;font-weight:700;color:var(--tbpc-ink-soft);margin:0 0 8px;}
.tbpc-modelabel[hidden]{display:none;}
.tbpc-row{display:flex;align-items:flex-end;gap:7px;position:relative;}
.tbpc-pill{flex:1;min-width:0;display:flex;align-items:flex-end;position:relative;border:1.5px solid color-mix(in srgb,var(--tbpc-accent) 55%,var(--tbpc-line));border-radius:24px;background:var(--tbpc-panel);}
.tbpc-pill:focus-within{border-color:var(--tbpc-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--tbpc-accent) 25%,transparent);}
.tbpc-pill:has(.tbpc-input[disabled]){background:var(--tbpc-chip);}
.tbpc .tbpc-input{flex:1;font:inherit;font-size:16px;line-height:1.4;resize:none;border:none;border-radius:0;padding:11px 8px;max-height:120px;min-height:46px;min-width:0;overflow-y:auto;background:transparent;color:var(--tbpc-ink);scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--tbpc-accent) 35%,transparent) transparent;}
.tbpc .tbpc-input::-webkit-scrollbar{width:4px;}
.tbpc .tbpc-input::-webkit-scrollbar-track{background:transparent;}
.tbpc .tbpc-input::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--tbpc-accent) 28%,transparent);border-radius:999px;}
.tbpc .tbpc-input:focus{outline:none;}
.tbpc-iconbtn{width:42px;height:42px;border-radius:50%;flex:none;cursor:pointer;display:grid;place-items:center;background:none;border:none;color:var(--tbpc-accent);transition:background .18s ease,transform .12s ease;}
.tbpc-iconbtn svg{width:21px;height:21px;}
.tbpc-iconbtn:hover{background:var(--tbpc-chip);}
.tbpc.tbpc-mode-internal .tbpc-iconbtn:hover{background:var(--tbpc-panel);}
.tbpc-iconbtn:active{transform:scale(.93);}
.tbpc-iconbtn:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:2px;}
.tbpc-iconbtn[disabled]{opacity:.4;cursor:default;}
.tbpc-pill .tbpc-iconbtn{width:34px;height:34px;margin-bottom:6px;}
.tbpc-pill .tbpc-iconbtn:first-child{margin-left:5px;}
.tbpc-pill .tbpc-iconbtn:last-child{margin-right:5px;}
.tbpc-pill .tbpc-iconbtn svg{width:20px;height:20px;}
.tbpc-iconbtn.tbpc-recording{background:#FDECEA;color:#B3261E;animation:tbpc-micpulse 1.6s ease-in-out infinite;}
@keyframes tbpc-micpulse{0%,100%{box-shadow:0 0 0 0 rgba(179,38,30,.45);transform:scale(1);}50%{box-shadow:0 0 0 9px rgba(179,38,30,0);transform:scale(1.07);}}
@media (prefers-reduced-motion: reduce){.tbpc-iconbtn.tbpc-recording{animation:none;}}
.tbpc-send{width:46px;height:46px;border-radius:50%;flex:none;cursor:pointer;display:grid;place-items:center;border:none;background:var(--tbpc-accent);color:var(--tbpc-accent-fg);transition:background .2s ease,transform .15s ease;}
.tbpc-send svg{width:20px;height:20px;}
.tbpc-send:hover{background:var(--tbpc-accent-deep);transform:translateY(-1px);}
.tbpc-send:active{transform:scale(.94);}
.tbpc-send:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:2px;}
.tbpc-send[disabled]{opacity:.4;cursor:default;}
.tbpc-menu{position:absolute;left:0;bottom:calc(100% + 6px);z-index:6;min-width:230px;background:var(--tbpc-panel);border:1px solid var(--tbpc-line);border-radius:12px;box-shadow:0 12px 30px rgba(20,33,61,.18);padding:8px;}
.tbpc-menu[hidden]{display:none;}
.tbpc .tbpc-menu button{display:block;width:100%;font:inherit;font-size:14.5px;font-weight:600;text-align:left;background:none;border:none;border-radius:8px;padding:9px 10px;cursor:pointer;color:var(--tbpc-ink);}
.tbpc .tbpc-menu button:hover{background:var(--tbpc-chip);}
.tbpc .tbpc-menu button:focus-visible{outline:2px solid var(--tbpc-accent);outline-offset:1px;}
.tbpc-menuhint{font-size:12.5px;color:var(--tbpc-ink-soft);margin:4px 10px 6px;line-height:1.45;}
.tbpc-balloon{position:absolute;left:12px;right:12px;bottom:calc(100% + 6px);z-index:8;margin:0;padding:11px 15px;border:1px solid var(--tbpc-line);border-radius:18px;background:color-mix(in srgb,var(--tbpc-accent) 8%,var(--tbpc-panel));box-shadow:0 14px 34px rgba(20,33,61,.18);color:var(--tbpc-ink);font-size:15px;line-height:1.5;min-height:22px;max-height:96px;overflow-y:auto;overflow-wrap:anywhere;scrollbar-width:none;animation:tbpc-balloon-in .18s ease-out;}
.tbpc-balloon::-webkit-scrollbar{display:none;}
.tbpc-balloon[hidden]{display:none;}
.tbpc-balloon::after{content:"";position:absolute;right:64px;bottom:-6px;width:11px;height:11px;transform:rotate(45deg);background:color-mix(in srgb,var(--tbpc-accent) 8%,var(--tbpc-panel));border-right:1px solid var(--tbpc-line);border-bottom:1px solid var(--tbpc-line);}
.tbpc-balloon-interim{opacity:.48;}
@keyframes tbpc-balloon-in{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){.tbpc-balloon{animation:none;}}
.tbpc-smallprint{font-size:11px;color:var(--tbpc-ink-soft);text-align:center;margin:8px 4px 0;line-height:1.35;}
.tbpc-smallprint[hidden]{display:none;}
.tbpc-err{font-size:13.5px;color:#B3261E;font-weight:600;text-align:center;margin:8px 4px 0;line-height:1.45;overflow-wrap:anywhere;}
.tbpc-err[hidden]{display:none;}
.tbpc.tbpc-locked .tbpc-row{opacity:.55;}

/* (Nov 1, 2026, drawer-rail-single-source) ONE rule set
   for the shell navigation's two forms. Trevor's ruling:
   the phone drawer formats perfectly and is the reference;
   the desktop rail rendered its group headers and doors
   from an older planner restyle (9px/750 muted headers,
   12.5px muted doors, 20px icons) while the drawer used
   its own rules (13px/700 headers, 15.5px doors, 17px
   icons) - same file, two treatments. The declarations
   below are the DRAWER's own values, measured on the live
   drawer, applied to BOTH selector families in one block:
   the drawer computes exactly what it computed before
   (its selectors ride their own values), and the rail
   takes the same values at desktop. Header color is set
   rail-side only, with the drawer's own theme expressions
   (base var(--tb-text); the itps theme's var(--tb-on-dark)
   mirrored), because the drawer's themed color rules must
   keep winning for the drawer itself. State styling is
   untouched on both sides: rail .active / .tb-navflag /
   .tb-navsep / hover rules all carry higher specificity
   than the base door rule here and keep their meanings;
   the quiet tier (.tb-more) takes the drawer's size,
   padding and color like every other door. */
/* Group headers: the drawer's accordion parents and the
   rail's group toggles, one treatment. */
.app-shell aside.tb-side nav button.tb-navlabel.tb-rgtoggle,
.app-shell .tb-burgermenu .tb-accparent{
  font-size:13px;font-weight:700;letter-spacing:1.2px;
  text-transform:uppercase;padding:10px;min-height:44px;
  margin-top:6px;border-radius:0;}
.app-shell aside.tb-side nav button.tb-navlabel.tb-rgtoggle:first-of-type,
.app-shell .tb-burgermenu .tb-accparent:first-of-type{
  margin-top:0;}
.app-shell aside.tb-side nav button.tb-navlabel.tb-rgtoggle{
  color:var(--tb-text);border-top:1px solid var(--tb-line);}
html[data-theme="itps"] .app-shell aside.tb-side nav button.tb-navlabel.tb-rgtoggle{
  color:var(--tb-on-dark);}
.app-shell aside.tb-side nav button.tb-navlabel.tb-rgtoggle:first-of-type{
  border-top:0;}
/* Doors: the drawer's rows and the rail's doors (and its
   shortcut doors, which the drawer now carries as the
   Account shortcuts group), one treatment. */
.app-shell aside.tb-side nav .tb-nav,
.app-shell aside.tb-side nav .tb-shortcut,
.app-shell .tb-burgermenu .tb-burgeritem{
  font-size:15.5px;font-weight:400;color:var(--tb-text);
  padding:10px;min-height:46px;margin:0;border-radius:10px;}
.app-shell aside.tb-side nav .tb-nav.tb-more{
  font-size:15.5px;padding:10px;color:var(--tb-text);}
html[data-theme="itps"] .app-shell aside.tb-side nav .tb-nav.tb-more{
  color:var(--tb-on-dark);}
/* Icons and chevrons: one size for both forms (the
   drawer's 17px door icons, the shared 18px chevron). */
.app-shell aside.tb-side nav .tb-nav svg,
.app-shell .tb-burgermenu .tb-burgeritem svg{
  width:17px;height:17px;}
.app-shell aside.tb-side nav .tb-rgtoggle .tb-acchev svg,
.app-shell .tb-burgermenu .tb-accparent .tb-acchev svg{
  width:18px;height:18px;}

/* (Nov 1, 2026, Trevor — immediate release) The desktop rail's version line
   takes the drawer's exact presentation, from the one control: the rail head
   and the drawer head are the same head. display/font-size/color pinned so
   no earlier .tb-version rule can ghost or hide it on one side only. */
.app-shell aside.tb-side .tb-version{display:block;font-size:12px;font-weight:400;color:var(--tb-on-dark-soft);padding:3px 2px 0;}

/* (Nov 1, 2026, Trevor, immediate release) ONE version stamp rule for the one navigation control: drawer, rail mirror, and rail all render the stamp identically - same size, weight, and light color on the dark navigation ground. No separate treatments. */
.app-shell .tb-drawerhead .tb-version,.app-shell .tb-drawer-version,.app-shell aside.tb-side .tb-version,.app-shell .tb-railmirror .tb-version,#ad-version{color:rgba(255,255,255,.88) !important;font-size:12px !important;font-weight:600 !important;}

/* ================================================================
   NAV-01B - DIGEST FORMATTING GROUP (Nov 1, 2026, Release 4.67;
   Trevor's settled Digest rulings). Everything below resolves
   from the theme tokens; no new palette enters the file.
   1  - the column header rides under each day header (built by
        dcColheadEl in dashboard.html); rows take Outlook-style
        dividing lines.
   2/14 - the day header's Select All checkbox and every row
        checkbox share one indented column: the fold chevron
        narrows, the dayhead gap tightens, and grouped rows
        indent to the checkbox column.
   3  - the action outcome leaves the table for a slim human
        confirmation line pinned under the toolbar.
   5/6/7 - one row typography from the tokens: sender pills sit
        inline beside the name with the address on its own line
        under it; bold strictly means unread in BOTH views and
        read rows rest at regular weight - no red, ever.
   8  - the source chip is a rounded-corner rectangle the same
        height as the row checkbox, never a pill.
   9/10 - More options wears the action-control treatment (the
        Detailed/Summary toggle's family), never a filter tab;
        it pushes to the strip's right edge, which is the
        panel's right edge, and the strip never wraps - tabs
        that do not fit fold into its menu (.dc-tab-overflow).
   13/18 - the in-tab search is the SAME shared .tb-search
        control as Search Your Email; only its placement here
        is Digest-local.
   15 - context menu entries carry their sprite icons on one
        flex line (the menu stays the one tbCtxOpen component).
   16 - the bulk actions bar floats on the foot of the Digest
        view (Trevor's ruling; supersedes the TB-1287 in-flow
        phone dock and the earlier top-of-table proposal).
   17 - the header stack tightens on token spacing; the
        "Days & sender details" caption is gone from the markup.
   ================================================================ */
/* 1 - dividing lines under each row. */
.app-shell #dc-cand-rows .dc-row{border-bottom:1px solid var(--tb-line);}
/* 2/14 - one indented checkbox column. */
.app-shell .dc-dayhead{gap:8px;}
.app-shell .dc-dayfold{padding:4px 2px;}
.app-shell .dc-dayall{margin-top:0;}
.app-shell .dc-dayhead-label{cursor:pointer;}
.app-shell .dc-dayhead-label:hover{color:var(--tb-brand-dark);}
.app-shell #dc-cand-rows.dc-grouped > .dc-item,
.app-shell #dc-cand-rows.dc-grouped > .dc-row{margin-left:30px;}
@media (min-width:900px){
  .app-shell #dc-cand-rows.dc-grouped .dc-colhead{margin-left:30px;}
}
/* 3 - the slim self-clearing confirmation line. */
.app-shell .dc-confirm-line{margin:0 0 10px;padding:7px 12px;
  border:1px solid var(--tb-line);border-radius:10px;
  background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));
  font-size:13.5px;line-height:1.45;}
.app-shell .dc-confirm-line.is-failed{border-color:var(--tb-danger);
  color:var(--tb-danger-text);background:var(--tb-panel);}
.app-shell .dc-confirm-line a{font-weight:600;}
/* 5/6 - sender cell: pill inline beside the name, address on
   its own line underneath; one typography in both views. */
@media (min-width:900px){
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name{
    display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:1px;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-row-name{
    flex:1 1 0;min-width:0;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-badge{flex:none;}
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name .dc-c-addr{flex:1 0 100%;}
}
.app-shell #dc-cand-rows .dc-row .dc-row-name{font-size:15px;line-height:1.35;}
.app-shell #dc-cand-rows .dc-row .dc-c-subj{font-size:14.5px;line-height:1.4;}
.app-shell #dc-cand-rows .dc-row .dc-c-addr{color:var(--tb-muted);}
/* 7 - bold strictly means unread, in Summary too. */
.app-shell .dc-sum-name{font-weight:400;font-size:15px;}
.app-shell .dc-sum-name.dc-unread{font-weight:700;}
.app-shell .dc-sum-addr{font-size:12.5px;}
/* 8 - the source chip: rounded rectangle, checkbox height. */
.app-shell .dc-src{height:22px;box-sizing:border-box;border-radius:6px;}
/* 9/10 - More options as an action control at the strip's
   right edge; the strip never wraps. */
.app-shell #dc-tabs{flex-wrap:nowrap;}
.app-shell #dc-tabs .tb-tab.dc-tab-overflow{display:none;}
.dc-toolstab{display:inline-flex;align-items:center;gap:7px;
  border:1px solid var(--tb-line);border-radius:8px;
  background:var(--tb-panel);color:var(--tb-text);
  margin:0 0 0 auto;padding:8px 13px;}
.dc-toolstab:hover{background:var(--tb-soft);color:var(--tb-text);}
.dc-toolstab:focus-visible{outline:2px solid var(--tb-brand);outline-offset:2px;color:var(--tb-text);}
.dc-toolstab:active{background:var(--tb-tab-tint);}
.dc-toolstab.dc-open{background:var(--tb-tab-tint);color:var(--tb-text);
  font-weight:600;box-shadow:none;}
.dc-toolstab .dc-tools-chev{width:16px;height:16px;flex:none;}
/* 13/18 - the in-tab search placement (the shared control's
   own dress is untouched). */
.app-shell .dc-tabsearchctl{width:100%;max-width:440px;margin:0 0 12px;}
/* 15 - context menu icons on one line with their labels. */
.dc-ctxmenu button{display:flex;align-items:center;gap:9px;}
.dc-ctxmenu button svg{width:17px;height:17px;flex:none;}
/* 16 - the bulk bar floats on the foot of the Digest view. */
.app-shell .dc-bar{position:sticky;bottom:14px;z-index:30;
  box-shadow:0 10px 28px rgba(20,33,61,.18);}
@media (max-width:750px){
  .app-shell .dc-bar{bottom:calc(68px + env(safe-area-inset-bottom));}
}
/* 17 - header stack spacing. */
.app-shell #dc-review .tb-panelhead{margin:0 0 10px;}
.app-shell #dc-review #dc-viewbar{margin:0 0 14px;}
/* IR-29 (Nov 1, 2026) - the self-correspondence bundle's
   message list: one entry per message inside the one
   bundle entry, on the sender rows' own model (inset
   panel like the row details, dividing lines, stamps
   and provider marks from the shared classes). */
.app-shell .dc-selfmsgs{margin:2px 0 12px 32px;padding:6px 12px;
  background:color-mix(in srgb,var(--tb-brand) 5%,var(--tb-panel));
  border:1px solid var(--tb-line);border-radius:10px;}
.app-shell .dc-selfmsg{display:flex;align-items:center;gap:10px;
  padding:7px 0;border-top:1px solid var(--tb-line);}
.app-shell .dc-selfmsg:first-child{border-top:0;}
.app-shell .dc-selfmsg-subj{flex:1 1 0;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-shell .dc-selfmsg .dc-sum-meta{flex:none;}
.app-shell .dc-selfmsg .dc-src{flex:none;}
.app-shell .dc-expand:active{background:var(--tb-soft);
  color:var(--tb-dc-state);}

/* ================================================================
   IR-30 - DIGEST LIVE-TEST FIXES (Nov 1, 2026, Release 4.69;
   Trevor's live review of 4.67/4.68). Tokens only, like
   every block above.
   3 - checkbox geometry is pinned by the guard, not by
       new CSS: the grouped indent (30px) already equals
       the dayhead's own offset (22px fold button + 8px
       gap), and the guard now asserts the two columns
       coincide at desktop and phone widths.
   4 - every repeated column header row takes a subtle
       token tint and a clear dividing line under it.
   5 - the sender cell's two lines tighten: the flex
       row gap closes and the address line's leading
       compacts, so more of the list fits a screen.
   6 - the address button wears the address's own text
       dress with the standard control states.
   7 - the per-day Expand / Contract link rides the far
       right of the day line, past the day's rule (the
       rule yields its flex fill to the middle, order 1;
       the link closes the line, order 2).
   ================================================================ */
/* 4 - header tint + dividing line. */
@media (min-width:900px){
  .app-shell .dc-colhead{
    background:color-mix(in srgb,var(--tb-brand) 6%,var(--tb-panel));
    border-bottom:2px solid var(--tb-line);}
}
/* 5 - sender cell: close the vertical gap. */
@media (min-width:900px){
  .app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-name{row-gap:0;}
}
/* (the gap itself was the shared .tb-note margin-top
   riding on the address; it closes here, Digest-local,
   and the address line's leading compacts with it) */
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-c-addr{margin-top:0;line-height:1.3;}
/* 6 - the address as a text-dressed button. */
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-addr-btn{
  background:none;border:0;padding:0;text-align:left;
  font-family:inherit;cursor:pointer;color:var(--tb-muted);}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-addr-btn:hover{
  color:var(--tb-brand-dark);text-decoration:underline;}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-addr-btn:focus-visible{
  outline:2px solid var(--tb-brand);outline-offset:2px;
  color:var(--tb-brand-dark);}
.app-shell #dc-cand-rows .dc-row.dc-cols .dc-addr-btn:active{
  color:var(--tb-brand);}
/* 7 - the per-day Expand / Contract link. */
.app-shell .dc-dayhead::after{order:1;}
.app-shell .dc-daytoggle{order:2;flex:none;background:none;
  border:0;border-radius:8px;padding:4px 6px;font:inherit;
  font-size:13px;font-weight:600;color:var(--tb-brand-dark);
  cursor:pointer;white-space:nowrap;}
.app-shell .dc-daytoggle:hover{background:var(--tb-soft);}
.app-shell .dc-daytoggle:focus-visible{
  outline:2px solid var(--tb-brand);outline-offset:2px;}
.app-shell .dc-daytoggle:active{background:var(--tb-tab-tint);}

/* ================================================================
   RELEASE 4.71 - THE ENVELOPE (Nov 1, 2026). The Digest
   sender detail rebuilt as an envelope joined to its row,
   the shared ten-segment junk meter, and IR-49 (unread
   bold covers the Received time cell in every view).
   Every value below comes from the existing theme tokens;
   the meter's band colors are the platform's TH-7 status
   lights (--tb-light-green / --tb-light-amber /
   --tb-light-red), the closest existing semantic tokens
   to the prototype's blue / amber / muted-red bands -
   the token family carries no blue status light, so the
   low band takes the ok light rather than a new color.
   ================================================================ */
/* The envelope itself: a white panel with the fine token
   border, sitting directly under its row inside the same
   item wrapper, joined to the row (no top border, square
   top corners) so row and panel read as one continuous
   piece, not a floating indented bubble. This block
   stands after the earlier .dc-details rules on purpose:
   it is the detail panel's current dress. */
.app-shell .dc-details{margin:0 0 14px;padding:16px 18px;
  background:var(--tb-panel);border:1px solid var(--tb-line);
  border-top:0;border-radius:0 0 12px 12px;box-shadow:none;}
.app-shell .dc-env-cols{display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  gap:6px 28px;}
.app-shell .dc-env-head{font-size:15px;font-weight:700;
  line-height:1.35;margin:0 0 5px;color:var(--tb-text);}
.app-shell .dc-env-ident{margin:0;overflow-wrap:anywhere;}
.app-shell .dc-env-subj{font-size:14.5px;line-height:1.45;
  font-weight:400;margin:10px 0 0;color:var(--tb-text);
  overflow-wrap:anywhere;}
.app-shell .dc-env-subj.dc-unread{font-weight:700;}
.app-shell .dc-env-stamp{margin:3px 0 0;}
.app-shell .dc-env-why{line-height:1.5;margin:8px 0 0;}
.app-shell .dc-env-hist{margin:3px 0 0;}
.app-shell .dc-env-caveat{margin:8px 0 0;}
/* The action row sits inside the envelope, along its
   bottom, divided from the columns by the token line. */
.app-shell .dc-details .dc-det-acts{
  border-top:1px solid var(--tb-line);
  padding-top:12px;margin-top:14px;}
/* The ten-segment junk meter: one shared component.
   Filled segments take the band's status light; empty
   segments rest at the token line color, and the
   numeric label always rides beside them, so the score
   never relies on color alone. */
.app-shell .dc-meter{display:inline-flex;align-items:center;gap:8px;}
.app-shell .dc-meter-segs{display:inline-flex;gap:2px;}
.app-shell .dc-meter-seg{width:14px;height:10px;border-radius:2px;
  background:var(--tb-line);flex:none;}
.app-shell .dc-meter.dc-meter-low .dc-meter-seg.dc-on{
  background:var(--tb-light-green);}
.app-shell .dc-meter.dc-meter-mid .dc-meter-seg.dc-on{
  background:var(--tb-light-amber);}
.app-shell .dc-meter.dc-meter-high .dc-meter-seg.dc-on{
  background:var(--tb-light-red);}
.app-shell .dc-meter-num{font-size:13.5px;font-weight:600;
  color:var(--tb-text);}
.app-shell .dc-meter-na-text{font-size:13.5px;color:var(--tb-muted);}
/* IR-49: bold strictly means unread, and it covers the
   Received TIME cell. The Detailed row's time weight
   stands earlier in this file; the Summary row's stamp
   carried no unread treatment at all - its builder now
   sets the same .dc-unread hook its name already
   carried, and the weight is applied here, at the
   CSS source, beside the name's own rule above. */
.app-shell .dc-sum-meta.dc-unread{font-weight:700;}
@media (max-width:899px){
  .app-shell .dc-env-cols{grid-template-columns:minmax(0,1fr);}
  .app-shell .dc-details{padding:14px;}
}

/* ================================================================
   RELEASE 4.72 - YOUR OWN MAIL, NESTED (Nov 1, 2026, IR-72).
   The self set's nested message list now lives inside the
   sender detail envelope (.dc-details dress above), not in
   a standalone bundle panel: the old .dc-selfmsgs inset
   dress is retired inside the detail, and each message is
   its own expandable entry - a head carrying the subject
   and the chevron, a body carrying the stamp and the
   provider mark. Every value comes from the existing
   theme tokens, like every block above.
   ================================================================ */
.app-shell .dc-details .dc-selfmsgs{margin:10px 0 0;
  padding:0;background:none;border:0;border-radius:0;}
.app-shell .dc-details .dc-selfmsg{display:block;
  padding:7px 0;border-top:1px solid var(--tb-line);}
.app-shell .dc-details .dc-selfmsg:first-child{border-top:0;}
.app-shell .dc-selfmsg-head{display:flex;align-items:center;
  gap:10px;width:100%;background:none;border:0;padding:0;
  font:inherit;text-align:left;cursor:pointer;
  color:var(--tb-text);}
.app-shell .dc-selfmsg-head:hover{color:var(--tb-brand-dark);}
.app-shell .dc-selfmsg-head:focus-visible{
  outline:2px solid var(--tb-brand);outline-offset:2px;
  color:var(--tb-brand-dark);}
.app-shell .dc-selfmsg-head:active{color:var(--tb-brand);}
.app-shell .dc-selfmsg-head svg{width:18px;height:18px;
  display:block;transition:transform .15s ease;}
.app-shell .dc-selfmsg-head[aria-expanded="true"] svg{
  transform:rotate(180deg);}
.app-shell .dc-selfmsg-chev{flex:none;display:inline-flex;
  color:var(--tb-muted);}
.app-shell .dc-selfmsg-body{display:flex;align-items:center;
  gap:10px;padding:6px 0 2px;}
.app-shell .dc-selfmsg-body[hidden]{display:none;}

/* ================================================================
   RELEASE 4.74 - THE BULK BAR, ONE SHARED COMPONENT
   (Nov 1, 2026; CENTRAL-COMPONENTS.md S2.3, Fork F5).
   This block is the bulk bar's ONE css home: the
   tb-bulkbar family, dressed from the existing theme
   tokens. The builder is tbBuildBulkBar in site.js;
   the width fit is tbBulkBarFit there (as many direct
   actions as the width fits, the rest folded into the
   Other actions menu). First consumer: the Digest,
   whose bar this dress carries - a square, full-width
   bar fixed across the bottom of the content column,
   always present in every list state (IR-64). The
   4.73 dc-bar generation that stood here is removed,
   not added to; the older dc-bar generations earlier
   in this file are dead dress as of this release (no
   element carries those classes) and are inventoried
   in the Release C record for cleanup. The rail
   offset and the phone bottom-bar offset repeat the
   shell's own standing geometry values.
   ================================================================ */
.app-shell .tb-bulkbar{position:fixed;left:0;right:0;
  bottom:0;z-index:60;margin:0;
  background:var(--tb-panel);
  border:0;border-top:1px solid var(--tb-line);
  border-radius:0;box-shadow:none;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  display:flex;flex-wrap:nowrap;align-items:center;
  gap:6px 10px;}
@media (min-width:751px){
  .app-shell .tb-bulkbar{left:240px;}
}
@media (max-width:750px){
  .app-shell .tb-bulkbar{
    bottom:calc(68px + env(safe-area-inset-bottom));
    padding-bottom:10px;}
}
.app-shell .tb-bulkbar-label{font-weight:600;
  font-size:14.5px;align-self:center;flex:none;}
.app-shell .tb-bulkbar-count{font-weight:600;flex:1 1 auto;
  margin:0;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;}
.app-shell .tb-bulkbar-guide{flex:1 1 auto;margin:0;
  color:var(--tb-muted);}
.app-shell .tb-bulkbar-guide[hidden]{display:none;}
.app-shell .tb-bulkbar-all{display:inline-flex;
  align-items:center;gap:7px;font-size:13.5px;
  cursor:pointer;flex:none;}
.app-shell .tb-bulkbar-btns{display:flex;gap:8px;
  flex:1 1 100%;flex-wrap:nowrap;overflow:hidden;
  align-items:center;}
.app-shell .tb-bulkbar-btns .tb-action{flex:none;
  white-space:nowrap;border-radius:8px;}
.app-shell .tb-bulkbar-btns .tb-action[disabled]{
  opacity:.45;cursor:default;}
/* Other actions opens as an anchored menu above the
   bar, in the menu family's own dress. */
.app-shell .tb-bulkbar-more{position:absolute;
  right:14px;bottom:calc(100% + 8px);display:flex;
  flex-direction:column;align-items:stretch;
  flex-wrap:nowrap;gap:2px;min-width:220px;
  background:var(--tb-panel);
  border:1px solid var(--tb-line);border-radius:10px;
  box-shadow:0 12px 32px var(--tb-line);
  margin:0;padding:6px;}
.app-shell .tb-bulkbar-more .tb-action{text-align:left;
  padding:6px 10px;}
.app-shell .tb-bulkbar-more .tb-action[disabled]{
  opacity:.45;cursor:default;}
/* The Digest consumer's Block And Delete (IR-11)
   wears the danger family dress beside Block sender
   and Block domain's own settled treatments. */
.app-shell #dc-act-blockdelete{
  background:var(--tb-danger);border-color:var(--tb-danger);
  color:var(--tb-panel);}
.app-shell #dc-act-blockdelete:hover:not([disabled]){
  background:color-mix(in srgb,var(--tb-danger) 85%,
    var(--tb-text));
  border-color:color-mix(in srgb,var(--tb-danger) 85%,
    var(--tb-text));color:var(--tb-panel);}
.app-shell #dc-act-blockdelete:active:not([disabled]){
  background:color-mix(in srgb,var(--tb-danger) 72%,
    var(--tb-text));
  border-color:color-mix(in srgb,var(--tb-danger) 72%,
    var(--tb-text));color:var(--tb-panel);}
.app-shell #dc-act-blockdelete[disabled]{
  background:var(--tb-line);border-color:var(--tb-line);
  color:var(--tb-muted);}
/* The Digest consumer's foot room, so the fixed bar
   never covers the last rows of its list. */
.app-shell #dc-review{margin-bottom:124px;}
/* Production patch, Nov 3, 2026, OPS-4 (Trevor immediate-release order):
   the Build Tracker tab treatment, staged and verified on the
   staging shell (6.13-6.19), carried into the production sheet
   together with the --dc-* token sheet it consumes, because the
   tracker page the owner reads is stamped with the production
   shell. Scoped to .app-shell token definitions and the
   #trk-tabs / #trk-panel selectors, which exist only on the
   tracker page. Values identical to the staging sheet. */
.app-shell{
  --dc-navy:#192D4B;
  --dc-action:#3275B9;
  --dc-action-dark:#245F9A;
  --dc-muted:#6C819B;
  --dc-line:#C5D9E9;
  --dc-band:#F0F6FA;
  --dc-bg:#F5F8FB;
  --dc-green:#2E7D32;
  --dc-hover:#EAF3FB;
  --dc-hover-soft:#EDF5FB;
  --dc-tab-inactive:#E5EFF6;
  --dc-tab-text:#617892;
  --dc-count-text:#46719B;
  --dc-count-line:#ADCBE4;
  --dc-focus:#93BEE6;
  --dc-score-text:#698097;
  --dc-meter-on:#559DD5;
  --dc-meter-mid:#E5AD25;
  --dc-meter-high:#B95656;
  --dc-meter-empty:#DFEAF3;
  --dc-badge-new-bg:#DFEEE4;
  --dc-badge-new-text:#427151;
  --dc-badge-repeat-bg:#FFF1C8;
  --dc-badge-repeat-text:#906100;
  --dc-motion:180ms ease;
}

/* Tracker tabs pointed at the Digest's own tab CSS (Trevor, Nov 3, 2026):
   the Digest disposition strip's appearance rules above are addressed to
   #dc-tabs only, so no other strip could inherit them. These twins give
   the Build Tracker strip (#trk-tabs) the identical treatment from the
   same shared stylesheet: same folder form, same selected state, same
   count chips. The Digest-specific behavior rules (overflow hiding,
   data-dctab filtering) are NOT twinned; they are not appearance. */
/* (Staging 6.17, Nov 3, 2026, OPS-4) The one behavior the twins
   take from the tracker's own settled ruling: the strip wraps.
   The Digest hides overflow tabs at phone widths (a behavior
   rule, not twinned above); the tracker may hide none of its
   thirteen views, so it stacks them in the same folder form
   instead of leaving them in one nowrap row that runs off the
   side of the panel (verified rendered on the 6.16 bytes at 390
   and 430: one row, strip scroll width 1943 against a client
   width of 304, the selected tab and Urgent out of view).
   Appearance is untouched - every value remains the Digest's. */
#trk-tabs{flex-wrap:wrap;gap:8px;}
#trk-tabs .tb-tab{flex:0 0 auto;border:1px solid var(--dc-line);border-bottom:0;border-radius:18px 18px 0 0;background:var(--dc-tab-inactive);padding:18px 15px;font-size:14px;color:var(--dc-tab-text);transition:background-color var(--dc-motion),color var(--dc-motion),box-shadow var(--dc-motion);}
#trk-tabs .tb-tab:hover{background:var(--dc-hover-soft);color:var(--dc-navy);}
#trk-tabs .tb-tab:active{background:var(--dc-line);color:var(--dc-navy);}
#trk-tabs .tb-tab.selected{background:var(--tb-panel);color:var(--dc-action);font-weight:700;box-shadow:0 -4px 0 var(--dc-action);border-bottom-color:var(--tb-panel);}
#trk-tabs .tb-count{background:var(--tb-panel);color:var(--dc-count-text);border:1px solid var(--dc-count-line);border-radius:15px;min-width:27px;padding:1px 7px;font-size:12px;font-weight:400;line-height:1.5;text-align:center;vertical-align:1px;}
#trk-tabs .tb-tab.selected .tb-count{background:var(--dc-action);color:var(--tb-panel);border-color:var(--dc-action);font-weight:700;}
#trk-tabs .tb-tab.tb-tab-danger{color:var(--tb-danger,#B3261E);}
#trk-panel{--tb-tab-envelope:var(--tb-panel);padding-top:6px;}

/* (Staging 6.18, Nov 3, 2026, OPS-4) Trevor's live review of the
   6.17 strip: the first row reads cut off at the top, and the
   selected tab does not wrap around its panel the way the
   Digest's does when an item is selected. Two Digest envelope
   behaviors the twins above had not taken. (1) Clearance: the
   Digest's envelope strip runs overflow:visible - its own
   comment records that the base strip's overflow-y clip would
   cut the selected tab's merged edge - while this strip still
   computed the base rule's overflow-y:hidden with zero top
   padding, its first-row tabs flush at the strip's top edge
   and the selected tab's outer cap clipped whenever the
   selected tab stood in the first row. The strip now takes
   the same overflow:visible, with top and bottom padding at
   the strip's own gap measure, so the first row clears the
   panel's top edge and the last row clears what follows it.
   (2) The bubble: the selected tab takes the Digest's current
   white-tab ruling form - the brand accent as an inset bar
   along the tab's top edge (inside the box, so it can never
   be clipped), the bottom border transparent and the tab
   fused into the panel below it. The outer cap the twins
   inherited from the older Digest block is retired here.
   Every value is a token the Digest itself wears; no new
   palette, no page-local styling. */
#trk-tabs{overflow:visible;padding-top:12px;padding-bottom:12px;row-gap:16px;flex-wrap:wrap;}
#trk-tabs .tb-tab.selected{box-shadow:inset 0 3px 0 var(--tb-brand);border-bottom-color:transparent;}

/* (Staging 6.19, Nov 3, 2026, OPS-4) Correction inside the
   same fix: the 6.18 inset bar took var(--tb-brand), which on
   this page computes to the platform green, while the tab's
   own label and count chip wear the Digest action blue - the
   bar read as a stray green line on a blue tab. The Digest's
   selected tab wears one accent throughout (its bar, label
   and chip are one blue in Trevor's screenshot), so the bar
   now takes var(--dc-action), the same token the twins above
   already use for the selected label and chip. */
#trk-tabs .tb-tab.selected{box-shadow:inset 0 3px 0 var(--dc-action);}
