/* =========================================================
   suite-ui.css: the styles of the shared Ui components that the concept sheet (portal.css,
   generated) has no rules for, and the suite-wide chrome of a Blazor app.

   Loaded after portal.css and suite-shell.css by every app with the flat material. These rules
   lived in the CMS's admin.css, so a Picker, a RichTextEditor or a Stat sparkline in any other
   app came out unstyled, and the RMA Portal and Authentication showed Blazor's error bar on every page.
   ========================================================= */

/* The page title takes focus after every navigation (FocusOnNavigate Selector="h1"), so a screen reader
   announces the new page. It is not a control: no focus ring on it, nor on anything focusable only by
   script (tabindex -1). Buttons, links and fields keep theirs for keyboard users. */
html[data-ui="next"] :is(h1,h2,h3,[tabindex="-1"]):focus{outline:none;}

/* Inline icons outside the rail/buttons (tree rows, block heads, tables) get the concept's 16px box. */
html[data-ui="next"] svg.ico{width:16px;height:16px;flex-shrink:0;vertical-align:-3px;}

/* ---------- Rail: a planned item, shown but not yet a link ---------- */
html[data-ui="next"] .rail .item.disabled{opacity:.45;cursor:default;pointer-events:none;}

/* ---------- Stat and SubHead ---------- */
html[data-ui="next"] .stat .stat-spark{margin-top:auto;padding-top:10px;}
html[data-ui="next"] .stat .stat-spark .spark{display:block;width:100%;height:30px;overflow:visible;}
html[data-ui="next"] .subhead.mt,html[data-ui="next"] .sub-head.mt{margin-top:18px;}

/* ---------- Picker (the concept's scope picker as a form control) ---------- */
html[data-ui="next"] .picker{position:relative;width:100%;}
html[data-ui="next"] .picker-btn{
  display:flex;align-items:center;gap:8px;width:100%;min-height:36px;
  padding:7px 32px 7px 11px;text-align:left;cursor:pointer;
  font-family:var(--font-body);font-size:14px;color:var(--ink);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-ctl);
  transition:border-color .15s ease, box-shadow .15s ease, background-color .12s ease;
}
html[data-ui="next"] .picker-btn:hover{border-color:var(--ink-4);}
html[data-ui="next"] .picker.open .picker-btn,
html[data-ui="next"] .picker-btn:focus{outline:none;border-color:var(--blue);box-shadow:var(--focus-ring);}
html[data-ui="next"] .picker-btn:disabled{opacity:.6;cursor:default;}
html[data-ui="next"] .picker-btn.is-empty .picker-val{color:var(--ink-4);}
html[data-ui="next"] .picker-val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html[data-ui="next"] .picker-sub{font-size:11.5px;color:var(--ink-4);font-family:var(--font-mono);white-space:nowrap;}
html[data-ui="next"] .picker-chev{position:absolute;right:10px;top:50%;width:14px;height:14px;margin-top:-7px;color:var(--ink-4);transition:transform .15s var(--ease);}
html[data-ui="next"] .picker.open .picker-chev{transform:rotate(180deg);}
html[data-ui="next"] .picker .pop{left:0;top:calc(100% + 4px);min-width:100%;max-width:max(100%,320px);transform-origin:top left;}
html[data-ui="next"] .picker-scrim{position:fixed;inset:0;z-index:79;}
html[data-ui="next"] .picker .pop-item .stack b{font-weight:400;}
html[data-ui="next"] .picker .pop-item.selected .stack b{font-weight:500;color:var(--blue);}
html[data-ui="next"] .picker.sm .picker-btn{min-height:30px;padding:4px 28px 4px 9px;font-size:13px;}
html[data-ui="next"] .picker.sm .picker-chev{right:8px;width:12px;height:12px;margin-top:-6px;}

/* A popover lifted out of its container (data-float, js/suite-pop.js): in the top layer, fixed at its trigger, so a
   dialog's scrolling body or a table's overflow no longer cuts it off. The browser's own popover look (centred,
   system colours) gives way to the suite's; when there is less room than content, the list scrolls, not the page.
   A Picker keeps its filter box in view and lets only the list scroll. */
html[data-ui="next"] .pop[data-floating]{color:inherit;overflow-y:auto;overscroll-behavior:contain;}
html[data-ui="next"] .pop[data-floating="up"]{transform-origin:bottom left;}
html[data-ui="next"] .picker .pop[data-floating]{display:flex;flex-direction:column;overflow:hidden;}
html[data-ui="next"] .picker .pop[data-floating] > .pop-search{flex:none;}
html[data-ui="next"] .picker .pop[data-floating] > .pop-list{flex:1 1 auto;min-height:0;overscroll-behavior:contain;}

/* Native selects that remain get the same chevron and box as the picker. */
html[data-ui="next"] .field select,
html[data-ui="next"] table.tbl select{
  appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:30px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a8699' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;background-size:14px;
}
html[data-ui="next"] table.tbl select,
html[data-ui="next"] table.tbl input[type=text],
html[data-ui="next"] table.tbl input[type=number]{
  font-family:var(--font-body);font-size:13px;color:var(--ink);background-color:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-ctl);padding:5px 9px;min-height:30px;
}
html[data-ui="next"] table.tbl select:focus,
html[data-ui="next"] table.tbl input:focus{outline:none;border-color:var(--blue);box-shadow:var(--focus-ring);}

