/* Shared appearance tokens: layout and business state stay in the feature styles. */
:root {
 --ink: #183339; --muted: #526b70; --line: #dce7e4; --canvas: #f1f6f5;
 --dark: #153b34; --green: #147a5c; --mint: #c7ef99; --red: #ae403a;
 --blue: #32699b; --amber: #986012; --surface: #fff; --surface-soft: #f7faf9;
 --green-hover: #10664d; --green-soft: #e7f5ee; --green-line: #badcca;
 --blue-soft: #eaf2fb; --blue-line: #cbddeb;
 --amber-soft: #fff3df; --amber-line: #ebd5aa;
 --red-soft: #fff0ec; --red-line: #efcec7;
 --pending: #536b79; --pending-soft: #eef3f5;
 --shadow-soft: 0 3px 14px #153b3407; --shadow-hover: 0 6px 20px #153b3412;
 --focus-ring: #147a5c22; --text: var(--ink); --border: var(--line);
 --section-edge: #9bacaa; --section-heading: #e1e9e7; --section-divider: #b9c7c4; --section-hover: #d6e2de;
 --page-gutter: 14px; --page-top: 8px; --page-title: 23px;
}
/* Keep working pages beside navigation; inner readers, dialogs and print sheets retain their layout. */
.portal-shell #page-content > :is(.content,.admin-shell,.bulk-shell,.analytics-shell,.director-shell,.chat-shell,.my-actions-page,.portal-preview-shell,.worker-shell,.wa-shell) {
 margin-inline: 0;
}

/* The same starting edge for work pages with their own layout. */
#page-content > :is(.acc-shell,.my-actions-page,.training-page,.remote-help-shell,.portal-preview-shell,.shop-page,.wa-shell) {
 padding-inline: var(--page-gutter);
 padding-block-start: var(--page-top);
}
#page-content :is(.training-heading,.my-actions-heading,.acc-heading,.portal-preview-heading,.feedback-heading,.remote-help-head) {
 align-items: center;
 flex-wrap: wrap;
 gap: 6px 12px;
 margin-block: 0 9px;
}
#page-content :is(.training-heading,.my-actions-heading,.acc-heading,.portal-preview-heading,.feedback-heading,.remote-help-head) h1 {
 margin: 0;
 font-size: var(--page-title);
 letter-spacing: -.025em;
 line-height: 1.2;
}
#page-content :is(.training-heading,.my-actions-heading,.acc-heading,.feedback-heading) p,
.remote-help-shell .remote-help-note {
 margin: 3px 0 0;
 font-size: 12px;
 line-height: 1.4;
 color: var(--muted);
}
.remote-help-shell .remote-help-tools { margin-block: 9px; align-items: end; }
.remote-help-tools > .field { margin: 0; }
.portal-shell .my-actions-footnote { margin-block-start: 10px; font-size: 12px; color: var(--muted); }
.portal-shell .my-action-card { padding: 10px 12px; margin-bottom: 6px; gap: 8px 12px; border-radius: 9px; }
.my-action-card :is(h2,.my-action-description,.my-action-orders) { margin-bottom: 3px; }
.portal-shell :is(.news-list,.orders-panel,#my-actions-results) > .empty {
 padding: 16px 12px;
 text-align: start;
}
.portal-shell :is(.news-list,#my-actions-results) > .empty {
 width: min(100%, 46rem);
 border: 1px solid var(--line);
 border-radius: 9px;
 background: var(--surface);
}
.portal-shell :is(.news-list,.orders-panel,#my-actions-results) > .empty :is(h2,h3) {
 margin: 0;
 font-size: 15px;
 line-height: 1.35;
}
.portal-shell :is(.news-list,.orders-panel,#my-actions-results) > .empty p {
 margin: 3px 0 0;
 font-size: 12px;
 line-height: 1.5;
 color: var(--muted);
}
.portal-shell .empty > .btn { margin-block-start: 6px; }
@media(min-width:851px) and (pointer:fine) {
 .portal-shell :is(.training-heading-actions,.my-actions-heading,.my-action-card,.acc-heading) > .btn {
  min-height: 32px; padding: 5px 10px; border-radius: 7px; font-size: 12px;
 }
}
@media(max-width:850px) {
 :root { --page-gutter: 8px; --page-title: 20px; }
}