/* ---------- Rich text editor ---------- */
html[data-ui="next"] .rte{border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--surface);overflow:hidden;transition:border-color .15s ease, box-shadow .15s ease;}
html[data-ui="next"] .rte:focus-within{border-color:var(--blue);box-shadow:var(--focus-ring);}
html[data-ui="next"] .rte-bar{display:flex;align-items:center;gap:2px;padding:4px 6px;border-bottom:1px solid var(--line-soft);background:var(--field);flex-wrap:wrap;}
html[data-ui="next"] .rte-bar button{font:inherit;font-size:12.5px;min-width:28px;height:26px;padding:0 7px;border:0;border-radius:6px;background:transparent;color:var(--ink-3);cursor:pointer;}
html[data-ui="next"] .rte-bar button:hover{background:var(--hover);color:var(--ink);}
html[data-ui="next"] .rte-bar button.on{background:var(--tint);color:var(--blue);}
html[data-ui="next"] .rte-bar button:disabled{opacity:.4;cursor:default;}
html[data-ui="next"] .rte-sep{width:1px;height:18px;background:var(--line);margin:0 4px;}
html[data-ui="next"] .rte-grow{flex:1;}
html[data-ui="next"] .rte-body{min-height:160px;max-height:520px;overflow:auto;padding:12px 14px;font-size:14px;line-height:1.6;color:var(--ink);outline:none;}
html[data-ui="next"] .rte-body:empty::before{content:attr(data-placeholder);color:var(--ink-4);}
html[data-ui="next"] .rte-body p{margin:0 0 .7em;}
html[data-ui="next"] .rte-body h2{font-size:20px;margin:.6em 0 .4em;} html[data-ui="next"] .rte-body h3{font-size:16px;margin:.6em 0 .3em;}
html[data-ui="next"] .rte-body ul,html[data-ui="next"] .rte-body ol{padding-left:22px;margin:0 0 .7em;}
html[data-ui="next"] .rte-body blockquote{border-left:3px solid var(--line);margin:.6em 0;padding:2px 12px;color:var(--ink-3);}
html[data-ui="next"] .rte-body a{color:var(--blue);text-decoration:underline;}
html[data-ui="next"] .rte-source{display:block;width:100%;min-height:160px;border:0;padding:12px 14px;font-family:var(--font-mono);font-size:12.5px;outline:none;resize:vertical;}

/* Blazor's circuit-failure bar (App.razor). Blazor sets display:block on it when the connection
   dies; until then it must stay hidden. */
#blazor-error-ui{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:1000;
  padding:12px 48px 12px 18px;
  background:var(--red-dark);color:#fff;font-family:var(--font-body);font-size:14px;
  box-shadow:0 -4px 16px rgba(10,25,50,.18);
}
#blazor-error-ui .reload{color:#fff;font-weight:700;text-decoration:underline;margin-left:12px;}
#blazor-error-ui .dismiss{position:absolute;right:14px;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;}

/* ---------- The suite's topbar menus (SuiteUserMenu, SuiteAppSwitcher) ---------- */
html[data-ui="next"] .suite-menu{position:relative;}
html[data-ui="next"] .suite-menu > .pop{right:0;top:calc(100% + 6px);transform-origin:top right;min-width:230px;}
html[data-ui="next"] .suite-scrim{position:fixed;inset:0;z-index:79;background:transparent;border:0;padding:0;cursor:default;}
html[data-ui="next"] .suite-menu .pop-user .avatar{flex-shrink:0;}
html[data-ui="next"] .suite-menu form{margin:0;}
html[data-ui="next"] .suite-menu form .pop-item{width:100%;background:none;border:0;font:inherit;text-align:left;cursor:pointer;}
html[data-ui="next"] .suite-apps > .pop{min-width:280px;}
html[data-ui="next"] .suite-apps .pop-head{padding:6px 9px 4px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-4);}
html[data-ui="next"] .suite-apps .app-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;flex-shrink:0;background:var(--tint);color:var(--blue);}
html[data-ui="next"] .suite-apps .app-ico svg{width:15px;height:15px;}
html[data-ui="next"] .suite-apps .pop-item.selected .app-ico{background:var(--blue);color:#fff;}

/* ---------- Form controls in a Field: the concept draws e-mail and password; the rest the same way ---------- */
html[data-ui="next"] .help{font-size:12px;color:var(--ink-4);}
html[data-ui="next"] .field input[type=text],
html[data-ui="next"] .field input[type=number],
html[data-ui="next"] .field input[type=date],
html[data-ui="next"] .field input[type=time],
html[data-ui="next"] .field input[type=url],
html[data-ui="next"] .field input[type=color],
html[data-ui="next"] .field input[type=search],
html[data-ui="next"] .field input[type=tel],
html[data-ui="next"] .field input[type=datetime-local],
html[data-ui="next"] .field input:not([type]),
html[data-ui="next"] .field select,
html[data-ui="next"] .field textarea{
  width:100%;font-family:var(--font-body);font-size:14px;color:var(--ink);background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-ctl);padding:8px 11px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
html[data-ui="next"] .field textarea{min-height:88px;resize:vertical;line-height:1.5;}
html[data-ui="next"] .field textarea.code{font-family:var(--font-mono);font-size:12.5px;min-height:140px;}
html[data-ui="next"] .field select:focus,html[data-ui="next"] .field textarea:focus,html[data-ui="next"] .field input:focus{outline:none;border-color:var(--blue);box-shadow:var(--focus-ring);}
html[data-ui="next"] .field input:disabled,html[data-ui="next"] .field select:disabled,html[data-ui="next"] .field textarea:disabled{background:var(--field);color:var(--ink-3);}
html[data-ui="next"] .field .lbl .req{color:var(--red-dark);margin-left:2px;}
/* Blazor's validation, in the concept's danger tone. */
html[data-ui="next"] .validation-message{font-size:12px;color:var(--red-dark);margin-top:4px;}
html[data-ui="next"] .field .invalid{border-color:var(--red);}
html[data-ui="next"] .picker-btn.invalid{border-color:var(--red);}
/* The space before "(optional)" is a margin, not a text space: Blazor drops a whitespace-only text node, so the label
   ran into it ("Note(optional)"). */
html[data-ui="next"] .field .lbl .opt{font-weight:400;color:var(--ink-4);margin-left:.35em;}
html[data-ui="next"] .toolbar.align-end{align-items:flex-end;}

/* ---------- EntityHead: the avatar-name-status block at the top of a detail sheet ---------- */
html[data-ui="next"] .ent-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;}
html[data-ui="next"] .ent-avatar{width:50px;height:50px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:var(--tint);color:var(--blue);}
html[data-ui="next"] .ent-avatar svg{width:22px;height:22px;}
html[data-ui="next"] .ent-text{min-width:0;flex:1;}
html[data-ui="next"] .ent-text b{display:block;font-family:var(--font-head);font-size:16px;color:var(--ink);}
html[data-ui="next"] .ent-text span{display:block;font-size:12.5px;color:var(--ink-4);margin-top:2px;}
html[data-ui="next"] .ent-side{margin-left:auto;display:flex;gap:6px;align-items:center;flex-shrink:0;}
html[data-ui="next"] .ent-head.stack{flex-direction:column;text-align:center;}
html[data-ui="next"] .ent-head.stack .ent-avatar{width:80px;height:80px;}
html[data-ui="next"] .ent-head.stack .ent-avatar svg{width:34px;height:34px;}
html[data-ui="next"] .ent-head.stack .ent-side{margin-left:0;}

/* ---------- A list of choices, one row each (the concept's .dlg-trigger, also as a button) ---------- */
html[data-ui="next"] button.dlg-trigger{width:100%;background:none;border:0;border-top:1px solid var(--line-soft);font:inherit;text-align:left;color:inherit;}
html[data-ui="next"] button.dlg-trigger:first-child{border-top:0;}
html[data-ui="next"] button.dlg-trigger:disabled{opacity:.55;cursor:default;background:none;}
html[data-ui="next"] .dlg-trigger > svg{width:14px;height:14px;color:var(--ink-4);flex-shrink:0;}

/* ---------- Questions and answers (native details/summary) ---------- */
html[data-ui="next"] details.qa{border-top:1px solid var(--line-soft);}
html[data-ui="next"] details.qa:first-child{border-top:0;}
html[data-ui="next"] details.qa summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px var(--pad);font-weight:500;font-size:13.5px;color:var(--ink);}
html[data-ui="next"] details.qa summary::-webkit-details-marker{display:none;}
html[data-ui="next"] details.qa summary:hover{background:var(--hover);}
html[data-ui="next"] details.qa summary svg{width:14px;height:14px;color:var(--ink-4);margin-left:auto;transition:transform .15s var(--ease);}
html[data-ui="next"] details.qa[open] summary svg{transform:rotate(180deg);}
html[data-ui="next"] details.qa .qa-body{padding:0 var(--pad) 14px;font-size:13.5px;color:var(--ink-2);line-height:1.6;}

/* ---------- Busy: a page-wide wait, and a larger spinner for it ---------- */
html[data-ui="next"] .busy-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:color-mix(in srgb, var(--surface) 70%, transparent);backdrop-filter:blur(2px);}
html[data-ui="next"] .spin.lg{width:32px;height:32px;border-width:3px;border-color:rgba(10,25,50,.15);border-top-color:var(--blue);}

/* ---------- Small shared helpers ---------- */
html[data-ui="next"] .num{font-variant-numeric:tabular-nums;}
html[data-ui="next"] .mono{font-family:var(--font-mono);font-size:12.5px;}
html[data-ui="next"] .muted{color:var(--ink-4);}
/* A clickable row (Ui/RowLink): its .row-main is the one real link or button, which the keyboard reaches; a click
   elsewhere on the row is passed on to it (js/suite-rows.js). The row is tinted on hover and while its link has the
   focus, and the link keeps the title's look (add .link for the link blue). */