/* Keep the clock, balance and presence in one reachable row on phones. */
@media(max-width:600px) {
 .portal-shell .workspace .topbar {
  gap: 4px;
  min-height: 51px;
  height: auto;
  padding: 3px max(8px,env(safe-area-inset-right)) 3px max(8px,env(safe-area-inset-left));
  position: relative;
 }
 .topbar .mobile-top-brand {
  flex: 1 1 0;
  min-width: 25px;
  container: topbar-brand / inline-size;
 }
 .portal-shell .topbar > .topbar-tools {
  flex: 0 1 auto;
  max-width: calc(100% - 29px);
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px clamp(2px,.55vw,4px);
 }
 .topbar .topbar-clock-wallet, .topbar .topbar-status { gap: 2px; }
 .topbar .topbar-clock-wallet .portal-clock small { display: none; }
 .topbar .topbar-tools :is(.registry-skin-trigger,.mobile-menu-button,.online-users,.microtons-button) {
  min-width: 44px; min-height: 44px;
 }
 .topbar .online-users { justify-content: center; }
 .topbar .registry-skin-trigger { padding-inline: 5px; }
 .topbar .mobile-menu-button { padding-inline: 7px; gap: 4px; }
 .topbar .microtons-button {
  position: relative;
  isolation: isolate;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  gap: 3px;
 }
 .topbar .microtons-button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(50% - 12px) 0;
  border: 1px solid #e7ce82;
  border-radius: 14px;
  background: #fff7df;
 }
 .topbar :is(.portal-clock,.online-users-wrap) { position: static; }
 .topbar .portal-calendar-panel, .topbar .online-people-panel {
  position: absolute;
  inset: calc(100% + 3px) 8px auto auto;
 }
}
@media(max-width:420px) {
 .topbar .mobile-menu-caption { display: none; }
}
@media(max-width:365px) {
 .topbar .portal-clock-toggle { padding-inline: 1px; }
 .topbar .microtons-button { padding-inline: 2px; }
 .topbar .topbar-status:has(.online-users-wrap) { display: grid; }
 .topbar-status > .online-users-wrap, .topbar-status > .connection-lamp { grid-area: 1 / 1; }
 .topbar .topbar-status > .connection-lamp { justify-self: end; align-self: start; }
}
@container topbar-brand (max-width:88px) {
 .brand-wordmark { display: none; }
}
/* Radar identity, quiet surfaces and motion shared by all workspaces. */
.brand-mark { display: block; flex-shrink: 0; }
.brand-wordmark { line-height: 1.14; font-weight: 800; letter-spacing: .085em; }
.brand small { line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.sidebar { background-image: radial-gradient(ellipse at 0% 0%,#4f967342,transparent 65%),linear-gradient(165deg,#173f36,#112f2b); background-size: 100% 100%; }
.radar-rotor { transform-origin: 32px 32px; animation: radar-scan 12s linear infinite; }
.radar-signal { transform-box: fill-box; transform-origin: center; animation: radar-signal 4s ease-out infinite; }
.brand-mark.winter-brand { overflow:visible; pointer-events:none; }
.mobile-top-brand:has(.winter-brand) { padding-block:8px 4px; }
.winter-dial > g:first-child { stroke:#abd3d4; }
.winter-brand .radar-rotor { transform-origin:32px 32px; transform-box:view-box; }
.winter-snow-far { animation:winter-snowfall 8.6s linear infinite; }
.winter-snow-near { animation:winter-snowfall 6.4s linear infinite; }
.winter-pom { transform-box:fill-box; transform-origin:11% 5%; animation:winter-pom-sway 5.2s ease-in-out infinite; }
.winter-crystal { transform-box:fill-box; transform-origin:center; animation:winter-echo 12s ease-in-out infinite; }
.winter-brand :is(.winter-snow,.winter-pom,.winter-crystal) { animation-delay:var(--winter-phase,0s); }
@keyframes winter-snowfall {
  0% { transform:translate(0,0); }
  30% { transform:translate(1.7px,28.8px); }
  65% { transform:translate(-1.5px,62.4px); }
  100% { transform:translate(0,96px); }
}
@keyframes winter-pom-sway { 0%,100% { transform:rotate(-8deg); } 50% { transform:rotate(9deg); } }
@keyframes winter-echo { 0%,72%,100% { opacity:1; transform:scale(1); } 36%,47% { opacity:.74; transform:scale(.85); } }
/* Only the expand button sets the toolbar height. The drawing fits in the space to its left. */
.sidebar-snowman-scene {
  position:relative; flex:1 1 0; min-width:0; align-self:stretch; margin-block:-2px;
  overflow:hidden; pointer-events:none; user-select:none;
}
.sidebar-snowman-scene svg {
  position:absolute; left:0; bottom:0; display:block; width:100%; height:100%; max-height:40px;
}
/* The weather stays behind the navigation while the list scrolls. */
#sidebar-panel { isolation:isolate; --sidebar-weather-cycle:48s; }
.sidebar-content { display:contents; }
.sidebar-weather { position:absolute; inset:0; z-index:-1; overflow:hidden; contain:strict; pointer-events:none; }
.sidebar-weather svg { position:absolute; display:block; max-width:none; }
.sidebar-snowfall { position:absolute; inset:0; mask-image:linear-gradient(90deg,#000,#0009 24%,#0007 65%,#000 100%); }
.sidebar-powder {
  inset:-192px auto auto -12px; width:calc(100% + 24px); height:calc(100% + 192px);
  opacity:.58; animation:sidebar-snowfall 15s linear infinite;
}
.sidebar-flurry {
  inset:-160px auto auto -120px; width:calc(100% + 148px); height:calc(100% + 160px);
  opacity:0; animation:sidebar-gust var(--sidebar-weather-cycle) linear infinite;
}
.sidebar-crystals { inset:0; width:100%; height:100%; opacity:0; animation:sidebar-crystals var(--sidebar-weather-cycle) ease-in-out infinite; }
.sidebar-ice-eave {
  top:0; right:0; width:clamp(74px,43%,108px); height:auto;
}
.sidebar-ice-shine { opacity:0; }
@media(prefers-reduced-motion:no-preference) {
  .sidebar-ice-shine { animation:sidebar-ice-light var(--sidebar-weather-cycle) ease-in-out infinite; }
}
@keyframes sidebar-ice-light {
  0%,65%,83%,100% { opacity:0; }
  74% { opacity:.66; }
}
.sidebar-snowbanks {
  bottom:0; left:0; width:100%; height:32px;
  animation:sidebar-snowpack var(--sidebar-weather-cycle) ease-in-out infinite;
}
.sidebar-bank-front { animation:sidebar-front-settle var(--sidebar-weather-cycle) ease-in-out infinite; }
.sidebar-bank-grains { opacity:0; animation:sidebar-ground-drift var(--sidebar-weather-cycle) ease-out infinite; }
.sidebar-bank-rail { display:none; }
@keyframes sidebar-snowfall {
  0% { transform:translate(0,0); }
  33% { transform:translate(5px,63.36px); }
  67% { transform:translate(-3px,128.64px); }
  100% { transform:translate(0,192px); }
}
@keyframes sidebar-gust {
  0%,23% { opacity:0; transform:translate(-8px,0); }
  30% { opacity:.25; transform:translate(0,16px); }
  37% { opacity:.83; transform:translate(34px,58px); }
  43% { opacity:.53; transform:translate(67px,94px); }
  46% { opacity:.68; transform:translate(82px,111px); }
  54%,100% { opacity:0; transform:translate(106px,157px); }
}
@keyframes sidebar-crystals {
  0%,54% { opacity:0; transform:translate(0,-8px); }
  65% { opacity:.75; }
  76% { opacity:.45; }
  87%,100% { opacity:0; transform:translate(-3px,15px); }
}
/* Reveal the slopes from below so the crests keep their shape at every depth. */
@keyframes sidebar-snowpack {
  0%,24%,100% { transform:translateY(36%); }
  38% { transform:translateY(19%); }
  51%,66% { transform:translateY(0); }
  82% { transform:translateY(21%); }
}
@keyframes sidebar-front-settle {
  0%,35%,100% { transform:translateY(4px); }
  53%,70% { transform:translateY(0); }
}
@keyframes sidebar-ground-drift {
  0%,33%,55%,100% { opacity:0; transform:translate(0,1px); }
  38% { opacity:.78; transform:translate(3px,-1px); }
  45% { opacity:0; transform:translate(10px,-3px); }
  46% { opacity:0; transform:translate(0,1px); }
  50% { opacity:.55; transform:translate(3px,-1px); }
}
/* The measured prefix is decorative. The original word owns its name and line box. */
.sidebar-snow-word { display:inline-block; position:relative; }
.sidebar-letter-cap {
  --cap-left:.035em; --cap-width:.56em; --cap-height:.24em; --cap-level:.7em; --cap-seat:.065em;
  position:absolute; inset:0; text-align:start; white-space:pre; pointer-events:none; user-select:none;
}
.sidebar-letter-cap::before { content:attr(data-prefix); visibility:hidden; }
.sidebar-snow-baseline { display:inline-block; position:relative; vertical-align:baseline; width:0; height:0; }
.sidebar-letter-cap svg {
  display:block; position:absolute; left:var(--cap-left); bottom:calc(var(--cap-level) - var(--cap-seat));
  width:var(--cap-width); height:var(--cap-height); opacity:0; overflow:visible; transform-origin:center bottom;
  animation:sidebar-letter-snow var(--sidebar-weather-cycle) ease-in-out infinite;
  animation-delay:calc(var(--sidebar-snow-delay,0ms) + var(--sidebar-snow-lag,0s));
}
.sidebar-letter-cap.at-x-height { --cap-level:1ex; --cap-height:.20em; }
@supports (width:1cap) {
  .sidebar-letter-cap:not(.at-x-height) { --cap-level:1cap; }
}
.sidebar-letter-cap[data-shape="round"] { --cap-left:.065em; --cap-width:.49em; --cap-seat:.13em; }
.sidebar-letter-cap.at-x-height[data-shape="round"] { --cap-seat:.10em; }
.sidebar-letter-cap.at-x-height[data-shape="ledge"] { --cap-width:.46em; }
.sidebar-letter-cap[data-shape="shoulder"] { --cap-left:.105em; --cap-width:.53em; --cap-seat:.102em; }
.sidebar-letter-cap[data-shape="peak"] { --cap-left:.18em; --cap-width:.41em; --cap-seat:.10em; }
.sidebar-letter-cap.small-cap svg { width:calc(var(--cap-width) * .79); height:calc(var(--cap-height) * .86); }
#sidebar-panel .brand-wordmark { --sidebar-snow-lag:-1s; }
.brand-wordmark .sidebar-letter-cap { --cap-height:.30em; }
/* Only the outward edge of the final letter carries a pendant. Its lip stays at cap height. */
.brand-wordmark .sidebar-letter-cap[data-shape="overhang"] svg {
  left:.058em; width:.69em; height:.50em; bottom:calc(var(--cap-level) - .30em); transform-origin:center 43%;
}
.sidebar-group-title .sidebar-letter-cap { --cap-height:.20em; }
#sidebar-panel .sidebar-section:nth-of-type(even) { --sidebar-snow-lag:2s; }
@keyframes sidebar-letter-snow {
  0%,30%,96%,100% { opacity:0; transform:scaleY(.42); }
  41% { opacity:.63; transform:scaleY(.72); }
  53%,66% { opacity:1; transform:scaleY(1); }
  82% { opacity:.63; transform:scaleY(.73); }
}
@media(min-width:851px) {
  .sidebar-collapsed .sidebar-snowfall { opacity:.65; }
  .sidebar-collapsed .sidebar-ice-eave { display:none; }
  .sidebar-collapsed .sidebar-snowbanks { height:15px; }
  .sidebar-collapsed .sidebar-bank-wide { display:none; }
  .sidebar-collapsed .sidebar-bank-rail { display:inline; }
}
@media(max-width:850px) {
  .sidebar-ice-eave { right:105px; width:clamp(62px,26%,74px); mask-image:linear-gradient(to right,#000 78%,transparent); }
  .sidebar-snowbanks { height:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .sidebar-powder { opacity:.34; }
  .sidebar-snowbanks { transform:translateY(16%); }
  .sidebar-letter-cap svg { opacity:.8; }
}
@media print, (forced-colors:active) {
  .sidebar-weather,.sidebar-letter-cap,.sidebar-snowman-scene { display:none; }
}
.login-brand { position: relative; isolation: isolate; overflow: hidden; background-image: radial-gradient(ellipse at 100% 0%,#73b98e38,transparent 65%),linear-gradient(145deg,#214c3b,#112f2b); background-size: 100% 100%; }
.login-brand > :not(.login-orbit) { position: relative; z-index: 1; }
.login-brand .brand .brand-mark { width: 54px; height: 54px; }
.login-brand .brand { gap: 13px; }
.login-orbit { position: absolute; pointer-events: none; width: clamp(270px,34vw,460px); height: auto; right: -105px; bottom: -110px; opacity: .24; }
.login-brand .login-kicker { letter-spacing: .16em; font-size: 10px; }
.login-features { gap: 12px 22px; counter-reset: radar-step; border-color: #d9fa7829; }
.login-features > span { display: flex; align-items: center; gap: 8px; }
.login-features > span::before { counter-increment: radar-step; content: '0' counter(radar-step); font-size: 9px; font-weight: 600; color: #d9fa78b3; }
.login-content { background: radial-gradient(ellipse at 50% 45%,#fff,var(--canvas) 75%); }
.login-form { border-color: var(--line); box-shadow: 0 18px 55px #153b3410; }
.login-overview { display: none; }
/* A single static illustration for a spacious desktop sign-in page. */
@media(min-width:1100px) {
  .login-brand { padding: 32px clamp(28px,3.5vw,52px); }
  .login-message { padding: 12px 0 0; }
  .login-brand h1 { font-size: clamp(36px,3.2vw,42px); margin-top: 16px; }
  .login-brand p { margin-top: 16px; }
  .login-overview { display: block; margin: 22px 0 0; max-width: 560px; }
  .login-overview figcaption { margin-bottom: 11px; font-size: 12px; font-weight: 600; color: #c8dcbc; }
  .login-overview img { display: block; width: 100%; height: auto; }
  .login-features { display: none; }
  .login-orbit { opacity: .12; }
}
.loading { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 32px; color: var(--muted); font-size: 13px; }
.loading img { width: 52px; height: 52px; }
.loading-line { width: 96px; height: 3px; border-radius: 3px; overflow: hidden; background: #dfe9e2; }
.loading-line::after { content: ''; display: block; height: 100%; width: 40%; background: #52866b; border-radius: inherit; animation: radar-loading 1.4s ease-in-out infinite; }

.btn,.icon-btn,.tab,.nav-item,.director-period button,.mobile-nav-item,.desk-period,.desk-attention-item,.price-favorite { transition: background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .14s ease; }
.btn:not(:disabled):active,.icon-btn:not(:disabled):active,.tab:not(:disabled):active,.workshop-number-tile:not(:disabled):active { transform: scale(.975); }
.field input,.field textarea,.field select,.search-wrap input { transition: border-color .18s ease,box-shadow .18s ease; }
.field input:focus,.field textarea:focus,.field select:focus,.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.orders-panel,.analytics-panel,.director-panel,.task-card,.application-panel { box-shadow: 0 2px 8px #18352a03; }
.stat,.analytics-kpi,.director-kpi { box-shadow: 0 2px 8px #18352a04; }
.stat.good,.analytics-kpi.good,.director-kpi:nth-child(2) { background: linear-gradient(130deg,#f0f8f1,#fff 75%); border-color: #cfe1d3; }
.director-kpi:first-child { background: radial-gradient(ellipse at 100% 0%,#416b4770,transparent 80%),#18352a; border-color: #18352a; }
.director-kpi:first-child > span { color: #d2e2d7; }
.director-kpi:first-child > strong { color: #d9fa78; }
.director-kpi:first-child > small { color: #b3cdbe; }
.analytics-panel-head,.director-panel-head { background: #fcfdfb; }
.analytics-panel-head h2,.director-panel-head h2 { font-weight: 650; }
.workshop-number-tile { transition: background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .14s ease; }
.workshop-number-tile.done { box-shadow: inset 0 0 0 1px #93c2a333; }
/* A single surface style keeps daily screens familiar across roles. */
:root { accent-color: var(--green); }
body { -webkit-font-smoothing: antialiased; background-color: var(--canvas); }
.topbar { border-bottom-color: var(--line); }
.btn { border-radius: 10px; font-weight: 600; }
.btn.primary,.btn.green { background: linear-gradient(155deg,#198563,var(--green)); border-color: var(--green); box-shadow: 0 3px 8px #147a5c20; color: #fff; }
.btn.primary:hover,.btn.green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.tab { border-radius: 9px; }
.field input,.field textarea,.field select,.search-wrap input { border-radius: 10px; }
.task-card,.orders-panel,.analytics-panel,.director-panel,.chat-panel,.my-action-card { border-radius: 14px; }
.workshop-number-tile { border-radius: 16px; box-shadow: 0 3px 10px #18352a05; }
.workshop-number-tile.done { background: #e8f5ee; border-color: #9bc7ae; }
.sidebar .nav-item { border-radius: 9px; }
.sidebar .nav-item.active { background: #c7ef991a; color: #efffea; box-shadow: inset 3px 0 var(--mint); }
.chat-message { border-radius: 15px 15px 15px 4px; background: #f0f5f2; }
.chat-message.is-mine { border-radius: 15px 15px 4px 15px; background: #e0f1e7; }
.chat-compose textarea { border-radius: 12px; }
.chat-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.chat-heading p { margin: 0; }
.chat-unread-badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 5px; background: #d9fa78; color: #18352a; font-size: 11px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.chat-unread-badge[hidden] { display: none; }
.sidebar .chat-unread-badge { margin-left: auto; }
.sidebar-collapsed .sidebar [data-chat-link] { position: relative; }
.sidebar-collapsed .sidebar .chat-unread-badge { position: absolute; right: 2px; top: 1px; min-width: 17px; height: 17px; font-size: 9px; }
.mobile-bottom-nav { display: none; }
@media(max-width:850px) {
 .portal-shell { --mobile-nav-height: 68px; }
 .portal-shell .workspace { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
 .mobile-bottom-nav { display: flex; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: 5px max(6px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); gap: 4px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #18352a07; }
 .mobile-nav-item { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 54px; padding: 5px 2px; gap: 3px; border: 0; border-radius: 12px; background: transparent; color: #60746a; font-size: 10px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.mobile-nav-item.active { color: var(--green-hover); background: var(--green-soft); }
 .mobile-nav-item:focus-visible { outline: 3px solid #7bae92; outline-offset: -3px; }
 .mobile-nav-icon { position: relative; display: flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; }
 .mobile-nav-icon .icon { width: 22px; height: 22px; }
 .mobile-nav-icon .chat-unread-badge { position: absolute; left: 22px; top: -4px; border: 2px solid white; min-width: 21px; height: 21px; font-size: 10px; }
 .portal-shell.menu-open .mobile-bottom-nav { visibility: hidden; }
 #toast { bottom: calc(var(--mobile-nav-height,68px) + env(safe-area-inset-bottom) + 12px); }
 .chat-shell { gap: 10px; }
 .chat-panel { border-radius: 14px; }
}
.viewer-brand { display: block; flex-shrink: 0; }
.viewer-brand .brand { font-size: 14px; gap: 7px; }
.viewer-brand .brand .brand-mark { width: 30px; height: 30px; }

/* Consistent surfaces and meaningful colours across every role. */
.topbar { background: linear-gradient(180deg,#fff,#f9fcfa); }
.sidebar .nav-item { color: #c0d4cc; }
.sidebar .nav-item:hover { background-color: #ffffff0c; color: #f1ffef; }
.sidebar .nav-item.active { color: #efffea; }
.sidebar .nav-label,.sidebar .user-role { color: #a6c1b5; }
.sidebar-bottom { border-top-color: #ffffff16; }
.sidebar .avatar { background: #395e4e; color: var(--mint); }
.user-avatar { position: relative; display: inline-grid; flex: none; place-items: center; overflow: hidden; border-radius: 50%; line-height: 1; }
.user-avatar img, .avatar-preview [data-avatar-new] img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-avatar img { position: absolute; inset: 0; background: var(--surface,#fff); }
.user-avatar img[hidden], .avatar-preview [data-avatar-new][hidden], .avatar-form [data-avatar-remove][hidden] { display: none; }
.avatar-user-row, .avatar-profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar-profile { flex-wrap: wrap; padding-bottom: 10px; }
.avatar-profile > div, .avatar-user-row > div { min-width: 0; overflow-wrap: anywhere; }
.avatar-profile .user-login, .avatar-user-row .user-login { margin: 0; }
.avatar-profile .btn { margin-inline-start: auto; }
.avatar-profile .user-avatar, .avatar-user-row .user-avatar, .avatar-preview .user-avatar, .avatar-preview [data-avatar-new] { background: #e2efe8; color: #275b41; font-weight: 650; }
.avatar-profile .user-avatar { width: 44px; height: 44px; font-size: 18px; }
.workshop-shell .workshop-account > .user-avatar { display: inline-grid; width: 26px; height: 26px; background: #e2efe8; color: #275b41; }
#avatar-dialog { width: min(396px,calc(100% - 24px)); }
.avatar-form .dialog-body { display: grid; gap: 14px; }
.avatar-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar-person-name { display: grid; flex: 1; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.avatar-person-name small, .avatar-personal small { color: var(--muted); font-size: 12px; }
.avatar-person [data-avatar-remove] { flex: none; min-height: 40px; }
.avatar-preview { position: relative; display: flex; flex: none; }
.avatar-preview .user-avatar, .avatar-preview [data-avatar-new] { width: 60px; height: 60px; font-size: 24px; }
.avatar-preview [data-avatar-new] { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; overflow: hidden; font-style: normal; }
.avatar-library { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.avatar-library legend { padding: 0; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.avatar-packs, .avatar-options { display: grid; gap: 4px; }
.avatar-packs { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 3px; border-radius: 9px; background: var(--surface-2,#edf4ef); }
.avatar-packs button, .avatar-choice { min-width: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.avatar-packs button { min-height: 34px; padding: 4px 2px; font-size: 12px; }
.avatar-packs button[aria-pressed=true] { border-color: var(--green-line); background: var(--surface,#fff); color: var(--green); font-weight: 650; }
.avatar-packs button[hidden], .avatar-pack-offer[hidden] { display: none; }
.avatar-packs button small { display: block; font-size: 10px; line-height: 1.2; color: var(--muted); }
.avatar-pack-offer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.avatar-pack-offer small { color: var(--muted); font-size: 12px; }
.avatar-pack-offer .btn { min-height: 40px; }
.avatar-choice:disabled { opacity: 1; cursor: default; }
.avatar-options { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 7px; }
.avatar-choice { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 6px 1px 4px; font-size: 12px; line-height: 1.2; }
.avatar-tile { position: relative; display: block; width: min(52px,100%); aspect-ratio: 1; border-radius: 50%; }
.avatar-tile img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.avatar-tile > span { display: none; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--green); color: white; font-size: 12px; line-height: 1; }
.avatar-choice[aria-pressed=true] { color: var(--green); font-weight: 650; }
.avatar-choice[aria-pressed=true] .avatar-tile { outline: 2px solid var(--green); outline-offset: 2px; }
.avatar-choice[aria-pressed=true] .avatar-tile > span { display: grid; }
.avatar-library button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
@media (hover:hover) { .avatar-choice:not(:disabled):hover, .avatar-packs button:not(:disabled):hover { background: var(--green-soft); } }
@media (max-width:600px) { .avatar-packs button { min-height: 44px; } }
@media (max-height:620px) {
 #avatar-dialog .dialog-body { gap: 8px; padding-block: 8px; }
 .avatar-preview .user-avatar, .avatar-preview [data-avatar-new] { width: 46px; height: 46px; font-size: 21px; }
 .avatar-library legend { margin-bottom: 4px; }
}
.avatar-personal { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.avatar-file { position: relative; overflow: hidden; cursor: pointer; }
.avatar-file:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.avatar-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avatar-message { margin: 0; font-size: 13px; }
.avatar-message:empty { display: none; }
.sidebar .nav-item .count { background: #ffffff0e; color: #d9e9e0; }
.sidebar .nav-item.active .count { background: #c7ef9924; color: #efffea; }
.sidebar :is(button,a,summary):focus-visible { outline-color: var(--mint); outline-offset: -2px; }
.btn.soft,.tab.active,.filter-tag.selected,.director-period button.selected { background: var(--green-soft); border-color: var(--green-line); color: var(--green-hover); }
.btn.danger,.text-btn.danger,.form-error,.overdue,.desk-overdue { color: var(--red); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline-color: var(--green); }
::selection { background: #cdeedd; color: #153b34; }
:is(.orders-panel,.analytics-panel,.director-panel,.application-panel,.admin-panel,.chat-panel,.calculation-card,.price-detail,.desk-recent-list,.desk-tip,.notification-event-group,.my-action-card) { border-color: var(--line); box-shadow: var(--shadow-soft); }
:is(.analytics-panel-head,.director-panel-head,.dialog-head,.dialog-footer) { background: var(--surface-soft); border-color: var(--line); }

/* Section boundaries belong to the workspace, outside the rows and status indicators. */
@media screen {
 #page-content { --section-inset: 12px; }
 #page-content:not([data-registry-skin]) .orders-panel,
 #page-content[data-registry-skin="current"] :is(.workshop-output,.workshop-crew,.painting-color-queue),
 #page-content :where(
  .desk-compare,.company-dashboard > .desk-movement,.company-dashboard > .company-managers,
  .desk-recent-list,.desk-shop-table,.desk-report-panel,.analytics-panel,.director-panel,.wa-panel,
  .cash-card,.acc-filters,.acc-table-wrap,.acc-order-summary,.plan-load-panel,
  .paint-stock-panel,.paint-inventory-list,.paint-inventory-card,.paint-history,
  .rq-card,.price-detail,.excel-settings,.bulk-scroll,.notification-settings-panel,
  .feedback-compose,.feedback-inbox,.chat-panel,.training-library,.application-guide,.application-qr,
  .shop-product:not(:hover),.shop-pack,.news-item:not(.is-unread),.my-action-card,
  .portal-preview-stage,.remote-help-screen,.server-card
 ), #page-content #calc-queue-results {
  border-color: var(--section-edge);
 }
 #page-content :is(.counterparties-page > .panel,.office-docs-page > .panel,.bonus-panel,.plan-queue-panel) {
  border: 1px solid var(--section-edge);
  border-radius: 9px;
  background: var(--surface);
 }
 #page-content .cash-entry {
  border-inline-color: var(--section-edge);
  border-bottom-color: var(--section-edge);
 }
 #page-content .desk-attention-block:not(:has(.has-orders)) { border-color: var(--section-edge); }

 /* A single heading band per panel. Filters and table rows keep their own visual states. */
 #page-content :where(
  .desk-compare > .desk-compare-heading,.desk-attention-block > header,.company-dashboard > :is(.desk-movement,.company-managers) > .desk-section-heading,
  .cash-entry > .cash-entry-heading,.cash-analytics > .cash-analytics-heading,.acc-order-summary > header,
  .wa-panel > header,.price-detail > .price-product-heading,.plan-queue-panel > .plan-queue-heading,
  .analytics-panel > .analytics-panel-head,.analytics-customers > summary,.director-panel > .director-panel-head,
  .desk-report-panel > h3,.desk-shop-table > .desk-shop-columns,.cash-card > :is(h2,header,.cash-summary-heading),
  .rq-card > .rq-card-header,.counterparties-page .panel > .counterparty-toolbar,.office-docs-page .panel > .office-doc-filters,
  .paint-stock-panel > .paint-summary,.paint-page .panel > .paint-section-heading,
  .notifications-page .orders-panel > .notification-toolbar,.calculations-page .orders-panel > .calculation-toolbar,
  .excel-preview > .between:first-child,.bonus-panel > .bonus-tabs,.feedback-compose > summary,.feedback-inbox > .feedback-inbox-head,
  .server-card > :is(.server-card-heading,.server-block-heading)
 ) {
  background: var(--section-heading);
  border-block-end: 1px solid var(--section-divider);
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
 }
 #page-content :is(.analytics-customers,.feedback-compose):not([open]) > summary {
  border-block-end: 0;
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
 }
 #page-content :is(.staff-directory,.acc-table,.price-table,.bulk-table,.operations-table,.plan-loads) > thead > tr > th {
  background-color: var(--section-heading);
  border-bottom-color: var(--section-divider);
 }
 #page-content :is(.office-doc-toolbar,.paint-controls) { border-bottom-color: var(--section-divider); }
 #page-content .chat-compose { border-top-color: var(--section-divider); }
 #page-content .notification-event-group:has([aria-expanded=true]) > .notification-event-heading {
  background: var(--section-heading);
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
 }

 /* Bring the title to the edges of panels that also have padded content. */
 #page-content :where(
  .desk-compare,.desk-attention-block,.company-dashboard > .desk-movement,.company-dashboard > .company-managers,
  .cash-entry,.cash-analytics,.acc-order-summary,.wa-panel,.price-detail:has(> .price-product-heading),.plan-queue-panel,.feedback-compose
 ) {
  padding: 0 var(--section-inset) 8px;
 }
 #page-content :where(
  .desk-compare > .desk-compare-heading,.desk-attention-block > header,.company-dashboard > :is(.desk-movement,.company-managers) > .desk-section-heading,
  .cash-entry > .cash-entry-heading,.cash-analytics > .cash-analytics-heading,.acc-order-summary > header,
  .wa-panel > header,.price-detail > .price-product-heading,.plan-queue-panel > .plan-queue-heading,.feedback-compose > summary
 ) {
  margin: 0 calc(0px - var(--section-inset)) 6px;
  padding: 6px var(--section-inset);
 }
 #page-content .plan-queue-heading > h2 { margin-block: 0; }
 #page-content .desk-attention-block:has(.has-orders) > header {
  background: var(--amber-soft);
  border-bottom-color: var(--amber-line);
 }
 #page-content .acc-order-summary { background: var(--surface); }
 #page-content .feedback-compose:not([open]) { padding-bottom: 0; }
 #page-content .feedback-compose > summary { min-height: 36px; margin-bottom: 0; }

 /* Free-standing headings need a divider, without another frame around the list. */
 #page-content :is(
  .desk-recent > .desk-section-heading,.desk-period-report > .desk-section-heading,.desk-shop-report > .desk-section-heading,
  .shop-section-heading,.training-task-heading,.rq-card-grid h3,.news-toolbar
 ) {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--section-divider);
 }
}
@media screen and (max-width:760px) {
 #page-content { --section-inset: 9px; }
}
@media screen and (max-width:760px), screen and (pointer:coarse) {
 #page-content :is(.analytics-customers,.feedback-compose) > summary { min-height: 44px; align-content: center; }
}
@media screen and (hover:hover) {
 #page-content :is(.analytics-customers,.feedback-compose) > summary:hover { background: var(--section-hover); }
}
dialog { box-shadow: 0 22px 70px #102f2b2b; }
dialog::backdrop { background: #102f2b66; }
.registry-table th,.price-table th,.bulk-table th { background: var(--surface-soft); color: var(--muted); }
.registry-table tbody tr:hover td,.desk-order:hover,.price-table tr.selected td { background: #edf7f2; }
.desk-period { background: linear-gradient(130deg,#edf8f2,#fff 75%); border-color: var(--green-line); box-shadow: var(--shadow-soft); }
.desk-period-title,.desk-order-number,.price-product-link,.price-info-block h3,.price-help summary { color: var(--dark); }
.desk-period-money strong,.price-quick-total output,.price-quote-row-price strong,.price-quote-footer strong { color: var(--green-hover); }
.price-product-link:hover { color: var(--green); }
.price-view-options .filter-tag.selected { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.price-view-options>span { color: var(--muted); }
.price-quote-identity .price-quote-condition { color: var(--amber); }
.desk-period-title>span,.desk-tip ul,.price-info-block,.price-table small,.price-quote-hint,.price-quote-date,.price-quote-identity small,.price-quote-qty,.price-quote-row-price span,.price-quote-footer span { color: var(--muted); }
.desk-attention-item.has-orders[data-kind=overdue],.desk-attention-item.has-orders[data-kind=blocked] { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.desk-attention-item.has-orders[data-kind=done],.price-quote-open,.price-retail-badge,.price-variant:has(input:checked) { color: var(--green-hover); border-color: var(--green-line); background: var(--green-soft); }
.price-variant input { accent-color: var(--green); }
.price-favorite.selected { color: var(--amber); }
.pill.pending,.stage-token.pending,.desk-order-status,.registry-ready-stage.pending { color: var(--pending); background: var(--pending-soft); border-color: var(--line); }
.pill.working,.stage-token.working,.registry-ready-stage.working { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }
.pill.done,.pill.shipped,.stage-token.done,.desk-status-done,.desk-status-shipped,.registry-ready-stage.done { color: var(--green-hover); background: var(--green-soft); border-color: var(--green-line); }
.pill.blocked,.stage-token.blocked,.desk-status-blocked,.registry-ready-stage.blocked { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.pill.partial,.pill.urgent,.desk-status-partial { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.workshop-number-tile { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-soft); }
.workshop-number-tile.working { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); }
.workshop-number-tile.done { background: var(--green-soft); border-color: var(--green-line); color: var(--green-hover); }
.workshop-number-tile.blocked { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.workshop-marking-toggle.is-active { background: var(--green-soft); border-color: var(--green-line); }
.mobile-order-row.is-selected { background: var(--green-soft); }
.analytics-kpi.good,.stat.good { background: linear-gradient(130deg,var(--green-soft),#fff); border-color: var(--green-line); }
.analytics-kpi.alert,.stat.alert { background: linear-gradient(130deg,var(--red-soft),#fff); border-color: var(--red-line); }
.score-counter { background: linear-gradient(145deg,#fff,#f2faf6); border-color: var(--green-line); color: var(--dark); box-shadow: var(--shadow-soft); }
.score-period-today .score-counter { background: radial-gradient(ellipse at top right,#4b8b6259,transparent 75%),linear-gradient(145deg,#214c3b,#153b34); border-color: #2e5c45; box-shadow: 0 6px 22px #153b3417; color: #eaffd3; }
.score-counter-content>small { color: var(--muted); }
.score-period-today .score-counter-content>small { color: #c4d9cc; }
.score-mini-chart { background: var(--surface-soft); border-color: var(--line); }
.score-mini-chart h3 { color: var(--muted); }
.mini-grid,.chart-grid { stroke: var(--line); }
.chart-label { fill: var(--muted); }
.mini-bar { fill: #a8d9c0; }.mini-bar.is-today { fill: var(--green); }.mini-future { fill: var(--line); }
.mini-line { stroke: var(--green); }.mini-area { fill: #147a5c12; }
.chart-line.received,.money-unknown.received { stroke: var(--blue); }
.chart-line.ready,.money-unknown.ready { stroke: var(--green); }
.chart-line.shipped,.money-unknown.shipped { stroke: var(--amber); }
.chart-dot.received,.money-manager-fill.received { fill: var(--blue); }
.chart-dot.ready,.money-manager-fill.ready { fill: var(--green); }
.chart-dot.shipped,.money-manager-fill.shipped { fill: var(--amber); }
.chart-legend .received::before,.chart-legend .working::before { background: var(--blue); }
.chart-legend .ready::before { background: var(--green); }.chart-legend .shipped::before { background: var(--amber); }
.chart-legend .blocked::before { background: var(--red); }
.load-segment.working { fill: var(--blue); background: var(--blue); }.load-segment.blocked { fill: var(--red); background: var(--red); }
.money-value { border-color: var(--blue); }.money-value.ready { border-color: var(--green); }.money-value.shipped { border-color: var(--amber); }
.chat-message { background: var(--pending-soft); }.chat-message.is-mine { background: var(--green-soft); }
.chat-unread-badge { background: var(--mint); color: var(--dark); }
.notification-row.is-unread { border-left-color: var(--green); background: var(--green-soft); }
.notification-new { color: var(--green-hover); background: var(--green-soft); }
.connection:not(.offline):not(.stale)::before { background: var(--green); }
.calculation-create { color: var(--blue); }

/* Registry polish: clearer hierarchy without turning rows into large cards. */
.manager-status-tabs .tab { font-weight: 550; }
.manager-status-tabs .tab.active { font-weight: 650; }
.manager-status-tabs .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; border-radius: 5px; background: #526b7009; font-variant-numeric: tabular-nums; }
.manager-status-tabs .tab.active .tab-count { background: #147a5c13; color: var(--green-hover); }
.manager-status-tabs .tab.has-problem:not(.active) .tab-count { background: var(--red-soft); color: var(--red); }
.registry-table .order-number { color: var(--dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.registry-table .order-amount,.registry-compact-detail-amount strong { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.registry-table .order-row:focus-within td { background: #f0f8f4; }
.registry-table .order-row.is-selected td { background: var(--green-soft); }
.registry-table .order-row.is-selected td:first-child { box-shadow: inset 3px 0 var(--green); }
.registry-table .order-row.is-overdue td:first-child,.registry-table .order-row.is-blocked td:first-child { box-shadow: inset 3px 0 var(--red); }
.registry-table .registry-card-open { color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); }
.registry-table .registry-card-open:hover { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.registry-table .registry-sort-heading.is-sorted { color: var(--green-hover); }
.registry-filter-chips { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.registry-filter-chip { display: inline-flex; align-items: center; gap: 8px; max-width: min(280px,100%); min-height: 28px; padding: 4px 8px; border: 1px solid var(--green-line); border-radius: 7px; background: var(--green-soft); color: var(--green-hover); font-size: 11px; line-height: 1.3; text-align: left; }
.registry-filter-chip>span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.registry-filter-chip>span:last-child:not(:first-child) { flex-shrink: 0; font-size: 15px; line-height: 1; }
button.registry-filter-chip:hover { background: #d7ede1; border-color: #a2cdb7; }
.registry-comment-count { font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; }
.registry-compact-comment-button.has-comments { color: var(--green-hover); border-color: var(--green-line); background: var(--green-soft); }
.registry-compact-comment-button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto; width: auto; min-width: 24px; padding: 3px 4px; }
.registry-compact-comment-preview { color: var(--muted); }
.registry-sort-responsive .registry-compact-sort-symbol { display: none; }
@media(min-width:851px) {
 .orders-panel>.simple-board-toolbar { padding: 7px 10px; gap: 6px 10px; }
 .orders-panel>.simple-board-toolbar .manager-status-tabs { gap: 3px; }
 .orders-panel>.simple-board-toolbar .manager-status-tabs .tab { min-height: 30px; padding: 5px 7px; font-size: 12px; }
 .orders-panel>.simple-board-toolbar .manager-status-tabs .tab-count { min-width: 18px; padding: 1px 4px; font-size: 10px; }
 .orders-panel>.simple-board-toolbar .search-wrap input,.orders-panel>.simple-board-toolbar .registry-sort-control select { height: 34px; min-height: 34px; border-radius: 8px; }
 .orders-panel>.simple-board-toolbar .registry-ready-toggle { min-height: 34px; border-radius: 8px; }
 .orders-panel>.simple-board-toolbar .board-options>summary { min-height: 28px; font-size: 11px; }
 .registry-table th { font-size: 11px; }
 .registry-table.registry-compact-table td.registry-cell { padding: 5px 8px; font-size: 12px; line-height: 1.35; }
 .registry-compact-table .order-number { font-size: 13px; min-height: 24px; }
 .registry-compact-customer { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 12px; line-height: 1.35; margin-top: 2px; }
 .registry-compact-detail { font-size: 11px; line-height: 1.4; }
 .registry-compact-detail-amount strong { font-size: 12px; }
 .registry-compact-table .stage-token { height: 20px; font-size: 10px; }
 .registry-compact-status .pill { font-size: 11px; padding: 2px 5px; }
 .registry-compact-table { --registry-compact-fixed: 80px; }
 .registry-compact-table[data-has-selection="true"] { --registry-compact-fixed: 112px; }
 .registry-compact-table[data-has-invoice="true"] { --registry-compact-fixed: 170px; }
 .registry-compact-table[data-has-invoice="true"][data-has-selection="true"] { --registry-compact-fixed: 202px; }
 .registry-compact-table .registry-actions-col { width: 80px; }
 .registry-table .row-actions { gap: 4px; }
 .registry-table .row-actions .icon-btn,.registry-table .row-close-btn { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; padding: 6px; }
 .registry-table:not(.registry-compact-table) .row-close-btn { width: auto; }
 .registry-table .row-actions .icon { width: 16px; height: 16px; }
}
@media(max-width:850px),(pointer:coarse) {
 .registry-filter-chip { min-height: 44px; padding: 8px 10px; font-size: 12px; }
 .board-active-filters { align-items: flex-start; }
}
@media(max-width:850px) {
 .registry-phone-list .mobile-row-customer { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; }
 .orders-panel .simple-search-line>.search-wrap { flex: 1 1 150px; min-width: 0; }
 .orders-panel>.simple-board-toolbar .simple-search-line>.registry-sort-responsive { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; max-width: 44px; min-height: 44px; border: 1px solid var(--green-line); border-radius: 9px; background: var(--green-soft); color: var(--green-hover); }
 .registry-sort-responsive .registry-compact-sort-symbol { display: block; font-size: 23px; line-height: 1; }
 .orders-panel>.simple-board-toolbar .registry-sort-responsive select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 44px; opacity: 0; padding: 0; cursor: pointer; }
 .registry-sort-responsive:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
}

/* Entrance motion happens on navigation, never on an unchanged polling cycle. */
.page-enter { animation: radar-page .28s cubic-bezier(.2,.75,.25,1); }
dialog[open] { animation: radar-dialog .24s cubic-bezier(.2,.75,.25,1); }
dialog[open]::backdrop { animation: radar-backdrop .2s ease-out; }
dialog.detail-dialog[open] { animation-name: radar-detail; }
#toast.visible { animation: radar-toast .2s ease-out; }
.analytics-trend .chart-line,.director-trend .chart-line { animation: none; }
.results-enter .chart-line:not(.shipped) { stroke-dasharray: 1; animation: radar-chart .7s ease-out both; }
.results-enter .chart-line.ready { animation-delay: .1s; }
.results-enter .chart-dot { animation: radar-reveal .45s ease-out both; }
.results-enter .analytics-kpi,.results-enter .director-kpi { animation: radar-page .3s ease-out both; }
.results-enter :is(.analytics-kpi,.director-kpi):nth-child(2) { animation-delay: .04s; }
.results-enter :is(.analytics-kpi,.director-kpi):nth-child(3) { animation-delay: .08s; }
.results-enter :is(.analytics-kpi,.director-kpi):nth-child(4) { animation-delay: .12s; }
.desk-tip[open]>summary,.price-help[open]>summary { color: var(--green-hover); }
.desk-tip[open]>ul,.price-help[open]>ul,.price-help[open]>p { animation: radar-reveal .22s ease-out; }

/* Instrument details stay inside the cards, leaving text and working rows in place. */
:is(.desk-period,.analytics-kpi,.director-kpi,.wa-kpi,.score-counter,.bonus-stats>div) {
  position: relative;
  --metric-ornament: #147a5c10;
}
:is(.desk-period,.analytics-kpi,.director-kpi,.wa-kpi,.score-counter,.bonus-stats>div)::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 100% 0,transparent 33px,var(--metric-ornament) 34px 35px,transparent 36px 49px,var(--metric-ornament) 50px 51px,transparent 52px);
}
.score-period-today .score-counter,.director-kpi:first-child { --metric-ornament: #c7ef9919; }
.analytics-kpi.alert { --metric-ornament: #ae403a10; }
.wa-kpi.remaining { --metric-ornament: #32699b10; }
.desk-period,.wa-kpi,.bonus-stats>div { box-shadow: 0 3px 12px #153b3406,inset 0 1px #ffffffb3; }
.sidebar .brand-mark { filter: drop-shadow(0 0 7px #c7ef9920); }
.sidebar .nav-item.active .icon { color: var(--mint); }
.training-tasks button { background-image: linear-gradient(115deg,#f1f8f4,transparent 65%); transition: background-color .18s,border-color .18s,box-shadow .18s; }
.training-lesson[open]>summary strong { color: var(--green-hover); }
.training-lesson[open]>summary::after { background: var(--green); border-color: var(--green); color: #fff; }
.training-lesson>summary::after { transition: background-color .18s,border-color .18s,color .18s; }
.desk-tip[open],.price-help[open] { border-color: var(--green-line); }
.chat-compose:focus-within { border-color: var(--green-line); }
#toast { border: 1px solid #ffffff38; box-shadow: 0 8px 28px #153b3426; }
#toast, .dialog-toast { pointer-events: none; }
#toast button, .dialog-toast button { pointer-events: auto; }

/* Only small, stable groups enter with the page; lists and readiness tiles stay still. */
.page-enter :is(.desk-totals,.scoreboard-periods,.bonus-stats)>:is(.desk-period,.score-period,div),
.page-enter .training-manager-start,.page-enter .training-worker-start {
  animation: radar-instrument .34s cubic-bezier(.2,.75,.25,1) backwards;
}
.page-enter .desk-period:nth-of-type(2),.page-enter .score-period:nth-child(2),
.page-enter .bonus-stats>div:nth-child(2) { animation-delay: .05s; }
.page-enter .bonus-stats>div:nth-child(3) { animation-delay: .08s; }
.page-enter .bonus-stats>div:nth-child(4) { animation-delay: .11s; }
@keyframes radar-instrument { from { opacity: .65; } to { opacity: 1; } }
@media(min-width:1100px) {
  .portal-shell #page-content {
    background-image: radial-gradient(circle at 100% 0,transparent 139px,#147a5c06 140px 141px,transparent 142px 209px,#147a5c05 210px 211px,transparent 212px),radial-gradient(ellipse 460px 280px at 100% 0,#c7ef9912,transparent);
    background-repeat: no-repeat; background-size: 580px 340px; background-position: top right;
  }
}
@media(hover:hover) and (pointer:fine) {
  .training-tasks button:hover { box-shadow: var(--shadow-hover); }
  .training-tasks button:hover>span:last-child { color: var(--green-hover); }
}

@media(hover:hover) and (pointer:fine) {
  .btn.primary:not(:disabled):hover,.btn.green:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 15px #147a5c26; }
  .btn.primary:not(:disabled):active,.btn.green:not(:disabled):active { transform: scale(.975); }
  .stat:hover,.workshop-number-tile:not(:disabled):hover,.desk-period:hover,.desk-attention-item:hover { border-color: #9bc8b3; box-shadow: var(--shadow-hover); }
  .price-favorite:not(:disabled):hover { transform: scale(1.08); }
}
@media(max-width:850px) {
  .login-orbit { display: none; }
  .login-brand .brand .brand-mark { width: 40px; height: 40px; }
  .portal-shell.menu-open .sidebar { animation: radar-menu .2s ease-out; }
  .menu-open .mobile-nav-backdrop { animation: radar-backdrop .2s ease-out; }
}
@keyframes radar-scan { to { transform: rotate(360deg); } }
@keyframes radar-signal { 0%,65%,100% { transform: scale(1); opacity: .25; } 30% { transform: scale(1.6); opacity: .05; } }
@keyframes radar-loading { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes radar-page { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes radar-dialog { from { opacity: .5; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes radar-detail { from { opacity: .65; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes radar-menu { from { transform: translateX(-18px); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes radar-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes radar-toast { from { opacity: 0; transform: translate(-50%,6px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes radar-chart { from { stroke-dashoffset: 1; opacity: .5; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes radar-reveal { from { opacity: 0; } to { opacity: 1; } }
.motion-paused *,.motion-paused *::before,.motion-paused *::after { animation-play-state: paused !important; }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:active,.btn:hover,.icon-btn:active,.tab:active,.workshop-number-tile:active,.price-favorite:hover { transform: none !important; }
  .results-enter .chart-line:not(.shipped) { stroke-dasharray: none; }
}
.list-pagination { flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 5px 9px; font-size: 12px; font-variant-numeric: tabular-nums; }
.list-pagination > div { gap: 6px; }
.list-pagination .btn { min-height: 30px; padding: 4px 8px; }
.list-page-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:400;color:var(--muted)}
.list-page-size select{width:auto;min-width:60px;min-height:30px;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--text);font:inherit}
.row-close-btn{background:#fff;border-color:var(--line);color:var(--green)}
.row-close-btn:hover{background:#eef6f3;border-color:#8fb5a7}
@media(max-width:850px),(pointer:coarse){.list-pagination .btn,.list-page-size select{min-height:44px}.list-page-size select{font-size:16px}}

/* Completed orders remain readable; selection and warnings retain their own marks. */
:root .registry-table .order-row.is-ready:not(.is-selected) td { background: #e5f4e9; }
:root .registry-table .order-row.is-ready:not(.is-selected):hover td,
:root .registry-table .order-row.is-ready:not(.is-selected):focus-within td { background: #d8eddf; }
:root .registry-table .order-row.is-ready:not(.is-selected):not(.is-duplicate):not(.is-overdue):not(.is-blocked) td:first-child { box-shadow: inset 3px 0 #6a9f7b; }
:root .registry-mobile-card.is-ready:not(.is-selected),
:root .mobile-order-row.is-ready:not(.is-selected) { background: #e5f4e9; border-color: #c9dfcf; }
:root .mobile-order-row.is-ready:not(.is-selected):not(.is-overdue):not(.is-blocked) { border-left-color: #6a9f7b; }

/* Some production areas are complete; use a quiet yellow without changing row sizes. */
:root .registry-table .order-row.is-partially-ready:not(.is-selected) td { background: #fff8e5; }
:root .registry-table .order-row.is-partially-ready:not(.is-selected):hover td,
:root .registry-table .order-row.is-partially-ready:not(.is-selected):focus-within td { background: #fbf0d4; }
:root .registry-table .order-row.is-partially-ready:not(.is-selected):not(.is-duplicate):not(.is-overdue):not(.is-blocked) td:first-child { box-shadow: inset 3px 0 #c9b477; }
:root .registry-mobile-card.is-partially-ready:not(.is-selected),
:root .mobile-order-row.is-partially-ready:not(.is-selected) { background: #fff8e5; border-color: #e8dfc5; }
:root .mobile-order-row.is-partially-ready:not(.is-selected):not(.is-overdue):not(.is-blocked) { border-left-color: #c9b477; }

/* Mobile production: compact copy and spacing, with full-size touch targets. */
.registry-work-filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--green); max-width: 42%; }
@media (max-width: 850px) {
 .workshop-shell .worker-heading { margin: 6px 0 8px; gap: 8px; }
 .workshop-shell .workshop-kicker { font-size: 10px; letter-spacing: .02em; line-height: 1.2; }
 .workshop-shell .worker-heading h1 { margin: 2px 0; font-size: 21px; line-height: 1.2; }
 .workshop-shell .worker-heading .workshop-mobile-user { margin-top: 2px; font-size: 11px; line-height: 1.3; }
 .workshop-shell .workshop-area-picker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; }
 .workshop-shell .workshop-area-picker select { flex: 1; min-width: 0; min-height: 44px; height: 44px; padding: 6px 9px; font-size: 16px; }
 .workshop-tiles-shell .workshop-output {
  position: relative; min-height: 44px; max-width: 42rem; margin: 0 0 6px; padding: 5px 10px 6px; border-radius: 8px;
 }
 .workshop-tiles-shell .workshop-output header { font-size: 12px; line-height: 1.4; margin-bottom: 3px; }
 .workshop-tiles-shell .workshop-output header .text-btn { min-height: 32px; padding: 3px 5px; font-size: 12px; }
 .workshop-tiles-shell #workshop-output-values { grid-template-columns: 1fr; gap: 2px; }
 .workshop-tiles-shell #workshop-output-values > div {
  grid-template-columns: minmax(78px,.65fr) minmax(0,1.45fr);
  grid-template-areas: "period work" "orders work";
  gap: 0 8px; align-items: center; padding: 3px 0; border-top: 1px solid var(--line); line-height: 1.3;
 }
 .workshop-tiles-shell #workshop-output-values > div > span { grid-area:period; }
 .workshop-tiles-shell #workshop-output-values > div > strong { grid-area:orders; }
 .workshop-tiles-shell .workshop-output-work { grid-area:work; display:flex; align-items:center; gap:2px 8px; }
 .workshop-tiles-shell .workshop-output .workshop-result-link { min-height:30px; }
 .workshop-tiles-shell #workshop-output-values :is(strong,small,span) { font-size: 11px; overflow-wrap: anywhere; }
 .workshop-tiles-shell #workshop-output-values strong { color: var(--ink); }
 .workshop-tiles-shell .workshop-queue-actions {
  display: grid; align-items: start; gap: 4px 6px; max-width: 42rem; margin-bottom: 5px;
 }
 .workshop-queue-actions:has(.workshop-crew:not([open])) { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); }
 .workshop-queue-actions .workshop-crew { margin: 0; padding: 0 8px; border-radius: 8px; }
 .workshop-queue-actions .workshop-crew summary {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center;
  gap: 1px 6px; min-height: 44px; padding-block: 3px; font-size: 12px; line-height: 1.2;
 }
 .workshop-queue-actions .workshop-crew summary::before { grid-row: 1 / 3; align-self: center; color: var(--green); }
 .workshop-queue-actions .workshop-crew summary span { grid-column: 2; margin: 0; font-size: 11px; }
 .workshop-queue-actions .workshop-crew:not([open]) summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .workshop-queue-actions .workshop-crew[open] { padding-bottom: 6px; }
 .workshop-shell .workshop-marking-control { min-width: 0; margin: 0; }
 .workshop-shell .workshop-marking-toggle { min-height: 44px; padding: 8px 10px; gap: 9px; font-size: 13px; line-height: 1.3; }
 .workshop-queue-actions .workshop-marking-toggle { padding: 5px 8px; border-radius: 8px; font-size: 12px; }
 .workshop-shell #workshop-mode-hint { grid-column: 1/-1; font-size: 11px; line-height: 1.35; margin: 1px 2px 0; }
 .workshop-shell .worker-controls { gap: 6px; margin-bottom: 6px; }
 .workshop-shell .worker-controls .tabs { gap: 4px; }
 .workshop-shell .worker-controls .tab { min-height: 44px; padding: 6px; font-size: 11px; line-height: 1.25; }
 .workshop-shell .worker-controls .tab-count { font-size: 10px; }
 .workshop-shell .worker-controls input { height: 44px; font-size: 16px; }
 .workshop-shell .workshop-search-line { gap: 6px; }
 .workshop-shell .registry-work-tools { margin-bottom: 6px; }
 .workshop-shell .registry-work-filters>summary { min-height: 44px; font-size: 11px; gap: 6px; }
 .workshop-shell .registry-sort-compact select { inset: -1px; width: 44px; height: 44px; min-height: 44px; }
 .workshop-shell .registry-filter-fields { gap: 6px 8px; padding: 6px 0 8px; font-size: 11px; }
 .workshop-shell .registry-filter-fields>label { font-size: 11px; }
 .workshop-shell .registry-filter-fields :is(select,input:not([type=checkbox])) { min-width: 0; width: 100%; min-height: 44px; padding: 6px 8px; font-size: 16px; }
 .workshop-shell .registry-filter-fields .text-btn { min-height: 44px; }
 .workshop-shell .workshop-number-grid .workshop-number-tile { min-height: 44px; padding: 5px 9px; gap: 1px 6px; }
 .workshop-shell .workshop-number-grid .workshop-tile-number { font-size: 15px; line-height: 1.2; }
 .workshop-shell .workshop-number-grid .workshop-tile-status { line-height: 1.25; }
 .workshop-shell .workshop-number-grid .workshop-number-tile>.icon { top: 14px; }
 .workshop-shell .workshop-number-grid .workshop-tile-working { top: 18px; }
 .workshop-shell .worker-bottom { padding-top: 10px; }
 .workshop-shell .workshop-footer-actions { gap: 6px; margin: 8px 0; }
 .workshop-shell .workshop-footer-actions .btn { padding: 7px 8px; font-size: 11px; line-height: 1.3; }
 .workshop-shell .workshop-guide { font-size: 11px; }
 .workshop-shell .workshop-guide ol { line-height: 1.4; }
 .workshop-shell .workshop-guide li+li { margin-top: 4px; }
 .production-shell .production-summary { gap: 6px; margin-bottom: 10px; }
 .production-shell .production-kpi { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 56px; padding: 9px; }
 .production-shell .production-kpi>span { min-width: 0; gap: 4px; font-size: 11px; line-height: 1.3; }
 .production-shell .production-kpi>span .icon { width: 14px; height: 14px; }
 .production-shell .production-kpi>strong { flex-shrink: 0; font-size: 23px; line-height: 1.2; margin: 0; }
 .production-shell .production-queue { margin-top: 12px; }
 .production-shell .production-section-title { gap: 6px; margin-bottom: 6px; }
 .production-shell .production-section-title h2 { font-size: 16px; line-height: 1.3; }
 .production-shell .production-section-title>span { font-size: 11px; }
 .production-shell .production-load-section>summary { min-height: 44px; }
 .production-shell .production-load { padding: 8px; font-size: 11px; }
 .production-shell .production-load strong { font-size: 12px; }
 .production-shell .production-search { gap: 6px; }
 .production-shell .production-search select { min-height: 44px; padding: 6px 9px; }
 .production-shell .mobile-order-row { padding-block: 3px; gap: 5px; }
 .production-shell .mobile-row-number { font-size: 14px; }
 .production-shell .mobile-row-customer { font-size: 11px; }
 .production-shell .mobile-row-progress { gap: 4px; }
 .production-shell .mobile-row-meta { font-size: 11px; margin-top: 1px; }
 .production-shell .worker-bottom>p { font-size: 11px; line-height: 1.35; }
}
@media(max-width:600px){
 .workshop-tiles-shell .worker-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px}
 .workshop-tiles-shell .worker-heading h1{order:-1;flex:1 0 100%;margin:0}
 .workshop-tiles-shell .worker-heading .workshop-mobile-user{margin:0}
 .workshop-tiles-shell .workshop-kicker::after{content:' ·'}
}
/* Card actions use verbs and outlined surfaces; completion stays in status pills. */
#detail-dialog .detail-status-label{font-size:10px;color:var(--muted);font-weight:500}
#detail-dialog .detail-actions-caption{padding:10px 16px 0;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.02em}
#detail-dialog .detail-actions .btn,#detail-dialog .detail-hero .btn,#detail-dialog .drive-link .btn{background:#fff;color:var(--ink);border:1px solid #cbd9d3;box-shadow:0 1px 2px #153b3408;transform:none;text-decoration:none;line-height:1.35;white-space:normal;text-align:center}
#detail-dialog .detail-actions .btn:hover,#detail-dialog .detail-hero .btn:hover,#detail-dialog .drive-link .btn:hover{background:#f2f7f4;border-color:#91b4a6;box-shadow:0 2px 5px #153b3410}
#detail-dialog .detail-actions .btn:active,#detail-dialog .detail-hero .btn:active,#detail-dialog .drive-link .btn:active{background:#e9f2ed;box-shadow:inset 0 1px 3px #153b3418}
#detail-dialog .detail-actions .detail-confirm-shipment{border-color:#74a692;color:#176a4e;font-weight:700}
#detail-dialog .detail-actions .btn.danger{border-color:#ecc7c2;color:var(--red);box-shadow:none}
#detail-dialog .detail-actions .btn.danger:hover{background:#fff6f4;border-color:#dba39b}
#detail-dialog .detail-actions .btn:disabled,#detail-dialog .detail-hero .btn:disabled{box-shadow:none;cursor:not-allowed}
@media(max-width:600px){#detail-dialog .detail-actions-caption{padding-inline:12px}#detail-dialog .detail-actions .btn,#detail-dialog .drive-link .btn{min-height:44px}#detail-dialog .detail-hero>.flex{flex-wrap:wrap;gap:6px}}

/* Phone queues: concise facts, quiet readiness, stable touch targets. */
.workshop-phone-customer,.workshop-phone-facts{display:none}
@media(max-width:850px){
 .mobile-order-row{padding:3px 6px;gap:4px}
 .mobile-row-selection{flex-basis:32px}
 .mobile-row-selection .order-select{width:32px;min-height:44px}
 .mobile-row-facts,.workshop-phone-facts{display:flex;align-items:center;flex-wrap:wrap;gap:2px 5px;font-size:10px;line-height:1.3;color:var(--muted);margin-top:2px;min-width:0}
 .mobile-row-facts .ral-chips,.workshop-phone-facts .ral-chips{display:contents}
 .mobile-row-facts .ral-chip,.workshop-phone-facts .ral-chip{font-size:10px;padding:0 3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f1f5f3;color:var(--ink);border-color:#dce5df}
 .mobile-row-deadline{font-variant-numeric:tabular-nums;white-space:nowrap}
 .mobile-row-deadline.is-overdue{color:var(--red);font-weight:600}
 .mobile-stage-summary{display:flex;flex-wrap:wrap;gap:2px;min-width:0}
 .mobile-stage{max-width:100%;padding:1px 3px;border:1px solid #dce5df;border-radius:3px;font-size:10px;line-height:1.25;color:var(--muted);overflow-wrap:anywhere}
 .mobile-stage.done{background:#e3f2e8;color:#276344;border-color:#bdd8c5}
 .mobile-stage.working{background:#edf3fa;color:#38628a;border-color:#d5e2ef}
 .mobile-stage.blocked{background:#fff0ed;color:var(--red);border-color:#eaccc5}
 .workshop-number-grid .workshop-number-tile{grid-template-columns:minmax(0,1fr) auto;align-content:center;min-height:52px!important;padding:4px 8px!important;gap:1px 6px!important;border-left:3px solid transparent}
 .workshop-number-grid .workshop-phone-customer{display:block;grid-column:1;grid-row:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3;color:var(--muted)}
 .workshop-number-grid .workshop-phone-facts{grid-column:1/-1;grid-row:3;margin:0}
 .workshop-number-grid .workshop-tile-status{grid-column:2;grid-row:1/3;font-size:10px;max-width:100px}
 .workshop-number-grid .workshop-tile-id{grid-column:2;grid-row:3;justify-self:end}
 .workshop-number-grid .workshop-number-tile:has(.workshop-tile-id) .workshop-phone-facts{grid-column:1}
 .workshop-number-grid .workshop-desktop-colors{display:none}
 .workshop-number-grid .workshop-number-tile.is-partially-ready:not(.done):not(.blocked):not(.is-saving){background:#fff8e5}
 .workshop-number-grid .workshop-number-tile.is-ready:not(.blocked):not(.is-saving){background:#e5f4e9}
 .workshop-number-grid .workshop-number-tile.is-overdue,.workshop-number-grid .workshop-number-tile.blocked{border-left-color:#c47767}
 .workshop-shell>.worker-controls{position:sticky;top:0;z-index:8;background:var(--canvas,#f2f6f4);padding-block:4px;border-bottom:1px solid var(--line);box-shadow:0 3px 6px #18352a08}
 .stockroom-shell .worker-controls>.tabs{flex-wrap:nowrap;gap:2px;padding:2px}
 .stockroom-shell .worker-controls>.tabs .tab{padding:5px 3px;font-size:10px;min-width:0}
 .stockroom-shell .worker-controls>.tabs .tab-count{margin-left:3px;font-size:10px}
 .stockroom-shell .worker-heading>div>p:not(.workshop-mobile-user){font-size:11px;line-height:1.35}
 .stockroom-shell .warehouse-list-tools>span{font-size:10px;line-height:1.3}
}

@media(max-width:850px){
 .mobile-order-list,.registry-phone-list.cards{overflow:visible!important}
 .mobile-row-more{position:relative;color:var(--muted)}
 .mobile-row-more>summary{display:grid;place-items:center;list-style:none;width:44px;min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:23px;cursor:pointer}
 .mobile-row-more>summary::-webkit-details-marker{display:none}
 .mobile-row-more[open]>summary{background:#edf5ef;border-color:#a9c8b6}
 .mobile-row-more-menu{position:absolute;right:0;top:calc(100% + 3px);z-index:12;min-width:150px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 20px #18352a26}
 .mobile-row-more-menu .btn{width:100%;height:auto;min-height:44px;font-size:12px;gap:6px;justify-content:flex-start;padding:8px}
 .portal-orders .orders-panel{overflow:visible}
 .portal-orders .orders-panel>.simple-board-toolbar{position:sticky;top:0;z-index:8;background:var(--surface,#fff);border-bottom:1px solid var(--line)}
}

@media(max-width:850px){
 .painting-shell .workshop-search-line{display:grid;grid-template-columns:minmax(0,1fr) 104px 44px;align-items:center;gap:4px}
 .painting-shell .workshop-search-line>.search-wrap{width:100%;min-width:0}
 .painting-shell .workshop-ral-filter{display:block;min-width:0;font-size:0}
 .painting-shell .workshop-ral-filter select{width:100%;min-width:0;max-width:100%;font-size:13px;padding:6px 3px}
 .orders-panel>.simple-board-toolbar .manager-status-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%}
 .orders-panel>.simple-board-toolbar .manager-status-tabs .tab{min-width:0;min-height:44px;padding:4px 2px;font-size:10px;line-height:1.2}
 .orders-panel>.simple-board-toolbar .manager-status-tabs .tab-count{font-size:9px;margin-left:3px}
}

/* Order editor: the existing form, payload and draft fields keep their identities. */
#form-dialog:has(>#order-form){width:min(820px,calc(100% - 24px))}
#order-form>.dialog-body{padding:12px 16px}
#order-form .order-form-section{margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--line)}
#order-form .order-form-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
#order-form .order-form-section-title h3{font-size:13px;font-weight:650;letter-spacing:0}
#order-form .order-form-section-title>span{font-size:10px;color:var(--muted)}
#order-form .order-form-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.7fr);gap:8px 10px;align-items:start}
#order-form .order-form-basics>.field{margin:0}
#order-form .order-form-basics :is(.order-form-amount,.order-form-due){grid-column:span 2}
#order-form.order-create-form .order-form-basics .order-form-due{grid-column:span 1}
#order-form .order-form-payment>.hint{font-size:10px;line-height:1.3;margin:0;overflow-wrap:anywhere}
#order-form .order-form-payment>.hint[hidden]{display:none}
#order-form .order-form-payment>.hint.is-invalid{color:var(--red)}
#order-form .order-first-receipt{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:5px 10px;align-items:start;max-width:27rem;margin-top:8px}
#order-form .order-first-receipt .field{margin:0;min-width:0}
#order-form .order-first-receipt :is(select,input){width:100%;min-width:0}
#order-form .order-first-receipt .hint{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
#order-form .order-first-receipt[hidden],#order-form .order-first-receipt [hidden]{display:none}
#order-form .order-form-basics .field:has([name=manager_code]){position:relative}
#order-form .order-form-basics .field:has([name=manager_code])>.hint{font-size:10px;line-height:1.3}
#order-form .order-form-production>.field{margin-bottom:8px}
#order-form .order-form-production>.field:last-child{margin:0}
#order-form #production-fields>.shop-checkboxes{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:3px 0 9px;align-items:start}
#order-form .shop-work-choice{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--surface,#fff)}
#order-form .shop-work-choice:has([name=shops]:checked){border-color:#a7cbb6;background:#f6faf7}
#order-form .shop-check span{border:0;border-radius:0;min-height:34px;padding:6px;font-size:12px}
#order-form .shop-work-amount{padding:4px 6px 6px;margin:0;font-size:10px;gap:3px}
#order-form .shop-work-amount input{width:100%;min-height:30px;padding:4px 6px;font-size:12px;background:#fff}
#order-form .ral-field {
 display: grid;
 grid-template-columns: auto 1fr;
 align-items: baseline;
 gap: 3px 7px;
 margin: 6px 0 0;
}
#order-form .ral-field > :is(input,[data-ral-preview],small,.form-field-error) { grid-column: 1 / -1; }
#order-form .ral-field>.hint{font-size:10px}
#order-form .order-form-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#order-form .form-disclosure{margin:0;padding-top:0}
#order-form .form-disclosure>summary{padding:7px 0;font-size:12px}
#order-form .checkbox-line{font-size:12px;margin-top:8px;min-height:30px}
#order-form>.order-form-footer{background:var(--surface,#fff);border-top:1px solid var(--line);box-shadow:0 -3px 10px #18352a06;align-items:center}
#order-form>.order-form-footer>.form-error{flex:1 0 100%;margin:0;padding:5px 7px;border-radius:5px;background:#fff3ef;font-size:12px;max-height:80px;overflow:auto}
#order-form .order-field-error{font-size:11px;line-height:1.35;color:var(--red)}
#order-form [data-order-invalid]{border-color:var(--red);background:#fff9f6}
#order-form.order-create-form>.dialog-head{background:linear-gradient(110deg,var(--green-soft),var(--surface,#fff) 76%);border-color:var(--green-line)}
.order-create-heading{display:flex;align-items:center;gap:10px;min-width:0}
.order-create-heading p{color:var(--muted);font-size:11px;margin-top:2px}
.order-create-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid var(--green-line);border-radius:9px;color:var(--green);background:var(--surface,#fff)}
#order-form.order-create-form .order-form-section{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--surface,#fff)}
#order-form.order-create-form .order-form-basics .field:focus-within{color:var(--green)}
#order-form.order-create-form .route-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#order-form.order-create-form .route-choice label{padding:7px 9px;min-height:48px;border:1px solid var(--line);background:var(--surface-soft);cursor:pointer}
#order-form.order-create-form .route-choice label:has(input:checked){border-color:var(--green-line);background:var(--green-soft);color:var(--green)}
#order-form.order-create-form .route-choice input{flex-shrink:0;accent-color:var(--green)}
.order-route-copy{display:grid;gap:1px;line-height:1.25;min-width:0}
.order-route-copy small{font-size:10px;color:var(--muted)}
.order-create-submit-label{display:inline-flex;align-items:center;gap:5px}
.order-create-submit-label .icon{width:15px;height:15px}
.order-create-busy-label{display:none}
.order-create-form[data-submitting="true"] .order-create-submit-label{display:none}
.order-create-form[data-submitting="true"] .order-create-busy-label{display:inline-flex;align-items:center;gap:7px}
.order-create-busy-label::before{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%}
@media(prefers-reduced-motion:no-preference){
 #form-dialog[open]:has(>.order-create-form) .order-create-heading{animation:order-create-in 180ms ease-out both}
 #order-form.order-create-form .route-choice label{transition:background-color 140ms,border-color 140ms,color 140ms}
 .order-create-busy-label::before{animation:order-create-spin .75s linear infinite}
}
@keyframes order-create-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes order-create-spin{to{transform:rotate(1turn)}}
@media(max-width:850px){
 #form-dialog:has(>#order-form){width:calc(100% - 16px)}
 #order-form>.dialog-body{padding:9px 10px}
 #order-form .order-form-section-title{display:block;margin-bottom:6px}
 #order-form .order-form-section-title>span{display:block;margin-top:2px}
 #order-form .order-form-basics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #order-form .order-form-basics>:is(.order-form-customer,.field:has(>[name=invoice_number])){grid-column:1/-1}
 #order-form .order-form-basics :is(.order-form-amount,.order-form-due){grid-column:span 1}
 #order-form.order-create-form .order-form-basics .order-form-due{grid-column:1/-1}
 #order-form .order-form-basics .field{font-size:11px}
 #order-form .order-form-basics .field:has([name=manager_code])>.hint{font-size:9px}
 #order-form #production-fields>.shop-checkboxes{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 #order-form .shop-check span{min-height:44px;display:grid;place-items:center;font-size:11px}
 #order-form .shop-work-amount input{min-height:44px;font-size:16px}
 #order-form .form-disclosure>summary{min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:7px 0}
 #order-form .checkbox-line{min-height:44px}
 #order-form>.order-form-footer{padding:7px 10px;gap:6px}
 #order-form>.order-form-footer>.btn.primary{flex:1 1 auto}
}

#order-merge-form .hint{margin-bottom:8px}
:is(#order-merge-form,#order-unmerge-form) .merge-main-summary{display:grid;gap:3px;padding:8px 10px;margin:0 0 8px;border:1px solid #bfd9c9;border-radius:7px;background:#eff7f2;font-size:12px;overflow-wrap:anywhere}
:is(#order-merge-form,#order-unmerge-form) .merge-main-summary>span{color:var(--muted);font-size:11px}
.merge-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.merge-group legend { padding: 0; margin-bottom: 4px; font-weight: 650; }
.merge-order-list { max-height: min(30vh, 230px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--section-divider); border-radius: 7px; }
.merge-choice-row, .merge-choice { display: flex; min-width: 0; align-items: center; gap: 8px; }
.merge-choice-row + .merge-choice-row, .merge-order-list > .merge-choice + .merge-choice { border-top: 1px solid var(--line); }
.merge-choice { flex: 1; width: 100%; min-height: 34px; padding: 5px 8px; text-align: left; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
button.merge-choice { border: 0; border-radius: 0; background: var(--surface); }
.merge-choice input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.merge-choice span { min-width: 0; overflow-wrap: anywhere; }
.merge-choice small, .merge-choice > .icon { flex: none; margin-left: auto; color: var(--green); }
.merge-choice-row:has(input:checked) { background: var(--green-soft); }
.merge-choice-row > .icon-btn { margin-right: 3px; }
.merge-choice:is(:hover,:focus-visible) { background: var(--surface-soft); }
.merge-add { margin: 10px 0 0; }
.merge-add > summary { padding: 6px 0; color: var(--green-hover); cursor: pointer; font-weight: 600; }
.merge-add .field { margin: 4px 0 6px; }
.merge-order-list > .hint { padding: 5px 8px; margin: 0; }
.merge-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.merge-preview-row { border-bottom: 1px solid var(--line); }
.merge-preview-row .merge-differences { border: 0; margin: 0; padding: 2px 0; }
.merge-preview-row summary span { margin-left: 6px; color: var(--muted); overflow-wrap: anywhere; }
.merge-difference { display: grid; gap: 2px; padding: 5px 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.merge-preview .hint { margin-top: 8px; }
.merge-restore-all { color: var(--green-hover); }
@media (max-width:850px) {
 .merge-choice, .merge-add > summary, .merge-choice-row > .icon-btn { min-height: 44px; }
 .merge-choice-row > .icon-btn { min-width: 44px; }
}
.merge-differences{font-size:12px;border-block:1px solid var(--line);padding:6px 0;margin:8px 0}.merge-differences>summary{cursor:pointer;color:var(--green);padding:3px 0}.merge-differences p{padding:6px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.merge-confirm{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.4;padding:8px 0}.merge-confirm input{flex-shrink:0;width:18px;height:18px;margin:0}
.merged-order-history{width:100%;font-size:12px}.merged-order-history>summary{cursor:pointer;color:var(--green);padding:4px 0}.merged-order-history p{margin:5px 0;overflow-wrap:anywhere}.merged-order-history details{margin:5px 0}.merged-order-history>button{margin-top:7px}
@media(max-width:850px){.merge-differences>summary,.merged-order-history summary{min-height:44px;padding:10px 0}.merge-confirm{min-height:44px;padding-block:10px}}

/* Secondary identifiers remain visible beside the main order, without an extra accounting row. */
.absorbed-number-links{display:flex;flex-wrap:wrap;gap:1px 5px;max-width:100%;line-height:1.2}
.absorbed-number-link{border:0;background:transparent;color:#527c77;padding:1px 0;font:inherit;font-size:10px;cursor:pointer;overflow-wrap:anywhere;text-align:left}
.absorbed-number-link:hover{text-decoration:underline;color:#156452}
.absorbed-number-link:focus-visible{outline:2px solid #287969;outline-offset:2px;border-radius:2px}
.mobile-row-copy .absorbed-number-link{font-size:11px;padding:3px 0}

.production-change-badge{display:inline-block;border:1px solid #e4d6a6;border-radius:4px;background:#fff9e8;color:#79632f;padding:1px 4px;font:inherit;font-size:10px;line-height:1.35;cursor:pointer}
.production-change-panel{margin:6px 12px;border:1px solid #e4d6a6;border-radius:7px;background:#fffdf5;padding:6px 9px;font-size:12px;min-width:0}
.production-change-panel>summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.production-change-panel>summary strong{font-size:11px;color:#79632f}
.production-change-events{display:grid;gap:5px;margin-top:6px;max-height:260px;overflow:auto}
.production-change-event>summary{cursor:pointer;color:#54716d;font-size:11px}
.production-change-event>summary span{margin-left:7px}
.production-change-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;line-height:1.4}
.production-change-receipts{display:flex;flex-wrap:wrap;gap:4px 12px}
.production-change-receipt{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px}
.production-change-receipt .btn{padding:4px 8px;min-height:28px;font-size:11px}
.production-change-receipt.is-acknowledged{color:#52776a}
.production-change-waiting{color:#8a713a}
@media(max-width:700px){.production-change-panel{margin:6px 8px}.production-change-receipt .btn{min-height:36px;padding:6px 10px}.production-change-badge{padding:3px 5px}}
.content.production-plan { max-width: 860px; margin-inline: 0; }
.production-plan .page-heading p { margin-top: 4px; color: var(--muted); }
.production-plan .plan-heading { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px 12px; padding: 8px 10px; margin-bottom: 9px; border: 1px solid var(--green-line); border-radius: 10px; background: linear-gradient(110deg, var(--green-soft), var(--surface) 75%); }
.plan-heading-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.plan-heading-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--green-hover); background: var(--surface); border: 1px solid var(--green-line); border-radius: 8px; }
.plan-heading-icon .icon { width: 17px; height: 17px; }
.plan-week { border-radius: 6px; padding: 3px 7px; background: var(--surface); border: 1px solid var(--green-line); color: var(--green-hover); font-size: 11px; font-variant-numeric: tabular-nums; }
.plan-week span { color: var(--muted); margin-right: 2px; }
.production-plan h2 { margin: 8px 0; font-size: 16px; }
.plan-load-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-load-legend { margin: 0; padding: 5px 8px; color: var(--muted); font-size: 11px; }
.plan-loads { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.plan-loads th, .plan-loads td { padding: 2px 4px; text-align: center; border-bottom: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere; }
.plan-loads th:first-child { width: 36%; text-align: left; }
.plan-loads thead { color: var(--muted); background: var(--surface-soft); }
.plan-label-short { display: none; }
.plan-loads button { border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.plan-loads .plan-shop-name { padding: 6px 0; width: 100%; text-align: left; font-weight: 650; }
.plan-metric { padding: 5px 0; min-height: 30px; width: 100%; font-variant-numeric: tabular-nums; }
.plan-loads .plan-metric-zero { color: var(--muted); }
.plan-queue-meter { display: block; width: min(72%, 64px); height: 4px; margin: 2px auto 0; appearance: none; }
.plan-queue-meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 4px; }
.plan-queue-meter::-webkit-meter-optimum-value { background: var(--green); border-radius: 4px; }
.plan-queue-meter::-moz-meter-bar { background: var(--green); border-radius: 4px; }
.plan-loads .plan-metric-alert { color: var(--red); font-weight: 650; }
.plan-shop-selected { background: var(--surface-soft); }
.plan-loads button[aria-pressed="true"], .plan-loads button:hover { background: var(--green-soft); }
.plan-queue-panel { margin-top: 12px; }
.plan-queue-heading { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
.plan-queue-heading > button { margin-left: auto; }
.plan-selection { border-radius: 6px; padding: 3px 7px; color: var(--green-hover); background: var(--green-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.plan-tabs { flex-wrap: wrap; margin-bottom: 6px; }
.plan-blocker { flex-basis: 100%; margin: 2px 0; color: var(--red); font-size: 12px; }
.plan-orders { list-style: none; padding: 0; margin: 8px 0; }
.plan-order { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
.plan-order + .plan-order { margin-top: 4px; }
.plan-order:focus-within { border-color: var(--green-line); }
.plan-order > div:first-child { min-width: 0; }
.plan-order-late { box-shadow: inset 3px 0 var(--red); }
.plan-order-blocked { box-shadow: inset 3px 0 var(--amber); }
.plan-priority { display: inline-block; font-size: 10px; }
.plan-priority-ranked { background: var(--green-soft); color: var(--green-hover); border-color: var(--green-line); }
.plan-due { font-variant-numeric: tabular-nums; }
.plan-due small { display: block; font-size: 11px; }
.plan-customer { display: block; color: var(--muted); font-size: 12px; }
.plan-tasks { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-tasks .pill { white-space: normal; }
.plan-late { color: var(--red); }
.plan-empty { display: flex; align-items: center; gap: 6px; padding: 12px 9px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.plan-empty .icon { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 660px) {
 .plan-loads th, .plan-loads td { padding-inline: 2px; }
 .plan-loads thead { font-size: 10px; }
 .plan-loads button { min-height: 44px; }
 .plan-order { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
 .plan-due { max-width: 10em; text-align: right; font-size: 12px; }
 .plan-tasks, .plan-order > .btn { grid-column: 1 / -1; }
 .plan-order > .btn { justify-self: start; }
}
@media (max-width: 380px) {
 .plan-heading-icon { display: none; }
 .plan-label-full { display: none; }
 .plan-label-short { display: inline; }
}

#order-form .order-form-delivery-cost{max-width:220px;margin:9px 0 0}
.detail-delivery-cost{display:flex;flex-wrap:wrap;align-items:center;gap:3px 9px;margin:5px 0 8px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:12px;background:var(--surface-soft,#f5f9f7)}
.detail-delivery-cost strong{margin-left:5px;font-variant-numeric:tabular-nums}
.detail-delivery-cost .text-btn{min-height:28px;font-size:11px}
@media(max-width:850px){.detail-delivery-cost .text-btn{min-height:36px}}

.registry-compact-table[data-has-payment="true"] { --registry-payment-width: 138px; }
.registry-compact-table .registry-compact-col-payment { width: var(--registry-payment-width); }
.registry-payment-summary > .registry-payment-control { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 3px; }
.registry-payment-control .icon { width: 14px; height: 14px; }
.registry-payment-action { border: 1px solid var(--green-line); }
.registry-payment-action:hover:not(:disabled) { background: var(--green-soft); color: var(--green); }
.registry-payment-summary { display: flex; align-items: center; gap: 5px; min-width: 0; }
.registry-payment-summary small { display: grid; flex: 1; min-width: 0; font-size: 10px; color: var(--muted); line-height: 12px; font-variant-numeric: tabular-nums; }
.registry-payment-summary small > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media(max-width:850px){.registry-payment-summary > button.registry-payment-control{width:36px;height:36px;min-height:36px;flex-basis:36px}}
.detail-payment { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.detail-payment small { color: var(--muted); }
.detail-payment .btn { min-height: 34px; padding: 4px 9px; }
.full-payment-panel header,.full-payment-actions,.full-payment-progress,.payment-balance-preview {display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}
.full-payment-panel header {justify-content:space-between}
.full-payment-panel .pill {font-size:11px;white-space:normal}
.full-payment-progress,.full-receipts small,.full-payment-history small {color:var(--muted);font-size:11px}
.full-receipts-list strong,.full-payment-progress {font-variant-numeric:tabular-nums}
.full-payment-progress {flex-wrap:nowrap;margin-top:4px}
.full-payment-progress progress {flex:1;min-width:0;height:5px;accent-color:var(--green)}
.full-payment-actions {margin-top:6px}
.full-payment-panel :is(.btn,.text-btn,summary) {min-height:30px;font-size:12px}
.full-payment-panel summary {align-content:center;cursor:pointer;color:var(--green);font-weight:600}
.full-payment-actions details[open] {flex-basis:100%}
.full-payment-actions details>div {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.full-receipts,.full-payment-history {margin-top:7px;padding-top:5px;border-top:1px solid var(--line)}
.full-payment-panel :is(.full-receipts,.full-payment-history) h4 {margin:0 0 2px;font-size:12px}
.full-payment-panel ul {margin:0;padding:0;list-style:none}
.full-receipts-list li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;padding:5px 0}
.full-receipts-list li+li,.full-payment-history li+li {border-top:1px solid var(--line)}
.full-receipts-list li>div,.full-payment-history li {min-width:0;overflow-wrap:anywhere}
.full-receipts-list strong {font-size:13px}
.full-receipts-list small,.full-payment-history li>span {display:block;margin-top:2px}
.payment-method {display:inline-block;margin-inline-start:3px;font-size:11px;color:var(--green)}
.full-payment-history li {padding:4px 0;font-size:12px}
.full-payment-history small {display:inline-block;margin-inline-start:5px}
.payment-balance-preview {margin:4px 0 9px;justify-content:space-between}
.payment-balance-preview .hint {margin:0}
@media(max-width:760px){
 .full-payment-panel :is(.btn,.text-btn,summary),.payment-balance-preview .text-btn {min-height:44px}
 .full-payment-panel summary {padding-block:6px}
}


/* Menu hierarchy and personal shortcuts. */
.portal-shell .sidebar .nav-item{transition:background-color 140ms ease,color 140ms ease,box-shadow 140ms ease}
.portal-shell .sidebar .nav-item.active{background:linear-gradient(90deg,#c7ef9924,#c7ef990c);color:#f1ffed;box-shadow:inset 3px 0 #c7ef99}
.sidebar .sidebar-group-heading{font-weight:650;letter-spacing:.045em}
.sidebar .sidebar-disclosure.is-current-group>.sidebar-group-heading{background:#c7ef990b;color:#dfeddf}
.sidebar .sidebar-group-chevron,.sidebar-toggle>.icon{transition:transform 140ms ease}
.sidebar-toggle{transition:background-color 140ms ease,border-color 140ms ease}
.sidebar-toggle:hover{border-color:#c1dcb357}
.sidebar-favorites{background:linear-gradient(125deg,#f4d58a0a,transparent 75%);border-bottom-color:#d9bd7a30;border-radius:8px 8px 0 0}
.sidebar-favorites-head h2{color:#e5dcc1}
.sidebar-favorites-head h2>span:first-child{color:#e1c783}
.sidebar-favorites-links .nav-item:not(.active)>.icon{color:#cfceb0}
.sidebar-favorites-manage:hover{color:#f0e5c3;background:#ecd1990e}
.sidebar-group-count{box-shadow:inset 0 0 0 1px #f6e4ae22}

.sidebar-favorites-dialog[open]{border-color:#cbded3;border-radius:12px;box-shadow:0 20px 60px #102f2b2b}
.sidebar-favorites-dialog .dialog-head{background:#f5faf7}
#sidebar-favorites-heading{display:flex;align-items:center;gap:8px;letter-spacing:-.02em}
.sidebar-favorite-title-mark{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid #e7d8b0;border-radius:7px;background:#fbf4e1;color:#9d7524;font-size:15px;line-height:1}
.sidebar-favorites-dialog .dialog-head .icon-btn{border-radius:7px;transition:background-color 120ms ease,color 120ms ease}
.sidebar-favorites-dialog .dialog-head .icon-btn:hover{background:#e5f1e9;color:#27553c}
.sidebar-favorite-search{position:relative;min-width:0}
.sidebar-favorite-search>.icon{position:absolute;left:10px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:#6b8274;pointer-events:none}
.sidebar-favorite-search>#sidebar-favorites-query{padding-left:32px;border-color:#cfddd4;background:#f7faf8;border-radius:8px;transition:border-color 120ms ease,background-color 120ms ease}
.sidebar-favorite-search>#sidebar-favorites-query:focus{background:white;border-color:#6eaa88}
.sidebar-favorite-selection{display:inline-flex;align-items:center;min-height:20px;padding:1px 7px;margin:3px 0;border-radius:5px;background:#edf6f0;color:#3f6755;box-shadow:inset 0 0 0 1px #d7e8dd;font-size:10px;line-height:1.35}
.sidebar-favorites-dialog:has([data-sidebar-favorite-choice]:disabled) .sidebar-favorite-selection{background:#fff2ce;color:#785818;box-shadow:inset 0 0 0 1px #ead6a4}
.sidebar-favorite-options-group h3{display:flex;align-items:center;gap:8px;color:#61766c;font-weight:650;line-height:1.4}
.sidebar-favorite-options-group h3::after{content:'';height:1px;flex:1;background:#e9efeb}
.sidebar-favorite-option{border:1px solid transparent;border-radius:7px;transition:background-color 120ms ease,border-color 120ms ease}
.sidebar-favorite-option-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#f0f5f2;color:#698174}
.sidebar-favorite-option-icon>.icon{width:14px;height:14px}
.sidebar-favorite-option:has(input:checked){background:#edf7f0;border-color:#c2dfcb;color:#225c3f}
.sidebar-favorite-option:has(input:checked) .sidebar-favorite-option-icon{background:#dceee2;color:#3a7150}
.sidebar-favorite-option:focus-within{outline:2px solid #5b9270;outline-offset:-2px}
.sidebar-favorites-dialog .dialog-footer{justify-content:space-between;gap:12px;background:#f7faf8}
.sidebar-favorite-save-note{color:#61766c;font-size:10px;line-height:1.3}
.sidebar-favorite-empty{display:flex;flex-direction:column;align-items:center;gap:5px;padding:22px 10px;text-align:center;color:#61766c;font-size:11px;line-height:1.4}
.sidebar-favorite-empty strong{font-size:12px;font-weight:600;color:#294e3a}
.sidebar-favorite-empty-icon{display:grid;place-items:center;width:32px;height:32px;margin-bottom:3px;border-radius:9px;background:#f0f5f2;color:#72947f}
.sidebar-favorite-empty-icon>.icon{width:17px;height:17px}
@media(hover:hover) and (pointer:fine){
 .sidebar-favorite-option:not(:has(input:disabled)):not(:has(input:checked)):hover{background:#f4f8f5;border-color:#e2ebe5}
 .sidebar-favorite-option:has(input:checked):hover{background:#e4f2e9;border-color:#9fc5ac}
}
@media(prefers-reduced-motion:reduce){
 .portal-shell .sidebar .nav-item,.sidebar .sidebar-group-chevron,.sidebar-toggle,.sidebar-toggle>.icon,.sidebar-favorites-dialog .dialog-head .icon-btn,.sidebar-favorite-search>#sidebar-favorites-query,.sidebar-favorite-option{transition:none}
}