html[data-ui="next"] .row-link{cursor:pointer;}
html[data-ui="next"] table.tbl tr.row-link:hover td,
html[data-ui="next"] table.tbl tr.row-link:focus-within td{background:var(--hover);}
html[data-ui="next"] .row-main{color:inherit;font:inherit;text-decoration:none;}
html[data-ui="next"] .row-main.link{color:var(--blue);}
html[data-ui="next"] button.row-main{background:none;border:0;padding:0;margin:0;text-align:left;cursor:pointer;}
html[data-ui="next"] .row-link:hover .row-main,
html[data-ui="next"] .row-main:focus-visible{text-decoration:underline;text-underline-offset:2px;}
html[data-ui="next"] .actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
html[data-ui="next"] .stack-sm{display:flex;flex-direction:column;gap:8px;}
/* For screen readers only. */
.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;}
/* Tabs that are addresses (a section per URL): the concept's tabs, as links. */
html[data-ui="next"] .tabs a{font-family:var(--font-body);font-weight:500;font-size:13.5px;color:var(--ink-3);padding:9px 12px;border-bottom:2px solid transparent;margin-bottom:-1px;text-decoration:none;}
html[data-ui="next"] .tabs a:hover{color:var(--ink);}
html[data-ui="next"] .tabs a.on{color:var(--blue);border-bottom-color:var(--blue);font-weight:700;}
/* Long-form text in a panel (privacy statement, help). */
html[data-ui="next"] .prose{font-size:13.5px;line-height:1.65;color:var(--ink-2);}
html[data-ui="next"] .prose p{margin:0 0 .8em;}
html[data-ui="next"] .prose p:last-child{margin-bottom:0;}
html[data-ui="next"] .prose ul{margin:0 0 .8em;padding-left:20px;}
html[data-ui="next"] .prose li{margin-bottom:3px;}
html[data-ui="next"] .prose a{color:var(--blue);}
html[data-ui="next"] code{font-family:var(--font-mono);font-size:.92em;background:var(--field);border-radius:4px;padding:1px 4px;}
/* The page's title (PageShell) is its h1, the one heading every router's FocusOnNavigate moves to
   and a screen reader's first stop; it keeps the concept's size, which is the h2's. */
html[data-ui="next"] .page-head h1{font-size:20px;line-height:1.2;letter-spacing:-0.018em;}
/* Notice tones. Ui/Notice emits .notice-{info|success|warning|danger}; portal.css has two bare
   .notice rules (a red-titled block, then a blue flex row), so without these every notice in the
   back-office apps was a blue box with a red title, a success included. A title sits above the body. */
html[data-ui="next"] :is(.notice-info,.notice-success,.notice-warning,.notice-danger){
  --notice-tone:var(--blue);
  display:block;padding:11px 14px;border-radius:var(--r-ctl);
  background:color-mix(in srgb, var(--notice-tone) 6%, var(--surface));
  border:1px solid color-mix(in srgb, var(--notice-tone) 22%, transparent);
  font-size:13px;line-height:1.5;color:var(--ink-2);
}
html[data-ui="next"] .notice-success{--notice-tone:var(--status-good);}
html[data-ui="next"] .notice-warning{--notice-tone:var(--status-warn);}
html[data-ui="next"] .notice-danger{--notice-tone:var(--red-dark);}
html[data-ui="next"] .notice .notice-head{display:flex;align-items:center;gap:7px;margin:0 0 3px;font-weight:600;font-size:13px;color:var(--notice-tone, var(--red-dark));}
/* A notice that can be dismissed: the close button in its top-right corner. */
html[data-ui="next"] .notice:has(> .notice-x){position:relative;padding-right:40px;}
html[data-ui="next"] .notice > .notice-x{position:absolute;top:6px;right:6px;width:26px;height:26px;}
html[data-ui="next"] a.dlg-trigger{color:inherit;text-decoration:none;}
/* Panel's foot (Panel Foot=…): actions and notes under the body. */
html[data-ui="next"] .panel-foot{padding:12px var(--pad);border-top:1px solid var(--line-soft);}
/* Sortable table headers and SortCaret. */
html[data-ui="next"] table.tbl th.sortable{cursor:pointer;user-select:none;white-space:nowrap;}
html[data-ui="next"] table.tbl th.sortable:hover{color:var(--ink);}
html[data-ui="next"] .sort-caret{width:11px;height:11px;vertical-align:-1px;margin-left:3px;color:var(--blue);}
/* Chip kinds the component offers and the concept sheet has no rules for: something wrong (crit),
   and something that needs acting on now (alert). Seven places used them and got a neutral chip. */
html[data-ui="next"] .chip-crit{background:rgba(240,60,90,0.07);border-color:rgba(240,60,90,0.24);color:var(--red-dark);}
html[data-ui="next"] .chip-alert{background:var(--red);border-color:var(--red);color:#fff;}
/* SectionHead and SectionLabel: a title (and its actions) over a group of panels; the quiet label. */
html[data-ui="next"] .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;}
html[data-ui="next"] .section-head h3{font-size:16px;}
html[data-ui="next"] .section-head .acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
html[data-ui="next"] .section-label{font-family:var(--font-body);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-4);margin:0 0 8px;}
html[data-ui="next"] hr{border:0;border-top:1px solid var(--line-soft);margin:18px 0;}
/* A form laid out on twelve columns (span-N), one column on a phone. */
html[data-ui="next"] .form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 14px;align-items:start;}
html[data-ui="next"] .form-grid > .field{margin:0;}
/* A field without a span takes half the row (the concept's two columns); span-N sets its own width. */
html[data-ui="next"] .form-grid > *{grid-column:span 6;}
html[data-ui="next"] .form-grid.one > *{grid-column:1 / -1;}
/* In a dialog the grid is one column (portal.css .dlg .form-grid): every field takes the row. */
html[data-ui="next"] .dlg .form-grid > *{grid-column:1 / -1;}
html[data-ui="next"] .form-grid > .span-1{grid-column:span 1;} html[data-ui="next"] .form-grid > .span-2{grid-column:span 2;}
html[data-ui="next"] .form-grid > .span-3{grid-column:span 3;} html[data-ui="next"] .form-grid > .span-4{grid-column:span 4;}
html[data-ui="next"] .form-grid > .span-5{grid-column:span 5;} html[data-ui="next"] .form-grid > .span-6{grid-column:span 6;}
html[data-ui="next"] .form-grid > .span-8{grid-column:span 8;} html[data-ui="next"] .form-grid > .span-9{grid-column:span 9;}
html[data-ui="next"] .form-grid > .span-12{grid-column:1 / -1;}
@media (max-width:760px){ html[data-ui="next"] .form-grid > *{grid-column:1 / -1 !important;} }
/* Preformatted text (e-mail bodies, examples). */
html[data-ui="next"] pre.code-block{margin:0;padding:12px 14px;background:var(--field);border:1px solid var(--line-soft);border-radius:var(--r-ctl);font-family:var(--font-mono);font-size:12.5px;line-height:1.55;white-space:pre-wrap;overflow:auto;}
/* The few layout and text helpers a converted page still needs (not a utility framework: add to it
   only what several pages need, and say so). */
html[data-ui="next"] .flexrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
html[data-ui="next"] .jc-between{justify-content:space-between;} html[data-ui="next"] .jc-end{justify-content:flex-end;} html[data-ui="next"] .jc-center{justify-content:center;}
html[data-ui="next"] .block{display:block;} html[data-ui="next"] .grow{flex:1;min-width:0;} html[data-ui="next"] .col{flex-direction:column;align-items:stretch;}
html[data-ui="next"] .sm{font-size:12px;} html[data-ui="next"] .strong{font-weight:600;color:var(--ink);} html[data-ui="next"] .italic{font-style:italic;} html[data-ui="next"] .upper{text-transform:uppercase;letter-spacing:.04em;}
html[data-ui="next"] .t-good{color:var(--status-good);} html[data-ui="next"] .t-crit{color:var(--status-crit);} html[data-ui="next"] .t-warn{color:var(--status-warn);} html[data-ui="next"] .t-info{color:var(--blue);}
html[data-ui="next"] .break{word-break:break-all;} html[data-ui="next"] .nowrap{white-space:nowrap;} html[data-ui="next"] .ta-r{text-align:right;} html[data-ui="next"] .ta-c{text-align:center;}
html[data-ui="next"] .btn.danger{color:var(--red-dark);}
html[data-ui="next"] table.tbl tr.selected td{background:var(--tint);}
html[data-ui="next"] ul.plain{list-style:none;margin:6px 0 0;padding:0;}
html[data-ui="next"] ul.plain li{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:3px 0;}
/* Stat Tone="status-…": the number carries the verdict's colour. */
html[data-ui="next"] .stat-value.status-good{color:var(--status-good);} html[data-ui="next"] .stat-value.status-warn{color:var(--status-warn);}
html[data-ui="next"] .stat-value.status-crit{color:var(--status-crit);} html[data-ui="next"] .stat-value.status-idle{color:var(--status-idle);}
/* A row of stats and what follows it: the concept's section gap. On a page, every section that meets a grid
   or a panel gets it, whatever it is (a board, tabs, a table, a notice); .page is a block, so the margin
   collapses with one a section already has instead of adding to it. Only the page's own children: inside a
   grid a margin would push a cell out of its row. */
html[data-ui="next"] .grid + .grid, html[data-ui="next"] .grid + .panel,
html[data-ui="next"] .page > :is(.grid,.panel) + *, html[data-ui="next"] .page > * + :is(.grid,.panel){margin-top:var(--gap,16px);}

/* ---------- Layout helpers every app needed and wrote under its own prefix (.crm-stack, .lm-stack, .fs-filter…) ---------- */
/* Panels stacked in one column of a split grid, with the section gap between them. */
html[data-ui="next"] .stack{display:flex;flex-direction:column;gap:var(--gap);min-width:0;}
/* .stack is older in the concept as the name-over-sub label inside a menu item or notification, and as the
   stacked variant of an entity head: those keep their own layout, not the section gap. */
html[data-ui="next"] :is(.pop-item, .notif) .stack{display:block;gap:0;}
html[data-ui="next"] .ent-head.stack{gap:14px;}
/* A filter in a toolbar (a Picker, a date): a width, so filters line up instead of stretching the row. */
html[data-ui="next"] .filter{width:200px;}
html[data-ui="next"] .filter-wide{width:280px;max-width:100%;}
@media (max-width:640px){ html[data-ui="next"] :is(.filter,.filter-wide){width:100%;} }
/* A button or line in a grid row that sits on the row's baseline, next to fields with labels above them. */
html[data-ui="next"] .self-end{align-self:end;}
html[data-ui="next"] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
html[data-ui="next"] .btn.btn-block{width:100%;justify-content:center;}
html[data-ui="next"] .btn-block + .btn-block{margin-top:8px;}

/* ---------- Panel and section subtitles (Ui/Panel Sub, Ui/SectionHead Sub) ---------- */
html[data-ui="next"] .panel-sub{font-size:11.5px;color:var(--ink-4);margin-top:1px;}
html[data-ui="next"] .section-head .section-sub{margin:2px 0 0;font-size:12.5px;color:var(--ink-3);}

/* ---------- Stat with a link (Ui/Stat Href): the number opens the list behind it ---------- */
html[data-ui="next"] .stat-link{color:inherit;text-decoration:none;}
html[data-ui="next"] .stat-link:hover{color:var(--blue);}

/* ---------- Tabs that are pages (Ui/Tabs Href): links drawn as the concept's tab buttons ---------- */
html[data-ui="next"] .tabs a{text-decoration:none;display:inline-block;}

/* ---------- Tabs with a count (Ui/Tabs Count): how many are behind each tab, so an empty one is not opened for nothing ---------- */
html[data-ui="next"] .tabs .tab-count{margin-left:6px;padding:0 6px;border-radius:var(--ct-radius-full);background:var(--line-soft);color:var(--ink-3);font-size:11.5px;font-weight:500;font-variant-numeric:tabular-nums;}
html[data-ui="next"] .tabs .on .tab-count{background:var(--tint);color:var(--blue);}

/* ---------- A feed with the facts under the title rather than beside it (.feed.stacked), for rows with a longer line ---------- */
html[data-ui="next"] .feed.stacked .ev{align-items:flex-start;}
html[data-ui="next"] .feed.stacked .ev .marker{margin-top:7px;}
html[data-ui="next"] .feed.stacked .ev .body > b{display:block;}
html[data-ui="next"] .feed.stacked .ev .body > span{display:block;margin-left:0;margin-top:2px;}

/* ---------- An icon-only button (.btn-icon), square; its name is in aria-label and title ---------- */
html[data-ui="next"] .btn.btn-icon{padding-left:0;padding-right:0;width:32px;justify-content:center;}
html[data-ui="next"] .btn.btn-sm.btn-icon{width:28px;}

/* ---------- On a phone: figures two by two (a row of stats is a summary, not four screens), tabs scroll sideways ---------- */
@media (max-width:640px){
  html[data-ui="next"] body :is(.grid-4,.grid-cols-4):has(> .stat){grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  html[data-ui="next"] :is(.grid-4,.grid-cols-4) > .stat .stat-value{font-size:clamp(17px,5.4vw,24px);overflow-wrap:anywhere;}
  html[data-ui="next"] .tabs{overflow-x:auto;scrollbar-width:none;}
  html[data-ui="next"] .tabs::-webkit-scrollbar{display:none;}
  html[data-ui="next"] .tabs :is(button,a){white-space:nowrap;flex-shrink:0;}
}

/* ---------- Segmented control (Ui/Segmented) on the concept's .seg: wraps on a narrow screen ---------- */
html[data-ui="next"] .seg{flex-wrap:wrap;}

/* ---------- Steps (Ui/Steps): where someone is in a flow of a few steps ---------- */
html[data-ui="next"] .steps{display:flex;gap:6px;list-style:none;margin:0 0 var(--gap);padding:0;flex-wrap:wrap;}
html[data-ui="next"] .steps li{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:var(--ct-radius-full);font-size:13px;color:var(--ink-4);background:var(--surface);}
html[data-ui="next"] .steps li.on{color:var(--blue);border-color:var(--blue-edge);font-weight:500;}
html[data-ui="next"] .steps li.done{color:var(--ink-3);}
html[data-ui="next"] .steps .step-n{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--field);font-size:12px;font-weight:600;}
html[data-ui="next"] .steps li.on .step-n{background:var(--blue);color:var(--on-accent);}
html[data-ui="next"] .steps li.done .step-n{background:var(--tint);color:var(--blue);}
html[data-ui="next"] .steps .step-n svg{width:12px;height:12px;}

/* ---------- Printing a page: the suite's chrome stays off paper ---------- */
@media print{
  #blazor-error-ui, dialog.reconnect, html[data-ui="next"] .rail, html[data-ui="next"] .topbar{display:none !important;}
}

/* ---------- App tiles (Ui/AppTiles, Ui/AppTile): the customer portal's dashboard and a colleague's start page ---------- */
html[data-ui="next"] .app-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;}
html[data-ui="next"] .app-tile{
  --app-accent:var(--blue);
  position:relative;display:flex;flex-direction:column;gap:12px;
  padding:18px 18px 14px;min-height:176px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-panel);
  box-shadow:var(--shadow);color:inherit;text-decoration:none;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s var(--ease);
}
/* The app's accent, after the tile's default so it wins at the same specificity. */
html[data-ui="next"] .app-accent-blue{--app-accent:var(--cyan-dark);}
html[data-ui="next"] .app-accent-navy{--app-accent:var(--blue);}
html[data-ui="next"] .app-accent-green{--app-accent:var(--status-good);}
html[data-ui="next"] .app-accent-amber{--app-accent:var(--status-warn);}
html[data-ui="next"] .app-accent-red{--app-accent:var(--red-dark);}
html[data-ui="next"] a.app-tile:hover{border-color:color-mix(in srgb, var(--app-accent) 40%, var(--line));box-shadow:var(--shadow-pop);transform:translateY(-1px);}
html[data-ui="next"] a.app-tile:focus-visible{outline:2px solid var(--app-accent);outline-offset:2px;}
html[data-ui="next"] .app-tile-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:12px;
  background:color-mix(in srgb, var(--app-accent) 11%, transparent);
  color:var(--app-accent);
}
html[data-ui="next"] .app-tile-icon svg{width:21px;height:21px;}
html[data-ui="next"] .app-tile-body{display:flex;flex-direction:column;gap:4px;flex:1;}
html[data-ui="next"] .app-tile-body b{font-family:var(--font-head);font-weight:700;font-size:16px;letter-spacing:-0.01em;color:var(--ink);}
html[data-ui="next"] .app-tile-body span{font-size:13px;line-height:1.5;color:var(--ink-3);}
html[data-ui="next"] .app-tile-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;}
html[data-ui="next"] .app-open{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--app-accent);}
html[data-ui="next"] .app-open svg{width:14px;height:14px;transition:transform .15s var(--ease);}
html[data-ui="next"] a.app-tile:hover .app-open svg{transform:translate(1px,-1px);}
html[data-ui="next"] .app-newtab{font-weight:500;color:var(--ink-4);font-size:12px;margin-right:4px;}
/* Dashed and on the field colour, so the edge needs more than --line (9% ink), which vanished there. */
html[data-ui="next"] .app-tile.is-soon{background:var(--field);box-shadow:none;border-style:dashed;border-color:color-mix(in srgb, var(--ink-4) 45%, transparent);}
html[data-ui="next"] .app-tile.is-soon .app-tile-icon{filter:grayscale(.6);opacity:.7;}
html[data-ui="next"] .app-soon{
  padding:1px 6px;border-radius:var(--r-chip);
  font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink-4);background:var(--hover);white-space:nowrap;
}
@media (prefers-reduced-motion:reduce){
  html[data-ui="next"] .app-tile,html[data-ui="next"] .app-open svg{transition:none;}
  html[data-ui="next"] a.app-tile:hover{transform:none;}
}

/* ---------- Reconnect: the dialog shown while the connection to the server is down (Ui/SuiteReconnect) ---------- */
/* The suite's glass (tokens.css --glass-*): a frosted card over the page, which blurs behind it. */
html[data-ui="next"] dialog.reconnect{
  width:min(380px, calc(100vw - 32px));margin:16vh auto auto;padding:30px 26px 22px;text-align:center;
  border:1px solid var(--glass-edge);border-radius:var(--r-lg);
  background:var(--glass-thick);-webkit-backdrop-filter:var(--glass-blur-lg);backdrop-filter:var(--glass-blur-lg);
  box-shadow:var(--shadow-lg), var(--inner-top);color:var(--ink-2);
}
html[data-ui="next"] dialog.reconnect[open]{animation:reconnect-in .22s var(--ease) both;}
/* The dialog takes focus when it opens (so keys stay inside it): no ring round the whole card. */
html[data-ui="next"] dialog.reconnect:focus{outline:none;}
html[data-ui="next"] dialog.reconnect::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(6px) saturate(120%);backdrop-filter:blur(6px) saturate(120%);}
html[data-ui="next"] .reconnect-title{font-family:var(--font-head);font-size:18px;letter-spacing:-0.01em;color:var(--ink);margin:16px 0 6px;}
html[data-ui="next"] dialog.reconnect p{margin:0;font-size:13.5px;line-height:1.55;color:var(--ink-3);}
html[data-ui="next"] .reconnect-count{color:var(--ink);font-variant-numeric:tabular-nums;font-weight:600;}
html[data-ui="next"] .reconnect-actions{display:flex;gap:8px;justify-content:center;margin-top:20px;}
html[data-ui="next"] #components-reconnect-modal:is(.components-reconnect-show,.components-reconnect-retrying) .reconnect-actions{display:none;}

/* The mark: a tinted disc with the state's icon, and a ring turning round it while it reconnects. */
html[data-ui="next"] .reconnect-mark{--mark:var(--blue);position:relative;display:grid;place-items:center;width:58px;height:58px;margin:0 auto;border-radius:50%;
  background:color-mix(in srgb, var(--mark) 10%, transparent);color:var(--mark);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--mark) 16%, transparent);}
html[data-ui="next"] .reconnect-icon{display:none;}
html[data-ui="next"] .reconnect-icon svg{width:24px;height:24px;}
html[data-ui="next"] .reconnect-ring{position:absolute;inset:-5px;border-radius:50%;border:2px solid transparent;border-top-color:var(--mark);border-right-color:color-mix(in srgb, var(--mark) 35%, transparent);display:none;animation:reconnect-turn .9s linear infinite;}
html[data-ui="next"] #components-reconnect-modal:is(.components-reconnect-show,.components-reconnect-retrying) .reconnect-ring,
html[data-ui="next"] #components-reconnect-modal:is(.components-reconnect-show,.components-reconnect-retrying) .reconnect-icon-lost,
html[data-ui="next"] #components-reconnect-modal:is(.components-reconnect-failed,.components-reconnect-resume-failed) .reconnect-icon-failed,
html[data-ui="next"] #components-reconnect-modal.components-reconnect-paused .reconnect-icon-paused{display:block;}
html[data-ui="next"] #components-reconnect-modal:is(.components-reconnect-failed,.components-reconnect-resume-failed) .reconnect-mark{--mark:var(--status-crit);}
html[data-ui="next"] #components-reconnect-modal.components-reconnect-paused .reconnect-mark{--mark:var(--ink-3);}
@keyframes reconnect-turn{to{transform:rotate(360deg);}}
@keyframes reconnect-in{from{opacity:0;transform:translateY(6px) scale(.98);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){
  html[data-ui="next"] dialog.reconnect[open]{animation:none;}
  html[data-ui="next"] .reconnect-ring{animation-duration:2.4s;}
}

/* One message and its buttons per state; Blazor sets the state class on the dialog. */
.components-reconnect-first-attempt-visible,.components-reconnect-repeated-attempt-visible,.components-reconnect-failed-visible,
.components-pause-visible,.components-resume-failed-visible{display:none !important;}
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible{display:revert !important;}
#components-reconnect-modal .btn:is(.components-reconnect-failed-visible,.components-pause-visible,.components-resume-failed-visible){display:none !important;}
#components-reconnect-modal.components-reconnect-failed .btn.components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .btn.components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .btn.components-resume-failed-visible{display:inline-flex !important;}

/* ---------- A dialog's error (Dialog Error): above the foot, outside the scrolling body, beside the button pressed ---------- */
html[data-ui="next"] .dlg-error{padding:0 var(--pad) 12px;flex-shrink:0;}
html[data-ui="next"] .dlg-error .notice{margin:0;}

/* ---------- A field's own error (Field Error), and the list of them near the button (FormErrorSummary) ---------- */
html[data-ui="next"] .field-error{font-size:12px;color:var(--red-dark);margin-top:4px;}
html[data-ui="next"] .field.has-error :is(input,select,textarea,.picker-btn,.rte){border-color:var(--red);}
html[data-ui="next"] .error-summary{margin:0 0 16px;}
html[data-ui="next"] .error-summary:focus{outline:none;box-shadow:var(--focus-ring);}
html[data-ui="next"] .error-summary ul{margin:4px 0 0;padding-left:18px;font-size:12.5px;color:var(--ink-2);}
html[data-ui="next"] .error-summary li + li{margin-top:2px;}
html[data-ui="next"] .error-summary a{color:var(--red-dark);text-decoration:underline;text-underline-offset:2px;}
/* A Feedback that reveals itself (Feedback Reveal): its focus is the scroll, not a ring round a notice. */
html[data-ui="next"] .feedback:focus{outline:none;}

/* ---------- Loading (Ui/Loading, PageShell Loaded): shown only after a moment, so a fast load shows nothing ---------- */
html[data-ui="next"] .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:56px 16px;color:var(--ink-4);font-size:12.5px;opacity:0;animation:loading-in .2s ease .3s forwards;}
html[data-ui="next"] .loading.inline{flex-direction:row;justify-content:flex-start;padding:12px 0;}
html[data-ui="next"] .loading.inline .spin.lg{width:16px;height:16px;border-width:2px;}
@keyframes loading-in{to{opacity:1;}}
@media (prefers-reduced-motion:reduce){
  html[data-ui="next"] .loading{animation:none;opacity:1;}
}

/* ---------- The connections hub (Ui/ConnectionHub, Ui/ConnectionView): readiness, the mode bar, groups, a connection's page ---------- */
html[data-ui="next"] .conn-ready .panel-body{display:flex;flex-direction:column;gap:12px;}
html[data-ui="next"] .conn-ready-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 24px;}
html[data-ui="next"] .conn-ready-num{font-family:var(--font-head);font-weight:700;font-size:22px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;}
html[data-ui="next"] .conn-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none;font-size:12.5px;color:var(--ink-3);}
html[data-ui="next"] .conn-legend li{display:inline-flex;align-items:center;gap:6px;}
html[data-ui="next"] .conn-legend b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;}
html[data-ui="next"] .conn-swatch{display:inline-block;width:9px;height:9px;border-radius:2px;}
html[data-ui="next"] .conn-bar{display:flex;gap:2px;height:8px;border-radius:4px;overflow:hidden;background:var(--line-soft);}
html[data-ui="next"] .conn-bar span{display:block;height:100%;flex-basis:0;min-width:4px;}
html[data-ui="next"] :is(.conn-bar,.conn-legend) .conn-live{background:var(--status-good);}
html[data-ui="next"] :is(.conn-bar,.conn-legend) .conn-demo{background:var(--c2);}
html[data-ui="next"] :is(.conn-bar,.conn-legend) .conn-off{background:var(--ink-4);}
html[data-ui="next"] :is(.conn-bar,.conn-legend) .conn-planned{background:var(--c3);}
html[data-ui="next"] .conn-group .panel-actions .help{white-space:nowrap;}
html[data-ui="next"] .conn-table{table-layout:fixed;width:100%;min-width:760px;}
html[data-ui="next"] .conn-table .conn-c-mode{width:142px;}
html[data-ui="next"] .conn-table .conn-c-health{width:132px;}
html[data-ui="next"] .conn-table .conn-c-day{width:112px;}
html[data-ui="next"] .conn-table .conn-c-last{width:142px;}
html[data-ui="next"] .conn-table td.conn-name .conn-provider{color:var(--ink-3);}
html[data-ui="next"] .conn-table td.conn-name .help{margin-top:2px;line-height:1.4;}
html[data-ui="next"] .conn-replaces{color:var(--status-warn);}
html[data-ui="next"] .conn-sim{margin-left:4px;border-style:dashed;}
html[data-ui="next"] .conn-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:-4px 0 14px;}
html[data-ui="next"] .conn-state .conn-sim{margin-left:0;}
html[data-ui="next"] .conn-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px;line-height:1.5;}
html[data-ui="next"] .conn-steps li::marker{font-weight:700;color:var(--blue);}
html[data-ui="next"] :is(.conn-list,.conn-names){margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;}
html[data-ui="next"] .conn-names{padding-left:0;list-style:none;}
html[data-ui="next"] .conn-replaces-block{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line-soft);}
html[data-ui="next"] .conn-replaces-block .stat-label{margin:0;}
html[data-ui="next"] .conn-what{min-width:220px;}
html[data-ui="next"] .conn-test{display:flex;align-items:center;justify-content:space-between;gap:12px;}
html[data-ui="next"] .conn-test + .notice{margin:14px 0 0;}
@media (max-width:640px){
  html[data-ui="next"] .conn-table .conn-wide{display:none;}
  html[data-ui="next"] .conn-table{min-width:0;}
  html[data-ui="next"] .conn-table .conn-c-mode{width:84px;}
  html[data-ui="next"] .conn-table .conn-c-health{width:104px;}
  html[data-ui="next"] .conn-table .conn-sim{display:none;}
  html[data-ui="next"] .conn-ready-num{font-size:19px;}
}
