/* SignIn/sign-in.css */
/* The sign-in page, written once for every website: the picture beside the card, the card, its fields and
   buttons, the notice, and the narrow screen. A website's own styles.css comes after this file and says its
   colours: --bg, --panel, --panel-2, --line, --text and --accent, and these of the sign-in page:
   --signin-visual, --signin-deep, --signin-soft, --signin-field-line, --signin-eye, --signin-notice. */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, clamp(560px, 54vw, 920px)) minmax(360px, 1fr);
}

.visual {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  background: var(--signin-visual);
}

.visual img {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: block;
  object-fit: cover;
  object-position: center;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, var(--signin-deep) 100%);
  pointer-events: none;
}

.reference {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 6px;
  background: rgb(0 0 0 / .76);
  color: #fff;
  font-size: 13px;
}

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--signin-deep);
}

.card {
  width: min(100%, 486px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 36px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.intro {
  margin: 0 0 30px;
  color: var(--signin-soft);
  font-size: 17px;
}

label {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 56px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid var(--signin-field-line);
  border-radius: 8px;
  background: var(--panel-2);
  color: #fff;
  font: 700 14px Arial, Helvetica, sans-serif;
}

.password { position: relative; }
.password input { padding-right: 56px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }

.password button {
  position: absolute;
  right: 12px;
  top: 41px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--signin-eye);
  cursor: pointer;
}

.password button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.sign-in {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--signin-deep);
  font: 800 16px Arial, Helvetica, sans-serif;
}

.forgot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-decoration: underline;
  margin: -6px 0 18px;
  color: var(--accent);
  text-align: right;
  font-size: 14px;
}

/* "Keep me signed in for 30 days" on the left and "Forgot password?" on the
   right, on one line under the password; on a narrow card they stack. */
.remember {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: -6px 0 18px;
}

.remember .forgot { width: auto; margin: 0 0 0 auto; }

.keep {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--signin-soft);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.keep input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.notice {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--signin-notice);
  color: var(--signin-soft);
  font-size: 14px;
  line-height: 1.5;
}

.notice strong {
  display: block;
  color: #fff;
}

.shield {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

@media (max-width: 920px) {
  main { grid-template-columns: 1fr; }
  .visual {
    height: clamp(260px, 42dvh, 420px);
    min-height: 0;
  }
  .visual img { min-height: 0; }
  .login-wrap {
    min-height: auto;
    padding: 24px 16px 40px;
  }
  .card { padding: 28px; }
}

[hidden] { display: none !important; }
button { cursor: pointer; }
#status { line-height: 1.5; color: var(--signin-soft); overflow-wrap: anywhere; }
#status[data-error="true"] { color: #ffb4ab; }
.secondary { margin-top: 16px; padding: 10px 0; border: 0; background: none; color: var(--accent); text-decoration: underline; font: inherit; }
.notice { margin-top: 24px; }

/* Common/personal.css */
.personal-work {
  width: min(840px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow-y: auto;
}
.personal-work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.personal-work-tabs [aria-selected="true"] {
  color: #0f7a4f;
  border-color: #0f7a4f;
}
.personal-work-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.personal-work-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.personal-work-item p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.personal-work-item small {
  color: #4b5563;
}
.personal-work-actions,
.personal-work-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}
.personal-policy-text {
  white-space: pre-wrap;
  max-width: 75ch;
  line-height: 1.6;
}

/* Shell/styles.css */
:root {
      color-scheme: dark;
      /* One height for every button, dropdown and search of a page, the height of Finance's Add expense, with its words;
         the top bar's search keeps its own (George, 2026-11-07). */
      --control: 28px;
      --control-font: 12px;
      --bg: #050607;
      --panel: #101317;
      --panel-2: #202838;
      --line: #303641;
      --text: #f6f7fb;
      --accent: #f2b21a;
      --signin-visual: #0b0f14;
      --signin-deep: #070809;
      --signin-soft: #dce5f2;
      --signin-field-line: #69758a;
      --signin-eye: #eaf0f8;
      --signin-notice: #16191e;
    }

/* Admin panel: the side menu 298 wide (George, 2026-10-19: 20% wider, for its drawing), 64 when folded (George, 2026-10-27).
   Every word in Inter, loaded by the website (DESIGN.md, Typography). */
.panel { --side: 298px; min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
@media (min-width: 761px) { .panel.is-folded { --side: 64px; } }
/* The centre is light and the side menu stays dark. Everything inside takes its
   colours from these, so a section needs none of its own for text and surfaces. */
.panel-body {
  color-scheme: light;
  --bg: #f3f4f6; --panel: #ffffff; --panel-2: #f6faf7; --line: #d7e2db; --text: #101814; --muted: #55635b;
  --good: #17734a; --good-bg: #e2f3ea; --warn: #96650a; --warn-bg: #fdf0d2; --bad: #b3261e; --bad-bg: #fce4e1;
  --shadow: 0 1px 2px rgb(16 24 20 / .05);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  min-width: 0; display: flex; flex-direction: column; color: var(--text);
  /* The centre's ground: the satin a shader draws on `#panel-ground` (ground.js, George, 2026-10-20); under it, and
     where WebGL is missing, a light gradient that stays with the window. */
  background: linear-gradient(135deg, #f6f8f9, #e7ebee) left var(--side) top 84px / calc(100vw - var(--side)) calc(100dvh - 84px) no-repeat fixed, var(--bg);
}
/* The top bar of George's drawing (2026-10-26): light, 84px high as before; the search on the left, the mask, the
   bell and the person on the right. The page's area is still said, for screen readers alone. */
.panel-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 84px;
  padding: 0 clamp(16px, 2.4vw, 32px); border-bottom: 1px solid #e5e7eb; background: #f4f6f9; color: #374151; font-size: 14px; }
.top-here { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@font-face { font-family: Inter; src: url("/assets/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Michroma; src: url("/assets/michroma-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.top-search { position: relative; flex: 0 1 576px; display: flex; align-items: center; gap: 12px; min-width: 0; height: 40px; padding: 0 8px 0 14px;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.top-search > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #6b7280; stroke-width: 1.8; stroke-linecap: round; }
.panel-top .top-search input { flex: 1; align-self: stretch; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #111827; font: inherit; font-size: 14px; outline: none; }
.top-search input::placeholder { color: #6b7280; }
.top-search kbd { flex: none; padding: 2px 7px; border: 1px solid #e5e7eb; border-left-width: 1px; border-radius: 6px; color: #374151; font: 600 11px/1.4 inherit; }
.top-results { position: absolute; top: 46px; left: 0; right: 0; z-index: 5; margin: 0; padding: 6px; list-style: none; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgb(16 24 40 / .14); }
.top-results a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 6px; color: #111827; text-decoration: none; }
.top-results a:hover, .top-results a:focus { background: #f3f4f6; }
.top-results span, .top-results .top-none { color: #6b7280; }
.top-results .top-none { padding: 9px 10px; }
.panel-account { position: relative; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.top-action { position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: #374151; cursor: pointer; }
.top-action:hover:not(:disabled) { background: #e9edf2; color: #111827; }
.top-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border: 2px solid #f4f6f9; border-radius: 50%; background: #e11d48; }
.top-account { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 6px 4px 4px; border: 0; border-radius: 10px; background: none; color: #111827; font: inherit; text-align: left; cursor: pointer; }
.top-account:hover { background: #e9edf2; }
.top-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #1f2937; color: #f2b21a; font-weight: 800; }
.top-face img { width: 100%; height: 100%; object-fit: cover; }
.top-who { display: grid; min-width: 0; max-width: 220px; line-height: 1.35; }
.panel-hi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.panel-hi strong { color: inherit; }
.top-role { color: #4b5563; font-size: 13px; white-space: nowrap; }
.top-chevron { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-menu { position: absolute; top: 58px; right: 0; z-index: 5; display: grid; min-width: 200px; padding: 6px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgb(16 24 40 / .14); }
.top-menu[hidden] { display: none; }
.top-menu a, .top-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: #111827; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.top-menu a:hover, .top-menu button:hover, .top-menu a[aria-current="page"] { background: #f3f4f6; }
.top-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* A narrow bar keeps the search, the bell and the picture; the words and the key go. */
@media (max-width: 760px) { .top-search kbd, .top-who, .top-chevron, #mask-toggle { display: none; } .top-search { flex: 1 1 auto; } .panel-account { gap: 4px; } }
/* The mask: with it on, every number of the page is behind frosted glass. Common/mask.js marks what holds one. */
#mask-toggle .mask-on, #mask-toggle[aria-pressed="true"] .mask-off { display: none; }
#mask-toggle[aria-pressed="true"] .mask-on { display: block; }
#mask-toggle[aria-pressed="true"] { background: #1f2937; color: var(--accent); }
html[data-mask="on"] .panel-main [data-masked] { filter: blur(max(5px, .36em)); user-select: none; }
/* The side menu starts under the line of the top bar (George, 2026-10-14): above it, a cell as high as the bar
   holds the logo in its middle, and a quiet line closes the cell where the bar ends. */
.panel-side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 0 16px 24px; border-right: 1px solid var(--line);
  /* Black, with no drawing (George, 2026-10-26). */
  background: #0b0d10; }
.panel-logo { flex: none; align-self: center; display: block; width: 100%; max-width: 209px; height: 84px; object-fit: contain; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a { display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-left: 3px solid transparent; border-radius: 8px; color: #b9c4d4; text-decoration: none; font-size: 14px; font-weight: 500; }
/* A built page with nothing in it yet stays out of the menu and the search, open by its address only (George, 2026-10-27). */
.panel-nav a[data-off-menu] { display: none !important; }
.panel-nav a, .panel-fly a { cursor: pointer; }
.panel-nav a:hover { background: var(--panel); color: var(--text); }
.panel-nav a[aria-current="page"] { background: var(--panel-2); border-left-color: var(--accent); color: var(--text); font-weight: 600; }
.panel-nav a[aria-current="page"] svg { color: var(--accent); }
/* A page not built yet (George, 2026-10-26: "os que não tem deixe em vermelho"). */
.panel-nav a[data-planned], .panel-nav a[data-planned] svg { color: #ff7b72; }
/* A count beside an item of the side menu, such as the employee's idle leads beside Sales; drawn after the item's name,
   which stays its name alone. */
.panel-nav a[data-count]::after { content: attr(data-count); margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 800; text-align: center; }
.panel-nav a[data-count][data-alarm]::after { background: var(--bad-bg); color: var(--bad); }
.panel-nav .nav-alarm { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--bad-bg); color: var(--bad); font-size: 12px; font-weight: 800; text-align: center; }
.panel-group summary:has(.nav-alarm:not([hidden]))::after { margin-left: 8px; }
.panel-nav svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-group { display: flex; flex-direction: column; gap: 2px; }
.panel-group summary { display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-left: 3px solid transparent; border-radius: 8px; color: #b9c4d4; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.panel-group summary::-webkit-details-marker { display: none; }
.panel-group summary:hover { background: var(--panel); color: var(--text); }
.panel-group summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.panel-group[open] summary::after { transform: rotate(45deg); }
.panel-group a { position: relative; margin: 2px 0 0 14px; padding: 5px 14px 5px 16px; gap: 10px; font-size: 14px; }
/* A yellow line along the open group's pages (George, 2026-10-26, his drawing of the side menu): unbroken across the
   space between two links, from the first to the last. */
.panel-group a::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.panel-group a + a::before { top: -4px; }
.panel-group a svg { width: 16px; height: 16px; }
/* The menu under fixed headings (George, 2026-10-26): a heading is a word, never a link, and stands only over a menu the employee may open. */
.panel-section { display: flex; flex-direction: column; gap: inherit; }
.panel-section + .panel-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
/* The menu's first heading stands on the line of the page's name, its first link on the line under the name (George,
   2026-10-29): the page's name is 24px lower than the menu would start. */
@media (min-width: 761px) { .panel:not(.is-folded) .panel-nav { margin-top: 24px; } }
.panel-heading { margin: 0 0 2px; padding: 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel-section:not(:has(> :not(.panel-heading):not([hidden]))) { display: none; }
/* The button that folds the menu, and the menu folded to its drawings (George, 2026-10-27; Shell/fold.js). The button
   is placed in the side menu, which stays still while the centre scrolls (sticky above; George, 2026-10-29). */
.panel-fold { position: absolute; top: 28px; right: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #22272e; border-radius: 8px; background: #161a20; color: #b9c4d4; cursor: pointer; }
.panel-fold:hover { color: #fff; }
.panel-fold:focus-visible, .panel-nav a:focus-visible, .panel-group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.panel-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (min-width: 761px) {
  .panel.is-folded .panel-side { padding: 0 8px 24px; }
  .panel.is-folded .panel-fold { position: static; flex: none; width: 32px; height: 32px; margin: 26px auto 0; }
  .panel.is-folded .panel-logo, .panel.is-folded .panel-heading { display: none; }
  .panel.is-folded .panel-section > a, .panel.is-folded .panel-group summary { justify-content: center; padding: 9px 0; gap: 0; font-size: 0; border-left-width: 0; }
  .panel.is-folded .panel-nav a[data-count]::after, .panel.is-folded .panel-nav .nav-alarm { display: none; }
  .panel.is-folded .panel-group summary::after { display: none; }
  .panel.is-folded .panel-group > a { display: none; }
}
.panel-fly, .panel-tip { position: fixed; left: 60px; z-index: 40; border: 1px solid #22272e; background: #12161b; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .35);
  font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.panel-tip { padding: 5px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; pointer-events: none; }
.panel-fly { display: grid; gap: 2px; min-width: 220px; padding: 8px; border-radius: 10px; }
.panel-fly strong { padding: 4px 10px 6px; font-size: 13px; font-weight: 600; }
.panel-fly a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: #b9c4d4; font-size: 14px; font-weight: 500; text-decoration: none; }
.panel-fly a:hover, .panel-fly a:focus-visible { background: #1d2330; color: #fff; }
.panel-fly a[aria-current="page"] { background: #1d2330; color: #fff; font-weight: 600; }
.panel-fly a[aria-current="page"] svg { color: var(--accent); }
.panel-fly a[data-planned], .panel-fly a[data-planned] svg { color: #ff7b72; }
.panel-fly svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-main { --edge: clamp(16px, 4vw, 48px); flex: 1; padding: 32px var(--edge) 56px; min-width: 0;; position: relative; z-index: 1; }
/* Only the work area moves (George, 2026-10-29): the top bar, the page's name and its tabs stay; the canvas under the
   tabs scrolls, over the satin. A page without tabs (Welcome) scrolls whole. On a phone the page scrolls as before. */
@media (min-width: 761px) {
  .panel-body { height: 100dvh; overflow: hidden; }
  .panel-main { min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
  #section-body:has(> div:not([hidden])), #section-body > div:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #section-body > div > .view:not([hidden]), #section-body > div > .view > #team-list:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #section-body > div > .view { overflow-x: hidden; overflow-y: auto; }
  /* A page with tabs never scrolls itself, not even to a field that takes the focus: its work area does. Its work area's
     scroll bar, at the window's edge, stays drawn. */
  #section-body > div > .view:has(> .page-tabs, > .page-tabs-row, > #team-list:not([hidden])) { overflow: clip; overflow-clip-margin: var(--edge); }
  #section-body > div > .view:not(:has(.page-tabs)) { padding-bottom: 56px; }
  /* The work area: what stands under the tabs, but a status line or a second row of tabs. It alone gives way; the name
     and the tabs keep their height. */
  :is(#section-body > div > .view, #team-list) > * { flex-shrink: 0; }
  :is(#section-body > div > .view, #team-list) > :is(.page-tabs, .page-tabs-row) ~ :not(p, dialog, template, script, .integrations-tabs-row) { flex: 1 1 0; min-height: 0;
    overflow-x: hidden; overflow-y: auto; align-content: start; grid-auto-rows: max-content; scrollbar-gutter: stable; padding-bottom: 56px;
    /* Its scroll bar at the window's edge; its content ends where the page's name area ends. */
    margin-right: calc(-1 * var(--edge)); padding-right: max(0px, calc(var(--edge) - var(--bar, 0px))); }
  :is(#section-body > div > .view, #team-list) > :is(.page-tabs, .page-tabs-row) ~ :not(p, dialog, template, script, .integrations-tabs-row) > * { flex-shrink: 0; }
  .smartagents-details { top: 0; }
}
#panel-ground { position: fixed; top: 84px; left: var(--side); z-index: 0; display: block; width: calc(100vw - var(--side)); height: calc(100dvh - 84px); pointer-events: none; }
.panel-body button, .panel-body input, .panel-body select { font-family: inherit; }
.panel-body input, .panel-body select { border-color: #b8c7bd; background: var(--panel); color: var(--text); }
.panel-body dialog { box-shadow: 0 24px 60px rgb(16 24 20 / .25); }
.panel-body dialog::backdrop { background: rgb(16 24 20 / .45); }
.dialog-status { min-height: 22px; margin: 0 0 12px; line-height: 1.5; color: var(--muted); }
.panel-body [role="status"] { color: var(--muted); }
.panel-body [role="status"][data-error="true"] { color: var(--bad); }
.panel-body .panel-empty, .panel-body th { color: var(--muted); }
.panel-empty { margin: 0; padding: 40px 24px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.panel-main h1 { font-size: 32px; margin: 0 0 8px; line-height: 1.15; }
.panel-main h2 { margin: 0 0 18px; font-size: 18px; }
select { width: 100%; height: 56px; margin-bottom: 24px; padding: 0 12px; border: 1px solid #69758a; border-radius: 8px; background: var(--panel-2); color: #fff; font: 700 14px Arial, Helvetica, sans-serif; }
input:disabled, select:disabled { opacity: .7; cursor: not-allowed; }
dialog { width: min(100% - 32px, 520px); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
dialog h2 { margin: 0 0 18px; font-size: 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dialog-actions .sign-in { width: auto; padding: 0 24px; height: 44px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 760px) {
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .panel-side { position: static; height: auto; gap: 12px; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); background: #0b0d10; }
  .panel-body { background-position: center; background-size: cover; background-attachment: scroll; }
  #panel-ground { display: none; }
  .panel-logo { align-self: flex-start; max-width: 160px; height: auto; }
  .panel-nav { flex-direction: row; flex-wrap: wrap; }
  .panel-nav a { padding: 10px 12px; }
  .panel-section { display: contents; }
  .panel-heading { display: none; }
  .panel-fold { display: none; }
  .panel-group { width: 100%; }
  .panel-group a { padding-left: 14px; }
}

/* What the sections share. A section's outer element carries the class
   `view`, and takes these pieces from here instead of drawing its own: the
   heading, the grid, the counts, the card, the list, the white button, a chip,
   a value with a tick or a cross. Some are
   written with `.panel-body` in front so that they hold over the base rules of
   tables, dialogs, and buttons above. */

/* The heading, the same on every page: the area above the page's name, the main action or Refresh at
   the right, then the page's tabs, Dashboard first, each with its picture. */
/* The heading has one height on every page, whatever stands at its right, so the area, the name and
   the tabs are at the same place from page to page. Its two sides start at the same line. */
.panel-body .view .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; height: 52px; margin-bottom: 16px; }
/* A page says its name alone: its area is the title of the top bar (George, 2026-10-14). A page that is read
   again on request has its button at the right and, under it, when it was last updated. */
.panel-body .view h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 32px; }
.panel-body .view .page-refresh { display: grid; justify-items: end; gap: 0; }
.panel-body .view .page-refresh p { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; line-height: 20px; text-align: right; white-space: nowrap; }
/* The buttons of the heading are of the one height (--control), centred on the name's 32px line, so what stands under
   them (Last updated) stays on the line of the sentence under the name (George, 2026-10-28 and 2026-11-07). */
.panel-body .view .page-head h1:only-child { margin-bottom: 0; }
.panel-body .view .page-head button { height: var(--control); min-height: var(--control); margin-block: calc((32px - var(--control)) / 2); padding: 0 10px; border-radius: 8px; font-size: var(--control-font); line-height: 1; }
.panel-body .view .page-head button svg { width: 15px; height: 15px; }
.panel-body .view .page-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* Under the tabs every page keeps the same room before its content: one line where the page says what
   happened (`page-status`), empty most of the time. A page with no such line keeps the same room empty. */
.panel-body .view .page-tabs { display: flex; flex-wrap: wrap; gap: 0 32px; margin: -8px 0 0; border-bottom: 1px solid var(--line); }
.panel-body .view .page-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.panel-body .view .page-tabs-scroll::-webkit-scrollbar { display: none; }
.panel-body .view .page-tabs-scroll button { flex-shrink: 0; white-space: nowrap; }
.panel-body .view .page-tabs:not(:has(+ .page-status)) { margin-bottom: 36px; }
/* The tabs and, at their right on the same line, what serves every tab: a page's period and its add buttons (Finance,
   George 2026-11-06). The line under the tabs runs on under the tools, which take the tabs' height, so the page starts
   where every page does; with too little room the tabs scroll sideways, and on a phone the tools go under them. */
.panel-body .view .page-tabs-row { display: flex; flex-wrap: nowrap; align-items: stretch; margin: -8px 0 36px; }
.panel-body .view .page-tabs-row > .page-tabs { flex: 0 1 auto; min-width: 0; margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.panel-body .view .page-tabs-row > .page-tabs > button { flex-shrink: 0; white-space: nowrap; }
.panel-body .view .page-tabs-row > .page-tabs-tools { flex: 1 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  box-sizing: border-box; padding: 0 0 0 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .panel-body .view .page-tabs-row { flex-wrap: wrap; } .panel-body .view .page-tabs-row > .page-tabs-tools { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; padding: 10px 0; } }
.panel-body .view .page-status { min-height: 22px; margin: 7px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.panel-body .view .page-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 2px 9px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
/* A list of what changed, newest first: what happened, and under it who started it and when. A change
   that sent an agent back, or left it down, is marked. */
.panel-body .change-list { display: grid; }
.panel-body .change-row { display: grid; gap: 2px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.panel-body .change-row:last-child { border-bottom: 0; }
.panel-body .change-row strong { font-weight: 700; }
.panel-body .change-row span { color: var(--muted); font-size: 13px; }
.panel-body .change-row.is-alert strong { color: var(--warn); }
.panel-body .change-none { margin: 0; padding: 10px 2px; color: var(--muted); font-size: 14px; }
/* A line drawing asked for in `data-icon`. */
.panel-body .line-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .page-tabs .line-icon { width: 17px; height: 17px; }
.panel-body .view .page-tabs button[aria-selected="true"] { border-bottom-color: #00845b; color: #00744f; }
.panel-body .view .page-tabs button:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.panel-body .view .page-head .sign-in { width: auto; height: var(--control); min-height: var(--control); padding: 0 10px; font-size: var(--control-font); white-space: nowrap; }

/* The canvas: one grid of three tracks for a view's cards and what is under
   them, so their edges are shared by definition. */
.view .view-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* A count: an icon on its colour, a quiet label, and a large number. */
.view .count-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.view .count-card span { color: var(--muted); font-size: 14px; }
.view .count-card strong { display: block; margin-top: 2px; font-size: 28px; font-weight: 800; line-height: 1.1; }
.view .count-card-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; }
.view .count-card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.view .count-card[data-state="active"] .count-card-icon { background: var(--good-bg); color: var(--good); }
.view .count-card[data-state="invited"] .count-card-icon { background: var(--warn-bg); color: var(--warn); }
.view .count-card[data-state="suspended"] .count-card-icon { background: var(--bad-bg); color: var(--bad); }

/* The card: a white surface with a strong title. */
/* A summary beside a list, on the grid of three tracks: the list takes them all, and two while a summary
   is open, which takes the third. With less room the summary lies over the page, from the right. The
   parent that holds both says `has-preview` while one is open. */
.view .view-board { grid-column: 1 / -1; }
.has-preview .view-board { grid-column: span 2; }
.view .view-preview { grid-column: 3; align-self: start; }
.view .view-preview[hidden] { display: none; }
@media (max-width: 1400px) {
  .has-preview .view-board { grid-column: 1 / -1; }
  .view .view-preview:not([hidden]) { position: fixed; z-index: 1; top: 67px; right: 0; bottom: 0; width: min(440px, 100vw); height: calc(100dvh - 67px); overflow-y: auto; border-radius: 0; box-shadow: -16px 0 40px rgb(16 24 20 / .18); }
}
@media (max-width: 760px) {
  .view .view-preview:not([hidden]) { top: 0; z-index: 3; height: 100dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  .view .view-preview:not([hidden]) { animation: view-preview-in .08s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes view-preview-in { from { opacity: 0; transform: translateX(32px); } }
}
@media (max-width: 1400px) and (prefers-reduced-motion: no-preference) {
  .view .view-preview:not([hidden]) { animation-name: view-preview-overlay-in; }
  @keyframes view-preview-overlay-in { from { transform: translateX(100%); } }
}
.panel-body .view .view-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.panel-body .view .view-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 12px; }
.panel-body .view .view-card h2 { margin: 0; font-size: 14px; font-weight: 700; }

/* Shared selection buttons, details and preview actions for Team and Clients. */
:is(.team-name, .view-name) { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; }
:is(.team-name, .view-name):hover, :is(.team-name, .view-name):focus-visible { text-decoration: underline; }
.preview-buttons { display: grid; gap: 10px; margin-top: 18px; }
.preview-open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 0; border-radius: 8px; background: var(--good); color: #fff; font: inherit; font-size: 15px; font-weight: 700; }
.preview-open:hover:not(:disabled) { filter: brightness(1.1); }
.preview-open:disabled { opacity: .6; }
.preview-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(.team-rows, .view-rows) { margin: 0; }
:is(.team-rows, .view-rows) div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); font-size: 14px; }
:is(.team-rows, .view-rows) dt { color: var(--muted); }
:is(.team-rows, .view-rows) dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

/* The button: white, with a line icon when it has one; red for what takes
   something away, and filled when it waits for a second press. */
.panel-body .view .row-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; height: var(--control); padding: 0 10px; border: 1px solid #c3d0c8; border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: var(--control-font); font-weight: 600; }
.panel-body .view .row-action:hover:not(:disabled) { background: var(--panel-2); }
.panel-body .view .row-action svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .row-action.danger { border-color: var(--bad); color: var(--bad); }
.panel-body .view .row-action.danger:hover:not(:disabled) { background: var(--bad-bg); }
.panel-body .view .row-action[data-armed] { background: var(--bad); color: #fff; }

/* A value that carries a mark: a tick for yes, a cross for no. */
.view .marked { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.view .marked[data-state="active"]::before, .view .marked[data-state="none"]::before { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.view .marked[data-state="active"] { color: var(--good); }
.view .marked[data-state="active"]::before { content: "✓"; background: var(--good); }
.view .marked[data-state="none"] { color: var(--muted); }
.view .marked[data-state="none"]::before { content: "✕"; background: #8a968f; }
.view .marked[data-state="invited"] { color: var(--warn); }
.view .marked[data-state="suspended"] { color: var(--bad); }
.view .marked[data-state="archived"] { color: var(--muted); }

/* A chip: a grey tag; with a state, a status as its word and a dot in its
   colour, with no ground. */
.view .chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; background: #e9eeeb; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.view .chip[data-state] { padding: 0; background: none; }
.view .chip[data-state]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.view .chip[data-state="active"] { color: var(--good); }
.view .chip[data-state="invited"] { color: var(--warn); }
.view .chip[data-state="suspended"] { color: var(--bad); }
.view .chip[data-state="archived"] { color: var(--muted); }

/* A list: a table with a quiet rounded header, inside a card. */
.view .view-card .table-wrap { border: 0; border-radius: 0; }
.panel-body .view .view-table th { padding: 7px 10px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; border-bottom: 0; }
.view .view-table th:first-child { border-radius: 8px 0 0 8px; }
.view .view-table th:last-child { border-radius: 0 8px 8px 0; }
.view .view-table td { padding: 7px 10px; color: var(--muted); font-size: 12.5px; }
.view .view-table td strong { color: var(--text); }
.view .view-table tr[data-selected] { background: var(--good-bg); }

@media (max-width: 900px) {
  .view .view-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-body .view .page-head { flex-wrap: wrap; height: auto; min-height: 52px; }
  .panel-body .view h1 { font-size: 22px; }
}

/* The pieces of a canvas of cards (Common/pieces.js) and the months as bars (Modules/Finance/finance.js):
   drawn by the pages not yet in the new look, under the names Finance gave them. */
.fin-canvas > * { min-width: 0; }
.fin-canvas[hidden] { display: none; }
.fin-canvas .fin-span-2 { grid-column: span 2; }
.fin-canvas .fin-span-3, .fin-canvas > .fin-warning { grid-column: 1 / -1; }
.panel-body .view .fin-card { display: flex; flex-direction: column; gap: 12px; }
.panel-body .view .fin-card > header { margin-bottom: 0; }
.fin-aside { color: var(--muted); font-size: 13px; font-weight: 600; text-align: right; }
.fin-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* A count carries a quiet line under its figure, and a long figure keeps to its card. */
.view .fin-count > div { min-width: 0; }
.view .fin-count strong { font-size: 24px; overflow-wrap: anywhere; }
.view .fin-count small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
/* A label and its figure down a list; under each, when asked, the bar of its share. */
.fin-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.fin-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); }
.fin-facts strong { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.fin-share { flex: 0 0 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--good) var(--share), #dde4ea var(--share)); }
/* The months as bars. */
@media (max-width: 1100px) { .fin-canvas .fin-span-2 { grid-column: 1 / -1; } }

/* A reload with a session held: the sign-in forms stay hidden until Common/SignIn/boot.js shows the frame. */
html.resuming main { display: none; }

/* Design/page.css */
/* The pieces every page of the platform is drawn with (Common/Design/DESIGN.md): the tabs under the page's
   name, Dashboard first, each with its drawing; the status line under them; the canvas of cards; the counts.
   Written once for every website: each website's own colours come from its variables, so the same rules draw
   the Portal's dark page and Admin's light one. A page's root carries the class `page` and says in
   `data-page` which tab is open; `Common/Sections/page-tabs.js` shows the blocks whose `data-shown-on`
   names that tab and hides the others.
   The Portal uses these from 2026-10-15; Admin keeps its own copy until a refactor moves it onto them. */
.page { --page-muted: var(--muted, #C8D8CF); --page-good: var(--good, #7ddc9a); --page-good-bg: var(--good-bg, rgb(125 220 154 / .14));
  --page-warn: var(--warn, var(--accent, #E1B21A)); --page-warn-bg: var(--warn-bg, rgb(225 178 26 / .14));
  --page-bad: var(--bad, #ffb4ab); --page-bad-bg: var(--bad-bg, rgb(255 180 171 / .14)); --page-tab: var(--good, #7ddc9a); }
.page .page-tabs { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 0; border-bottom: 1px solid var(--line); }
.page .page-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0 9px; border: 0; border-bottom: 3px solid transparent;
  background: none; color: var(--page-muted); font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.page .page-tabs button svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page .page-tabs button[aria-selected="true"] { border-bottom-color: var(--page-tab); color: var(--page-tab); }
.page .page-tabs button:focus-visible { outline: 3px solid var(--page-tab); outline-offset: 3px; }
/* One line under the tabs where the page says what happened; it keeps its room when empty. */
.page .page-status { min-height: 22px; margin: 7px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.page .page-status[data-error="true"] { color: var(--page-bad); }
/* The canvas: one grid of three tracks; a block spans them all unless it says otherwise. */
.page .page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.page .page-grid > .page-wide { grid-column: 1 / -1; }
.page [hidden] { display: none; }
/* A block of a tab that is not open (Common/Sections/page-tabs.js), on every website, whatever else styles it. */
[data-off-tab] { display: none !important; }
/* A count: its drawing on its colour, a quiet name, a large number and a line under it. */
.page .count-card { display: flex; align-items: center; gap: 20px; min-height: 135px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow, none); }
.page .count-card span { color: var(--page-muted); font-size: 16px; }
.page .count-card strong { display: block; margin-top: 1px; font-size: 38px; font-weight: 800; line-height: 1.1; }
.page .count-card small { display: block; margin-top: 3px; color: var(--page-muted); font-size: 15px; }
.page .count-card-icon { flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 12px; background: var(--page-good-bg); color: var(--page-good); }
.page .count-card-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page .count-card[data-state="warn"] .count-card-icon { background: var(--page-warn-bg); color: var(--page-warn); }
.page .count-card[data-state="bad"] .count-card-icon { background: var(--page-bad-bg); color: var(--page-bad); }
/* A card of the canvas: its title inside its own header. */
.page .page-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow, none); }
.page .page-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 18px; }
.page .page-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.page .page-card > header small { color: var(--page-muted); font-size: 14px; }
/* A page or a tab not built yet: what it will show, in the card that says so. */
.page .page-planned { margin: 0; color: var(--page-muted); line-height: 1.5; }
@media (max-width: 960px) { .page .page-grid { grid-template-columns: minmax(0, 1fr); } }

/* Design/apps.css */
/* The apps of a catalogue, laid out as Composio's own page (George, 2026-10-15): All and Connected beside the tabs,
   the search and the list of categories, the popular apps, all apps in pages of whole rows, each app a round logo in
   a ring with its name under it, and the window of one app. Written once: the Portal's Integrations and Admin's
   Integrations › Apps draw with it (Common/Sections/apps.js). The colours are each website's variables. */
/* The tabs' row: the tabs at the left and, on Services, All and Connected at the right, over one line. */
/* The box stands over the row's right end without making it taller, so the tabs stay where they are on
   every tab (DESIGN.md: nothing of the heading moves). */
.integrations-tabs-row { position: relative; }
.integrations-filter { position: absolute; right: 0; bottom: 6px; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.integrations-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.integrations-filter button span { padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 12px; }
.integrations-filter button span:empty { display: none; }
.integrations-filter button[aria-pressed="true"] { background: var(--good-bg); color: var(--good); }
/* The categories as a list at the left, and the search taking the rest of the line. */
.integrations-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.integrations-tools input, .integrations-tools select { height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.integrations-tools input { flex: 1 1 320px; min-width: 0; }
.integrations-tools select { flex: 0 1 300px; width: auto; min-width: 0; font-weight: 600; }
.integrations-main { display: grid; gap: 16px; min-width: 0; }
/* Each list is a white container with its title inside it, as every container of the platform. */
.integrations-section { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.integrations-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 18px; }
.integrations-section h2 { margin: 0; font-size: 18px; font-weight: 800; }
.integrations-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 10px; }
/* An app: the logo in a soft raised disc, its name under it (George, 2026-11-19, the neumorphic disc "no card branco
   de hoje"): the face pressed in and the rim raised by a light from the top left. The rim says who provides it:
   white for Product3's and the customer's own, black metal for Composio's. */
.integrations-app { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer; }
.integrations-app:focus-visible { outline: 3px solid var(--good); outline-offset: 2px; }
.integrations-bubble { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 84px; height: 84px; margin: 3px; border: 6px solid transparent; border-radius: 50%;
  --face: linear-gradient(145deg, #e3e7ec, #f5f7f9); --rim: linear-gradient(145deg, #ffffff, #d9dfe6);
  background: var(--face) padding-box, var(--rim) border-box;
  box-shadow: 6px 6px 14px rgb(156 170 190 / .55), -6px -6px 14px rgb(255 255 255 / .95), inset 3px 3px 6px rgb(156 170 190 / .45), inset -3px -3px 6px rgb(255 255 255 / .9);
  transition: transform .15s ease, box-shadow .15s ease; }
.integrations-app:hover .integrations-bubble { transform: translateY(-2px);
  box-shadow: 8px 8px 18px rgb(156 170 190 / .6), -7px -7px 16px rgb(255 255 255 / 1), inset 3px 3px 6px rgb(156 170 190 / .45), inset -3px -3px 6px rgb(255 255 255 / .9); }
.integrations-app[data-by="composio"] .integrations-bubble { --rim: conic-gradient(from 200deg, #0b0b0c, #3a3b3e, #8d8f94, #26272a, #050506, #4a4b4f, #0b0b0c); }
.integrations-bubble.integrations-disc-green { --face: linear-gradient(145deg, #c4e9d6, #e7f7ef); }
.integrations-bubble.integrations-disc-red { --face: linear-gradient(145deg, #f3cdc9, #fdeceb); }
@media (prefers-reduced-motion: reduce) { .integrations-bubble { transition: none; } }
.integrations-logo { width: 40px; height: 40px; object-fit: contain; }
.integrations-letter { display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text); font-weight: 800; font-size: 20px; }
.integrations-name { display: -webkit-box; max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.integrations-soon { margin-top: -4px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; }
/* Connected: a green disc and a tick; to connect again: a red disc and a mark; coming soon: quiet. */
.integrations-badge { position: absolute; z-index: 2; right: -8px; bottom: -8px; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid #eef1f4; border-radius: 50%; background: var(--good); color: #fff; }
.integrations-app[data-state="attention"] .integrations-badge { background: var(--bad); }
.integrations-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.integrations-app[data-state="soon"] .integrations-logo { filter: grayscale(1); opacity: .55; }
.integrations-none { grid-column: 1 / -1; margin: 0; padding: 32px 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
/* The window of one app. */
.integrations-app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.integrations-app-head h2 { margin: 0; font-size: 22px; }
.integrations-app-head small { color: var(--muted); }
.integrations-app-head .integrations-app-logo { display: grid; place-items: center; width: 52px; height: 52px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; object-fit: contain; }
.integrations-app-words { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.integrations-app-state { margin: 0 0 20px; font-weight: 700; line-height: 1.5; }
.integrations-app-state[data-state="active"] { color: var(--good); }
.integrations-app-state[data-state="attention"] { color: var(--bad); }
/* The page of apps and its arrows, at the right of the container's title. */
.integrations-pager { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.integrations-pager button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.integrations-pager button:hover:not(:disabled) { background: var(--panel-2); }
.integrations-pager button:disabled { opacity: .4; cursor: default; }
.integrations-pager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The pager under the last row: how many are shown of how many, then Previous and Next with their words. */
@media (max-width: 700px) {
  .integrations-filter { position: static; margin: 6px 0; }
  .integrations-tools input, .integrations-tools select { flex: 1 1 100%; }
  .integrations-apps { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* Shell/look.css */
/* Admin's look (Common/Design/DESIGN.md): since George's yes of 2026-10-28, the Welcome page's white cards on the light
   ground, and charts in a standard palette that answer the pointer (Common/Design/kit/admin-light-kit.html). The pieces
   are drawn by Common/look.js; a page uses only these. The --glass-* names are kept: they now hold the light values. */
.panel-body .view, .panel-body dialog.look-dialog { --glass-text: #101828; --glass-strong: #101828; --glass-muted: #6b7280; --glass-line: #eef0f2; --glass-edge: #e5e7eb; --focus: #2a78d6; }
/* The sentence under the name, close under it (the approved text hierarchy: name 24, sentence 13). */
.panel-body .view .page-head h1:has(+ .page-lead) { margin-bottom: 0; }
/* The name's side may shrink, so a long sentence is cut at its end instead of widening the page. */
.panel-body .view .page-head > div:has(> .page-lead) { min-width: 0; flex: 1 1 0; }
.panel-body .view .page-head h1 + .page-lead { line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .look-canvas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.panel-body .view .look-span-2 { grid-column: span 2; }
.panel-body .view .look-span-3 { grid-column: span 3; }
.panel-body .view .look-span-4 { grid-column: 1 / -1; }
/* A row of figures fills the canvas's width, its figures sharing it equally. */
.panel-body .view .look-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1180px) { .panel-body .view .look-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-body .view .look-span-3 { grid-column: 1 / -1; }
  .panel-body .view .look-row { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .panel-body .view .look-canvas, .panel-body .view .look-row { grid-template-columns: minmax(0, 1fr); } .panel-body .view .look-span-2, .panel-body .view .look-span-3 { grid-column: auto; } }

/* A figure or a card that opens the page it summarises. */
.panel-body .view .look-kpi[data-open], .panel-body .view .look-card [data-open] { cursor: pointer; }
.panel-body .view .look-kpi[data-open]:hover { border-color: rgb(16 24 40 / .22); }
.panel-body .view .look-kpi[data-open]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The card: the Welcome page's, white with a thin grey border, 10px corners and a faint shadow. */
.panel-body .view .look-card, .panel-body .view .look-kpi {
  position: relative; overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 10px; color: var(--glass-text);
  background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04);
}
.panel-body .view .look-card { padding: 12px 14px; }
.panel-body .view .look-card > header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; margin-bottom: 4px; }
.panel-body .view .look-card h2 { margin: 0; color: var(--glass-text); font-size: 14px; font-weight: 700; }
.panel-body .view .look-card .look-aside { color: var(--glass-muted); font-size: 12px; }
.panel-body .view .look-card p, .panel-body .view .look-card .look-empty { position: relative; margin: 6px 0 0; color: var(--glass-muted); font-size: 12.5px; line-height: 1.45; }
.panel-body .view .look-card a { color: #2563eb; }

/* A figure that matters (the kit's piece 1): its name with its drawing, and its change in a small pill at the right of
   that line (George, 2026-10-28); the number under them, then a line of words; what belongs to it at the right. */
.panel-body .view .look-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 10px; padding: 9px 12px; container-type: inline-size; }
.panel-body .view .look-kpi-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.panel-body .view .look-kpi-label { display: flex; align-items: center; gap: 8px; min-width: 0; color: #4b5563; font-size: 12px; font-weight: 600; white-space: nowrap; }
.panel-body .view .look-kpi-label > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .look-kpi-light { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--light);
  background: color-mix(in srgb, var(--light) 13%, #fff); }
.panel-body .view .look-kpi-light svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .look-kpi-words { position: relative; display: grid; gap: 1px; min-width: 0; align-content: start; }
.panel-body .view .look-kpi-value { overflow: hidden; color: var(--glass-strong); font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
/* A value in words is the same size as a number (the approved hierarchy). */
.panel-body .view .look-kpi-note { overflow: hidden; color: var(--glass-muted); font-size: 11.5px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.panel-body .view .look-trend { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-body .view .look-trend-good { color: #16a34a; background: #e7f6ec; }
.panel-body .view .look-trend-bad { color: #dc2626; background: #fdecec; }
.panel-body .view .look-trend-flat { color: #4b5563; background: #f1f2f4; }

/* A state in a word, with its dot, on its pale wash (the kit's table). */
.panel-body .view .look-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--pill); background: var(--wash); --pill: #4b5563; --wash: #f1f2f4; }
.panel-body .view .look-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.panel-body .view .look-pill[data-state="good"] { --pill: #16a34a; --wash: #e7f6ec; }
.panel-body .view .look-pill[data-state="warn"] { --pill: #b45309; --wash: #fef3c7; }
.panel-body .view .look-pill[data-state="bad"] { --pill: #dc2626; --wash: #fdecec; }
.panel-body .view .look-pill[data-state="info"] { --pill: #2a78d6; --wash: #e8f1fc; }

/* Charts: thin lines, quiet axes, marks in the palette's colours. */
.panel-body .view .look-figure { position: relative; margin: 0; }
.panel-body .view .look-chart { display: block; width: 100%; height: auto; overflow: visible; }
.panel-body .view .look-grid { stroke: var(--glass-line); stroke-width: 1; }
/* Axis words are 11px on screen on every chart, both axes and their titles, whatever the card's width (George,
   2026-11-07; --chart-unit is set by steadyWords in Common/look.js). */
.panel-body .view .look-axis { fill: #6b7280; font-size: calc(11px * var(--chart-unit, 1)); }
/* A vertical chart's axes and their titles, its legend centred under it (George, 2026-11-06). */
.panel-body .view .look-axis-line { stroke: #c9ced6; stroke-width: 1; }
.panel-body .view .look-axis-title { fill: #4b5563; font-weight: 600; }
.panel-body .view .look-legend.is-under { justify-content: center; }
.panel-body .view .look-glow { }
.panel-body .view .look-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--glass-muted); font-size: 12.5px; }
.panel-body .view .look-key { display: inline-flex; align-items: center; gap: 7px; }
.panel-body .view .look-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--light); box-shadow: none; }

/* Bars across. */
.panel-body .view .look-bars { position: relative; display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.panel-body .view .look-bars li { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.panel-body .view .look-bar-name { overflow: hidden; color: var(--glass-text); text-overflow: ellipsis; white-space: nowrap; }
.panel-body .view .look-bar-track { height: 8px; border-radius: 999px; background: rgb(16 24 40 / .06); }
.panel-body .view .look-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--light) 55%, transparent), var(--light));
  box-shadow: none; }
.panel-body .view .look-bar-count { color: var(--glass-strong); font-weight: 700; font-variant-numeric: tabular-nums; }

/* A table inside glass: the glass shows through it. */
.panel-body .view .look-card .table-wrap { position: relative; overflow-x: auto; border: 0; border-radius: 0; background: transparent; }
.panel-body .view .look-card table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.panel-body .view .look-card th { padding: 7px 10px; border-bottom: 1px solid var(--glass-line); color: var(--glass-muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.panel-body .view .look-card td { padding: 6px 10px; border-bottom: 1px solid var(--glass-line); color: var(--glass-text); vertical-align: top; }
.panel-body .view .look-card td.look-number, .panel-body .view .look-card th.look-number { text-align: right; font-variant-numeric: tabular-nums; }
.panel-body .view .look-card td code { color: #92400e; font-size: 12px; overflow-wrap: anywhere; }

/* Lists of the frame inside glass: label and value, and the agents' changes. */
.panel-body .view .look-card .fin-facts { position: relative; }
.panel-body .view .look-card .fin-facts { gap: 0; font-size: 12.5px; line-height: 1.35; }
.panel-body .view .look-card .fin-facts li { color: var(--glass-muted); border-bottom: 1px solid var(--glass-line); padding: 3px 0; align-items: center; }
.panel-body .view .look-card .fin-facts strong { font-weight: 600; }
.panel-body .view .look-card .fin-facts li:last-child { border-bottom: 0; }
.panel-body .view .look-card .fin-facts strong { color: var(--glass-text); }
.panel-body .view .look-card .change-row { position: relative; border-bottom-color: var(--glass-line); }
.panel-body .view .look-card .change-row span, .panel-body .view .look-card .change-none { color: var(--glass-muted); }
.panel-body .view .look-card .change-row.is-alert strong { color: #d97706; }
.panel-body .view .look-card .look-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--glass-muted); font-size: 13px; }
.panel-body .view .look-card .look-brand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The choice of period, beside Refresh. */
.panel-body .view .look-period { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f9; }
.panel-body .view .look-period button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.panel-body .view .look-period button[aria-pressed="true"] { background: #101828; color: #fff; }
.panel-body .view .look-period button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.panel-body .view .look-actions { display: flex; align-items: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) { .panel-body .view .look-glow, .panel-body .view .look-kpi-light svg { filter: none; } }

/* The tables of the frame inside glass: the heading row is part of the glass, not a white band. */
.panel-body .view .look-card .view-table th { background: #f8f9fb; color: var(--glass-muted); }
/* On a phone the sentence under the name wraps instead of being cut. */
@media (max-width: 640px) { .panel-body .view .page-head h1 + .page-lead { white-space: normal; } }

/* What an employee works with inside glass (Clients, 2026-10-24, the first table of the new look): buttons, a state's
   word, a name that opens, a chosen row, label and value, a search, a choice among a few and a sorting heading. */
.panel-body .view .look-card .row-action { border-color: rgb(16 24 40 / .2); background: rgb(16 24 40 / .06); color: var(--glass-text); }
.panel-body .view .look-card .row-action:hover:not(:disabled) { background: rgb(16 24 40 / .12); }
.panel-body .view .look-card .row-action.danger { border-color: rgb(251 113 133 / .55); color: #dc2626; }
.panel-body .view .look-card .row-action.danger:hover:not(:disabled) { background: rgb(251 113 133 / .14); }
.panel-body .view .look-card .row-action[data-armed] { border-color: #e11d48; background: #e11d48; color: #fff; }
.panel-body .view .look-card .chip[data-state="active"] { color: #16a34a; }
.panel-body .view .look-card .chip[data-state="invited"] { color: #d97706; }
.panel-body .view .look-card .chip[data-state="suspended"] { color: #dc2626; }
.panel-body .view .look-card .chip[data-state="archived"] { color: var(--glass-muted); }
.panel-body .view .look-card .chip[data-state]::before { box-shadow: none; }
.panel-body .view .look-card .view-name, .panel-body .view .look-card td strong { color: var(--glass-strong); }
.panel-body .view .look-card .view-table tbody tr:hover { background: rgb(16 24 40 / .04); }
.panel-body .view .look-card .view-table tr[data-selected] { background: #e3eefb; }
.panel-body .view .look-card .view-rows div { border-top-color: var(--glass-line); }
.panel-body .view .look-card .view-rows dt { color: var(--glass-muted); }
.panel-body .view .look-card .view-rows dd { color: var(--glass-text); }
.panel-body .view .look-card h3 { color: var(--glass-text); }
/* A table's tools in one line: what it holds, the search and Export, each of the one height (--control) on one centre line. The search is a
   <label>, and the sign-in's sheet gives every label a margin under it; no tool keeps a margin (George, 2026-10-29). */
.panel-body .view .look-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.panel-body .view .look-tools > * { margin: 0; }
.panel-body .view .look-search { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px; background: rgb(16 24 40 / .06); color: var(--glass-muted); }
.panel-body .view .look-search:focus-within { border-color: var(--focus); }
.panel-body .view .look-search svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .look-search input { width: 200px; min-width: 0; height: calc(var(--control) - 2px); margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--glass-text); font-size: var(--control-font); }
.panel-body .view .look-search input::placeholder { color: var(--glass-muted); }
.panel-body .view .look-card .look-tools .row-action { height: var(--control); }
/* A card's actions are of the one height too (George, 2026-11-07; before, 26px from Monthly Revenue vs Costs). */
.panel-body .view .look-card-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.panel-body .view :is(.look-card, .look-kpi) .look-card-controls .row-action { width: auto; min-height: var(--control); height: var(--control); margin: 0; padding: 0 10px; font-size: var(--control-font); line-height: 1; }
.panel-body .view .look-card-controls .row-action svg { width: 13px; height: 13px; }
.panel-body .view .look-ledger > header .look-card-controls { width: auto; flex: none; }
.panel-body .view .look-choice { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.panel-body .view .look-choice button { height: var(--control); min-height: var(--control); padding: 0 10px; border: 1px solid rgb(16 24 40 / .16); border-radius: 8px; background: transparent; color: var(--glass-muted); font: inherit; font-size: var(--control-font); font-weight: 600; cursor: pointer; }
.panel-body .view .look-choice button:hover { color: var(--glass-text); border-color: rgb(16 24 40 / .3); }
.panel-body .view .look-choice button[aria-pressed="true"] { border-color: #101828; background: #101828; color: #fff; }
.panel-body .view .look-choice button:focus-visible, .panel-body .view .look-card th button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.panel-body .view .look-card th button[data-sort] { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.panel-body .view .look-card th button[data-sort]::after { content: "↕"; opacity: .45; font-size: 11px; }
.panel-body .view .look-card th[aria-sort="ascending"] button[data-sort]::after { content: "▲"; opacity: 1; color: var(--focus); }
.panel-body .view .look-card th[aria-sort="descending"] button[data-sort]::after { content: "▼"; opacity: 1; color: var(--focus); }
.panel-body .view .look-card th[aria-sort] { color: var(--glass-text); }
/* A name in a list of the Dashboard that opens its row on the page's table. */
.panel-body .view .look-card .look-link { padding: 0; border: 0; background: none; color: var(--glass-text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.panel-body .view .look-card .look-link:hover, .panel-body .view .look-card .look-link:focus-visible { color: var(--glass-strong); text-decoration: underline; }

/* A pop-up of the new look: one glass panel, dark and see-through, the page blurred behind it, a gold light at
   one corner and a green one at the other, as Dev's pop-ups (George, 2026-10-13; "all of them", item 22). */
/* A pop-up: one white panel over the page, the page dimmed behind it. */
.panel-body dialog.look-dialog { color-scheme: light; accent-color: #2a78d6;
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid var(--glass-edge); border-radius: 14px; color: var(--glass-text);
  background: #fff; box-shadow: 0 24px 60px -20px rgb(16 24 40 / .35); }
.panel-body dialog.look-dialog::backdrop { background: rgb(16 24 40 / .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.panel-body dialog.look-dialog h2 { color: var(--glass-text); }
.panel-body dialog.look-dialog p, .panel-body dialog.look-dialog [role="status"], .panel-body dialog.look-dialog dt { color: var(--glass-muted); }
.panel-body dialog.look-dialog [role="status"][data-error="true"] { color: #dc2626; }
.panel-body dialog.look-dialog label { color: var(--glass-text); }
.panel-body dialog.look-dialog input { border: 1px solid var(--glass-line); background: rgb(16 24 40 / .07); color: var(--glass-text); }
.panel-body dialog.look-dialog input:disabled { background: rgb(16 24 40 / .03); color: var(--glass-muted); opacity: 1; }
.panel-body dialog.look-dialog input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.panel-body dialog.look-dialog .row-action { border-color: var(--glass-line); background: rgb(16 24 40 / .06); color: var(--glass-text); }
.panel-body dialog.look-dialog .row-action:hover:not(:disabled) { background: rgb(16 24 40 / .12); }
.panel-body dialog.look-dialog .row-action.danger { border-color: #a82929; background: #a82929; color: #fff; }
.panel-body dialog.look-dialog .row-action.danger:hover:not(:disabled) { background: #8f2222; }
.panel-body dialog.look-dialog .dialog-actions { justify-content: flex-end; margin-top: 8px; }
.panel-body dialog.look-dialog label { display: block; margin: 16px 0 8px; font-weight: 700; }
.panel-body dialog.look-dialog h2 + label, .panel-body dialog.look-dialog p + div > label:first-child { margin-top: 0; }
.panel-body dialog.look-dialog form > p:not([role="status"]) { margin: 0 0 16px; }
.panel-body dialog.look-dialog input { box-sizing: border-box; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 12px; border-radius: 8px; font-size: 15px; }
.panel-body dialog.look-dialog .dialog-status { margin: 12px 0 4px; }

/* A summary beside a list on the canvas of four tracks (Clients, Team & Access): the list takes the four, and three
   while a summary is open, which takes the fourth; at 1400px and less the summary lies over the page from the right,
   fixed to the window and scrolling inside. The element that says `has-preview` holds both. */
@media (min-width: 1401px) {
  .panel-body .view.has-preview .look-canvas > .view-board, .panel-body .view .has-preview.look-canvas > .view-board { grid-column: span 3; }
  .panel-body .view .look-canvas > .view-preview { grid-column: 4; }
}
@media (max-width: 1400px) {
  .panel-body .view .look-canvas > .view-preview.look-card:not([hidden]) { position: fixed; overflow-y: auto; border-radius: 0; }
}
/* A choice from a list, and a field, inside glass. */
.panel-body .view .look-card select, .panel-body dialog.look-dialog select { height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px;
  background: rgb(16 24 40 / .06); color: var(--glass-text); color-scheme: light; font-size: var(--control-font); font-weight: 500; }
/* A pop-up's fields keep a form's size: the one height is for a page's buttons, dropdowns and searches. */
.panel-body dialog.look-dialog select { width: 100%; height: 44px; font-size: 14px; }
.panel-body .view .look-card select option, .panel-body dialog.look-dialog select option { background: #fff; color: #101828; }
.panel-body .view .look-card select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* More of what is read inside glass: label and value in rows of either name, a yes with its tick and a no with its
   cross, a tag with no state, a name that opens its row. */
.panel-body .view .look-card .team-rows div { border-top-color: var(--glass-line); }
.panel-body .view .look-card .team-rows dt { color: var(--glass-muted); }
.panel-body .view .look-card .team-rows dd { color: var(--glass-text); }
.panel-body .view .look-card .marked[data-state="active"] { color: #16a34a; }
.panel-body .view .look-card .marked[data-state="active"]::before { background: #059669; }
.panel-body .view .look-card .marked[data-state="none"] { color: var(--glass-muted); }
.panel-body .view .look-card .marked[data-state="none"]::before { background: #4b5a63; }
.panel-body .view .look-card .marked[data-state="invited"] { color: #d97706; }
.panel-body .view .look-card .marked[data-state="suspended"] { color: #dc2626; }
.panel-body .view .look-card .chip:not([data-state]) { background: rgb(16 24 40 / .08); color: var(--glass-text); }
.panel-body .view .look-card .team-name { color: var(--glass-strong); }
/* The pop-up's main button is green, as Dev's; a button that takes something away stays red. */
.panel-body dialog.look-dialog .sign-in { border: 1px solid #007a55; background: #007a55; color: #fff; }
.panel-body dialog.look-dialog .sign-in:hover:not(:disabled) { background: #005e42; }
/* A table that searches, sorts and exports by itself (`ledger` in look.js). */
.panel-body .view .look-ledger > header { flex-wrap: wrap; }
.panel-body .view .look-ledger .look-search input { width: 180px; }
/* A list's pages, "‹ 1 of 3 ›", at the top of its card with its tools, when there is more than one: ten rows at a time
   across the page, five in a card of half the page or less; no "Showing x of y" (George, 2026-10-29 and 2026-11-08). */
.panel-body .view .look-tools .look-pages { display: flex; align-items: center; min-height: var(--control); }
.panel-body .view .look-tools .look-pages[hidden] { display: none; }
.panel-body .view .look-pager { display: inline-flex; align-items: center; gap: 8px; color: var(--glass-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.panel-body .view .look-pager[hidden] { display: none; }
.panel-body .view .look-pager button { display: grid; place-items: center; width: var(--control); height: var(--control); min-height: 0; padding: 0; border: 1px solid var(--glass-edge);
  border-radius: 8px; background: #fff; color: var(--glass-text); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.panel-body .view .look-pager button:disabled { opacity: .4; cursor: default; }
.panel-body .view .look-card td.look-empty-cell { color: var(--glass-muted); text-align: center; }
@media (max-width: 640px) { .panel-body .view .look-ledger .look-tools, .panel-body .view .look-ledger .look-search { width: 100%; } .panel-body .view .look-ledger .look-search input { flex: 1; width: auto; } }
/* A use against its amount in a table's cell (`gauge` in look.js): a lit bar and its share. */
.panel-body .view .look-gauge { display: inline-grid; grid-template-columns: minmax(64px, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-width: 130px; }
.panel-body .view .look-gauge-share { color: var(--glass-strong); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-body .view .look-gauge.is-unknown { display: inline; color: var(--glass-muted); }
/* A page about one product or provider: its logo before its name and its state in a word beside it (DESIGN.md,
   Admin's redesign). Both stand inside the name, so the name starts where it does on every page. */
.panel-body .view .page-head h1.look-named { display: flex; align-items: center; gap: 12px; }
.panel-body .view .look-named .look-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #2a78d6;
  background: #e3eefb; }
.panel-body .view .look-named .look-logo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .look-named .look-pill { letter-spacing: 0; line-height: 1.3; }
/* An amount inside a card: the number large, what it is counted against after it (Ops, 2026-10-24). */
.panel-body .view .look-card .look-amount { margin: 0 0 10px; color: var(--glass-muted); font-size: 14px; }
.panel-body .view .look-card .look-amount strong { margin-right: 6px; color: var(--glass-strong); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel-body .view .look-card .look-amount + .look-gauge, .panel-body .view .look-card .look-gauge + .look-amount { margin-top: 4px; }
/* The places of a capacity, one square each (`seats` in look.js): those taken lit in the colour of the places left. */
.panel-body .view .look-seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; --light: #16a34a; }
.panel-body .view .look-seats[data-state="warn"] { --light: #d97706; }
.panel-body .view .look-seats[data-state="bad"] { --light: #dc2626; }
.panel-body .view .look-seats[data-state="full"] { --light: #101828; }
.panel-body .view .look-seats i { width: 18px; height: 18px; border-radius: 5px; background: rgb(16 24 40 / .04); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .18); }
.panel-body .view .look-seats i[data-taken] { background: linear-gradient(160deg, var(--light), color-mix(in srgb, var(--light) 62%, transparent)); box-shadow: none; }
/* What stands at a figure's right (`kpi` with `extra`): its last days as small columns, or a bar of its share. */
.panel-body .view .look-kpi-extra { position: relative; flex: 0 0 auto; align-self: flex-end; margin-left: auto; }
.panel-body .view .look-kpi-extra .look-bar-track { display: block; width: 120px; }
.panel-body .view .look-minibars { display: block; width: 44px; height: 26px; }
/* The last 30 days of a figure as a lit line with its area (`spark`). */
.panel-body .view .look-spark { display: block; width: 100%; height: 46px; overflow: visible; }
.panel-body .view .look-spark-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.panel-body .view .look-spark.is-empty { display: grid; place-items: center; height: 46px; color: var(--glass-muted); font-size: 11.5px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .panel-body .view .look-spark-line, .panel-body .view .look-minibars { filter: none; } }
/* A share as a lit ring (`ring`), and lines across the days on one axis (`lines`), their legend above them. */
.panel-body .view .look-ring { display: block; flex: none; }
.panel-body .view .look-ring-track { fill: none; stroke: rgb(16 24 40 / .08); stroke-width: 5; }
.panel-body .view .look-ring-arc { fill: none; stroke-width: 5; stroke-linecap: round; }
.panel-body .view .look-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.panel-body .view .look-figure > .look-legend:first-child { justify-content: flex-end; margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .panel-body .view .look-ring-arc, .panel-body .view .look-line { filter: none; } }
/* A provider's own logo on a small tile of its colour (`brand` in brands.js). */
.panel-body .view .look-brand-tile { flex: none; display: grid; place-items: center; width: var(--size, 40px); height: var(--size, 40px); border-radius: 10px; background: var(--tile, #fff);
  box-shadow: inset 0 0 0 1px rgb(16 24 40 / .12); }
.panel-body .view .look-brand-tile svg { width: 62%; height: 62%; }
.panel-body .view .look-brand-tile img { width: 100%; height: 100%; object-fit: contain; }

/* A register's page (Common/registers.js): Security & Compliance's registers, policies and access reviews, and Support's
   SLA, saved replies, knowledge base and tickets. The canvas, the figures, the glass, the tables and the side panel are
   the pieces every redesigned page shares, above. */
.register-canvas > * { min-width: 0; }
.register-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
.panel-body .view .register-canvas .table-wrap { overflow-x: auto; }
.panel-body .view .register-canvas .register-board .view-table { min-width: 860px; }
.panel-body .view .register-canvas .register-board { grid-column: 1 / -1; }
.panel-body .view .register-canvas .register-board > .look-card { height: 100%; }
.register-view tbody tr[data-row] { cursor: pointer; }
.register-view tbody tr[data-row]:hover td, .register-view tbody tr[aria-selected] td { background: rgb(16 24 40 / .06); }
.register-view tbody tr[data-row]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.register-view .register-actions { display: flex; gap: 8px; justify-content: flex-end; }
/* The form at the side: its fields two by two, a wide one across. */
.register-view .register-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.register-view .register-side-head h2 { margin: 0; }
.register-view .register-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.register-view .register-field { display: grid; gap: 4px; color: var(--glass-muted); font-size: 12.5px; font-weight: 600; }
.register-view .register-field.is-wide { grid-column: 1 / -1; }
.register-view .register-field small { color: var(--glass-muted); font-weight: 400; }
.register-view .register-field :is(input, select, textarea) { width: 100%; min-height: 36px; margin: 0; padding: 6px 10px; border: 1px solid rgb(16 24 40 / .18);
  border-radius: 8px; font: inherit; font-size: 14px; font-weight: 400; color: var(--glass-text); background: rgb(16 24 40 / .06); }
.register-view .register-field textarea { resize: vertical; }
.register-view .register-field option { color: #111; }
.register-view .register-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.register-view .register-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.register-view .register-form-status { min-height: 1.4em; margin: 8px 0 0; color: var(--glass-muted); font-size: 13px; }
.register-view .register-notes { grid-column: 1 / -1; }
.register-view .register-notes h3 { margin: 4px 0 6px; font-size: 13px; color: var(--glass-text); }
.register-view .register-notes ol { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.register-view .register-notes small { color: var(--glass-muted); }
.register-view .register-notes p { margin: 2px 0 0; }
/* What needs doing on the Dashboard: a row each, its name opening its form. */
.register-view .register-todo, .register-view .register-plain { display: grid; gap: 4px; margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; padding: 0; list-style: none; }
.register-view .register-todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 5px 8px; border-radius: 8px;
  background: rgb(16 24 40 / .04); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .08); }
.register-view .register-todo small { grid-column: 1 / -1; color: var(--glass-muted); font-size: 11.5px; }
.register-view .register-plain li { color: var(--glass-muted); font-size: 13.5px; }
.register-view .register-plain strong { color: var(--glass-text); }
.register-view .register-link { padding: 0; border: 0; background: none; color: var(--glass-text); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.register-view .register-link:hover, .register-view .register-link:focus-visible { text-decoration: underline; outline: none; }
/* The risks' 5 by 5 matrix, likelihood up and impact across, each cell in its level's colour. */
.register-view .register-matrix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.register-view .register-matrix-axis { grid-column: 1 / -1; color: var(--glass-muted); font-size: 12px; }
.register-view .register-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-weight: 800; font-size: 14px; color: #101828; }
.register-view .register-cell.is-low { background: rgb(52 211 153 / .22); }
.register-view .register-cell.is-medium { background: rgb(245 184 46 / .28); }
.register-view .register-cell.is-high { background: rgb(251 113 133 / .32); }
/* A register's form as a pop-up (`spec.dialog`; Company, George 2026-10-29): wider than a question's, its fields two by
   two, Cancel and Save at the foot. */
.panel-body dialog.look-dialog.register-dialog { width: min(720px, calc(100vw - 32px)); }
.panel-body dialog.look-dialog.register-dialog .register-side-head { align-items: center; }
.panel-body dialog.look-dialog.register-dialog label.register-field { display: grid; margin: 0; color: var(--glass-muted); font-size: 12.5px; font-weight: 600; }
.panel-body dialog.look-dialog.register-dialog .register-field :is(input, select) { height: 40px; min-height: 40px; }
.panel-body dialog.look-dialog.register-dialog .register-field textarea { width: 100%; box-sizing: border-box; }
.panel-body dialog.look-dialog.register-dialog .register-form-actions { gap: 8px; margin-top: 6px; }
.panel-body dialog.look-dialog.register-dialog .register-save { border-color: #16a34a; background: #16a34a; color: #fff; }
.panel-body dialog.look-dialog.register-dialog .register-save:hover:not(:disabled) { background: #15803d; }
@media (max-width: 760px) { .register-view .register-form { grid-template-columns: minmax(0, 1fr); } }

/* Charts answer the pointer (the kit, George 2026-10-28): a guide across the days with a dot on each line, a column
   standing out while the others fade, and one small box saying the values under the pointer. */
.panel-body .view .look-hit { fill: transparent; cursor: crosshair; outline: none; }
.panel-body .view .look-hit:focus-visible { stroke: var(--focus); stroke-width: 2; stroke-dasharray: 4 3; }
.panel-body .view .look-guide { stroke: #9aa4b2; stroke-width: 1; opacity: 0; pointer-events: none; }
.panel-body .view .look-dot { fill: #fff; stroke-width: 2; opacity: 0; pointer-events: none; }
.panel-body .view .look-chart.is-pointed .look-guide, .panel-body .view .look-chart.is-pointed .look-dot:not([hidden]) { opacity: 1; }
.panel-body .view .look-column { transition: opacity .15s; }
.panel-body .view .look-chart.is-pointed .look-column:not(.is-on) { opacity: .35; }
.look-tip { position: fixed; z-index: 60; min-width: 120px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #101828;
  box-shadow: 0 8px 24px -8px rgb(16 24 40 / .25); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; pointer-events: none; }
.look-tip b { display: block; margin-bottom: 2px; color: #6b7280; font-weight: 600; }
.look-tip div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.look-tip span { display: inline-flex; align-items: center; gap: 6px; color: #4b5563; }
.look-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.look-tip strong { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .panel-body .view .look-column { transition: none; } }

/* How a page arrives (Common/motion.js, George 2026-10-28): it slides in from the left as it fades in, its cards come
   down row by row, lines draw from left to right, columns and bars grow from their base, a ring fills clockwise. None
   of it for who asked for less motion; each leaves nothing behind once done. */
@media (prefers-reduced-motion: no-preference) {
  .motion-enter { animation: motion-enter .34s cubic-bezier(.2, .7, .3, 1) backwards; }
  .panel-body .motion-drop { animation: motion-drop .38s cubic-bezier(.2, .7, .3, 1) backwards; }
  .panel-body .motion-draw { animation: motion-draw .8s cubic-bezier(.3, .6, .3, 1) backwards; }
  .panel-body .motion-grow rect:not(.look-hit) { transform-box: fill-box; transform-origin: 50% 100%; animation: motion-grow .6s cubic-bezier(.2, .7, .3, 1) backwards; animation-delay: inherit; }
  .panel-body .motion-grow-x { transform-origin: 0 50%; animation: motion-grow-x .7s cubic-bezier(.2, .7, .3, 1) backwards; }
  .panel-body .motion-fill { animation: motion-fill .8s cubic-bezier(.3, .6, .3, 1) backwards; }
}
@keyframes motion-enter { from { opacity: 0; transform: translateX(-18px); } }
@keyframes motion-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes motion-draw { from { clip-path: inset(-20px 100% -20px 0); } to { clip-path: inset(-20px 0 -20px 0); } }
@keyframes motion-grow { from { transform: scaleY(0); } }
@keyframes motion-grow-x { from { transform: scaleX(0); } }
@keyframes motion-fill { from { stroke-dasharray: 0 200; } }

/* A file chosen in a form (George, 2026-10-30): a box in the fields' look, its drawing, the words, then the file. */
.panel-body dialog.look-dialog .register-file .register-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.panel-body dialog.look-dialog .register-file-box { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; box-sizing: border-box;
  border: 1px dashed rgb(16 24 40 / .25); border-radius: 8px; background: rgb(16 24 40 / .04); color: var(--glass-text); cursor: pointer; }
.panel-body dialog.look-dialog .register-file-box:hover, .panel-body dialog.look-dialog .register-file-box.is-over { border-color: #2563eb; background: #eff4ff; }
.panel-body dialog.look-dialog .register-file:focus-within .register-file-box { outline: 2px solid var(--focus); outline-offset: 1px; }
.panel-body dialog.look-dialog .register-file-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #e8f0fe; color: #2563eb; }
.panel-body dialog.look-dialog .register-file-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body dialog.look-dialog .register-file-words { display: flex; flex-direction: column; gap: 1px; }
.panel-body dialog.look-dialog .register-file-words strong { color: #2563eb; font-size: 13px; font-weight: 600; }
.panel-body dialog.look-dialog .register-file-words small { color: var(--glass-muted); font-size: 11.5px; font-weight: 400; }
.panel-body dialog.look-dialog .register-file-name { margin-left: auto; min-width: 0; overflow: hidden; color: var(--glass-muted); font-size: 12.5px; font-weight: 500;
  text-overflow: ellipsis; white-space: nowrap; }
.panel-body dialog.look-dialog .register-file-box.has-file .register-file-name { color: var(--glass-text); font-weight: 600; }

/* A module's documents (Common/documents.js; George, 2026-10-30): a row's file as its drawing, its state as words (green in
   use or in force, amber a draft, black done), a document's versions with what changed. */
.panel-body :is(.view, dialog.look-dialog) .doc-download { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--glass-edge); border-radius: 8px; background: #fff; color: #2563eb; cursor: pointer; }
.panel-body :is(.view, dialog.look-dialog) .doc-download:hover:not(:disabled) { background: #eff4ff; border-color: #2563eb; }
.panel-body :is(.view, dialog.look-dialog) :is(.doc-download, .doc-download-words):disabled { opacity: .5; cursor: progress; }
.panel-body :is(.view, dialog.look-dialog) .doc-download svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body :is(.view, dialog.look-dialog) .doc-status { color: #16a34a; font-weight: 600; white-space: nowrap; }
.panel-body :is(.view, dialog.look-dialog) .doc-status.is-draft { color: #b45309; }
.panel-body :is(.view, dialog.look-dialog) .doc-status.is-closed { color: var(--glass-strong); }
.panel-body dialog.look-dialog .row-action.doc-add { border-color: #16a34a; background: #16a34a; color: #fff; }
.panel-body dialog.look-dialog .row-action.doc-add:hover:not(:disabled) { border-color: #15803d; background: #15803d; color: #fff; }
.panel-body dialog.look-dialog .doc-versions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--glass-edge); }
.panel-body dialog.look-dialog .doc-versions h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--glass-text); }
.panel-body dialog.look-dialog .doc-versions h3 span { color: var(--glass-muted); font-weight: 500; }
.panel-body dialog.look-dialog .doc-versions ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.panel-body dialog.look-dialog .doc-version { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--glass-line); }
.panel-body dialog.look-dialog .doc-version:last-child { border-bottom: 0; }
.panel-body dialog.look-dialog .doc-version-number { flex: 0 0 36px; color: var(--glass-muted); font-size: 12px; font-weight: 700; }
.panel-body dialog.look-dialog .doc-version-words { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.panel-body dialog.look-dialog .doc-version-words small { color: var(--glass-muted); font-size: 12px; overflow-wrap: anywhere; }
.panel-body dialog.look-dialog .doc-version-new { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.panel-body dialog.look-dialog .doc-version-new textarea { width: 100%; box-sizing: border-box; }
.panel-body dialog.look-dialog .doc-version-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.panel-body dialog.look-dialog .doc-version-status { margin: 0; font-size: 12.5px; }
.panel-body dialog.look-dialog .doc-download-words svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* A pop-up's head (George, 2026-11-06; App/Admin/Common/pieces.js, dialogHead): the title, then Close and the main
   action side by side at the top right, of one size, the main one green. */
.panel-body dialog .dialog-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.panel-body dialog .dialog-head h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.panel-body dialog .dialog-head-actions { display: flex; flex: none; gap: 8px; margin-left: auto; }
.panel-body dialog .dialog-head-actions > :is(button, .row-action) { min-width: 96px; height: var(--control); min-height: var(--control); padding: 0 12px; font-size: var(--control-font); justify-content: center; }
.panel-body dialog .dialog-head-actions > .dialog-main { border-color: #16a34a; background: #16a34a; color: #fff; }
.panel-body dialog .dialog-head-actions > .dialog-main:hover:not(:disabled) { border-color: #15803d; background: #15803d; color: #fff; }
@media (max-width: 520px) { .panel-body dialog .dialog-head { flex-wrap: wrap; } .panel-body dialog .dialog-head-actions { margin-left: 0; } }
/* The head of a pop-up drawn on the page's body, outside the panel (People's My work): the same head. A button the
   pop-up hides stays hidden; the first field under the head starts at its top, as it did under the title. */
body > dialog .dialog-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
body > dialog .dialog-head h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
body > dialog .dialog-head-actions { display: flex; flex: none; gap: 8px; margin-left: auto; }
body > dialog .dialog-head-actions > .row-action { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: var(--control); min-height: var(--control); padding: 0 12px;
  border: 1px solid #c3d0c8; border-radius: 8px; background: #fff; color: #101828; font: inherit; font-size: var(--control-font); font-weight: 600; cursor: pointer; }
body > dialog .dialog-head-actions > .dialog-main { border-color: #16a34a; background: #16a34a; color: #fff; }
body > dialog .dialog-head-actions > .dialog-main:hover:not(:disabled) { border-color: #15803d; background: #15803d; color: #fff; }
:is(.panel-body dialog, body > dialog) .dialog-head-actions > [hidden] { display: none; }
.panel-body dialog.look-dialog :is(.dialog-head + label, .dialog-head + div > label:first-child) { margin-top: 0; }
@media (max-width: 520px) { body > dialog .dialog-head { flex-wrap: wrap; } body > dialog .dialog-head-actions { margin-left: 0; } }

/* Modules/Business/Compliance/compliance.css */
/* Business › Compliance (12h): a container's name beside its drawing, the group cards over each table, the bars of
   in place, partial and failing, and the lines of the tests and audits. */
.panel-body .view .compliance-title { display: inline-flex; align-items: center; gap: 10px; }
.panel-body .view .compliance-title-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--tone); background: var(--wash); }
.panel-body .view .compliance-title-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .compliance-title.is-blue { --tone: #2563eb; --wash: #e8f0fe; }
.panel-body .view .compliance-title.is-red { --tone: #dc2626; --wash: #fdecec; }
.panel-body .view .compliance-title.is-violet { --tone: #6250d6; --wash: #f1ebff; }
.panel-body .view .compliance-groups { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.panel-body .view .compliance-group[role="button"] { cursor: pointer; }
.panel-body .view .compliance-group[role="button"]:hover { border-color: rgb(16 24 40 / .22); }
.panel-body .view .compliance-group[aria-pressed="true"] { border-color: #2a78d6; box-shadow: 0 0 0 1px #2a78d6; }
.panel-body .view .compliance-group:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.panel-body .view .compliance-group.is-empty { background: #fafbfc; }
.panel-body .view .compliance-group .compliance-bar { grid-column: 1 / -1; }
.panel-body .view .compliance-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #f1f2f4; }
.panel-body .view .compliance-bar i { display: block; height: 100%; }
.panel-body .view .compliance-bar .is-ok { background: #16a34a; }
.panel-body .view .compliance-bar .is-part { background: #eda100; }
.panel-body .view .compliance-bar .is-fail { background: #dc2626; }
.panel-body .view .compliance-bars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.panel-body .view .compliance-bars li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; align-items: center; gap: 12px; min-height: 23px; font-size: 12.5px; }
.panel-body .view .compliance-bar-name { font-size: 12px; font-weight: 600; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .compliance-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.panel-body .view .compliance-lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.panel-body .view .compliance-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; border-bottom: 1px solid #f0f1f3; font-size: 12.5px; }
.panel-body .view .compliance-lines li:last-child { border-bottom: 0; }
.panel-body .view .compliance-lines li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4b5563; font-weight: 600; font-size: 12px; }
.panel-body .view .compliance-count { display: inline-flex; gap: 8px; align-items: center; color: #6b7280; font-size: 11.5px; }
.panel-body .view .compliance-clear { background: none; border: 0; padding: 0; color: #2a78d6; font: 600 11.5px Inter, sans-serif; cursor: pointer; }

/* Modules/Business/Legal/legal.css */
/* Business › Legal (14c; George's mockup of 2026-10-30): one page, four tabs, in the design standard's cards. A
   register's figures and cards stand on the tab's canvas as its own children. */
.panel-body .legal-view .register-top { display: contents; }

/* A file of a row, opened in Drive. */
.panel-body .legal-view .legal-file, .panel-body dialog.legal-matter .legal-file { color: #2563eb; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.panel-body .legal-view .legal-file:hover, .panel-body dialog.legal-matter .legal-file:hover { text-decoration: underline; }

/* The green + buttons of the mockup. */
.panel-body .legal-view .row-action.legal-add, .panel-body dialog.legal-matter .row-action.legal-add { border-color: #16a34a; background: #16a34a; color: #fff; }
.panel-body .legal-view .row-action.legal-add:hover:not(:disabled), .panel-body dialog.legal-matter .row-action.legal-add:hover:not(:disabled) { border-color: #15803d; background: #15803d; color: #fff; }

/* A list's filters, drop-down lists beside its search (George, 2026-10-30), each choice with its count. */
.panel-body .legal-view .legal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-body .legal-view .legal-filter { width: auto; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid var(--glass-edge); border-radius: 8px; background: #fff;
  color: var(--glass-text); font: inherit; font-size: var(--control-font); }

/* Lawyer Matters: each line on one line (George, 2026-10-30); only a long title wraps. */
.panel-body .legal-view #legal-matters-list td { white-space: nowrap; }
.panel-body .legal-view #legal-matters-list td:nth-child(2) { white-space: normal; min-width: 220px; }
.panel-body .legal-view #legal-matters-list .look-pill { white-space: nowrap; }
.panel-body .legal-view .legal-count { color: var(--glass-muted); font-weight: 500; }
.panel-body .legal-view .legal-matter-title { color: var(--glass-strong); font-weight: 600; }

/* The Dashboard's two containers, side by side. */
.panel-body .legal-view .legal-pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.panel-body .legal-view .legal-pair > .look-card { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 1180px) { .panel-body .legal-view .legal-pair { grid-template-columns: minmax(0, 1fr); } }
.panel-body .legal-view .legal-lines { display: flex; flex-direction: column; margin: 4px 0 0; padding: 0; list-style: none; }
.panel-body .legal-view .legal-lines > li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--glass-line); font-size: 13px; }
.panel-body .legal-view .legal-lines > li:last-child { border-bottom: 0; }
.panel-body .legal-view .legal-lines > li > span:first-child { flex: 0 0 45%; color: var(--glass-muted); }
.panel-body .legal-view .legal-lines > li > strong { flex: 1; min-width: 0; color: var(--glass-strong); font-weight: 600; }
.panel-body .legal-view .legal-latest { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; }
.panel-body .legal-view .legal-latest strong { overflow: hidden; color: var(--glass-strong); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.panel-body .legal-view .legal-latest small { color: var(--glass-muted); font-size: 12px; }
.panel-body .legal-view .legal-latest:hover strong { text-decoration: underline; }
.panel-body .legal-view .legal-gos { display: flex; gap: 18px; margin-top: auto; }
.panel-body .legal-view .legal-go { padding: 10px 0 0; border: 0; background: none; color: #2563eb; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.panel-body .legal-view .legal-go:hover { text-decoration: underline; }

/* A matter open: 1000 px, its details at the left and its timeline at the right (the mockup's second board). */
.panel-body dialog.look-dialog.legal-matter { width: min(1000px, calc(100vw - 32px)); padding: 24px 28px; }
.panel-body dialog.legal-matter .legal-matter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.panel-body dialog.legal-matter .legal-matter-head h2 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.panel-body dialog.legal-matter .legal-matter-kind { color: #4b5563; font-size: 12px; font-weight: 600; }
.panel-body dialog.legal-matter .legal-matter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
/* The matter's status stands just before Close and Edit matter (George, 2026-11-06: a pop-up's actions at its top right). */
.panel-body dialog.legal-matter .legal-matter-head .dialog-head-actions { margin-left: 0; }
.panel-body dialog.legal-matter .legal-matter-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .panel-body dialog.legal-matter .legal-matter-grid { grid-template-columns: minmax(0, 1fr); } }
.panel-body dialog.legal-matter .legal-matter-details { display: flex; flex-direction: column; gap: 14px; padding-right: 20px; border-right: 1px solid var(--glass-edge); }
@media (max-width: 860px) { .panel-body dialog.legal-matter .legal-matter-details { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--glass-edge); } }
.panel-body dialog.legal-matter dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); row-gap: 9px; margin: 0; font-size: 12.5px; }
.panel-body dialog.legal-matter dt { color: #4b5563; font-size: 12px; font-weight: 600; }
.panel-body dialog.legal-matter dd { margin: 0; color: var(--glass-text); font-weight: 600; overflow-wrap: anywhere; }
.panel-body dialog.legal-matter .legal-key-dates { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.panel-body dialog.legal-matter .legal-key-dates > div { display: flex; justify-content: space-between; gap: 10px; }
.panel-body dialog.legal-matter .legal-label { color: #4b5563; font-size: 12px; font-weight: 600; }
.panel-body dialog.legal-matter .legal-matter-details > .legal-file { font-size: 13px; }
.panel-body dialog.legal-matter .legal-timeline { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel-body dialog.legal-matter .legal-timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-body dialog.legal-matter .legal-timeline-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-body dialog.legal-matter .legal-timeline-head h3 span { color: var(--glass-muted); font-weight: 500; }
.panel-body dialog.legal-matter .legal-timeline ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.panel-body dialog.legal-matter .legal-event { display: grid; grid-template-columns: 92px 14px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f2f4; }
.panel-body dialog.legal-matter .legal-event:last-child { border-bottom: 0; }
.panel-body dialog.legal-matter .legal-event-when { display: flex; flex-direction: column; color: #4b5563; font-size: 12px; font-weight: 600; }
.panel-body dialog.legal-matter .legal-event-when small { color: var(--glass-muted); font-weight: 400; }
.panel-body dialog.legal-matter .legal-event-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--tone); }
.panel-body dialog.legal-matter .legal-event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.panel-body dialog.legal-matter .legal-event-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.panel-body dialog.legal-matter .legal-event-type { padding: 1px 8px; border-radius: 6px; background: var(--wash); color: var(--ink); font-size: 12px; font-weight: 600; }
.panel-body dialog.legal-matter .legal-event-under { color: #4b5563; font-size: 12.5px; }
.panel-body dialog.legal-matter .legal-event-note { color: var(--glass-text); font-size: 12.5px; }
.panel-body dialog.legal-matter .legal-event-body .legal-file { font-size: 12.5px; }
.panel-body dialog.legal-matter .legal-event.is-grey { --tone: #4b5563; --wash: #f1f2f4; --ink: #4b5563; }
.panel-body dialog.legal-matter .legal-event.is-blue { --tone: #2a78d6; --wash: #e8f0fe; --ink: #1d4ed8; }
.panel-body dialog.legal-matter .legal-event.is-cyan { --tone: #0891b2; --wash: #e0f7fa; --ink: #0e7490; }
.panel-body dialog.legal-matter .legal-event.is-violet { --tone: #6250d6; --wash: #f1ebff; --ink: #5b21b6; }
.panel-body dialog.legal-matter .legal-event.is-green { --tone: #16a34a; --wash: #e7f6ec; --ink: #166534; }
.panel-body dialog.legal-matter .legal-event.is-gold { --tone: #eda100; --wash: #fef3c7; --ink: #92400e; }
.panel-body dialog.look-dialog .legal-foot { color: var(--glass-muted); font-size: 11.5px; }
/* An event of the timeline opens under the pointer; open, its facts in two columns. */
.panel-body dialog.legal-matter .legal-event[data-legal-event] { cursor: pointer; border-radius: 8px; }
.panel-body dialog.legal-matter .legal-event[data-legal-event]:hover { background: #f9fafb; }
.panel-body dialog.legal-matter .legal-event[data-legal-event]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.panel-body dialog.look-dialog#legal-event-view { width: min(720px, calc(100vw - 32px)); }
.panel-body dialog#legal-event-view .register-side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel-body dialog#legal-event-view .register-side-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.panel-body dialog#legal-event-view dl { grid-template-columns: 150px minmax(0, 1fr); row-gap: 10px; margin-bottom: 18px; }

/* An event's people: chips over the field, an employee or anyone the matter named, typed and kept with Enter. */
.panel-body dialog.legal-dialog .legal-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 6px; box-sizing: border-box;
  border: 1px solid rgb(16 24 40 / .18); border-radius: 8px; background: rgb(16 24 40 / .06); }
.panel-body dialog.legal-dialog .legal-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #e5e7eb; border-radius: 999px;
  background: #fff; color: var(--glass-text); font-size: 12.5px; font-weight: 500; }
.panel-body dialog.legal-dialog .legal-person-remove { padding: 0; border: 0; background: none; color: var(--glass-muted); font: inherit; cursor: pointer; }
.panel-body dialog.legal-dialog input.legal-people-typed { flex: 1; min-width: 160px; height: 28px; min-height: 0; border: 0; background: transparent; outline: none; }
.panel-body dialog.legal-dialog .register-form-actions .legal-foot { margin-right: auto; align-self: center; }
.panel-body dialog.look-dialog .legal-event-file { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--glass-text); }

/* Modules/Clients/ui/clients.css */
/* Clients: what only this section uses. The heading, the canvas, the glass, the figures, the tables, the
   buttons and the pop-ups are the pieces every page of Admin's new look shares (Shell/look.css). */

.clients-canvas > * { min-width: 0; }
/* The list of accounts across the canvas; an open summary beside it is the shared one of the new look (look.css). */
.panel-body .view .clients-board { display: flex; flex-direction: column; }
.panel-body .view .clients-board > header { flex-wrap: wrap; }
.clients-board tbody tr { cursor: pointer; }
.clients-board table { min-width: 620px; }
.clients-board .view-name { overflow-wrap: anywhere; }
.clients-owner { display: grid; gap: 2px; overflow-wrap: anywhere; }
.clients-owner span { font-size: 13px; }
.clients-board td:nth-child(3) { white-space: nowrap; }
#clients-showing { margin-top: auto; padding-top: 14px; font-size: 13px; }
.clients-preview-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.clients-preview-heading h2 { overflow-wrap: anywhere; }
.clients-preview-heading #client-preview-close { margin-left: auto; }
.clients-preview h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 800; }
.clients-preview .view-rows div { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 6px; }
#clients .preview-buttons .row-action { height: var(--control); }
#client-account > header { flex-wrap: wrap; }
#client-account-title { overflow-wrap: anywhere; }
.clients-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.clients-empty { margin: 0; padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; }
/* The buttons of a row stay together on one line at its end. On a narrow
   screen the table scrolls sideways to them, as it does to its other columns. */
.clients-actions { display: flex; justify-content: flex-end; gap: 8px; width: max-content; margin-left: auto; }
#clients .clients-actions .row-action { height: var(--control); padding: 0 10px; font-size: var(--control-font); white-space: nowrap; }
/* A person's details, in the pop-up: a quiet label over its value. */
.clients-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0 0 24px; }
.clients-details dt { font-size: 13px; }
.clients-details dd { margin: 4px 0 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .clients-details { grid-template-columns: minmax(0, 1fr); }
  .panel-body .view .clients-board .look-tools, .panel-body .view .clients-board .look-search { width: 100%; }
  .panel-body .view .clients-board .look-search input { flex: 1; width: auto; }
}
#clients .view-table th:last-child { text-align: right; }

/* Modules/Company/company.css */
/* Company (14d; George, 2026-10-29): one page, four tabs, in the design standard's cards. A register's figures and cards
   stand on the tab's canvas as its own children. */
.panel-body .view .register-top { display: contents; }

/* A file of a row, opened in Drive. */
.panel-body .view .company-file { color: #2563eb; font-weight: 600; text-decoration: none; }
.panel-body .view .company-file:hover { text-decoration: underline; }

/* Upcoming deadlines & actions: the category as a tag, and its filter. */
.panel-body .view .company-category { display: inline-block; padding: 2px 9px; border-radius: 6px; background: #eef2ff; color: #3730a3; font-size: 12.5px; font-weight: 600; }
.panel-body .view .company-category.is-tax { background: #fef3c7; color: #92400e; }
.panel-body .view .company-category.is-asic { background: #e0f2fe; color: #075985; }
.panel-body .view .company-category.is-insurance { background: #dcfce7; color: #166534; }
.panel-body .view .company-category.is-trademark { background: #f3e8ff; color: #6b21a8; }
.panel-body .view .company-filter { width: auto; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid var(--glass-edge); border-radius: 8px; background: #fff;
  color: var(--glass-text); font: inherit; font-size: var(--control-font); }

/* The results' line of the last twelve months stays small, so the amount is read whole. */
.panel-body .company-view .look-kpi-extra { width: 96px; flex: none; }
.panel-body .company-view .look-spark { width: 96px; }

/* The Dashboard's containers (George, 2026-10-29): ASIC Registration wide, with the whole record, beside Trademarks over
   Insurance. */
.panel-body .view .company-trio { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr;
  gap: 10px; align-items: stretch; }
.panel-body .view .company-trio > #company-registration { grid-row: 1 / span 2; }
.panel-body .view .company-trio > .look-card { display: flex; flex-direction: column; min-width: 0; }
/* A container's name beside its drawing, lit in its colour, as the figures' drawings. */
.panel-body .view .company-title { display: inline-flex; align-items: center; gap: 10px; }
.panel-body .view .company-head-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--tone); background: var(--wash); }
.panel-body .view .company-head-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .view .company-title.is-blue { --tone: #2563eb; --wash: #e8f0fe; }
.panel-body .view .company-title.is-green { --tone: #16a34a; --wash: #e7f6ec; }
.panel-body .view .company-title.is-violet { --tone: #7c3aed; --wash: #f1ebff; }
.panel-body .view .company-title.is-gold { --tone: #b45309; --wash: #fdf3dc; }
.panel-body .view .company-lines { display: flex; flex-direction: column; margin: 4px 0 0; padding: 0; list-style: none; }
.panel-body .view .company-lines > li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--glass-line); font-size: 13px; }
.panel-body .view .company-lines > li:last-child { border-bottom: 0; }
.panel-body .view .company-lines > li > span:first-child { flex: 0 0 38%; color: var(--glass-muted); }
.panel-body .view .company-lines > li > strong { flex: 1; min-width: 0; color: var(--glass-strong); font-weight: 600; overflow-wrap: anywhere; }
.panel-body .view .company-lines > li.company-item > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-body .view .company-lines > li.company-item strong { color: var(--glass-strong); font-weight: 600; }
.panel-body .view .company-lines > li.company-item small { overflow: hidden; color: var(--glass-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.panel-body .view .company-go { align-self: flex-start; margin-top: auto; padding: 10px 0 0; border: 0; background: none; color: #2563eb; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.panel-body .view .company-go:hover { text-decoration: underline; }
@media (max-width: 1180px) { .panel-body .view .company-trio { grid-template-columns: minmax(0, 1fr); } .panel-body .view .company-trio > #company-registration { grid-row: auto; } }

/* A container's list and its pages: the pages stand under the list, at its right. */
.panel-body .view .company-paged { display: flex; flex-direction: column; gap: 6px; }
.panel-body .view .company-paged > .look-pager { align-self: flex-end; }

/* Modules/Development/SmartAgents/smartagents.css */
.smartagents-view { --sa-ink: #111d32; --sa-muted: #526784; --sa-line: #dce4eb; container-type: inline-size; color: var(--sa-ink); }
.smartagents-view .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.smartagents-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
/* Each control is as tall as the row it stands on (George, 2026-10-13): + Agent, at the right of the heading, as tall as
   the name and centred on it (the area left the page on 2026-10-14); the filter, under it at the right end of the tabs' row and as wide, as tall as a tab's
   words, and it adds no height to that row. */
.smartagents-create { width: 145px; height: var(--control); margin-top: 0; padding: 0 10px; border: 0; border-radius: 8px; background: #007a55; color: #fff; font: inherit; font-size: var(--control-font); font-weight: 700; cursor: pointer; }
.page-tabs .smartagents-filter { align-self: center; margin-left: auto; }
.page-tabs .smartagents-filter[hidden] { display: none; }
.page-tabs .smartagents-filter select { width: 145px; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; color: var(--sa-ink); font: inherit; font-size: var(--control-font); font-weight: 600; }
.page-tabs .smartagents-filter select:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-create:disabled { opacity: .55; cursor: wait; } .smartagents-create.is-full:disabled { cursor: not-allowed; }
.smartagents-instance-card { display: flex; flex-direction: column; gap: 0; padding: 0; cursor: default; }
.smartagents-instance-card code { overflow-wrap: anywhere; font-size: 12px; }
.smartagents-instance-open { display: grid; grid-template-columns: var(--sa-art) minmax(0, 1fr); grid-template-rows: repeat(3, auto); column-gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.smartagents-instance-visual { display: grid; grid-row: 1 / -1; place-items: center; width: var(--sa-art); height: var(--sa-art); border-radius: 9px; background: #e7f7ef; color: #007a55; font-size: calc(var(--sa-art) / 2); font-weight: 800; }
.smartagents-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 0; align-items: start; transition: grid-template-columns .08s ease; }
/* The panel takes its width; the board keeps its four columns beside it, compact when narrow (George, 2026-10-21). */
.smartagents-workspace.is-open { grid-template-columns: minmax(0, 1fr) minmax(340px, 486px); column-gap: 20px; }
.smartagents-gallery { min-width: 0; padding: 0 0 20px; container-type: inline-size; container-name: board; }
/* The Parent-rdy is a stored release, not a running agent: its card has its own colour. */
/* Memphis OS is another product: its card has its own colour, and its panel shows the head and HUD alone. */
.smartagents-card.smartagents-memphis-card { border-color: #cdd9ea; background: #f3f7fc; }
.smartagents-card.smartagents-memphis-card:hover { border-color: #8fa9cc; }
.smartagents-memphis-card .smartagents-art { display: grid; place-items: center; background: #dfe9f7; }
.smartagents-memphis-card .smartagents-art svg { width: 44%; height: 44%; fill: none; stroke: #20416c; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.smartagents-details[data-plain="true"] :is(.smartagents-live-tabs, .smartagents-detail-body, .smartagents-switch-note, .smartagents-switch-bar, .smartagents-detail-actions) { display: none; }
.smartagents-card.smartagents-release-card { border-color: #d5cdee; background: #f6f3fd; }
.smartagents-card.smartagents-release-card:hover { border-color: #a797d6; }
.smartagents-release-card .smartagents-art { display: grid; place-items: center; background: #e6dffa; }
.smartagents-release-card .smartagents-art svg { width: 44%; height: 44%; fill: none; stroke: #5b4a9c; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#smartagents-agent-form [hidden], #smartagents-promote-form [hidden], #smartagents-customer-form [hidden] { display: none; }
#smartagents-customer-form label { display: grid; gap: 6px; }
.customer-update-dialog [hidden] { display: none; }
.smartagents-product-customers { grid-column: 1 / -1; display: grid; gap: 6px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--sa-line); list-style: none; font-size: 12px; color: var(--sa-muted); }
.smartagents-product-customers li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.smartagents-customer-update { padding: 4px 10px; border: 1px solid #b7791f; border-radius: 999px; background: #fff7e6; color: #7a5600; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.smartagents-customer-update:focus-visible { outline: 3px solid #007a55; outline-offset: 2px; }
.smartagents-product-promote { padding: 5px 12px; border: 1px solid #007a55; border-radius: 999px; background: #007a55; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.smartagents-product-promote:focus-visible { outline: 3px solid #007a55; outline-offset: 2px; }
/* The Kanban (George, 2026-10-21): four columns, one per state, each with its name, its meaning and how many cards it holds.
   A card takes the width of its column; with the panel open the columns stand two by two. */
.smartagents-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.smartagents-column { min-width: 0; padding: 12px; border: 1px solid var(--sa-line); border-radius: 14px; background: #f4f7fa; }
.smartagents-column[data-state="rdy"] { background: #f6f3fd; border-color: #e3dcf3; }
.smartagents-column[data-state="prd"] { background: #eef8f2; border-color: #d3eadc; }
.smartagents-column-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.smartagents-column-head p { min-height: 2.8em; margin: 4px 0 12px; color: var(--sa-muted); font-size: 12px; line-height: 1.4; }
.smartagents-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.smartagents-column .smartagents-card { min-height: 0; }
.smartagents-column-empty { margin: 0; padding: 14px 12px; border: 1px dashed var(--sa-line); border-radius: 10px; color: var(--sa-muted); font-size: 13px; line-height: 1.4; }
.smartagents-column-empty[hidden] { display: none; }
/* A product: a stored release of a Child or a Custom, with how many customer agents run it. It opens nothing yet. */
.smartagents-card.smartagents-product-card { grid-template-rows: repeat(4, auto); cursor: default; }
.smartagents-card.smartagents-product-card:hover { border-color: var(--sa-line); box-shadow: 0 8px 30px rgb(26 50 71 / .055); transform: none; }
.smartagents-product-card .smartagents-art { display: grid; place-items: center; background: #dff2e6; }
.smartagents-product-card .smartagents-art svg { width: 44%; height: 44%; fill: none; stroke: #0f6b4a; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.smartagents-product-card .smartagents-card-customers { margin: 0; color: var(--sa-muted); font-size: 12px; }
/* A card is one row (George, 2026-10-21: half the size, more cards in a column): the picture at the left, the three lines beside it. */
.smartagents-card { --sa-art: 72px; display: grid; grid-template-columns: var(--sa-art) minmax(0, 1fr); grid-template-rows: repeat(3, auto); column-gap: 12px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--sa-line); border-radius: 12px; background: #fff; color: var(--sa-ink); box-shadow: 0 8px 30px rgb(26 50 71 / .055); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.smartagents-card[hidden] { display: none; }
.smartagents-card:hover { border-color: #86bea6; box-shadow: 0 12px 32px rgb(26 50 71 / .12); transform: translateY(-2px); }
.smartagents-card[aria-expanded="true"] { border: 2px solid #008a59; padding: 9px; }
.smartagents-card.smartagents-instance-card, .smartagents-card.smartagents-instance-card[aria-expanded="true"] { display: block; padding: 0; }
.smartagents-instance-card[aria-expanded="true"] .smartagents-instance-open { padding: 9px; }
.smartagents-instance-card[aria-expanded="true"] { padding: 0; }
.smartagents-instance-card .smartagents-instance-open:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-card:focus-visible, .smartagents-close:focus-visible, .smartagents-open:focus-visible, .smartagents-tools :focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-art { display: block; grid-row: 1 / -1; width: var(--sa-art); height: var(--sa-art); overflow: hidden; border-radius: 9px; background: #d9f4e3; }
.smartagents-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Each category of the avatar library has its colour, behind a picture that carries none. */
[data-category="parent"] { --sa-category: #d9f4e3; } [data-category="marketing"] { --sa-category: #ffebbd; } [data-category="finance"] { --sa-category: #d6efff; } [data-category="hr"] { --sa-category: #e8d8ff; } [data-category="social-media"] { --sa-category: #ffd9ec; } [data-category="customer-service"] { --sa-category: #cdf3f1; } [data-category="reception"] { --sa-category: #ffd9d2; } [data-category="sales"] { --sa-category: #ffe1c2; } [data-category="executive-assistant"] { --sa-category: #d3e3ee; } [data-category="operations"] { --sa-category: #e2e8cf; } [data-category="customer-success"] { --sa-category: #ffdfd0; } [data-category="ecommerce"] { --sa-category: #ffd6d6; } [data-category="data"] { --sa-category: #dcdcfb; } [data-category="knowledge"] { --sa-category: #f1e6d2; } [data-category="projects"] { --sa-category: #f8e7b0; } [data-category="it-support"] { --sa-category: #d7e3f0; } [data-category="development"] { --sa-category: #dfe5e2; } [data-category="design"] { --sa-category: #ead9f7; } [data-category="research"] { --sa-category: #d5dcee; } [data-category="procurement"] { --sa-category: #f3d8cb; }
.smartagents-art[data-category], .smartagents-avatar, .smartagents-detail-head img[data-category] { background: var(--sa-category, #e9f6ef); }
.smartagents-avatar-open { flex: none; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.smartagents-avatar-open:hover img, .smartagents-avatar-open:hover .smartagents-instance-head-icon { box-shadow: 0 0 0 3px #b6dccc; }
.smartagents-avatar-open:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-avatar-open [hidden] { display: none; }
.smartagents-avatar-row { display: grid; gap: 8px; margin-top: 14px; font-weight: 700; }
.smartagents-avatars { display: grid; grid-template-columns: repeat(auto-fill, 62px); grid-auto-rows: 62px; justify-content: space-between; gap: 8px; height: 218px; padding: 6px; overflow-y: auto; border: 1px solid var(--sa-line); border-radius: 10px; color: var(--sa-muted); font-size: 13px; font-weight: 400; }
.smartagents-avatar { width: 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; }
.smartagents-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.smartagents-avatar[aria-checked="true"] { border-color: #007a55; box-shadow: 0 0 0 2px #b6dccc; }
.smartagents-avatar:focus-visible { outline: 3px solid #007a55; outline-offset: 2px; }
.smartagents-avatar:disabled { cursor: default; opacity: .7; }
.smartagents-instance-visual.smartagents-art { display: block; padding: 0; font-size: 0; }
.smartagents-card-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.smartagents-card-subtitle { margin: 0; color: var(--sa-muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.smartagents-card-bottom { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0; color: #20416c; font-size: 20px; line-height: 1; }
.smartagents-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; }
.smartagents-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.smartagents-badge.current { color: #006b49; background: #e7f7ef; } .smartagents-badge.planned { color: #635581; background: #f1edf9; }
.smartagents-empty { padding: 24px; border: 1px dashed var(--sa-line); border-radius: 10px; color: var(--sa-muted); }
.smartagents-details { min-width: 0; height: min(945px, calc((100dvh - 118px) * .9)); position: sticky; top: 80px; overflow: hidden; visibility: hidden; border: 0 solid var(--sa-line); background: #fff; box-shadow: -10px 0 35px rgb(18 38 53 / .08); transform: translateX(100%); transition: transform .08s ease, visibility .08s; }
.smartagents-workspace.is-open .smartagents-details { visibility: visible; border-left-width: 1px; transform: translateX(0); }
.smartagents-detail-inner { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; position: relative; padding: 26px clamp(18px, 2vw, 30px); overflow: hidden; }
.smartagents-instance-head-icon { display: grid; place-items: center; flex: none; width: 78px; height: 78px; border-radius: 12px; background: #e7f7ef; color: #007a55; font-size: 44px; font-weight: 800; }
.smartagents-close { position: absolute; top: 13px; right: 18px; padding: 4px 8px; border: 0; background: none; color: #273c62; font: inherit; font-size: 29px; cursor: pointer; }
.smartagents-detail-head { display: flex; align-items: center; gap: 16px; padding: 10px 28px 23px 0; border-bottom: 1px solid var(--sa-line); }
.smartagents-detail-head img { flex: none; width: 78px; height: 78px; object-fit: cover; border-radius: 12px; background: #e9f6ef; }
.panel-body .view .smartagents-detail-head h2 { margin: 0 0 3px; font-size: 22px; line-height: 1.15; }
.smartagents-detail-head p { margin: 0 0 8px; color: var(--sa-muted); font-size: 14px; }
.smartagents-tabs { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--sa-line); color: var(--sa-muted); font-size: 14px; }
.smartagents-detail-body { flex: 1; min-height: 0; padding: 25px 0; overflow-y: auto; color: var(--sa-muted); font-size: 14px; line-height: 1.55; }
.smartagents-module-table { width: 100%; border-spacing: 0; border: 1px solid var(--sa-line); border-radius: 8px; overflow: hidden; color: var(--sa-ink); font-size: 12px; text-align: left; }
.smartagents-module-table th, .smartagents-module-table td { padding: 8px 10px; border-bottom: 1px solid var(--sa-line); }
.smartagents-module-table th { background: #f0f2f4; font-weight: 700; }
.smartagents-module-table tr:last-child td { border-bottom: 0; }
.smartagents-module-table th:first-child { width: 50%; }
.smartagents-module-table td:last-child { color: var(--sa-muted); }
.smartagents-local-empty { margin: 10px 0 22px; padding: 12px; border: 1px solid var(--sa-line); border-radius: 8px; color: var(--sa-muted); font-size: 12px; }
.smartagents-detail-body p { margin: 0 0 18px; }
.smartagents-facts { margin: 0 0 22px; border: 1px solid var(--sa-line); border-radius: 9px; }
.smartagents-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 12px 16px; } .smartagents-facts div + div { border-top: 1px solid var(--sa-line); }
.smartagents-facts dt { color: var(--sa-muted); } .smartagents-facts dd { margin: 0; color: var(--sa-ink); font-weight: 700; }
.smartagents-detail-note { padding: 15px 17px; border-radius: 9px; background: #f4f7f8; }
.smartagents-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--sa-line); }
.smartagents-detail-actions button { flex: 1 1 110px; min-height: var(--control); padding: 0 10px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; color: #526784; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.smartagents-detail-actions button:last-of-type { border-color: #b6dccc; background: #e7f7ef; color: #44826b; }
#smartagents-live-actions #smartagents-delete-parent { border-color: #bd4444; color: #9b2424; background: #fff; }
#smartagents-live-actions #smartagents-promote, #smartagents-live-actions #smartagents-publish { border-color: #b6dccc; background: #e7f7ef; color: #00603f; }
/* The Parent-DEV's Update while it has changes not published: filled green. */
#smartagents-live-actions #smartagents-publish.is-ready, .smartagents-link-label.is-ready { border-color: #00603f; background: #00603f; color: #fff; }
.smartagents-headline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; }
.smartagents-headline div { display: flex; gap: 6px; }
.smartagents-headline dt { color: var(--sa-muted); } .smartagents-headline dt::after { content: ":"; }
.smartagents-headline dd { margin: 0; color: var(--sa-ink); font-weight: 700; }
/* Whether the agent is awake: a dot before the word, green awake, slate asleep, amber waking (George, 2026-10-15). */
.smartagents-headline div[hidden] { display: none; }
#smartagents-live-awake { display: inline-flex; align-items: center; gap: 6px; }
#smartagents-live-awake::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sa-muted); }
#smartagents-live-awake[data-state="awake"]::before { background: #1f9d6a; }
#smartagents-live-awake[data-state="asleep"]::before { background: #6b7f99; }
#smartagents-live-awake[data-state="waking"]::before { background: #e3a008; }
.smartagents-hud-row { padding: 16px 0 4px; }
.smartagents-hud-row .environment-status { margin-top: 8px; color: var(--sa-muted); }
.smartagents-hud-row .environment-status:empty { display: none; }
.smartagents-facts dd { overflow-wrap: anywhere; }
.smartagents-facts div[hidden] { display: none; }
#smartagents-live-id { font-size: 12px; }
.smartagents-detail-note[hidden] { display: none; }
.smartagents-open:disabled { opacity: .55; cursor: not-allowed; }
.smartagents-live-tabs { justify-content: space-between; gap: 8px; }
.smartagents-live-tabs button { padding: 12px 2px 9px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--sa-muted); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.smartagents-live-tabs button[aria-selected="true"] { border-bottom-color: #00845b; color: #00744f; }
.smartagents-live-tabs button:focus-visible, #smartagents-live-actions button:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
#smartagents-live-modules td:last-child { color: var(--sa-ink); font-weight: 700; }
#smartagents-features th:first-child, #smartagents-skills th:first-child { width: auto; }
#smartagents-features th:last-child, #smartagents-skills th:last-child { text-align: right; }
#smartagents-features td:last-child, #smartagents-skills td:last-child { text-align: right; white-space: nowrap; }
#smartagents-features td:last-child span, #smartagents-skills td:last-child span { margin-right: 10px; vertical-align: middle; }
.smartagents-module-table tr.is-changed td:last-child { color: #00603f; font-weight: 700; }
/* The Parent-rdy's comparison with the Parent-Dev: a row whose two sides differ. */
.smartagents-module-table tr.is-different td { background: #fff6e0; }
.smartagents-module-table tr.is-different td:not(:first-child) { color: #7a4b00; font-weight: 700; }
.smartagents-switch-bar { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--sa-line); font-size: 13px; }
.smartagents-switch-bar[hidden], .smartagents-switch-bar [hidden] { display: none; }
.smartagents-switch-bar p { flex: 1; margin: 0; color: var(--sa-ink); font-weight: 700; }
.smartagents-switch-bar button { min-height: var(--control); padding: 0 10px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; color: var(--sa-ink); font: inherit; font-size: var(--control-font); font-weight: 700; cursor: pointer; }
.smartagents-switch-bar #smartagents-switch-apply { border-color: #007a55; background: #007a55; color: #fff; }
.smartagents-switch-bar button:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
#smartagents-switch-list { max-height: 220px; margin: 0 0 14px; padding-left: 20px; overflow-y: auto; line-height: 1.5; }
#smartagents-switch-message { min-height: 22px; margin: 14px 0 0; }
.smartagents-group-open { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.smartagents-group-open::before { content: "›"; flex: none; width: 10px; color: var(--sa-muted); font-size: 16px; line-height: 1; transition: transform .15s; }
.smartagents-group-open[aria-expanded="true"]::before { transform: rotate(90deg); }
.smartagents-group-open:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-group-name { display: block; padding-left: 18px; font-weight: 700; }
.smartagents-tab-count { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.smartagents-tab-count[hidden] { display: none; }
.smartagents-count-card { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1px solid var(--sa-line); border-left: 3px solid #007a55; border-radius: 8px; background: #fff; color: var(--sa-muted); font-size: 12px; }
.smartagents-count-card strong { color: var(--sa-ink); font-size: 18px; font-weight: 800; line-height: 1.2; }
.smartagents-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.smartagents-kpi { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px 18px; border: 1px solid var(--sa-line); border-left: 4px solid #007a55; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgb(26 50 71 / .055); }
.smartagents-kpi.is-custom { border-left-color: #c9962b; }
.panel-body .smartagents-kpi svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: #eef6f2; fill: none; stroke: #00603f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.smartagents-kpi.is-custom svg { background: #fbf3df; stroke: #8a6410; }
/* Places left: amber at three or two, red at one, black at none (George, 2026-10-12). */
.smartagents-kpi.is-low { border-left-color: #c9962b; background: #fffaf0; } .smartagents-kpi.is-low svg { background: #fbf3df; stroke: #8a6410; }
.smartagents-kpi.is-critical { border-left-color: #b3261e; background: #fdf1f0; } .smartagents-kpi.is-critical svg { background: #fbe4e2; stroke: #8c1d18; }
.smartagents-kpi.is-full { border-color: #14181d; border-left-color: #14181d; background: #14181d; color: #fff; } .smartagents-kpi.is-full span { color: #c9d1da; } .smartagents-kpi.is-full svg { background: #2b323a; stroke: #fff; }
.smartagents-kpi span { display: block; color: var(--sa-muted); font-size: 13px; }
.smartagents-kpi strong { display: block; margin: 2px 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.smartagents-kpi strong > b { font-weight: inherit; }
/* Beside the count of agents in development: how many are awake (green) and asleep (dark), smaller, on the same line. */
.smartagents-kpi-split { margin-left: 10px; color: var(--sa-muted); font-size: 15px; font-weight: 700; }
.smartagents-kpi-split .is-awake { color: #007a55; } .smartagents-kpi-split .is-asleep { color: #14181d; }
/* The workflow and the list of changes are cards of the site, each with its title inside (George, 2026-10-14). */
.smartagents-changes-card { margin-top: 16px; }
.smartagents-changes { padding: 0; }
.smartagents-zoom { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--sa-line); border-radius: 10px; background: #fff; }
.smartagents-zoom button { min-width: 34px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--sa-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.smartagents-zoom button:hover { background: #eef1f4; }
.smartagents-zoom button:focus-visible, .smartagents-lane-open:focus-visible { outline: 3px solid #007a55; outline-offset: 2px; }
.smartagents-zoom span { min-width: 46px; color: var(--sa-muted); font-size: 13px; font-weight: 700; text-align: center; }
.smartagents-canvas { overflow: auto; border: 1px solid var(--sa-line); border-radius: 16px; background-color: #fbfcfd; background-image: radial-gradient(#cfd8e1 1.1px, transparent 1.1px); background-size: 18px 18px; box-shadow: inset 0 1px 0 #fff, 0 8px 30px rgb(26 50 71 / .05); }
.smartagents-map { position: relative; display: flex; align-items: center; width: max-content; padding: 34px 30px; transform-origin: 0 0; }
.smartagents-wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: #0a8a62; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.smartagents-wires circle { fill: #fff; }
.smartagents-wires .smartagents-wire-arrow { fill: currentColor; stroke-width: 1.5; color: #0a8a62; }
.smartagents-wires .is-waiting .smartagents-wire-arrow { color: #b4c0cc; stroke-dasharray: none; }
.smartagents-wires .is-waiting { stroke: #b4c0cc; }
.smartagents-wires .is-waiting path:first-child { stroke-dasharray: 5 6; }
.smartagents-trunk, .smartagents-branch { display: flex; align-items: flex-start; }
.smartagents-trunk { margin-right: 96px; }
.smartagents-node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; text-align: center; }
/* Every node is a filled piece with a white picture, the Parents and the agents alike (George, 2026-10-13): green in order,
   amber when it is not, red when what it stands for does not exist yet. */
.smartagents-piece { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid #0b6a4b; border-radius: 16px; background: linear-gradient(155deg, #0c8a61, #045238); box-shadow: 0 1px 0 rgb(255 255 255 / .28) inset, 0 0 0 4px rgb(10 138 98 / .13), 0 12px 26px rgb(4 82 56 / .35); }
.smartagents-piece svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.smartagents-node.is-alert .smartagents-piece { border-color: #b97d0e; background: linear-gradient(155deg, #edb035, #b9770a); box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset, 0 0 0 4px rgb(224 154 23 / .16), 0 12px 26px rgb(150 100 10 / .32); }
.smartagents-node.is-waiting .smartagents-piece { border-color: #a3352b; background: linear-gradient(155deg, #e0655a, #ad382e); box-shadow: 0 1px 0 rgb(255 255 255 / .28) inset, 0 0 0 4px rgb(200 70 60 / .14), 0 12px 26px rgb(150 45 35 / .3); }
/* An agent being updated: a turning arrow at the corner of its piece. The label under it says so in words. */
.smartagents-node .smartagents-piece { position: relative; }
.smartagents-node-busy { position: absolute; top: -11px; right: -11px; width: 30px !important; height: 30px !important; padding: 5px; border: 1px solid #e2b354; border-radius: 999px; background: #fff; stroke: #96650a !important; stroke-width: 2.2; animation: smartagents-turn 1.1s linear infinite; }
@keyframes smartagents-turn { to { transform: rotate(360deg); } }
/* A request on its way (George, 2026-10-13): four pieces turn around the middle while the VPS works, and when
   it is done they join into one piece with the tick. The pop-up says its step in data-step: ask, wait, ready
   or say; while it waits and when it is ready it shows only the pieces, the title, the agent, the words and
   the button. */
.smartagents-orbit { display: none; position: relative; width: 108px; height: 108px; margin: 2px auto 18px; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) .smartagents-orbit { display: block; }
.smartagents-orbit::before { content: ""; position: absolute; inset: 13px; border: 1px dashed rgb(227 189 85 / .38); border-radius: 50%; transition: opacity .4s; }
.smartagents-orbit i { position: absolute; inset: 0; animation: smartagents-turn 2.8s linear infinite; }
.smartagents-orbit i:nth-child(2) { rotate: 90deg; } .smartagents-orbit i:nth-child(3) { rotate: 180deg; } .smartagents-orbit i:nth-child(4) { rotate: 270deg; }
.smartagents-orbit i::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 26px; margin-left: -13px; border: 1.5px solid #e3bd55; border-radius: 8px; background: #141b18;
  box-shadow: 0 0 14px rgb(227 189 85 / .38), inset 0 1px 0 rgb(255 255 255 / .12); transition: translate .55s cubic-bezier(.6, 0, .3, 1), border-color .4s, opacity .25s .45s; }
.smartagents-orbit b { position: absolute; inset: 0; display: grid; place-items: center; width: 48px; height: 48px; margin: auto; border: 2px solid #37d39a; border-radius: 13px; background: #141b18;
  box-shadow: 0 0 0 4px rgb(55 211 154 / .16), 0 0 26px rgb(55 211 154 / .45); opacity: 0; scale: .4; transition: opacity .3s .45s, scale .45s .45s cubic-bezier(.3, 1.6, .5, 1); }
.smartagents-orbit b::after { content: ""; width: 17px; height: 9px; margin-top: -4px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; rotate: -45deg; }
.smartagents-delete-dialog[data-step="ready"] .smartagents-orbit::before { opacity: 0; }
.smartagents-delete-dialog[data-step="ready"] .smartagents-orbit i::before { translate: 0 41px; border-color: #37d39a; opacity: 0; }
.smartagents-delete-dialog[data-step="ready"] .smartagents-orbit b { opacity: 1; scale: 1; }
.smartagents-delete-dialog[data-step="ready"] #smartagents-delete-target { display: none; }
.smartagents-view dialog.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) { width: min(420px, calc(100vw - 32px)); padding: 30px 28px 24px; border-color: rgb(227 189 85 / .5); text-align: center; }
.smartagents-view dialog.smartagents-delete-dialog[data-step="ready"] { border-color: rgb(55 211 154 / .55); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 30px 80px rgb(0 0 0 / .5), 0 0 70px rgb(55 211 154 / .2); }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) form > :not(.smartagents-orbit, .dialog-head, [role="status"], [id$="-target"]) { display: none; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) h2 { flex: none; margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) p { margin: 4px 0 0; color: var(--sa-muted); font-size: 14px; overflow-wrap: anywhere; }
/* While it waits and when it is ready, the head gives its title and its button to the column: the title under the
   pieces, the button last and centred. */
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) form { display: flex; flex-direction: column; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) .dialog-head { display: contents; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) .dialog-head-actions { order: 1; justify-content: center; margin: 20px 0 0; }
.smartagents-delete-dialog:is([data-step="wait"], [data-step="ready"]) .dialog-head-actions button { min-width: 128px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .smartagents-orbit i { animation: none; } .smartagents-orbit i::before, .smartagents-orbit b, .smartagents-delete-dialog { transition: none; } }
@media (prefers-reduced-motion: reduce) { .smartagents-node-busy { animation: none; } }
.smartagents-round { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 36px; margin: 0 0 12px; color: #33475f; font-size: 14px; line-height: 1.45; }
.smartagents-round p { flex: 1 1 280px; margin: 0; }
/* The line of an Update round takes room only when it has something to say, so the title sits close to the workflow. */
.smartagents-round:has(p:empty):has(button[hidden]) { display: none; }
.smartagents-round button { min-height: var(--control); padding: 0 10px; border: 1px solid #007a55; border-radius: 8px; background: #007a55; color: #fff; font: inherit; font-size: var(--control-font); font-weight: 700; cursor: pointer; }
.smartagents-node-name { max-width: 100%; margin-top: 4px; color: var(--sa-ink); font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.smartagents-node-own { max-width: 100%; color: var(--sa-muted); font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.smartagents-node-version { padding: 3px 10px; border: 1px solid var(--sa-line); border-radius: 999px; background: #fff; color: #33475f; font-size: 12px; font-weight: 700; line-height: 1.3; }
.smartagents-node small { color: var(--sa-muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.smartagents-node.is-waiting .smartagents-node-name, .smartagents-node.is-waiting .smartagents-node-version { color: #7c8da3; }
.smartagents-link { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: 138px; height: 92px; }
.smartagents-link-label { padding: 4px 11px; border: 1px solid var(--sa-line); border-radius: 999px; background: #fff; color: #33475f; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgb(26 50 71 / .07); }
button.smartagents-link-label { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
button.smartagents-link-label:hover { border-color: #007a55; color: #00603f; }
button.smartagents-link-label:focus-visible { outline: 3px solid #007a55; outline-offset: 2px; }
.smartagents-lanes { display: grid; gap: 26px; }
.smartagents-lane { min-width: 696px; padding: 14px 22px 20px; border: 1px dashed #b6dccc; border-radius: 16px; background: rgb(233 247 240 / .62); }
.smartagents-lane[data-lane="custom"] { border-color: #ecd9a6; background: rgb(253 246 226 / .72); }
.panel-body .view .smartagents-lane h3 { margin: 0; font-size: 13px; }
.smartagents-lane-open { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 12px 3px 4px; border: 1px solid #b6dccc; border-radius: 999px; background: #fff; color: #00603f; font: inherit; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.smartagents-lane[data-lane="custom"] .smartagents-lane-open { border-color: #ecd9a6; color: #7a5a10; }
.smartagents-lane-open::before { content: "−"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef1f4; color: var(--sa-ink); font-size: 15px; line-height: 1; }
.smartagents-lane-open[aria-expanded="false"]::before { content: "+"; }
.smartagents-lane-rows { display: grid; gap: 18px; margin-top: 18px; }
.smartagents-lane-rows[hidden] { display: none; }
.smartagents-lane-empty { margin: 0; color: var(--sa-muted); font-size: 13px; }
.smartagents-count { padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: var(--sa-muted); font-size: 11px; line-height: 1.3; }
#smartagents-skills .smartagents-category-row td { text-align: left; }
#smartagents-skills .smartagents-group-open span { margin-right: 0; }
.smartagents-function-row td { background: #f8fafb; }
.smartagents-function-row td:first-child { padding-left: 28px; overflow-wrap: anywhere; }
.smartagents-function-row[hidden] { display: none; }
/* Off is the opposite of on (George, 2026-10-13): red, its knob at the left; on is green, its knob at the right. */
.smartagents-view input.smartagents-switch { appearance: none; position: relative; width: 34px; height: 20px; margin: 0; border-color: transparent; border-radius: 999px; background: #c23b3b; vertical-align: middle; cursor: pointer; transition: background .15s; }
.smartagents-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.smartagents-view input.smartagents-switch:checked { background: #007a55; }
.smartagents-switch:checked::after { transform: translateX(14px); }
.smartagents-switch:disabled { opacity: .5; cursor: not-allowed; }
.smartagents-switch[hidden] { display: none; }
/* In the place of a switch that cannot be turned on because the Parent-DEV has it off. */
.smartagents-lock { width: 18px; height: 18px; margin: 0 8px; fill: none; stroke: #7c8da3; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
#smartagents-skills .smartagents-category-row td:last-child { text-align: right; }
.smartagents-switch:focus-visible { outline: 3px solid #007a55; outline-offset: 3px; }
.smartagents-delete-dialog label + label { margin-top: 14px; }
.smartagents-delete-dialog select, .smartagents-delete-dialog label input { width: 100%; height: 44px; margin: 0; }
.smartagents-delete-dialog select { min-height: 44px; padding: 8px; border: 1px solid var(--sa-line); border-radius: 8px; background: rgb(255 255 255 / .07); color: inherit; font: inherit; }
.smartagents-delete-dialog input:disabled { background: rgb(255 255 255 / .03); color: var(--sa-muted); }
.smartagents-delete-dialog option { background: #14201c; color: #f4f7f5; }
.smartagents-delete-dialog .smartagents-avatar[aria-checked="true"] { border-color: #37d39a; box-shadow: 0 0 0 2px rgb(55 211 154 / .35); }
.smartagents-delete-dialog .smartagents-choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; }
.smartagents-delete-dialog .smartagents-choice[hidden] { display: none; }
.smartagents-delete-dialog .smartagents-choice input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; }
.smartagents-delete-dialog .smartagents-choice + .smartagents-choice { margin-top: 12px; }
.smartagents-delete-dialog .smartagents-choice strong { display: block; }
.smartagents-delete-dialog fieldset { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.smartagents-delete-dialog legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.smartagents-delete-dialog .smartagents-choice:has(input:disabled) { color: var(--sa-muted); }
.smartagents-promote-rule { margin: 0; color: var(--sa-muted); font-size: 13px; }
#smartagents-promote-changes { margin: -6px 0 16px; }
#smartagents-promote-changes[hidden] { display: none; }
#smartagents-promote-message, #smartagents-agent-message { min-height: 22px; margin: 14px 0 0; }
.smartagents-delete-dialog .dialog-head-actions [hidden] { display: none; }
.smartagents-pending { margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgb(176 160 255 / .25); border-radius: 8px; background: rgb(176 160 255 / .12); color: #d5cef5; font-size: 13px; }
.smartagents-delete-dialog .dialog-head-actions button:disabled { opacity: .45; cursor: not-allowed; }
#smartagents-live-actions [hidden] { display: none; }
.smartagents-badge.unknown { color: #526784; background: #eef1f4; }
/* Every pop-up of the section is one glass panel (George, 2026-10-13): dark and see-through, the page blurred
   behind it, a gold light at one corner and a green one at the other. Its words and lines take the light colours. */
.smartagents-view dialog.smartagents-delete-dialog { --sa-ink: #f4f7f5; --sa-muted: #a9b8b1; --sa-line: rgb(255 255 255 / .18); color-scheme: dark; accent-color: #37d39a; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid rgb(255 255 255 / .16); border-radius: 20px; color: var(--sa-ink);
  background: radial-gradient(90% 70% at 0% 0%, rgb(227 189 85 / .24), transparent 60%), radial-gradient(80% 70% at 100% 100%, rgb(25 169 116 / .22), transparent 60%), linear-gradient(160deg, rgb(24 36 32 / .6), rgb(7 12 10 / .76));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 30px 80px rgb(0 0 0 / .5), 0 0 60px rgb(201 162 63 / .12); transition: border-color .5s, box-shadow .5s; }
.smartagents-view dialog.smartagents-delete-dialog::backdrop { background: rgb(4 9 8 / .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.smartagents-delete-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.smartagents-delete-dialog p { line-height: 1.5; }
.smartagents-delete-dialog label { display: grid; gap: 8px; font-weight: 700; }
.smartagents-delete-dialog input { min-height: 44px; padding: 8px; border: 1px solid var(--sa-line); border-radius: 8px; background: rgb(255 255 255 / .07); color: inherit; font: inherit; }
/* A pop-up's head (dialogHead, DESIGN.md › Pop-up; George, 2026-11-06): the title, then Close and the main action side
   by side at the top right, of one size, the main one green; Delete permanently keeps its red. Also for the customer
   agent's update, which stands outside the page. */
.smartagents-delete-dialog .dialog-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.smartagents-delete-dialog .dialog-head h2 { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.smartagents-delete-dialog .dialog-head-actions { display: flex; flex: none; gap: 8px; margin-left: auto; }
.smartagents-delete-dialog .dialog-head-actions button { min-width: 96px; height: var(--control); min-height: var(--control); padding: 0 12px; border: 1px solid var(--sa-line); border-radius: 8px; background: rgb(255 255 255 / .06); color: inherit; font: inherit; font-size: var(--control-font); cursor: pointer; }
.smartagents-delete-dialog .dialog-head-actions button:hover:not(:disabled) { filter: brightness(1.18); }
.smartagents-delete-dialog .dialog-head-actions .dialog-main { border-color: #16a34a; background: #16a34a; color: #fff; }
.smartagents-delete-dialog .dialog-head-actions #smartagents-delete-submit { border-color: #a82929; background: #a82929; color: #fff; }
@media (max-width: 520px) { .smartagents-delete-dialog .dialog-head { flex-wrap: wrap; } .smartagents-delete-dialog .dialog-head-actions { margin-left: 0; } }
.smartagents-open { width: 100%; min-height: var(--control); display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; background: #007a55; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.smartagents-open:hover:not(:disabled) { background: #005e42; }
.environment-status { min-height: 20px; margin: 10px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
/* A narrow board (the panel open beside it, or a small window) keeps its four columns with smaller pictures and words. */
@container board (max-width: 900px) { .smartagents-card { --sa-art: 48px; column-gap: 8px; padding: 8px; } .smartagents-instance-open { column-gap: 8px; padding: 8px; } .smartagents-card-title { font-size: 13px; } .smartagents-card-subtitle, .smartagents-product-card .smartagents-card-customers { font-size: 11px; } .smartagents-badge { padding: 4px 7px; font-size: 11px; } .smartagents-column { padding: 8px; } .smartagents-column-head h2 { font-size: 13px; } .smartagents-column-head p { font-size: 11px; } }
/* Narrower still, the four states stand two by two, every one in view. */
@container board (max-width: 600px) { .smartagents-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .smartagents-board { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 893px) { .smartagents-workspace, .smartagents-workspace.is-open { display: block; } .smartagents-details { position: fixed; top: 0; right: 0; z-index: 20; width: min(100vw, 440px); height: 100dvh; max-height: none; box-shadow: -20px 0 70px rgb(16 31 45 / .25); } .smartagents-workspace.is-open::before { content: ""; position: fixed; inset: 0; z-index: 19; background: rgb(8 22 29 / .35); } }
@media (max-width: 620px) { .smartagents-tools { width: 100%; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .smartagents-workspace, .smartagents-details, .smartagents-card { transition: none; } }
/* Where the modules of a sleeping agent come from, and what the Parent-DEV has not published yet. */
.smartagents-switch-note { margin: 10px 0 0; color: #536173; font-size: 13px; line-height: 1.45; }
.smartagents-switch-note[hidden] { display: none; }
.smartagents-promote-carries { margin-bottom: 14px; }
.smartagents-live-versions span { display: block; line-height: 1.7; font-weight: 600; }

/* The Company account tab (D6, company.js): the canvas and its pieces are Admin's new look (Shell/look.css); here only
   the app's logo beside its name in the table. */
.company-canvas > * { min-width: 0; }
.company-canvas .company-app { display: inline-flex; align-items: center; gap: 10px; }
.company-canvas .company-app-logo { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; padding: 2px; }
.company-canvas .company-app-logo.integrations-letter { display: inline-grid; place-items: center; color: #111; font-size: 12px; font-weight: 800; }
.panel-body .view .company-canvas #company-apps .view-table { min-width: 900px; }
.panel-body .view .company-canvas #company-apps .table-wrap { overflow-x: auto; }

/* Modules/Finance/ui/finance.css */
/* Finance: what only its two pages use. The heading, the tabs, the counts, the cards and the tables
   are the pieces every page shares, in the panel's stylesheet. */
.fin-status { overflow-wrap: anywhere; }
.fin-cost-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px; }
.fin-cost-actions { display:flex;flex-wrap:wrap;gap:8px;margin:12px 0; }
.fin-cost-editor .fin-cost-form { display:block; }
.fin-cost-editor .fin-cost-fields input,.fin-cost-editor .fin-cost-fields select { box-sizing:border-box;width:100%;min-width:0; }
.fin-cost-editor .fin-invoice-field { display:flex;flex-direction:column;gap:6px; }
.fin-cost-panel .look-kpi[role="button"] { cursor:pointer; }
.fin-cost-panel .look-kpi[role="button"]:focus-visible { outline:2px solid var(--accent);outline-offset:3px; }
@media(max-width:650px){.fin-cost-fields { grid-template-columns:minmax(0,1fr); }}
/* What a page says before its figures: the books are old, or Xero is not connected. */
.fin-warning { margin: 0; padding: 12px 16px; border: 1px solid #e6c46a; border-radius: 10px; background: var(--warn-bg); color: var(--text); font-size: 14px; line-height: 1.5; }
.fin-warning strong { color: var(--warn); }
.fin-connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fin-connect p { flex: 1 1 320px; margin: 0; }
/* Figures stand at the right and line up; a sum is set apart. */
.fin-view .view-table .fin-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Keep numeric headings aligned with values inside redesigned cards and dialogs. */
.panel-body .fin-view .view-table th.fin-number,
.panel-body .fin-view .view-table td.fin-number { text-align: right; font-variant-numeric: tabular-nums; }
.fin-card-title { display:flex;align-items:center;gap:8px; }
.fin-card-title > svg { width:16px;height:16px;flex:none; }
.fin-income-partial { display:inline-block;margin-right:6px;font-weight:600; }
.fin-income-figure .look-kpi-label { flex-wrap:wrap; }
.fin-income-figure .fin-metric-rate { margin-left:auto; }
.fin-income-tools,.fin-income-table-filters { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.panel-body .view :is(.fin-income-tools,.fin-income-table-filters) select { box-sizing:border-box;flex:none;width:112px;max-width:100%;min-width:0;height:var(--control);min-height:var(--control);margin:0;border:1px solid #cdd5cf;border-radius:8px;background:#fff;color:#15291f;padding:0 6px;font:inherit;font-size:var(--control-font); }
.fin-income-lead { background:#e7f6e9!important; }
.fin-income-chart-wrap { min-width:0;overflow-x:auto; }
.fin-income-chart { width:100%;height:auto;min-height:180px; }
.fin-income-gridline { stroke:#dfe6e0;stroke-width:1; }
.fin-income-chart g:focus { outline:none; }
.fin-income-chart g:focus-visible { stroke:#1a6241;stroke-width:2; }
.fin-income-legend { display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;margin-top:8px;color:var(--glass-muted);font-size:12.5px; }
.fin-income-legend span::before { content:'';display:inline-block;width:12px;height:8px;margin-right:5px;border-radius:2px; }
.fin-legend-p3::before { background:#065d35; }.fin-legend-v7::before { background:#8ab88a; }.fin-legend-total::before { background:#f2b21a; }
.panel-body .view .fin-income-invoices .fin-income-filter { display:flex;align-items:center;gap:4px;margin:0;font-size:11.5px;white-space:nowrap; }
.panel-body .view .fin-income-invoices .look-tools { flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%; }
.panel-body .view .fin-income-invoices .fin-income-table-filters { min-width:0;max-width:100%; }
.panel-body .view .fin-income-invoices > header { flex-wrap:wrap;margin-bottom:12px; }
.panel-body .view .fin-income-invoices .look-pager { gap:6px;font-size:11.5px; }
.panel-body dialog.look-dialog.register-dialog.fin-invoice-editor { width:min(1380px,calc(100vw - 32px)); }
.panel-body .fin-invoice-editor .register-side-head { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.fin-invoice-editor .register-side-head h2 { margin:0; }
.fin-invoice-editor .fin-detail-body { display:block; }
.fin-invoice-columns { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px; }
.fin-invoice-form,.fin-invoice-preview { min-width:0; }
.fin-invoice-section { padding:18px 0;border-bottom:1px solid #dde4df; }
.fin-invoice-section h3,.fin-invoice-preview h3 { font-size:14px;margin:0 0 14px; }
.fin-invoice-field { display:flex!important;flex-direction:column;gap:6px;margin:0 0 12px!important;font-size:12px;font-weight:600; }
.fin-invoice-field input,.fin-invoice-field select,.fin-invoice-field textarea { box-sizing:border-box;min-width:0;width:100%;min-height:34px;padding:7px 9px;border:1px solid #bcc9c0;border-radius:6px;background:#fff;color:#142b1e;font:inherit;font-size:12px; }
.fin-invoice-field input[type="checkbox"] { width:18px;min-height:18px;align-self:flex-start;accent-color:#076237; }
.fin-invoice-field input:focus-visible,.fin-invoice-field select:focus-visible,.fin-invoice-field textarea:focus-visible { outline:2px solid #076237;outline-offset:2px; }
.fin-invoice-field input::placeholder { color:#65756c; }
.fin-invoice-field textarea { min-height:70px;resize:vertical; }
.fin-invoice-pair { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.fin-invoice-buttons,.fin-invoice-footer { display:flex;gap:8px;flex-wrap:wrap; }
.fin-invoice-line { display:flex;gap:10px;justify-content:space-between;align-items:center;padding:8px 0;font-size:12px;border-bottom:1px solid #dfe6e0; }
.fin-invoice-line>span:first-child { flex:1;min-width:0;overflow-wrap:anywhere; }
.fin-invoice-preview { align-self:start;padding:24px;background:#f2f6f3;border-radius:12px;position:sticky;top:0;font-size:12px; }
.fin-invoice-preview>strong { display:block;font-size:24px;margin:16px 0; }
.fin-invoice-preview>a { display:inline-block;margin:12px 8px 0 0; }
.fin-invoice-state { font-weight:600;color:#085932; }
.fin-invoice-columns:has(.fin-invoice-preview[hidden]) { grid-template-columns:minmax(0,1fr); }
.fin-preview-label { color:var(--muted);font-size:11px;line-height:1.5; }
.fin-preview-tabs { display:flex;gap:12px;border-bottom:1px solid #ccd8d0;margin:12px 0; }
.fin-preview-tabs button { border:0;background:transparent;padding:6px 0;font:inherit;color:inherit;cursor:pointer; }
.fin-preview-tabs button[aria-selected="true"] { color:#075735;border-bottom:2px solid currentColor;font-weight:700; }
.fin-preview-paper,.fin-preview-message { padding:24px;background:#fff;border:1px solid #d8e1db;border-radius:4px;font-size:11px; }
.fin-preview-paper { min-height:560px; }
.fin-preview-paper h4,.fin-preview-message h4 { font-size:16px;margin:12px 0; }
.fin-preview-paper-heading { display:flex;justify-content:space-between;gap:12px;align-items:center; }
.fin-preview-facts,.fin-preview-totals { display:grid;grid-template-columns:1fr auto;gap:5px 12px;font-variant-numeric:tabular-nums; }
.fin-preview-facts dd,.fin-preview-totals dd { margin:0;overflow-wrap:anywhere; }
.fin-preview-totals { margin-left:35%; }
.fin-preview-totals dd { text-align:right; }
.fin-preview-address { display:grid;gap:3px;margin:20px 0; }
.fin-preview-items { width:100%;border-collapse:collapse;margin:20px 0; }
.fin-preview-items :is(th,td) { padding:8px 3px;border-bottom:1px solid #d8e1db;text-align:left; }
.fin-preview-items :is(th,td):last-child { text-align:right;white-space:nowrap; }
.fin-preview-memo,.fin-preview-footer { white-space:pre-wrap;overflow-wrap:anywhere; }
.fin-preview-footer { border-top:1px solid #d8e1db;margin-top:60px;padding-top:12px;color:var(--muted); }
.fin-preview-pay-amount { display:block;font-size:28px;font-variant-numeric:tabular-nums;margin:18px 0; }
.fin-invoice-additional { margin:16px 0;padding:12px;border:1px solid #d5ded7;border-radius:8px; }
.fin-invoice-additional>summary { cursor:pointer;font-size:13px;font-weight:700;margin-bottom:12px; }
.fin-invoice-footer { position:sticky;bottom:0;background:#fff;border-top:1px solid #d5ded7;padding:14px 0 0;justify-content:flex-end; }
.fin-invoice-status { margin:0 0 12px;font-size:12px;min-height:18px;overflow-wrap:anywhere; }
.fin-invoice-inline { padding:12px 0; }.fin-invoice-inline[hidden] { display:none; }
@media(max-width:800px){.fin-invoice-columns{grid-template-columns:minmax(0,1fr);gap:14px}.fin-invoice-preview{position:static}.fin-invoice-editor{width:calc(100vw - 16px)}.fin-invoice-pair{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.fin-income-chart{min-width:520px}.fin-income-chart-wrap{padding-bottom:6px}}
.panel-body .view .fin-income-table-filters { display:flex;flex-wrap:wrap;gap:6px; }
.fin-income-invoices tbody .row-action { padding:0!important;border:0!important;background:transparent!important;min-height:24px!important;height:auto!important;font-size:12px!important;font-weight:600; }
.fin-view .view-table td:first-child { color: var(--text); }
.fin-view .view-table .fin-total td { border-top: 2px solid var(--line); color: var(--text); font-weight: 800; }
.fin-view .view-table .fin-empty { color: var(--muted); text-align: center; }
/* The choice between the whole company and one business, and the button that opens a screen of Xero. */
.fin-choice { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fin-choice button { height: calc(var(--control) - 2px); min-height: 0; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: var(--control-font); cursor: pointer; }
.fin-choice button:last-child { border-right: 0; }
.fin-choice button[aria-pressed="true"] { background: var(--good-bg); color: var(--good); font-weight: 700; }
/* Inside a card, as the choice of which invoices: as wide as its buttons. */
.fin-card > .fin-choice { align-self: flex-start; width: max-content; max-width: 100%; }
.panel-body .view .fin-xero { height: var(--control); padding: 0 10px; font-size: var(--control-font); white-space: nowrap; }
.view .fin-count .fin-xero { margin-top: 10px; }
.fin-planned { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
/* In Admin's new look (phase F2, 2026-10-24): the choice of business across the canvas; tables, sums and lists inside the dark glass. */
.fin-canvas > .fin-choice { grid-column: 1 / -1; }
.fin-cost-panel { grid-column: 1 / -1; min-width: 0; }
.fin-cost-panel > .fin-note { grid-column: 1 / -1; }
.panel-body .view .look-card .fin-choice { border-color: rgb(16 24 40 / .14); }
.panel-body .view .look-card .fin-choice button { background: transparent; color: var(--glass-muted); border-right-color: rgb(16 24 40 / .14); }
.panel-body .view .look-card .fin-choice button[aria-pressed="true"] { background: rgb(52 211 153 / .16); color: #15803d; }
.panel-body .view .look-card .view-table td:first-child { color: var(--glass-text); }
.panel-body .view .look-card .view-table .fin-total td { border-top: 1px solid rgb(16 24 40 / .22); color: var(--glass-strong); font-weight: 800; }
.panel-body .view .look-card .view-table .fin-empty { color: var(--glass-muted); }
.panel-body .view .look-card .fin-planned { color: var(--glass-muted); }
.panel-body .view .look-card .fin-share { background: linear-gradient(to right, #16a34a var(--share), rgb(16 24 40 / .08) var(--share)); box-shadow: 0 0 6px -2px #16a34a; }
.panel-body .view .look-kpi .fin-xero { margin-top: 10px; justify-self: start; }

/* 2a: the agreed composition, using Admin's shared surfaces and typography. */
.fin-chart-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; }
.fin-chart-controls input, .fin-chart-controls select { height: var(--control); min-height: var(--control); width: auto; padding: 2px 6px; font: inherit; font-size: var(--control-font); }
.fin-chart-controls input { max-width: 126px; }
.fin-chart-controls .fin-choice button { padding: 0 8px; }
.panel-body .view .look-card .fin-chart-controls > input,
.panel-body .view .look-card .fin-chart-controls > select { box-sizing: border-box; height: var(--control); min-height: var(--control); margin: 0; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--control-font); font-weight: 500; }
.fin-chart-controls .fin-choice { box-sizing: border-box; height: var(--control); margin: 0; align-items: stretch; }
.fin-metric-info { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; padding: 4px; border: 0; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
/* The circle occupies 18/24 of the SVG: a 16px canvas gives a 12px glyph, 20% below the old 20px canvas. */
.panel-body .fin-metric-info .line-icon { width: calc(1em * 4 / 3); height: calc(1em * 4 / 3); }
.fin-metric-info:focus-visible, .fin-overview-figure:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fin-overview-figure[role="button"] { cursor: pointer; }
.fin-overview-figure .look-kpi-label { width: 100%; min-width: 0; }
.fin-metric-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-metric-rate { flex: none; color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-canvas > .look-ledger { grid-column: 1 / -1; }
.fin-detail { width: min(1000px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.fin-detail-body { display: grid; gap: 16px; padding: 18px; overflow: auto; }
.fin-detail-body > select { justify-self: start; max-width: 100%; }
.fin-stripe-cash-details { min-width: 0; max-width: 100%; }
.fin-detail-body:has(.fin-stripe-cash-details) { min-width: 0; grid-template-columns: minmax(0,1fr); }
.fin-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fin-source-report { min-width: 0; }
.panel-body .view .fin-account-card > * { grid-column: 1 / -1; position: relative; z-index: 1; }
.panel-body .view .fin-account-card { --glass-text: #fff; --glass-strong: #fff; --glass-muted: #e2e8f0; --glass-edge: #515966; isolation: isolate;
  background: linear-gradient(115deg, #080a0d 0%, #171d25 21%, #303742 38%, #12171e 49%, #080b10 64%, #252c35 85%, #0b0d10 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(255 255 255 / .08), 0 2px 4px rgb(0 0 0 / .12); }
.fin-account-card::after { content: ''; position: absolute; z-index: 0; pointer-events: none; top: -50%; left: 0; width: 55%; height: 200%; background: linear-gradient(90deg, transparent 10%, rgb(255 255 255 / .08) 35%, rgb(255 255 255 / .24) 50%, rgb(255 255 255 / .08) 65%, transparent 90%); transform: translateX(-160%) skewX(-25deg); }
/* Reuse the platform's 3.5s metal-light cadence: one visible sweep, then a rest. */
@media (prefers-reduced-motion: no-preference) {
  .fin-account-card::after { animation: fin-bank-metal-shine 3.5s ease-in-out infinite; }
}
@keyframes fin-bank-metal-shine {
  0% { transform: translateX(-160%) skewX(-25deg); }
  60%, 100% { transform: translateX(320%) skewX(-25deg); }
}
.panel-body .view .fin-account-card .look-kpi-label { flex: 1; color: #e5e7eb; }
.panel-body .view .fin-account-card .fin-bank-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panel-body .view .fin-account-card .fin-bank-number { flex: none; }
.panel-body .view .fin-account-card .fin-account-actions { display: grid; grid-template-columns: repeat(2, 1fr); flex: none; margin: 0; }
.panel-body .view .fin-account-card .look-kpi-head .fin-account-actions .row-action { box-sizing: border-box; width: 100%; }
.panel-body .view .fin-account-card .look-brand-tile,
.panel-body .view .fin-account-card .look-kpi-light { background: #0b0d10; box-shadow: none; }
.panel-body .view .fin-account-card .row-action { border-color: #50555d; background: #1c1f24; color: #fff; }
.panel-body .view .fin-account-card .row-action:hover:not(:disabled) { background: #30343b; }
.panel-body .view .fin-chart-controls .row-action,
.panel-body .view .fin-canvas[data-shown-on="dashboard"] .view-table .row-action { width: auto; min-height: var(--control); height: var(--control); margin: 0; padding: 0 10px; font-size: var(--control-font); line-height: 1; }
.fin-dashboard-accounts { grid-column: 1 / -1; }
@media (min-width: 641px) and (max-width: 1180px) { .fin-dashboard-accounts > :last-child { grid-column: 1 / -1; } }
.fin-canvas[data-shown-on="dashboard"] > .look-ledger { grid-column: span 2; }
#finance-customer-due :is(th, td):not([colspan]) { text-align: left; }
#finance-customer-due :is(th, td):nth-child(4):not([colspan]),
#finance-customer-due :is(th, td):last-child:not([colspan]),
#finance-actions :is(th, td):last-child:not([colspan]) { text-align: right; }
#finance-customer-due th:nth-child(4) button[data-sort],
#finance-customer-due th:last-child button[data-sort],
#finance-actions th:last-child button[data-sort] { flex-direction: row-reverse; }
@media (max-width: 800px) { .fin-canvas[data-shown-on="dashboard"] > .look-ledger { grid-column: 1 / -1; } }
.fin-invoice-columns.fin-setup-review-mode{grid-template-columns:minmax(0,1fr)}
.fin-setup-form input[type="checkbox"]{width:18px;height:18px;align-self:start;margin:0}

.panel-body .view .row-action.primary { border-color: #16a34a; background: #16a34a; color: #fff; }
.panel-body .view .row-action.primary:hover:not(:disabled) { background: #15803d; }
.fin-supplier-initial { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #e8f1fc; color: #2a78d6; font-weight: 700; font-size: 12px; flex: none; }
.fin-supplier-initial::before { content: attr(data-initial); }
.fin-register-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.fin-register-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: #4b5563; }
.fin-register-tools input, .fin-register-tools select { height: var(--control); min-height: var(--control); width: auto; padding: 2px 8px; font: inherit; font-size: var(--control-font); }
.fin-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fin-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; align-content: start; }
.fin-facts dt { font-size: 12px; font-weight: 600; color: #4b5563; }
.fin-facts dd { margin: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-panel-invoices h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #4b5563; }
.fin-subscription-panel > header h2 { display: inline-flex; align-items: center; gap: 8px; }
/* The cost's panel (George, 2026-11-06): its terms in groups, then its invoices. The card's own
   .fin-facts rule (look.css) takes the gap away, so the panel gives the label and its value their space back. */
.panel-body .view .look-card.fin-subscription-panel .fin-facts { gap: 6px 16px; }
.fin-subscription-panel .fin-panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* A cost's type in the register: a word on a soft tile, with no dot (George, 2026-11-06). */
.fin-type { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f1f2f4; color: #374151; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fin-panel-note { margin: 2px 0 0; font-size: 12.5px; color: #4b5563; }
.fin-panel-invoices { display: grid; gap: 6px; min-width: 0; margin-top: 8px; }
.fin-panel-invoices h3 { margin: 6px 0 0; }
.panel-body .view .look-card .fin-panel-invoices .view-table td { white-space: nowrap; vertical-align: middle; }
.fin-invoice-actions { display: flex; gap: 6px; justify-content: flex-end; }
/* Admin's 40px .row-action would make Open taller than the Draft bill's link beside it. */
.panel-body .view .look-card .fin-panel-invoices .row-action { min-height: var(--control); height: var(--control); padding: 0 10px; font-size: var(--control-font); }
.fin-panel-invoices .fin-invoice-status:empty { display: none; }
.panel-body .view .look-card .row-action.fin-panel-close { width: 30px; min-height: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; }
/* A register row opens its cost from anywhere on it. */
.panel-body .view .look-card#finance-cost-register tbody tr[data-row] { cursor: pointer; }
.panel-body .view .look-card#finance-cost-register tbody tr[data-row]:hover td,
.panel-body .view .look-card#finance-cost-register tbody tr[data-row].is-chosen td { background: #f5f8fc; }
.panel-body .view .look-card#finance-cost-register tbody tr[data-row]:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
/* The supplier's logo, from its website (George, 2026-11-06). */
.fin-supplier-mark { display: inline-grid; flex: none; }
.fin-supplier-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; flex: none; }
.fin-website { color: #2a78d6; font-weight: 600; text-decoration: none; }
.fin-website:hover { text-decoration: underline; }
/* View and Download of an invoice, as drawings. */
:is(.panel-body .view .look-card, .panel-body dialog) .fin-panel-invoices .row-action.fin-icon-button { width: 28px; min-width: 28px; padding: 0; display: inline-grid; place-items: center; }
.fin-icon-button .line-icon { width: 16px; height: 16px; }
/* Admin's card tables set every heading to the left (look.css); these headings stand over the middle of their column. */
:is(.panel-body .view .look-card, .panel-body dialog) .fin-invoices-table :is(th, td):is(:nth-child(5), :nth-child(6), :nth-child(7)),
:is(.panel-body .view .look-card, .panel-body dialog) .fin-receipts-table :is(th, td):is(:nth-child(3), :nth-child(4)) { text-align: center; }
:is(.panel-body dialog) .fin-panel-invoices .row-action { min-height: var(--control); height: var(--control); padding: 0 10px; font-size: var(--control-font); }
/* A field that goes to Xero in the Draft bill: Xero's mark beside its name, and Xero's light blue. */
.fin-xero-field > span { display: inline-flex; align-items: center; gap: 6px; }
.panel-body dialog .fin-xero-field :is(input, select) { background-color: #eef8fd; border-color: #a6dcf2; }
.fin-xero-mark.look-brand-tile { box-shadow: inset 0 0 0 1px #cfeaf6; }
.panel-body dialog .fin-cost-form input::placeholder { color: #9ca3af; font-weight: 400; }
.fin-xero-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; color: #4b5563; }
/* An invoice in a window of the page, its Close and Download at the top right, of one size. */
.panel-body dialog.look-dialog.register-dialog.fin-invoice-view { width: min(960px, calc(100vw - 32px)); }
.fin-invoice-frame { display: block; width: 100%; height: min(75vh, 900px); border: 1px solid #e5e7eb; border-radius: 8px; background: #f3f4f6; }
/* A cost opened from CAPEX: wide enough for its invoices on one line each. */
.panel-body dialog.look-dialog.register-dialog.fin-cost-detail { width: min(1080px, calc(100vw - 32px)); }
.fin-unavailable { color: #6b7280; font-size: 11.5px; }
.panel-body .view .look-key.is-dashed i { height: 0; border-top: 2px dashed var(--light); border-radius: 0; background: none; }
@media (max-width: 900px) { .fin-panel-grid, .fin-subscription-panel .fin-panel-grid { grid-template-columns: 1fr; } }
.panel-body .view .look-card .row-action.fin-link, .panel-body .view .row-action.fin-link { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 0; height: auto; width: auto; font-weight: 600; font-size: 12.5px; color: #111827; text-align: left; white-space: nowrap; }
.panel-body .view .row-action.fin-link:hover:not(:disabled) { background: transparent; color: #2a78d6; text-decoration: underline; }
.fin-cost-panel .view-table td { white-space: nowrap; }
.fin-cost-panel .view-table td:first-child { white-space: normal; }
/* Cost against George's pictures of 4 Nov (candidate check, 2026-11-05): the filter row on one line and compact
   buttons on the cards. */
.panel-body .view .fin-cost-panel .look-card > header .row-action { height: var(--control); min-height: var(--control); padding: 0 10px; font-size: var(--control-font); }
.panel-body .view #finance-fixed-assets .row-action.fin-link { white-space: normal; }
.panel-body .view .fin-register-tools label { margin: 0; }
.panel-body .view .fin-register-tools :is(input, select) { box-sizing: border-box; margin: 0; height: var(--control); min-height: var(--control); }
/* The invoice part of a cost form: its heading across the form, under a line. */
.fin-cost-editor .fin-invoice-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.fin-cost-editor .fin-invoice-heading { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
/* Add expense (George, 2026-11-08): the cycle and its monthly cost across the form, with the Auto-renew switch at its
   right; Currency starts a row; Notes is across the form. */
.fin-cost-editor .fin-cost-wide { grid-column: 1 / -1; }
.fin-cost-editor .fin-cost-row-start { grid-column: 1; }
.fin-cost-editor .fin-cost-cycle { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #f3f4f6; }
.fin-cost-editor .fin-cost-cycle[hidden] { display: none; }
.fin-cost-editor .fin-cost-cycle-words { margin: 0; font-size: 13px; color: #111827; }
.fin-cost-editor .fin-cost-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fin-cost-editor .fin-cost-fields .fin-cost-toggle input { appearance: none; box-sizing: border-box; min-height: 0 !important; max-height: 20px; padding: 0 !important; border: 0 !important; box-shadow: none !important; position: relative; flex: none; width: 34px; min-width: 34px; height: 20px; margin: 0; border-radius: 999px; background: #d1d5db; cursor: pointer; transition: background .15s; }
.fin-cost-editor .fin-cost-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.fin-cost-editor .fin-cost-toggle input:checked { background: #16a34a; }
.fin-cost-editor .fin-cost-toggle input:checked::after { transform: translateX(14px); }
.fin-cost-editor .fin-cost-toggle input:focus-visible { outline: 2px solid #076237; outline-offset: 2px; }
@media (max-width: 650px) { .fin-cost-editor .fin-cost-cycle { flex-wrap: wrap; } }
/* The receipt's drop area (George, 2026-11-08): a dashed box to drop a file on or click, its name once chosen. */
.fin-cost-editor .fin-cost-fields .fin-drop-input { position: absolute; width: 1px !important; min-width: 0 !important; height: 1px; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; }
.fin-cost-editor .fin-drop { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1.5px dashed #9ec5e6; border-radius: 8px; background: #f5faff; cursor: pointer; transition: border-color .15s, background .15s; }
.fin-cost-editor .fin-drop:hover, .fin-cost-editor .fin-drop.is-over { border-color: #0b7fd1; background: #e8f3fd; }
.fin-cost-editor .fin-drop:focus-within { outline: 2px solid #076237; outline-offset: 2px; }
.fin-cost-editor .fin-drop > svg { flex: none; width: 20px; height: 20px; transform: rotate(180deg); color: #0b7fd1; }
.fin-cost-editor .fin-drop-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fin-cost-editor .fin-drop-words b { font-size: 12px; font-weight: 600; color: #111827; }
.fin-cost-editor .fin-drop-words small { font-size: 11px; font-weight: 400; color: #6b7280; }
.fin-cost-editor .fin-drop-chosen { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: #111827; }
.fin-cost-editor .fin-drop-clear { display: none; flex: none; width: 26px; height: 26px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: #4b5563; cursor: pointer; }
.fin-cost-editor .fin-drop-clear:hover { background: #dbeafe; }
.fin-cost-editor .fin-drop-clear svg { width: 16px; height: 16px; }
.fin-cost-editor .fin-drop.has-file .fin-drop-words { display: none; }
.fin-cost-editor .fin-drop.has-file .fin-drop-clear { display: inline-flex; }
/* A receipt already held: across the form, under its number, with Search in Expenses. */
.fin-cost-editor .fin-receipt-found { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 12px; }
.fin-cost-editor .fin-receipt-found[hidden] { display: none; }
.fin-cost-editor .fin-receipt-found p { margin: 0; }
.fin-cost-editor .fin-receipt-found .row-action { flex: none; white-space: nowrap; }
.fin-cost-editor .fin-receipt-found.is-note { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
.fin-cost-editor .fin-invoice-block .fin-receipt-found { margin: 0 0 12px; }
/* The search of a Cost table at the height of its Export button (George, 2026-11-05). */
.panel-body .view .fin-cost-panel .look-search svg { width: 14px; height: 14px; }

/* The window of a figure (2a; George, 2026-11-05; Common/Design/DESIGN.md): small, under its "i", closed by X, Escape or a click outside. */
.fin-explain { position: fixed; inset: auto; margin: 0; width: min(360px, calc(100vw - 16px)); padding: 0; overflow: visible; color: #111827; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 28px rgb(16 24 40 / .14), 0 2px 6px rgb(16 24 40 / .06); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fin-explain::before { content: ""; position: absolute; top: -6px; left: var(--arrow, 24px); width: 10px; height: 10px; background: #fff; border-left: 1px solid #e5e7eb; border-top: 1px solid #e5e7eb; transform: rotate(45deg); }
.fin-explain.is-above::before { top: auto; bottom: -6px; transform: rotate(225deg); }
.fin-explain-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; border-bottom: 1px solid #e5e7eb; }
.fin-explain-title { flex: 1; min-width: 0; }
.fin-explain-title b, .fin-explain-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-explain-title b { font-size: 14px; font-weight: 700; }
.fin-explain-title span { font-size: 11.5px; color: #6b7280; }
.panel-body .fin-explain-close { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; color: #4b5563; background: transparent; cursor: pointer; }
.panel-body .fin-explain-close:hover { background: #f1f2f4; }
.fin-explain-close .line-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fin-explain-close:focus-visible, .fin-explain-more:focus-visible { outline: 2px solid var(--focus, #2a78d6); outline-offset: 2px; }
.fin-explain-body { display: grid; gap: 10px; padding: 10px 12px 12px; }
.fin-explain-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.fin-explain-piece { padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.fin-explain-piece.is-in { color: #1f5fae; background: #e9f1fb; }
.fin-explain-piece.is-out { color: #b4481f; background: #fdeee7; }
.fin-explain-piece.is-add { color: #12805a; background: #e3f6ef; }
.fin-explain-piece.is-res { color: #fff; background: #111827; }
.fin-explain-op { color: #6b7280; font-weight: 700; }
.fin-explain-chart { display: block; width: 100%; height: auto; }
.fin-explain-chart text { font: 600 10.5px Inter, system-ui, sans-serif; fill: #4b5563; }
.fin-explain-chart .fin-explain-value { fill: #111827; }
.fin-explain-chart rect { transition: opacity .15s; }
.fin-explain-chart:hover rect { opacity: .45; }
.fin-explain-chart rect:hover { opacity: 1; }
.fin-explain-rows { display: grid; }
.fin-explain-row { display: flex; justify-content: space-between; gap: 10px; line-height: 23px; }
.fin-explain-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; font-size: 12px; font-weight: 600; }
.fin-explain-row b { font-weight: 600; white-space: nowrap; }
.fin-explain-row.is-total { margin-top: 3px; padding-top: 3px; border-top: 1px solid #e5e7eb; }
.fin-explain-row.is-total span, .fin-explain-row.is-total b { color: #111827; font-weight: 700; }
.fin-explain-checks { display: grid; gap: 5px; }
.fin-explain-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.fin-explain-pill { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.fin-explain-pill.is-good { color: #16a34a; background: #e7f6ec; }
.fin-explain-pill.is-bad { color: #dc2626; background: #fdecec; }
.fin-explain-pill.is-off { color: #4b5563; background: #f1f2f4; }
.fin-explain-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #e5e7eb; }
.fin-explain-foot small { color: #6b7280; font-size: 11.5px; }
.panel-body .view .fin-explain .fin-explain-more { flex: 0 0 auto; height: var(--control); min-height: 0; padding: 0 10px; font-size: var(--control-font); }
@media (prefers-reduced-motion: reduce) { .fin-explain-chart rect { transition: none; } }

/* Sync beside Refresh, while Xero's connection may only read (George, 2026-11-06). Admin's .row-action shows itself
   whatever its hidden attribute says, so the hidden one is taken away here. */
.panel-body .view .fin-refresh-buttons { display: flex; gap: 8px; justify-content: flex-end; }
.panel-body .view .row-action.fin-sync[hidden] { display: none; }
/* The fields of one type of cost, in Add expense: those of another type are hidden (their label is a flex box). */
.fin-invoice-field[hidden] { display: none !important; }
/* A cost opens at the side (George, 2026-11-06): Admin's side panel (view-preview, Shell/styles.css), lying over the page
   from the right at every width, since the register is the foot of a long page; drawn again for the same cost it does
   not slide in again. It starts under the top bar (84px, as #panel-ground), which stands above the page at every width.
   Its terms stand in George's three groups, one under the other, the labels in one column. */
.panel-body .view .look-canvas > .view-preview.fin-side:not([hidden]) { position: fixed; z-index: 2; top: 84px; right: 0; bottom: 0; width: min(560px, 100vw);
  height: calc(100dvh - 84px); margin: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; box-shadow: -16px 0 40px rgb(16 24 20 / .18); }
@media (prefers-reduced-motion: no-preference) {
  .panel-body .view .look-canvas > .view-preview.fin-side:not([hidden]) { animation: fin-side-in .14s cubic-bezier(.2, .8, .2, 1) both; }
  .panel-body .view .look-canvas > .view-preview.fin-side.is-steady:not([hidden]) { animation: none; }
  @keyframes fin-side-in { from { transform: translateX(100%); } }
}
.fin-side-lead { margin: -6px 0 0; font-size: 13px; color: #4b5563; }
.panel-body .view .look-card .fin-side-buttons { margin: 12px 0 4px; }
.panel-body .view .look-card .fin-side-buttons .row-action { height: var(--control); min-height: var(--control); padding: 0 10px; font-size: var(--control-font); }
.panel-body .view .look-card.fin-side .fin-panel-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.panel-body .view .look-card.fin-side .fin-facts { grid-template-columns: 132px minmax(0, 1fr); gap: 7px 12px; padding: 12px 0; border-top: 1px solid #eef0f2; }
/* An invoice of the cost, as a block of the side panel. */
.fin-invoice-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fin-invoice-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.fin-invoice-item.is-missing { border-style: dashed; }
.fin-invoice-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: 12.5px; }
.fin-invoice-line b { font-weight: 700; color: #111827; }
.fin-invoice-amount { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-invoice-number { color: #4b5563; overflow-wrap: anywhere; }
.fin-invoice-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.fin-invoice-xero { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.fin-invoice-tools .fin-invoice-actions { margin-left: auto; }

/* The tab row's tools (George, 2026-11-06): the period, + Invoice and + Expense, of one height. The Dashboard always
   shows the current month, so it shows no period. */
.panel-body .view .fin-tab-tools .fin-period-tools { display: flex; gap: 8px; }
.panel-body .view .fin-tab-tools select { box-sizing: border-box; width: auto; height: var(--control); min-height: var(--control); margin: 0; padding: 0 26px 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background-color: #fff; color: #111827; font: inherit; font-size: var(--control-font); font-weight: 500; }
.panel-body .view .fin-tab-tools .row-action { height: var(--control); min-height: var(--control); padding: 0 10px; font-size: var(--control-font); white-space: nowrap; }
#finance[data-page="dashboard"] .fin-tab-tools .fin-period-tools { display: none; }
@media (max-width: 760px) { .panel-body .view .fin-tab-tools .fin-period-tools { flex: 1 1 100%; } .panel-body .view .fin-tab-tools .fin-period-tools select { flex: 1 1 0; min-width: 0; } }
.fin-panel-payments { margin-top: 10px; }
.panel-body .view #finance-cost-register .view-table :is(th, td) { padding-left: 8px; padding-right: 8px; }
/* Cost of 2026-11-07: a value converted at the RBA rate is marked and says its rate on hover; the company in bold. */
.fin-converted { text-decoration: underline dotted #9aa4b2; text-underline-offset: 3px; cursor: help; }
/* A payment made outside Stripe paid no Stripe fee (George, 2026-11-07). */
.fin-outside { color: #6b7280; cursor: help; }
.fin-company { font-weight: 600; white-space: nowrap; }
/* One Company column (George, 2026-11-07): the logo, then the name, on one line. */
.fin-company-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fin-panel-heading { margin: 12px 0 4px; font-size: 13px; font-weight: 700; }
/* Side panels, second form (George, 2026-11-08): a company's services one block each, under a line; the receipt's icon
   centred under File in Entries; an entry's buttons, its words from Xero under them. */
.fin-side .fin-service { margin-top: 12px; border-top: 1px solid #e5e7eb; }
.fin-side .fin-service > .fin-panel-heading { margin: 12px 0 0; font-size: 14px; }
.fin-side .fin-panel-payments th:last-child, .fin-side .fin-panel-payments td:last-child { text-align: center; }
.fin-side .fin-side-buttons .fin-icon-button { width: var(--control); padding: 0; justify-content: center; }
.fin-entry-panel .fin-invoice-status:empty { display: none; }
/* A field filled from the receipt (George, 2026-11-08): light amber until it is changed; the reading's words under the
   drop area. */
.fin-cost-editor .fin-cost-fields .fin-read { background: #fffbeb !important; border-color: #f59e0b !important; }
.fin-cost-editor .fin-read-status { grid-column: 1 / -1; margin: -4px 0 0; font-size: 12px; color: #92400e; }
.fin-cost-editor .fin-read-status[hidden] { display: none; }
/* A possible duplicate (George, 2026-11-08): amber, with Not a duplicate to tick before saving. */
.fin-cost-editor .fin-receipt-found.is-similar { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.fin-cost-editor .fin-receipt-similar { display: flex; flex-direction: column; gap: 6px; }
.fin-cost-editor .fin-receipt-confirm { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.fin-cost-editor .fin-cost-fields .fin-receipt-confirm input { width: 16px !important; min-width: 16px; height: 16px; min-height: 0 !important; margin: 0; padding: 0 !important; accent-color: #92400e; }
/* + Bulk Expense (George, 2026-11-08): a large central pop-up whose head is the drop area, a table of the receipts read,
   duplicate rows pale yellow, missing fields pale red; a draft opens its side panel and the pop-up moves to the left. */
.panel-body dialog.look-dialog.fin-detail.fin-bulk[open] { display: flex; flex-direction: column; box-sizing: border-box; width: min(1180px, calc(100vw - 32px)); max-width: none; height: min(820px, calc(100dvh - 32px)); overflow: hidden; padding: 24px 28px; }
.panel-body dialog.look-dialog.fin-detail.fin-bulk.is-aside { margin-left: 16px; margin-right: auto; width: min(1180px, calc(100vw - 608px)); }
.fin-bulk .fin-bulk-body { display: block; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.fin-bulk .fin-bulk-main { display: grid; align-content: start; gap: 12px; height: 100%; box-sizing: border-box; padding: 4px 0 0; overflow: auto; }
.fin-bulk .fin-bulk-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fin-bulk .fin-bulk-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 104px; padding: 16px; border: 1.5px dashed #9ec5e6; border-radius: 10px; background: #f5faff; cursor: pointer; transition: border-color .15s, background .15s; }
.fin-bulk .fin-bulk-drop:hover, .fin-bulk .fin-bulk-drop.is-over { border-color: #0b7fd1; background: #e8f3fd; }
.fin-bulk .fin-bulk-drop:focus-within { outline: 2px solid #076237; outline-offset: 2px; }
.fin-bulk .fin-bulk-drop > svg { flex: none; width: 26px; height: 26px; transform: rotate(180deg); color: #0b7fd1; }
.fin-bulk .fin-bulk-drop-words { display: flex; flex-direction: column; gap: 4px; }
.fin-bulk .fin-bulk-drop-words b { font-size: 14px; font-weight: 600; color: #111827; }
.fin-bulk .fin-bulk-drop-words small { font-size: 12px; color: #6b7280; }
.fin-bulk .fin-bulk-status { margin: 0; font-size: 12px; color: #4b5563; }
.fin-bulk .fin-bulk-status:empty { display: none; }
.fin-bulk .fin-bulk-table-box[hidden] { display: none; }
.fin-bulk .fin-bulk-table-box { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 10px; }
.fin-bulk .fin-bulk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fin-bulk .fin-bulk-table th { position: sticky; top: 0; padding: 9px 10px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; text-align: left; font-weight: 600; color: #4b5563; white-space: nowrap; }
.fin-bulk .fin-bulk-table td { padding: 7px 10px; border-bottom: 1px solid #eef0f2; vertical-align: middle; color: #111827; }
.fin-bulk .fin-bulk-table tr:last-child td { border-bottom: 0; }
.fin-bulk .fin-bulk-table td.fin-bulk-file { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fin-bulk .fin-bulk-table td.fin-bulk-said { min-width: 160px; color: #4b5563; }
.panel-body dialog.look-dialog.fin-bulk .fin-bulk-table input { box-sizing: border-box; width: 100%; min-width: 90px; height: 30px; min-height: 30px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; background: #fff; }
.panel-body dialog.look-dialog.fin-bulk .fin-bulk-table input[maxlength="3"] { min-width: 54px; width: 54px; }
.panel-body dialog.look-dialog.fin-bulk .fin-bulk-table input[type="date"] { min-width: 128px; }
.panel-body dialog.look-dialog.fin-bulk .fin-bulk-table input[type="number"] { min-width: 84px; }
.fin-bulk .fin-bulk-table tr.is-dup td { background: #fef6d8; }
.fin-bulk .fin-bulk-table tr.is-dup td.fin-bulk-said { color: #92400e; }
.fin-bulk .fin-bulk-table tr.is-draft { cursor: pointer; }
.fin-bulk .fin-bulk-table tr.is-draft:hover td { background: #f3f4f6; }
.fin-bulk .fin-bulk-table tr.is-draft.is-dup:hover td { background: #fdeeb5; }
.fin-bulk .fin-bulk-table tr.is-open td { background: #e8f3fd !important; }
.fin-bulk .fin-bulk-remove { width: 26px; height: 26px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: #4b5563; cursor: pointer; }
.fin-bulk .fin-bulk-remove:hover { background: #e5e7eb; }
.fin-bulk .fin-bulk-remove svg { width: 16px; height: 16px; }
.panel-body dialog.look-dialog.fin-bulk .fin-bulk-table input.fin-missing, .fin-bulk input.fin-missing, .fin-cost-editor .fin-missing input, .fin-cost-editor .fin-missing select { background: #fdeeee !important; border-color: #f3b4b4 !important; }
.fin-bulk .fin-bulk-side[hidden] { display: none; }
.fin-bulk .fin-bulk-side { position: fixed; z-index: 1; top: 16px; right: 16px; bottom: 16px; width: min(560px, calc(100vw - 32px)); box-sizing: border-box; overflow: auto; padding: 22px 24px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(17, 24, 39, .22); }
@media (prefers-reduced-motion: no-preference) { .fin-bulk .fin-bulk-side:not([hidden]) { animation: fin-side-in .14s cubic-bezier(.2, .8, .2, 1) both; } }
.fin-bulk .fin-bulk-side .fin-detail-body { display: block; padding: 0; overflow: visible; }
.fin-bulk .fin-bulk-preview { padding: 16px 0 0; }
.fin-bulk .fin-bulk-preview:empty { display: none; }
.fin-bulk .fin-bulk-preview-name { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #4b5563; }
.fin-bulk .fin-bulk-preview iframe, .fin-bulk .fin-bulk-preview img { display: block; width: 100%; height: 520px; border: 1px solid #e5e7eb; border-radius: 8px; object-fit: contain; background: #f9fafb; }
.fin-cost-editor .fin-cost-fields.is-adding > :not(.fin-into) { display: none; }
@media (max-width: 900px) {
  .panel-body dialog.look-dialog.fin-detail.fin-bulk.is-aside { margin: auto; width: calc(100vw - 32px); }
  .panel-body dialog.look-dialog.fin-detail.fin-bulk[open] { padding: 18px 16px; }
  .fin-bulk .fin-bulk-side { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
}

/* Modules/Integrations/ui/integrations.css */
/* Integrations: what only this page uses. The heading, the tabs, the counts, the cards, the tables and
   the bar of a use are the pieces every page shares, in the panel's stylesheet. */
/* Since 2026-10-24 the page is drawn in Admin's new look (phase F2): the canvas, the figures, the glass and its tables
   are the pieces every redesigned page shares (Shell/look.css). The Apps tab keeps the Portal's cards (George, 2026-10-18). */
.intg-canvas > * { min-width: 0; }
.intg-canvas .view-table { min-width: 720px; }
.intg-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
.panel-body .view .intg-canvas #intg-state { color: #d97706; }

/* Offered to customers: the slug under an app's name, the change in its row, the forms and the titles of its lists. */
.intg-view .intg-slug { display: block; color: var(--glass-muted); font-size: 12px; }
.intg-view .intg-row-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.intg-view .intg-row-actions select { height: var(--control); font-size: var(--control-font); }
/* The apps' search and dropdowns, drawn by the catalogue shared with the Portal (Common/Design/apps.css), take Admin's one height. */
.intg-view .integrations-tools :is(input, select) { height: var(--control); padding: 0 10px; border-radius: 8px; font-size: var(--control-font); }
.intg-view .integrations-filter button { height: var(--control); padding: 0 10px; border-radius: 8px; font-size: var(--control-font); }
.intg-view .integrations-pager button { width: var(--control); height: var(--control); }
.intg-view .intg-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.intg-view .intg-field { display: grid; gap: 4px; min-width: 160px; font-size: 13px; color: var(--glass-muted); }
.intg-view .intg-field input { height: var(--control); font-size: var(--control-font); padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px; font: inherit; color: var(--glass-text); background: rgb(16 24 40 / .06); }
.intg-view .intg-offered-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.intg-view .intg-offered-status[data-error="true"] { color: #dc2626; }
.intg-view .intg-subtitle { margin: 20px 0 8px; color: var(--glass-text); font-size: 16px; font-weight: 800; }
/* Offered to customers stands under the services in use, apart from them by the canvas's gutter; its fields keep no
   margin of their own, so a row of them lines up. */
.panel-body .view #intg-offered { margin-top: 20px; }
.intg-view .intg-field input, .intg-view .intg-field select { width: 100%; margin: 0; }

/* Modules/Marketing/Overview/overview.css */
/* Marketing › Overview (6i): George's three pictures of 2026-10-26 in the Welcome page's light tones (Welcome/welcome.css):
   white cards with a thin grey border on the centre's ground, dark words, green for what went up. This page only. */
.panel-body .mko-page { grid-column: 1 / -1; display: grid; gap: 16px; color: #101828; }
/* The page's drawings (icons) are strokes; the chart is not one of them: its words keep Admin's axis look (George, 2026-11-25). */
.panel-body .mko-page svg:not(.look-brand-mark):not(.mko-chart) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .mko-card, .panel-body .mko-figure { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.panel-body .mko-card { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; }
.panel-body .mko-head > div { flex: 1; min-width: 0; }
.panel-body .mko-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-body .mko-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #101828; font-size: 17px; font-weight: 800; }
.panel-body .mko-lead { margin: 3px 0 0; color: #6b7280; font-size: 13px; }
.panel-body .mko-head-icon { display: grid; place-items: center; width: 22px; height: 22px; }
.panel-body .mko-head-icon svg { width: 20px; height: 20px; }
.panel-body .mko-sources { margin: 0; color: #6b7280; font-size: 12px; }
.panel-body .is-blue { --tone: #2563eb; --wash: #e8f0fe; }
.panel-body .is-violet { --tone: #7c3aed; --wash: #f1eafe; }
.panel-body .is-orange { --tone: #ea8a1a; --wash: #fff2e2; }
.panel-body .is-green { --tone: #16a34a; --wash: #e7f6ec; }
.panel-body .is-gold { --tone: #e2a514; --wash: #fdf4dc; }
.panel-body .mko-head-icon { color: var(--tone); }

/* Image 1: six figures, the drawing on a pale green tile at the left. */
.panel-body .mko-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.panel-body .mko-figure { display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px; }
.panel-body .mko-figure-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #e7f6ec; color: #15803d; }
.panel-body .mko-figure-icon svg { width: 24px; height: 24px; }
.panel-body .mko-figure > div { display: grid; gap: 3px; min-width: 0; }
.panel-body .mko-figure-label { color: #374151; font-size: 13px; }
.panel-body .mko-figure-value { color: #101828; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.panel-body .mko-change { margin-top: 6px; font-size: 13px; font-weight: 700; }
.panel-body .mko-change.is-good { color: #16a34a; }
.panel-body .mko-change.is-bad { color: #dc2626; }
.panel-body .mko-change.is-flat { color: #6b7280; font-weight: 500; }
.panel-body .mko-figure-under { color: #6b7280; font-size: 12px; }

/* Image 2: the chart beside the campaigns. */
.panel-body .mko-middle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel-body .mko-page .mko-select { flex: none; width: auto; min-width: 150px; height: var(--control); padding: 0 30px 0 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #101828; font: inherit; font-size: var(--control-font); }
.panel-body .mko-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; color: #4b5563; font-size: 12.5px; }
.panel-body .mko-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 2px; vertical-align: -1px; }
.panel-body .mko-chart { display: block; width: 100%; height: auto; }
.panel-body .mko-chart .mko-grid { stroke: #eef0f3; stroke-width: 1; }
.panel-body .mko-table-wrap { overflow-x: auto; }
.panel-body .mko-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.panel-body .mko-table th { padding: 9px 8px; border-bottom: 1px solid #e5e7eb; color: #374151; font-size: 12px; font-weight: 600; letter-spacing: normal; text-transform: none; text-align: left; white-space: nowrap; }
.panel-body .mko-table td { padding: 10px 8px; white-space: nowrap; border-bottom: 1px solid #f0f1f3; color: #101828; }
.panel-body .mko-table .is-number { text-align: right; font-variant-numeric: tabular-nums; }
.panel-body .mko-table .mko-empty { padding: 18px 10px; color: #6b7280; text-align: center; }
.panel-body #mk-overview-channels .mko-table thead tr { background: #f6f7f9; }

/* Image 3: the funnel, the channels with their logos, the insights. */
.panel-body .mko-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .75fr); gap: 16px; }
.panel-body .mko-funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.panel-body .mko-funnel li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.panel-body .mko-funnel li + li::before { content: '→'; position: absolute; left: -17px; top: 34px; color: #101828; font-size: 15px; }
.panel-body .mko-step { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 14px 4px; border-radius: 8px; background: var(--wash); }
.panel-body .mko-step-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--tone); }
.panel-body .mko-step-icon svg { width: 26px; height: 26px; }
.panel-body .mko-step strong { color: #101828; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel-body .mko-step-label { color: #374151; font-size: 12px; }
.panel-body .mko-chip { padding: 3px 10px; border-radius: 5px; background: #f3f4f6; color: #6b7280; font-size: 12px; font-weight: 700; }
.panel-body .mko-channel { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.panel-body .mko-channel .look-brand-tile { --size: 20px; background: transparent; box-shadow: none; border: 0; padding: 0; }
.panel-body .mko-channel-line { display: grid; place-items: center; width: 20px; height: 20px; color: #374151; }
.panel-body .mko-channel-line svg { width: 18px; height: 18px; }
.panel-body .mko-rate { display: grid; grid-template-columns: 40px 56px; align-items: center; gap: 8px; }
.panel-body .mko-rate b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.panel-body .mko-bar { height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.panel-body .mko-bar-fill { display: block; height: 100%; border-radius: inherit; background: #22a35a; }
.panel-body .mko-insights { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.panel-body .mko-insight { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.panel-body .mko-insight:hover, .panel-body .mko-insight:focus-visible { background: #f6f7f9; }
.panel-body .mko-insight-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--wash); color: var(--tone); }
.panel-body .mko-insight-icon svg { width: 20px; height: 20px; }
.panel-body .mko-insight strong { display: block; color: #101828; font-size: 13px; }
.panel-body .mko-insight small { display: block; color: #6b7280; font-size: 12px; }
.panel-body .mko-insight-go { color: #9ca3af; }
.panel-body .mko-insight-go svg { width: 16px; height: 16px; }

@media (max-width: 1400px) { .panel-body .mko-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-body .mko-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .panel-body #mk-overview-funnel { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .panel-body .mko-middle, .panel-body .mko-bottom { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .panel-body .mko-figures { grid-template-columns: minmax(0, 1fr); }
  .panel-body .mko-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-body .mko-funnel li + li::before { content: none; } }

/* Modules/Marketing/marketing.css */
/* Marketing's pages (6a, 6h, 6f): the pieces of their tabs that the shared look does not hold. Colours are the look's lit
   ones (Shell/look.css); a colour never says a state alone, the words say it beside it. */
.panel-body .view .mk-title { display: inline-flex; align-items: center; gap: 10px; }
.panel-body .view .mk-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--glass-muted); font-size: 12px; font-weight: 600; }
.panel-body .view .mk-brand .look-brand-tile, .panel-body .view .mk-title .look-brand-tile { flex: none; }

/* Lines with a name, a lit bar of its share and its figures (George's drawings: sources, states, devices). */
.panel-body .view .mk-shares { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.panel-body .view .mk-shares li { display: grid; grid-template-columns: minmax(96px, 44%) minmax(30px, 1fr) repeat(var(--values, 1), minmax(40px, auto)); align-items: center; gap: 12px; font-size: 13px; }
.panel-body .view .mk-shares[data-values="2"] li { grid-template-columns: minmax(84px, 34%) minmax(40px, 1fr) repeat(2, minmax(44px, auto)); }
.panel-body .view .mk-shares[data-values="3"] li { grid-template-columns: minmax(84px, 30%) minmax(40px, 1fr) repeat(3, minmax(40px, auto)); }
.panel-body .view .mk-share-name { overflow: hidden; color: var(--glass-text); text-overflow: ellipsis; white-space: nowrap; }
.panel-body .view .mk-share-value { color: var(--glass-strong); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* The world, lit by country (Natural Earth's shapes, Modules/Marketing/world.js). */
.panel-body .view .mk-world-figure { margin: 0; }
.panel-body .view .mk-world { display: block; width: 100%; height: auto; }
.panel-body .view .mk-country { stroke: #33434f; stroke-width: .5; fill: #1d2830; transition: fill .2s; }
.panel-body .view .mk-country.is-some { fill: #2a6f8f; }
.panel-body .view .mk-country.is-many { fill: #38bdf8; cursor: pointer; }
.panel-body .view .mk-country.is-most { fill: #d97706; cursor: pointer; }
.panel-body .view .mk-country.is-some { cursor: pointer; }
.panel-body .view .mk-world-key { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 0; color: var(--glass-muted); font-size: 12px; }
.panel-body .view .mk-world-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; background: #1d2830; border: 1px solid #33434f; }
.panel-body .view .mk-world-key i.is-most { background: #d97706; box-shadow: 0 0 8px #d97706; border: 0; }
.panel-body .view .mk-world-key i.is-many { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; border: 0; }
.panel-body .view .mk-world-key i.is-some { background: #2a6f8f; border: 0; }
.panel-body .view .mk-map-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 760px) { .panel-body .view .mk-map-split { grid-template-columns: 1fr; } }

/* The week by hour, brighter where there were more visits (Website › Activity). */
.panel-body .view .mk-heat { display: grid; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 12px; color: var(--glass-muted); }
.panel-body .view .mk-heat span { text-align: center; }
.panel-body .view .mk-heat span:nth-child(7n + 1) { text-align: left; }
.panel-body .view .mk-heat i { display: block; height: 30px; border-radius: 7px; border: 1px solid rgb(16 24 40 / .06);
  background: color-mix(in srgb, #38bdf8 var(--h, 0%), rgb(16 24 40 / .04)); }
.panel-body .view .mk-heat i.is-hot { background: color-mix(in srgb, #d97706 var(--h, 0%), rgb(16 24 40 / .04)); box-shadow: 0 0 10px -2px #d97706; }

/* Who comes back, week by week (Website › Audience). */
.panel-body .view .mk-weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.panel-body .view .mk-weeks div { min-width: 0; padding: 10px 2px; border: 1px solid rgb(16 24 40 / .08); border-radius: 10px; text-align: center;
  background: color-mix(in srgb, #16a34a var(--a, 0%), rgb(16 24 40 / .04)); }
.panel-body .view .mk-weeks b { display: block; color: var(--glass-strong); font-size: 15px; font-weight: 800; white-space: nowrap; }
.panel-body .view .mk-weeks span { color: var(--glass-muted); font-size: 11px; white-space: nowrap; }

/* The agent's work: each change in a line, what it is and why, and its state or its yes and no under it. */
.panel-body .view .mk-work { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.panel-body .view .mk-work li { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-line); color: var(--glass-text); font-size: 13px; }
.panel-body .view .mk-work li:last-child { padding-bottom: 0; border-bottom: 0; }
.panel-body .view .mk-work strong { color: var(--glass-strong); font-weight: 700; }
.panel-body .view .mk-work small { color: var(--glass-muted); font-size: 12px; }

/* A ring of two shares (Website › Audience, gender). */
.panel-body .view .mk-ring { display: block; margin: 0 auto; }
.panel-body .view .mk-ring circle { fill: none; stroke-width: 20; }
.panel-body .view .mk-ring-legend { display: flex; justify-content: center; gap: 22px; margin: 8px 0 0; color: var(--glass-text); font-size: 13px; }

/* The steps from a visit to a contact (Website › Conversions). */
.panel-body .view .mk-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.panel-body .view .mk-steps li { display: grid; grid-template-columns: minmax(120px, 34%) minmax(40px, 1fr) 64px 52px; align-items: center; gap: 12px; font-size: 13px; color: var(--glass-text); }
.panel-body .view .mk-steps .mk-share-value + .mk-share-value { color: var(--glass-muted); font-weight: 600; }

/* Cited or not, by assistant (SEO & AI). */
.panel-body .view .mk-cited { color: #16a34a; font-weight: 800; }
.panel-body .view .mk-not-cited { color: var(--glass-muted); }
.panel-body .view .look-card td:has(> .mk-cited), .panel-body .view .look-card td:has(> .mk-not-cited) { text-align: center; }

/* A change on the line of the days (SEO & AI › Activity). */
.panel-body .view .mk-mark { fill: #d97706; stroke: #0b1015; stroke-width: 1.5; }

/* A proposal's yes and no. */
.panel-body .view .mk-decide { display: inline-flex; gap: 6px; white-space: nowrap; }

/* Small figures side by side inside a card (Website › Dashboard, "In search"). */
.panel-body .view .mk-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 0; }
.panel-body .view .mk-mini div { display: grid; gap: 2px; }
.panel-body .view .mk-mini b { color: var(--glass-strong); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel-body .view .mk-mini span { color: var(--glass-muted); font-size: 12px; }

/* A note in a card about where a figure comes from, or what is not given by an interface. */
.panel-body .view .mk-note { margin: 10px 0 0; color: var(--glass-muted); font-size: 12px; }
.panel-body .view .mk-unverified { color: var(--glass-muted); font-size: 11px; font-weight: 400; }
.panel-body .view .mk-link { display: inline-block; margin-top: 10px; font-weight: 700; }
/* A Journal post in a table: its own picture, 28px square (the controls' height), then its title (George, 2026-11-24). */
.panel-body .view .mk-post { display: inline-flex; align-items: center; gap: 10px; }
.panel-body .view .mk-post-thumb { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: #f1f2f4; }

/* Modules/Operations/Dashboard/dashboard.css */
/* Ops › Dashboard: what only this page uses. Since 2026-10-24 it is drawn in Admin's new look (phase F2): the canvas,
   the figures, the glass, the bars of a use, the places and the tables are the pieces every redesigned page shares
   (Shell/look.css). */
.opsd-canvas > * { min-width: 0; }
.opsd-view .look-card .opsd-state { margin: 0; color: #92400e; font-size: 14px; }
.opsd-view .look-card td { vertical-align: middle; }
.opsd-view .look-card .look-gauge { min-width: 120px; }
/* A platform's name with its drawing, in a table. */
/* What matters of a platform: label and value down its cell. */
.opsd-view #opsd-card-platforms .view-table { min-width: 760px; }
.opsd-view #opsd-card-platforms td:nth-child(3) { width: 38%; }
.opsd-view .look-card .look-amount strong[data-state="warn"] { color: #d97706; }
.opsd-view .look-card .look-amount strong[data-state="bad"] { color: #dc2626; }
.opsd-view .look-card .look-amount strong[data-state="full"] { padding: 0 8px; border-radius: 8px; background: #000; box-shadow: inset 0 0 0 1px rgb(16 24 40 / .35); }
.opsd-view .look-card a.row-action { display: inline-flex; align-items: center; color: var(--glass-text); text-decoration: none; white-space: nowrap; }
/* A card of one track: the provider's mark goes under its title, so neither wraps beside the other. */
.opsd-view .look-card:not(.look-span-2):not(.look-span-3):not(.look-span-4):not(.opsd-provider) > header { flex-direction: column; align-items: flex-start; gap: 4px; }
.opsd-view .look-card .look-gauge + .fin-facts { margin-top: 12px; }

/* The Dashboard tab, from George's pictures of 2026-10-23 and 2026-10-24 (overview.js). */
/* The four figures, each with its last months, its share or its state at its right. */
.opsd-view .opsd-figures .look-kpi { flex-wrap: nowrap; }
/* A share at a figure's foot, under its words, across the card. */
.opsd-view .opsd-figures .look-kpi:has(.look-kpi-extra .look-bar-track) { padding-bottom: 30px; }
.opsd-view .opsd-figures .look-kpi-extra:has(.look-bar-track) { position: absolute; left: 90px; right: 20px; bottom: 16px; }
.opsd-view .opsd-figures .look-kpi-extra .look-bar-track { width: 100%; height: 6px; }
.opsd-view .opsd-figures .look-kpi-words { flex: 1 1 auto; }
/* Seven cards: four in the first row, three wider in the second. */
.opsd-view .opsd-stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.opsd-view .opsd-stack > .opsd-provider { grid-column: span 3; }
.opsd-view .opsd-stack > .opsd-provider:nth-child(n + 5) { grid-column: span 4; }
@media (max-width: 1180px) { .opsd-view .opsd-stack > .opsd-provider, .opsd-view .opsd-stack > .opsd-provider:nth-child(n + 5) { grid-column: span 6; } }
@media (max-width: 640px) { .opsd-view .opsd-stack > .opsd-provider, .opsd-view .opsd-stack > .opsd-provider:nth-child(n + 5) { grid-column: 1 / -1; } }
.opsd-view .opsd-provider { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; }
.opsd-view .opsd-provider > .opsd-provider-head { display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0; }
.opsd-view .opsd-provider-name { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.opsd-view .opsd-provider-name h2 { font-size: 16px; }
.opsd-view .opsd-provider-name .look-pill { padding: 3px 10px; font-size: 12px; }
.opsd-view .opsd-go { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid rgb(16 24 40 / .14); border-radius: 8px; background: rgb(16 24 40 / .04);
  color: var(--glass-text); font: inherit; font-size: 20px; line-height: 1; text-decoration: none; cursor: pointer; }
.opsd-view .opsd-go:hover { background: rgb(16 24 40 / .1); }
.opsd-view .opsd-go:focus-visible { outline: 3px solid #16a34a; outline-offset: 2px; }
.opsd-view .opsd-go.is-none { visibility: hidden; }
.opsd-view .opsd-provider-main { display: grid; grid-template-columns: minmax(0, auto) minmax(90px, 1fr); align-items: end; gap: 12px; }
.opsd-view .opsd-provider-main.is-words { grid-template-columns: minmax(0, 1fr); }
.opsd-view .opsd-provider-figure { display: grid; gap: 2px; min-width: 0; }
.opsd-view .opsd-provider-figure strong { color: var(--glass-strong); font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opsd-view .opsd-provider-main.is-words strong { font-size: 22px; }
.opsd-view .opsd-provider-figure span { color: var(--glass-muted); font-size: 13px; }
/* A use against its limit: the bar, its share in words under it. */
.opsd-view .opsd-use { display: grid; gap: 6px; --light: #16a34a; }
.opsd-view .opsd-use .look-bar-track { display: block; height: 7px; }
.opsd-view .opsd-use[data-state="warn"] { --light: #d97706; }
.opsd-view .opsd-use[data-state="bad"] { --light: #dc2626; }
.opsd-view .opsd-use .look-bar-fill.is-none { width: 0; }
.opsd-view .opsd-use-words { color: var(--glass-muted); font-size: 12.5px; }
/* The two figures under a card. */
.opsd-view .opsd-subs { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--glass-line); }
.opsd-view .opsd-sub { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; padding: 0 12px; }
.opsd-view .opsd-sub:first-child { padding-left: 0; }
.opsd-view .opsd-sub + .opsd-sub { border-left: 1px solid var(--glass-line); padding-right: 0; }
.opsd-view .opsd-sub > div { display: grid; gap: 1px; min-width: 0; }
.opsd-view .opsd-sub-label { color: var(--glass-muted); font-size: 12px; }
.opsd-view .opsd-sub strong { color: var(--glass-text); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.opsd-view .opsd-sub-line { color: var(--glass-muted); font-size: 12px; }
/* The cost by item, and the next actions. */
.opsd-view .opsd-costs { margin-top: 12px; }
.opsd-view .opsd-costs li { grid-template-columns: minmax(150px, 44%) minmax(0, 1fr) auto; }
.opsd-view #opsd-card-cost .look-figure { margin-bottom: 4px; }
.opsd-view .opsd-actions { display: grid; margin: 0; padding: 0; list-style: none; }
.opsd-view .opsd-actions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--glass-line); }
.opsd-view .opsd-actions li:last-child { border-bottom: 0; }
.opsd-view .opsd-actions li > div { display: grid; gap: 2px; }
.opsd-view .opsd-actions strong { color: var(--glass-text); font-size: 14px; }
.opsd-view .opsd-actions span:not(.opsd-action-mark):not(.opsd-go) { color: var(--glass-muted); font-size: 12.5px; }
.opsd-view .opsd-action-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #111; font-weight: 900; background: #d97706; box-shadow: 0 0 12px -2px #d97706; }
.opsd-view .opsd-actions li[data-level="bad"] .opsd-action-mark { background: #dc2626; box-shadow: 0 0 12px -2px #dc2626; }
.opsd-view .opsd-actions li.is-good .opsd-action-mark { background: #16a34a; box-shadow: 0 0 12px -2px #16a34a; }

/* A platform's tab (tabs.js, cloudflare.js), from George's pictures of 2026-10-23: tiles with a picture at their right
   and their use under them, the plan and its limits, the tunnels, the status, the website. */
.panel-body .view.opsd-view .opsd-tile { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 128px; color: inherit; text-decoration: none; }
.panel-body .view.opsd-view a.opsd-tile:hover { border-color: rgb(16 24 40 / .22); }
.panel-body .view.opsd-view a.opsd-tile:focus-visible { outline: 3px solid #16a34a; outline-offset: 2px; }
.panel-body .view.opsd-view .opsd-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-body .view.opsd-view .opsd-tile .look-kpi-words { flex: 1 1 auto; }
.panel-body .view.opsd-view .opsd-tile .look-kpi-value { font-size: 28px; }
.panel-body .view.opsd-view .opsd-tile-aside { flex: none; display: grid; place-items: center; }
.panel-body .view.opsd-view .opsd-tile-aside .look-kpi-light { width: 46px; height: 46px; }
.panel-body .view.opsd-view .opsd-tile-aside .look-minibars { width: 56px; height: 32px; }
.panel-body .view.opsd-view .opsd-tile .opsd-use { gap: 4px; }
.opsd-view .opsd-plan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 10px; font-size: 13px; }
.opsd-view .opsd-plan dt { color: var(--glass-muted); }
.opsd-view .opsd-plan dd { margin: 0; color: #15803d; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.opsd-view .opsd-limits { display: grid; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.opsd-view .opsd-limits li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name share" "used share"; column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--glass-line); align-items: center; }
.opsd-view .opsd-limit-name { grid-area: name; color: var(--glass-text); }
.opsd-view .opsd-limit-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: #16a34a; box-shadow: 0 0 6px #16a34a; }
.opsd-view .opsd-limits li[data-state="warn"] .opsd-limit-name::before { background: #d97706; box-shadow: 0 0 6px #d97706; }
.opsd-view .opsd-limits li[data-state="bad"] .opsd-limit-name::before { background: #dc2626; box-shadow: 0 0 6px #dc2626; }
.opsd-view .opsd-limits li:not([data-state]) .opsd-limit-name::before { background: #9aa4b2; box-shadow: none; }
.opsd-view .opsd-limit-used { grid-area: used; padding-left: 14px; color: var(--glass-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.opsd-view .opsd-limit-share { grid-area: share; color: #16a34a; font-weight: 700; font-variant-numeric: tabular-nums; }
.opsd-view .opsd-limits li[data-state="warn"] .opsd-limit-share { color: #d97706; }
.opsd-view .opsd-limits li[data-state="bad"] .opsd-limit-share { color: #dc2626; }
.opsd-view .opsd-limit-share.is-none { color: var(--glass-muted); }
.opsd-view .opsd-cost-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--glass-line); color: #2563eb; font-size: 13px; }
.opsd-view .opsd-cost-line strong { color: var(--glass-strong); font-variant-numeric: tabular-nums; }
.opsd-view .opsd-console-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.opsd-view .opsd-tunnels { display: grid; margin: 0; padding: 0; list-style: none; }
.opsd-view .opsd-tunnels li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--glass-line); }
.opsd-view .opsd-tunnels li > span:not(.look-pill) { grid-column: 1 / -1; }
.opsd-view .opsd-tunnels strong { color: var(--glass-text); font-size: 13.5px; overflow-wrap: anywhere; }
.opsd-view .opsd-tunnels span:not(.look-pill) { color: var(--glass-muted); font-size: 12px; }
.opsd-view .opsd-tunnels .look-pill, .opsd-view .opsd-status-head .look-pill, .opsd-view .look-card td .look-pill, .opsd-view .look-card > header .look-pill { padding: 3px 10px; font-size: 12px; }
.opsd-view .opsd-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.opsd-view .opsd-status-head span:not(.look-pill) { color: var(--glass-muted); font-size: 12.5px; }
.opsd-view .opsd-checks { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.opsd-view .opsd-checks li { position: relative; padding-left: 26px; color: var(--glass-text); line-height: 1.4; }
.opsd-view .opsd-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #06281c; font-size: 10px; font-weight: 900;
  background: #16a34a; box-shadow: 0 0 8px -1px #16a34a; }
.opsd-view .opsd-checks li.is-bad::before { content: "!"; background: #dc2626; box-shadow: 0 0 8px -1px #dc2626; }
.opsd-view .opsd-checks li.is-unknown::before { content: "?"; background: #9aa4b2; box-shadow: none; }
.opsd-view .look-card .opsd-status-link { margin-top: 12px; }
.opsd-view .opsd-site { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .opsd-view .opsd-site { grid-template-columns: minmax(0, 1fr); } }
.opsd-view .opsd-stats { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; margin: 0; font-size: 13px; }
.opsd-view .opsd-stats dt { color: var(--glass-muted); }
.opsd-view .opsd-stats dd { margin: 0; color: var(--glass-strong); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.opsd-view .look-card .opsd-minor { margin: 0 0 10px; color: var(--glass-muted); font-size: 13px; font-weight: 600; }
.opsd-view #opsd-cf-worker-rows th, .opsd-view #opsd-cf-worker-rows td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.opsd-view #opsd-cf-worker-rows td:first-child { white-space: normal; }
.opsd-view .page-head h1.look-named .look-brand-tile { border-radius: 10px; }
.opsd-view .opsd-limits.is-wide li { grid-template-columns: minmax(0, 1fr) auto 56px; grid-template-areas: "name used share"; padding: 9px 0; }
.opsd-view .opsd-limits.is-wide .opsd-limit-used { padding-left: 0; color: var(--glass-text); font-size: 13px; }
.opsd-view .opsd-limits.is-wide .opsd-limit-share { text-align: right; }
@media (max-width: 640px) { .opsd-view .opsd-limits.is-wide li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name share" "used share"; } }
/* The Supabase tab (supabase.js): the services' table stays inside its card. */
.opsd-view #opsd-sb-health-rows td, .opsd-view #opsd-sb-health th { padding-left: 6px; padding-right: 6px; }
.opsd-view #opsd-sb-health .look-pill { padding: 2px 8px; font-size: 11.5px; white-space: nowrap; }
.opsd-view #opsd-sb-advisors .fin-facts li span { white-space: normal; }
.opsd-view #opsd-sb-advisors .opsd-minor { margin-top: 14px; }
/* The Stripe tab (stripe.js): the choice of business across the canvas, a webhook's note under its destination. */
.opsd-view .look-period.opsd-business { grid-column: 1 / -1; justify-self: start; }
.opsd-view #opsd-st-webhook-rows td:nth-child(n + 2) { white-space: nowrap; }
.opsd-view .opsd-note-line { display: block; color: #d97706; font-size: 12px; font-weight: 600; }
.opsd-view .look-card .opsd-state-plain { margin: 0 0 12px; color: var(--glass-muted); font-size: 13px; }
.opsd-view #opsd-st-money .opsd-console { align-self: flex-start; margin-top: auto; }

/* Modules/Operations/GoSmart/gosmart.css */
/* Ops › Go Smart: what only this page uses. Since 2026-10-24 it is drawn in Admin's new look (phase F2): the canvas,
   the figures, the glass, the table that searches, sorts and exports and the bar of a use are the pieces every
   redesigned page shares (Shell/look.css). */
.opsg-canvas > * { min-width: 0; }
.opsg-view .look-card table { min-width: 960px; }
.opsg-view .look-card td { vertical-align: top; }
.opsg-view .opsg-small { display: block; margin-top: 2px; color: var(--glass-muted); font-size: 12.5px; }
.opsg-view .opsg-database { display: grid; gap: 4px; min-width: 150px; }
.opsg-view .opsg-database .look-gauge { min-width: 0; }
.panel-body .view .look-card .opsg-customer { width: 100%; min-width: 150px; max-width: 220px; height: var(--control); font-size: var(--control-font); font-weight: 600; }
.opsg-view .look-card .look-pill { white-space: nowrap; }

/* Modules/Operations/Health/health.css */
/* Ops › Health: what only this page uses. The canvas, the figures, the glass, its tables and the side panel are the
   pieces every redesigned page shares (Shell/look.css). */
.health-canvas > * { min-width: 0; }
.health-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
.panel-body .view .health-canvas .table-wrap { overflow-x: auto; }
.panel-body .view .health-canvas #health-list .view-table, .panel-body .view .health-canvas #health-change-list .view-table,
.panel-body .view .health-canvas #health-months .view-table { min-width: 860px; }
.panel-body .view .health-canvas .health-board { grid-column: 1 / -1; }
.health-view .health-small { display: block; margin: 2px 0 0; color: var(--glass-muted); font-size: 12px; }
.health-view .health-mark { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: rgb(16 24 40 / .08); }
.health-view .health-mark svg { width: 18px; height: 18px; }
/* A tile per service: its mark, its name and line, its state at the right. */
.health-view .health-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.health-view .health-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgb(16 24 40 / .04); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .08); }
.health-view .health-tile[data-state="unavailable"] { box-shadow: inset 0 0 0 1px rgb(251 113 133 / .5); background: rgb(251 113 133 / .08); }
.health-view .health-tile:hover, .health-view .health-tile:focus-visible { background: rgb(16 24 40 / .08); outline: none; }
.health-view .health-tile-words { min-width: 0; }
.health-view .health-tile-words strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The month's availability of each service with a target: its value, a bar of what is left of its allowance. */
.health-view .health-budgets { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.health-view .health-budgets li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.health-view .health-budgets .look-bar-track, .health-view .health-budgets .health-small { grid-column: 1 / -1; }
.health-view .health-budget-name { display: inline-flex; align-items: center; gap: 8px; }
.health-view .health-budget-value { font-size: 18px; font-weight: 800; }
.health-view .health-recent { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.health-view .health-recent li { display: grid; gap: 4px; justify-items: start; }
.health-view .health-link { display: inline-flex; margin-top: 12px; text-decoration: none; }
.health-view .health-cell-service { display: inline-flex; align-items: flex-start; gap: 10px; }
.panel-body .view .health-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.panel-body .view .health-filters .health-filter { width: 100%; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px;
  font: inherit; font-size: var(--control-font); color: var(--glass-text); background: rgb(16 24 40 / .06); }
.health-view .health-filter option { color: #111; }
.health-view tbody tr[data-service] { cursor: pointer; }
.health-view tbody tr[data-service]:hover td, .health-view tbody tr[aria-selected] td { background: rgb(16 24 40 / .06); }
.health-view tbody tr:focus-visible { outline: 3px solid #16a34a; outline-offset: -3px; }
.health-view .health-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.health-view .health-side-head h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.health-view .health-side dd { overflow-wrap: anywhere; }
.health-view .health-strip-title { margin: 16px 0 8px; font-size: 14px; }
/* The last 24 hours of a service: one square per probe, oldest at the left. */
.health-view .health-strip { display: flex; flex-wrap: wrap; gap: 2px; }
.health-view .health-strip i { width: 6px; height: 14px; border-radius: 2px; background: #16a34a; }
.health-view .health-strip i.is-bad { background: #dc2626; }
.panel-body .view .health-canvas #health-list td:nth-child(2), .panel-body .view .health-canvas #health-change-list td:nth-child(1),
.panel-body .view .health-canvas #health-change-list td:nth-child(3) { white-space: nowrap; }

/* Modules/Operations/ScheduledJobs/jobs.css */
/* Ops › Scheduled jobs: what only this page uses. The canvas, the figures, the glass, its tables and the side panel are
   the pieces every redesigned page shares (Shell/look.css). */
.jobs-canvas > * { min-width: 0; }
.jobs-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
.panel-body .view .jobs-canvas .table-wrap { overflow-x: auto; }
.panel-body .view .jobs-canvas #jobs-list .view-table, .panel-body .view .jobs-canvas #jobs-runs .view-table { min-width: 900px; }
.panel-body .view .jobs-canvas .jobs-board { grid-column: 1 / -1; }
.jobs-view .jobs-small { display: block; margin: 2px 0 0; color: var(--glass-muted); font-size: 12px; }
.panel-body .view .jobs-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.panel-body .view .jobs-filters .jobs-filter { width: 100%; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px;
  font: inherit; font-size: var(--control-font); color: var(--glass-text); background: rgb(16 24 40 / .06); }
.jobs-view .jobs-filter option { color: #111; }
.jobs-view tbody tr[data-run], .jobs-view tbody tr[data-job] { cursor: pointer; }
.jobs-view tbody tr[data-run]:hover td, .jobs-view tbody tr[data-job]:hover td, .jobs-view tbody tr[aria-selected] td { background: rgb(16 24 40 / .06); }
.jobs-view tbody tr:focus-visible { outline: 3px solid #16a34a; outline-offset: -3px; }
.jobs-view .jobs-run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jobs-view .jobs-run-head h2 { margin: 0; }
.jobs-view .jobs-run dd { overflow-wrap: anywhere; }
.jobs-view .jobs-attention { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jobs-view .jobs-attention li { display: grid; gap: 2px; }
.panel-body .view .jobs-canvas #jobs-runs td:nth-child(1), .panel-body .view .jobs-canvas #jobs-runs td:nth-child(3), .panel-body .view .jobs-canvas #jobs-runs td:nth-child(4),
.panel-body .view .jobs-canvas #jobs-list td:nth-child(5) { white-space: nowrap; }

/* Modules/Operations/Security/security.css */
/* Ops › Security: what is its own beside Admin's new look (Shell/look.css). */
.panel-body .opss-view .look-card .opss-lead { margin: 0; color: var(--glass-strong); font-size: 18px; font-weight: 700; }
.panel-body .opss-view .opss-reasons { position: relative; display: grid; gap: 6px; margin: 12px 0 0; padding-left: 20px; color: #92400e; font-size: 14px; }
/* The alarm's card takes its level's light along its left edge; the level is also written in its pill. */
.panel-body .opss-view #opss-alarm { border-left: 4px solid var(--level); box-shadow: 0 18px 40px -18px rgb(5 10 15 / .55), -6px 0 28px -10px var(--level), inset 0 1px 0 rgb(16 24 40 / .08); --level: #9aa4b2; }
.panel-body .opss-view #opss-alarm[data-level="green"] { --level: #16a34a; }
.panel-body .opss-view #opss-alarm[data-level="amber"] { --level: #d97706; }
.panel-body .opss-view #opss-alarm[data-level="red"] { --level: #dc2626; }
.panel-body .opss-view #opss-alarm[data-level="red"] .opss-reasons { color: #fecdd3; }

/* Modules/Operations/SmartAgents/ops.css */
/* Ops › SmartAgents, in Admin's new look since 2026-10-24 (phase F2): cards of glass on one canvas of four tracks
   (Shell/look.css), each spanning two or four. Inside a card, smaller containers (`ops-sub`) hold its parts, and a
   tile is such a container with one value. Colour tells a state and is never the only sign of it. */
.ops-view [role="status"][data-state="stale"], .ops-view [role="status"][data-state="unavailable"] { color: #b45309; }
.ops-view .look-card [role="status"][data-state="stale"], .ops-view .look-card [role="status"][data-state="unavailable"], .ops-view #ops-inventory-host-time[data-state="stale"] { color: #d97706; }
.ops-view [role="status"][data-state="denied"] { color: var(--bad); }
.ops-view .row-action { cursor: pointer; }

/* The canvas and its cards. The inventory's cards are children of the canvas too: their holder has no box of its
   own. Capacity and Alarms are read apart, stand outside that holder and stay when the inventory does not answer;
   the order puts each beside its neighbour of the Dashboard. */
.ops-view #ops-inventory-data { display: contents; }
.ops-view #ops-inventory-data[hidden] { display: none; }
.ops-view .ops-canvas > *, .ops-view #ops-inventory-data > * { min-width: 0; order: 10; }
#ops-smartagents .ops-canvas .ops-kpis { order: 1; }
#ops-smartagents .ops-canvas .ops-history { order: 2; }
#ops-smartagents .ops-canvas .ops-resources { order: 3; }
#ops-smartagents .ops-canvas .ops-capacity { order: 4; }
#ops-smartagents .ops-canvas .ops-alarms { order: 5; }
#ops-smartagents .ops-canvas .ops-coverage { order: 6; }
#ops-smartagents .ops-canvas .ops-consumption { order: 7; }
.ops-view .ops-history > .look-card { height: 100%; box-sizing: border-box; }
.ops-view .look-card { display: flex; flex-direction: column; gap: 14px; }
.ops-view .look-card > header.ops-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; min-height: 0; margin: 0; }
.ops-view .ops-card-head > svg { width: 28px; height: 28px; color: #2563eb; }
.ops-view .ops-card-head > div { flex: 1 1 180px; min-width: 0; }
.ops-view .look-card .ops-card-head p { margin: 2px 0 0; overflow-wrap: anywhere; }
.ops-view .look-card .ops-note { margin: 0; color: var(--glass-muted); font-size: 13.5px; line-height: 1.5; }
.ops-view .look-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.ops-view .ops-minor { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--glass-muted); font-size: 13px; font-weight: 700; }
.ops-view .ops-minor svg { width: 16px; height: 16px; }

/* A container inside a card, and the tile: a container with one value. */
.ops-view .ops-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ops-view .ops-tiles-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ops-view .ops-tiles-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ops-view .ops-sub { min-width: 0; padding: 14px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgb(16 24 40 / .035); color: var(--glass-text); }
.ops-view .ops-sub h4 { margin: 0; color: var(--glass-muted); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ops-view .ops-tile, .ops-view .ops-quiet, .ops-view .ops-part { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.ops-view .ops-tile > svg, .ops-view .ops-part > svg { width: 24px; height: 24px; margin-top: 2px; color: #2563eb; }
.ops-view .ops-tile strong { display: block; margin-top: 2px; color: var(--glass-strong); font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ops-view .ops-tile small, .ops-view .ops-part small { display: block; margin-top: 2px; color: var(--glass-muted); font-size: 12px; line-height: 1.4; }
.ops-view .ops-tile progress { grid-column: 1 / -1; }
.ops-view .ops-tile[data-state="warn"] { border-color: rgb(251 191 36 / .5); background: rgb(251 191 36 / .07); }
.ops-view .ops-tile[data-state="warn"] > svg, .ops-view .ops-tile[data-state="warn"] strong { color: #d97706; }
/* The bar of a share, lit green, amber when it asks for attention. */
.ops-view progress { display: block; width: 100%; height: 8px; margin-top: 8px; border: 0; border-radius: 999px; overflow: hidden; background: rgb(16 24 40 / .07); --light: #16a34a; }
.ops-view progress::-webkit-progress-bar { background: rgb(16 24 40 / .07); }
.ops-view progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--light) 55%, transparent), var(--light)); box-shadow: none; }
.ops-view progress::-moz-progress-bar { border-radius: 999px; background: var(--light); }
.ops-view [data-state="warn"] progress { --light: #d97706; }
.ops-view .ops-quiet { background: rgb(16 24 40 / .02); border-style: dashed; color: var(--glass-muted); }
.ops-view .ops-quiet > svg { width: 22px; height: 22px; color: var(--glass-muted); }
.ops-view .ops-quiet h4 { color: var(--glass-text); font-weight: 700; }
.ops-view .ops-quiet p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; }
.ops-view .ops-sub-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--glass-muted); font-size: 13px; line-height: 1.5; }
.ops-view .ops-sub-note svg { flex: none; width: 18px; height: 18px; color: #2563eb; }

/* A word with a dot in the colour of its state, and a chip. */
.ops-view .ops-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  --pill: #9aa4b2; color: var(--pill); background: color-mix(in srgb, var(--pill) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pill) 40%, transparent); }
.ops-view .ops-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: none; }
.ops-view .ops-pill[data-state="good"] { --pill: #16a34a; }
.ops-view .ops-pill[data-state="warn"] { --pill: #d97706; }
.ops-view .ops-pill[data-state="bad"] { --pill: #dc2626; }
.ops-view .ops-pill:empty { display: none; }
.ops-view .ops-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-view .ops-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--glass-line); border-radius: 8px; background: rgb(16 24 40 / .04); color: var(--glass-text); font-size: 13px; }
.ops-view .ops-source { justify-content: space-between; flex: 1 1 150px; text-transform: capitalize; font-weight: 600; }
.ops-view .ops-source .ops-pill { padding: 0; background: none; box-shadow: none; text-transform: uppercase; }

/* A line of a card: a picture, what it is, and its value at the right. A strip is a row of such facts. */
.ops-view .ops-rows { display: grid; }
.ops-view .ops-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 2px; border-bottom: 1px solid var(--glass-line); font-size: 14px; }
.ops-view .ops-row:last-child { border-bottom: 0; }
.ops-view .ops-row svg { width: 18px; height: 18px; color: var(--glass-muted); }
.ops-view .ops-row span { flex: none; color: var(--glass-muted); }
.ops-view .ops-row strong { flex: 1; min-width: 0; color: var(--glass-text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ops-view .ops-row[data-state="warn"] strong { color: #d97706; }
.ops-view .ops-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.ops-view .ops-strip-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ops-view .ops-strip-item svg { width: 24px; height: 24px; color: #2563eb; }
.ops-view .ops-strip-item span, .ops-view .ops-strip-item small { display: block; color: var(--glass-muted); font-size: 12px; }
.ops-view .ops-strip-item strong { display: block; color: var(--glass-text); font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.ops-view .ops-strip-item[data-state="warn"] strong { color: #d97706; }
.ops-view .ops-go { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 2px; border: 0; background: none; color: #2563eb; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ops-view .ops-go::after { content: "→"; }
.ops-view .ops-go:hover { text-decoration: underline; }
.ops-view .view-table .ops-go { margin: 0; padding: 0; }

/* Capacity and alarms. */
.ops-view .ops-places { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0; color: var(--glass-text); font-size: 16px; font-weight: 700; --light: #16a34a; }
.ops-view .ops-places strong { color: var(--light); font-size: 40px; font-weight: 800; line-height: 1; }
.ops-view .ops-places[data-state="good"] { --light: #16a34a; }
.ops-view .ops-places[data-state="warn"] { --light: #d97706; color: #d97706; }
.ops-view .ops-places[data-state="bad"] { --light: #dc2626; color: #dc2626; }
.ops-view .ops-places[data-state="full"] { width: fit-content; padding: 10px 16px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px rgb(16 24 40 / .3); color: #fff; }
.ops-view #ops-capacity-seats .look-seats { margin: 0; }
.ops-view .ops-alerts-now { margin: 4px 0; color: var(--glass-text); font-size: 24px; font-weight: 800; line-height: 1.2; }
.ops-view .ops-alerts-now[data-state="good"] { color: #16a34a; }
.ops-view .ops-alerts-now[data-state="warn"] { color: #d97706; }
.ops-view .ops-alerts-now[data-state="bad"] { color: #dc2626; }
.ops-view #ops-alerts-rows tr[data-state="firing"] td:nth-child(2) { color: #dc2626; font-weight: 700; }
.ops-view .ops-recent { display: flex; gap: 12px; padding-top: 14px; border-top: 1px solid var(--glass-line); }
.ops-view .ops-recent > svg { width: 20px; height: 20px; color: var(--glass-muted); }
.ops-view .ops-recent .ops-note { margin-bottom: 8px; font-size: 13px; }
.ops-view .ops-warnings { margin: 0; padding-left: 18px; color: #d97706; font-size: 14px; }

/* The machine's full list of facts, and the host's, open on request. */
.ops-view .ops-more > summary, .ops-view .ops-group > summary, .ops-view .look-card details > summary { cursor: pointer; }
.ops-view .look-card details > summary { color: #2563eb; font-size: 14px; font-weight: 700; }
.ops-view .ops-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; margin-top: 8px; }
.ops-view .ops-inventory-fact { min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--glass-line); overflow-wrap: anywhere; }
.ops-view .ops-inventory-fact span { display: block; color: var(--glass-muted); font-size: 12px; }
.ops-view .ops-inventory-fact strong { display: block; color: var(--glass-text); font-size: 14px; font-weight: 600; line-height: 1.45; }
.ops-view .ops-attention strong, .ops-view .ops-inventory-fact.ops-attention span { color: #d97706; }
.ops-view .ops-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgb(16 24 40 / .035); }
.ops-view .ops-actions > div:first-child { flex: 1 1 220px; min-width: 0; }
.ops-view .ops-actions .ops-note { margin: 0 0 4px; font-size: 13px; overflow-wrap: anywhere; }
.ops-view .ops-actions-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ops-view .ops-actions .row-action:disabled { opacity: .5; cursor: not-allowed; }
.ops-view #ops-actions-status { flex-basis: 100%; margin: 0; color: var(--glass-muted); font-size: 14px; }
.ops-view #ops-actions-status:empty { display: none; }

/* The pods, grouped by where they run; a group opens to its pods. */
.ops-view .ops-groups { display: grid; gap: 8px; }
.ops-view .ops-group { border: 1px solid var(--glass-line); border-radius: 12px; background: rgb(16 24 40 / .035); }
.ops-view .ops-group > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; list-style: none; color: var(--glass-text); }
.ops-view .ops-group > summary::-webkit-details-marker { display: none; }
.ops-view .ops-group > summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--glass-muted); border-bottom: 2px solid var(--glass-muted); transform: rotate(-45deg); }
.ops-view .ops-group[open] > summary::after { transform: rotate(45deg); }
.ops-view .ops-group > summary > svg { width: 20px; height: 20px; color: #2563eb; }
.ops-view .ops-group > summary > div { flex: 1; min-width: 0; }
.ops-view .ops-group > summary strong { display: block; font-size: 15px; }
.ops-view .ops-group > summary small { display: block; color: var(--glass-muted); font-size: 12px; overflow-wrap: anywhere; }
.ops-view .ops-group > .table-wrap { padding: 0 8px 8px; }
.ops-view .ops-quotas { display: grid; gap: 18px; }
.ops-view .ops-quota h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.ops-view .ops-quota .ops-tile strong { font-size: 17px; }
.ops-view .look-card .view-table td { vertical-align: middle; overflow-wrap: break-word; }
.ops-view .look-card .view-table td:first-child { font-weight: 600; overflow-wrap: anywhere; }
.ops-view .view-table details { min-width: 160px; }
.ops-view .view-table details p { margin: 8px 0; font-size: 13px; }
.ops-view .ops-empty-row { padding: 28px 12px; color: var(--glass-muted); text-align: center; }

/* An agent: its name and state, its numbers, its facts, and its containers as smaller containers. */
.ops-view .ops-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.ops-view .ops-agent { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgb(16 24 40 / .035); }
.ops-view .ops-agent[data-asleep] { border-style: dashed; }
.ops-view .ops-agent-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: center; }
.ops-view .ops-agent-head > .ops-note { grid-column: 1 / -1; }
.ops-view .ops-agent-numbers, .ops-view .ops-agent-facts { grid-column: 1 / -1; }
.ops-view .ops-agent-art { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; color: #16a34a;
  background: radial-gradient(circle at 50% 40%, rgb(52 211 153 / .28), rgb(52 211 153 / .06) 70%); box-shadow: 0 0 14px -5px rgb(52 211 153 / .6), inset 0 0 0 1px rgb(52 211 153 / .4); }
.ops-view .ops-agent[data-asleep] .ops-agent-art { color: var(--glass-muted); background: rgb(16 24 40 / .05); box-shadow: inset 0 0 0 1px var(--glass-line); }
.ops-view .ops-agent-art svg { width: 30px; height: 30px; }
.ops-view .ops-agent-name { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.ops-view .ops-agent-name h3 { margin: 0; color: var(--glass-strong); font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.ops-view .ops-agent-own { margin: 0; color: var(--glass-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ops-view .ops-agent-version { margin: 0; padding: 3px 10px; border: 1px solid var(--glass-line); border-radius: 999px; color: var(--glass-text); font-size: 12px; font-weight: 700; }
.ops-view .ops-agent-name code { color: var(--glass-muted); font-size: 12px; overflow-wrap: anywhere; }
.ops-view .ops-agent-numbers { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ops-view .ops-agent-numbers .ops-tile strong { font-size: 17px; }
.ops-view .ops-agent-facts .ops-row { padding: 6px 2px; font-size: 13px; }
.ops-view .ops-part h4 { margin-bottom: 4px; color: var(--glass-text); font-size: 14px; font-weight: 700; }

/* The pop-up of a host action is the shared glass one (look-dialog); its confirmation field is hidden until asked. */
.panel-body dialog.look-dialog [hidden] { display: none; }
.panel-body dialog.look-dialog .row-action:disabled { opacity: .5; cursor: not-allowed; }

/* History: the second row of the Dashboard, its charts side by side while there is room, their lines lit. */
.ops-view .ops-ranges { display: inline-flex; padding: 3px; border: 1px solid rgb(16 24 40 / .16); border-radius: 10px; }
.ops-view .ops-ranges button { min-height: var(--control); padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--glass-muted); font: inherit; font-size: var(--control-font); font-weight: 700; cursor: pointer; }
.ops-view .ops-ranges button[aria-pressed="true"] { background: rgb(52 211 153 / .16); color: #15803d; box-shadow: inset 0 0 0 1px rgb(52 211 153 / .5); }
.ops-view .ops-ranges button:focus-visible { outline: 3px solid #16a34a; outline-offset: 2px; }
.ops-view .ops-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ops-view .ops-chart { min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgb(16 24 40 / .035); }
.ops-view .ops-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--glass-muted); font-size: 13px; }
.ops-view .ops-chart figcaption strong { color: var(--glass-strong); font-size: 18px; font-weight: 800; white-space: nowrap; }
.ops-view .ops-chart-frame { position: relative; }
.ops-view .ops-chart svg { display: block; width: 100%; height: auto; }
.ops-view .ops-chart-grid { stroke: var(--glass-line); stroke-width: 1; }
.ops-view .ops-chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ops-view .ops-chart-cursor { stroke: var(--glass-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-view .ops-chart-axis { stroke: #c9ced6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-view .ops-chart-tip { position: absolute; top: 4px; z-index: 1; min-width: 120px; padding: 6px 8px; border: 1px solid rgb(16 24 40 / .16); border-radius: 8px; background: #0f171d; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .7); color: var(--glass-text); font-size: 12px; pointer-events: none; }
.ops-view .ops-chart-tip span { display: block; }
.ops-view .ops-chart-tip-time { color: var(--glass-muted); }
.ops-view .ops-chart-tip i, .ops-view .ops-chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; box-shadow: none; }
.ops-view .ops-chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--glass-text); font-size: 12px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .ops-view .ops-chart-line { filter: none; } }

/* Clients: the customer agents in a table that searches, sorts and exports. */
.ops-view .ops-clients > * { min-width: 0; }
.ops-view .ops-clients .view-table { min-width: 860px; }
.ops-view .ops-clients code { color: var(--glass-muted); font-size: 11px; }

@media (max-width: 640px) {
  .ops-view .ops-agents { grid-template-columns: minmax(0, 1fr); }
  .ops-view .ops-go { margin-left: 0; }
}
/* The period of History keeps its own width beside the title; the places, their squares and the facts stand apart. */
.ops-view .ops-card-head > #ops-history-ranges { flex: none; }
.ops-view #ops-capacity-data:not([hidden]) { display: grid; gap: 12px; }
/* A tile's number keeps to its tile: the machine's amounts and an agent's numbers are set smaller, and a label breaks
   between words only. */
.ops-view .ops-tile strong { font-size: 19px; }
.ops-view .ops-sub h4 { overflow-wrap: normal; }
.ops-view .ops-agent-numbers { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ops-view .ops-agent-numbers .ops-tile strong { font-size: 15px; }
/* An agent's four numbers share one row, two on a phone: never one alone at the end of a row. */
.ops-view .ops-agent-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ops-view .ops-agent-numbers .ops-tile { padding: 12px; gap: 4px 8px; }
.ops-view .ops-agent-numbers .ops-tile > svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .ops-view .ops-agent-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Modules/People/Access/team.css */
/* Team & Access: what only this section uses. Since 2026-10-24 it is drawn in Admin's new look (phase F2): the
   canvas, the glass, the figures, the controls inside glass, the summary beside the list and the pop-ups are the
   pieces every redesigned page shares (Shell/look.css). The build joins this file to it. */

/* The line that says what happened on an employee's page. The list's is the page's own, under the tabs. */
#member-status { min-height: 22px; margin: 12px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

/* The figures, the list and the summary share one canvas of four tracks. */
.team-canvas > * { min-width: 0; }

/* An employee's page. */
.member-who { flex: 1 1 auto; display: flex; align-items: center; gap: 20px; min-width: 0; }
.member-who h1 { display: inline; margin: 0; overflow-wrap: anywhere; }
.member-who > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.member-who .page-lead { flex-basis: 100%; }
.member-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.member-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.member-actions:empty { display: none; }

/* Under a card's title, rows of a quiet label and a darker value. */
/* Two columns that end at the same height: details and security at the left,
   permissions at the right as tall as both, the record below across the page. */
.member-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "details permissions" "security permissions" "record record"; gap: 20px; }
.member-details { grid-area: details; }
.member-security { grid-area: security; }
.member-permissions { grid-area: permissions; }
.member-record { grid-area: record; }
/* Personal details come after, across the page, when the viewer may read them. */
.member-personal { grid-column: 1 / -1; }
.member-personal .team-rows div { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
.member-grid > .view-card { min-width: 0; }
.view-card > .member-actions { margin-top: 16px; }
/* A value with its own action beside it, and the actions that sit in a row. */
.team-rows .with-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.team-rows .member-actions { gap: 8px; }
#employees .team-rows .row-action, #employees .permission-table .row-action { height: var(--control); padding: 0 10px; font-size: var(--control-font); }
#employees .team-rows .row-action svg, #employees .permission-table .row-action svg { width: 16px; height: 16px; }

/* Effective permissions. */
.permission-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 20px; border-radius: 10px; background: rgb(16 24 40 / .05); }
.permission-scope div + div { padding-left: 20px; border-left: 1px solid var(--glass-line); }
.permission-scope span { display: block; margin-bottom: 6px; color: var(--glass-muted); font-size: 13px; }
.permission-scope strong { font-size: 18px; font-weight: 800; }
.permission-table { margin-top: 14px; }
.permission-table th { padding: 10px 12px; background: rgb(16 24 40 / .05); color: var(--glass-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; border-bottom: 0; }
.permission-table th:first-child { border-radius: 8px 0 0 8px; }
.permission-table th:last-child { border-radius: 0 8px 8px 0; }
.permission-table td { padding: 11px 12px; color: var(--glass-text); }
.permission-table td:last-child, .permission-table th:last-child { width: 40%; }
.permission-access { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; }

/* A place for what is not connected yet: a grey tag that says so, and no value. */
#employees .pending { display: inline-block; padding: 3px 9px; border: 1px dashed rgb(16 24 40 / .3); border-radius: 6px; color: var(--glass-muted); font-size: 12px; font-weight: 500; font-style: normal; white-space: nowrap; }
#employees button[data-pending] { border-style: dashed; color: var(--glass-muted); cursor: not-allowed; }
.panel-body .view .pending-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
.panel-body .view .look-card .pending-empty { margin: 0; padding: 22px 16px; border: 1px dashed rgb(16 24 40 / .22); border-radius: 8px; background: rgb(16 24 40 / .03); font-size: 14px; text-align: center; line-height: 1.5; }

@media (max-width: 900px) {
  .member-grid { grid-template-columns: minmax(0, 1fr); }
  .member-grid { grid-template-areas: "details" "security" "permissions" "record"; }
  .permission-access { flex-wrap: wrap; }
}

/* The accesses chosen when an employee is added (George, 2026-10-17): Staff only; an Admin holds them all by role. */
#add-access { margin: 18px 0 16px; padding: 0; border: 0; }
#add-access legend { margin-bottom: 6px; font-weight: 700; }
#add-access .add-note { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
#add-access .add-check { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-weight: 500; }
#add-access .add-check input { width: auto; height: auto; min-height: 0; margin: 0; padding: 0; }
/* First and last name side by side; the permissions in two columns, one in a narrow window. */
#add-form .add-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
#add-access .add-permissions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { #add-form .add-names, #add-access .add-permissions { grid-template-columns: 1fr; } }
#add-form > .add-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }

/* Modules/People/Workspace/workspace.css */
/* The approved People workspace extends the shared light kit. Tables and forms remain the shared components. */
.people-work-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#people-work-actions {
  display: flex;
  gap: 8px;
}
.people-balance-line {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.people-calendar-scroll {
  overflow-x: auto;
}
.panel-body .view .people-calendar-card input[type="month"] {
  width: auto;
  max-width: 100%;
}
.people-calendar {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11.5px;
}
.people-calendar th:first-child {
  width: 150px;
  text-align: left;
}
@supports selector(input::-webkit-calendar-picker-indicator) {
  .panel-body .view .people-calendar-card input[type="month"] {
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
  }
  .people-calendar-card input[type="month"]::-webkit-datetime-edit {
    display: none;
  }
  .people-calendar-card input[type="month"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    padding: 9px;
    margin: 0;
    cursor: pointer;
  }
}
.panel-body .view .people-calendar th,
.panel-body .view .people-calendar td {
  height: 30px;
  text-align: center;
  border-bottom: 1px dashed #d5d9e0;
}
.people-calendar td {
  border-right: 1px solid #f1f2f4;
}
.panel-body .view .people-calendar thead th {
  height: 48px;
  padding: 5px 0;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.people-calendar-month {
  margin-left: 150px;
  padding: 5px 0 8px;
  color: #17202a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.people-calendar .people-calendar-day-0 {
  background-color: #e6f3fb;
}
.people-calendar .people-calendar-day-1 {
  background-color: #fff0e6;
}
.people-calendar .people-calendar-week-start {
  border-left: 1px solid #b8c6c4;
}
.people-calendar-weekday,
.people-calendar-date {
  display: block;
  line-height: 18px;
}
.people-calendar abbr[title] {
  text-decoration: none;
}
.people-calendar-date {
  color: #17202a;
  font-weight: 700;
}
.people-calendar .people-calendar-annual {
  background: #dbeafe;
}
.people-calendar .people-calendar-personal {
  background: #ffedd5;
}
.people-calendar .people-calendar-unpaid {
  background: #e5e7eb;
}
.people-calendar .people-calendar-long_service {
  background: #ede9fe;
}
.people-calendar .is-pending {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 3px,
    #94a3b855 3px 4px
  );
}
.people-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
  overflow-x: auto;
}
.people-kanban-column {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f4f5f7;
}
.people-kanban-column h3 {
  margin: 0 0 10px;
  font-size: 12px;
}
.people-candidate {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 6px;
  margin-bottom: 8px;
  padding: 10px;
  white-space: normal;
}
.people-candidate small {
  color: #4b5563;
}
.people-overdue {
  color: #b91c1c;
  font-size: 11.5px;
}
.people-value {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.people-value p {
  margin: 4px 0;
}
.people-policy-body {
  white-space: pre-wrap;
  line-height: 1.6;
  max-width: 75ch;
}
.people-calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.people-cost-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
.people-cost-pair strong {
  font-size: 18px;
}
.people-cost-pair > p {
  grid-column: 1/-1;
}
@media (max-width: 1000px) {
  .people-calculator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .people-calendar-month {
    margin-left: 0;
  }
  .people-calculator,
  .people-cost-pair {
    grid-template-columns: 1fr;
  }
  .people-balance-line {
    grid-template-columns: 1fr 1fr;
  }
}

/* Modules/People/people.css */
/* People & Access (8a Overview, 8b Employees, 8g Org chart): what only these tabs use, in Admin's look (Shell/look.css). */
.panel-body .view .people-actions { display: flex; gap: 8px; align-items: center; }
.panel-body #employees .page-tabs { flex-wrap:nowrap; overflow-x:auto; gap:0 20px; }
.panel-body #employees .page-tabs button { flex-shrink:0; white-space:nowrap; }

/* The lead figure of the Overview: Headcount, in the accent blue, its last six quarters as columns. */
.panel-body .view .look-kpi.people-lead { background: #2a78d6; border-color: #2a78d6; }
.panel-body .view .look-kpi.people-lead .look-kpi-label, .panel-body .view .look-kpi.people-lead .look-kpi-note { color: #dbe8fb; }
.panel-body .view .look-kpi.people-lead .look-kpi-value { color: #fff; font-size: 24px; font-weight: 800; }
.panel-body .view .look-kpi.people-lead .look-kpi-light { color: #fff; background: rgb(255 255 255 / .18); }
.panel-body .view .look-kpi.people-lead .look-trend { color: #fff; background: rgb(255 255 255 / .2); }
.panel-body .view .look-kpi.people-lead .look-minibars rect { fill: rgb(255 255 255 / .55); }
.panel-body .view .look-kpi.people-lead .look-minibars rect:last-child { fill: #fff; }
.panel-body .view .look-kpi[data-go] { cursor: pointer; }

/* The table's drop-down filters, on the line of its search and Export, of their height. */
.panel-body .view .people-filters { display: flex; flex-wrap: nowrap; gap: 8px; }
.panel-body .view .people-select { display: inline-flex; align-items: center; gap: 6px; height: var(--control); margin: 0; padding: 0 4px 0 10px; border: 1px solid #e5e7eb;
  border-radius: 8px; background: #fff; }
.panel-body .view .people-select span { color: #6b7280; font-size: 11.5px; font-weight: 600; }
.panel-body .view .people-select .people-filter { height: calc(var(--control) - 2px); min-width: 70px; max-width: 200px; padding: 0 22px 0 2px; border: 0; background-color: transparent; font-weight: 700; }
.panel-body .view .people-org-tools .people-filter { width: auto; min-width: 150px; max-width: 220px; }
.panel-body .view #people-employees-list > header { flex-wrap: wrap; row-gap: 8px; }
.panel-body .view #people-employees-list > header .look-tools { flex: 1 1 100%; order: 3; }
.panel-body .view #people-employees-list > header .look-tools .look-search { flex: 1 1 auto; }
.panel-body .view #people-employees-list > header .people-count { margin-left: auto; }
.panel-body .view .people-pressed { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 700; }
.panel-body .view .people-filter { height: var(--control); margin: 0; padding: 0 30px 0 10px; border: 1px solid #e5e7eb; border-radius: 8px; background-color: #fff;
  color: #111827; font-family: inherit; font-size: var(--control-font); font-weight: 600; }
.panel-body .view .people-filter:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* A figure pressed filters the table; its cards come in under the figures. */
.panel-body .view .look-kpi[data-figure], .panel-body .view .look-kpi[data-department] { cursor: pointer; }
.panel-body .view .look-kpi[data-figure].is-on, .panel-body .view .look-kpi[data-department].is-on { border-color: #2a78d6; box-shadow: inset 0 0 0 1px #2a78d6; }
.panel-body .view .look-kpi.people-unit-figure { border-top: 3px solid var(--colour); }
.panel-body .view .people-code { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--colour) 14%, #fff); color: #111827; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.panel-body .view .people-code i { width: 7px; height: 7px; border-radius: 50%; background: var(--colour); }
.panel-body .view .people-arrive { animation: people-arrive 280ms ease-out both; }
@keyframes people-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel-body .view .people-arrive { animation: none; } }

/* A department: its colour and its name. */
.panel-body .view .people-department { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--colour) 12%, #fff); color: #111827; font-size: 12px; font-weight: 600; }
.panel-body .view .people-department i { width: 8px; height: 8px; border-radius: 50%; background: var(--colour); flex: none; }
/* A person in the table: the name, the job under it. */
.panel-body .view .people-person { display: grid; gap: 1px; min-width: 0; }
.panel-body .view .people-person small { color: #6b7280; font-size: 11.5px; }

/* The org chart: a tree drawn with lines, each person a box that opens their record. */
.panel-body .view .people-tree-wrap { overflow-x: auto; padding: 6px 0 2px; }
.panel-body .view .people-tree-wrap.has-menu { overflow: visible; padding-bottom: 96px; }
.panel-body .view .people-tree, .panel-body .view .people-tree ul { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.panel-body .view .people-tree ul { padding-top: 18px; position: relative; }
.panel-body .view .people-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 6px 0; }
.panel-body .view .people-tree > li { padding-top: 0; }
.panel-body .view .people-tree li::before, .panel-body .view .people-tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 18px; border-top: 1.5px solid #d1d5db; }
.panel-body .view .people-tree li::before { right: 50%; }
.panel-body .view .people-tree li::after { left: 50%; border-left: 1.5px solid #d1d5db; }
.panel-body .view .people-tree li:only-child::before, .panel-body .view .people-tree li:only-child::after { width: 0; border-top: 0; }
.panel-body .view .people-tree li:only-child::after { left: 50%; }
.panel-body .view .people-tree li:first-child::before, .panel-body .view .people-tree li:last-child::after { border-top: 0; }
.panel-body .view .people-tree li:last-child::before { border-right: 1.5px solid #d1d5db; border-radius: 0 6px 0 0; }
.panel-body .view .people-tree li:first-child::after { border-radius: 6px 0 0 0; }
.panel-body .view .people-tree > li::before, .panel-body .view .people-tree > li::after { display: none; }
.panel-body .view .people-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 18px; border-left: 1.5px solid #d1d5db; }
.panel-body .view .people-node { display: grid; gap: 2px; min-width: 140px; max-width: 200px; padding: 7px 26px 7px 14px; border: 1px solid #e5e7eb;
  border-left: 4px solid var(--colour, #9aa4b2); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04); color: #111827; font: inherit;
  text-align: left; cursor: pointer; }
.panel-body .view .people-node.is-focus { box-shadow: 0 0 0 2px var(--colour, #2a78d6); }
.panel-body .view .people-node-unit { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--colour) 14%, #fff); color: #111827; font-size: 11px; font-weight: 600; }
.panel-body .view .people-node-unit i { width: 6px; height: 6px; border-radius: 50%; background: var(--colour); }
.panel-body .view .people-node-wrap { position: relative; }
.panel-body .view .people-node-more { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none;
  color: #6b7280; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.panel-body .view .people-node-more:hover, .panel-body .view .people-node-more:focus-visible { background: #f1f2f4; color: #111827; }
.panel-body .view .people-node-menu { position: absolute; z-index: 5; top: 30px; right: 0; display: grid; min-width: 180px; padding: 4px; border: 1px solid #e5e7eb;
  border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgb(16 24 40 / .12); }
.panel-body .view .people-node-menu button { padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: #111827; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  text-align: left; cursor: pointer; }
.panel-body .view .people-node-menu button:hover, .panel-body .view .people-node-menu button:focus-visible { background: #f1f2f4; }

/* The chart's tools, the way back from a branch, the colours' key and the departments' list. */
.panel-body .view .people-org-tools { display: flex; gap: 8px; align-items: center; }
.panel-body .view .people-crumb { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; }
.panel-body .view .people-crumb span { color: #6b7280; }
.panel-body .view .people-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: #4b5563; font-size: 11.5px; font-weight: 600; }
.panel-body .view .people-legend span { display: inline-flex; align-items: center; gap: 6px; }
.panel-body .view .people-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--colour); }
.panel-body .view .people-units { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.panel-body .view .people-units li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 36px; border-bottom: 1px solid #f1f2f4; }
.panel-body .view .people-units .people-code { margin-left: 0; }
.panel-body .view .people-unit-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .people-unit-head { color: #6b7280; font-size: 12px; }
.panel-body .view .people-units .people-edit { height: var(--control); padding: 0 10px; font-size: var(--control-font); }
.panel-body .view .people-units li:last-child { border-bottom: 0; }
.panel-body .view .people-node strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .people-node small { color: #6b7280; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body .view .people-node em { color: #2a78d6; font-size: 11px; font-style: normal; font-weight: 600; }
.panel-body .view .people-node.is-contractor { border-style: dashed; border-color: #9ca3af; }
.panel-body .view .people-node:hover { border-color: #2a78d6; }
.panel-body .view .people-node:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Lists of a name and its state (This month, Needs attention). */
.panel-body .view .people-lines { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.panel-body .view .people-lines li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 23px; min-width: 0; }
.panel-body .view .people-lines li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body .view .people-lines .look-pill { flex: none; padding: 1px 8px; font-size: 11.5px; }
.panel-body .view .people-lines .look-link, .panel-body .view .people-lines li > span:first-child { font-size: 12.5px; font-weight: 600; }
.panel-body .view .people-month + .people-month { margin-top: 6px; }
.panel-body .view .people-month h3 { margin: 4px 0 0; color: #4b5563; font-size: 12px; font-weight: 600; }

/* Under a person's form: their details and their pay. */
.panel-body dialog .people-extra { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.panel-body dialog .people-extra h3 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-body dialog .people-extra-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-body dialog .people-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.panel-body dialog .people-facts > div { display: flex; justify-content: space-between; gap: 8px; min-height: 23px; align-items: center; min-width: 0; }
.panel-body dialog .people-facts dt { color: #4b5563; font-size: 12px; font-weight: 600; white-space: nowrap; }
.panel-body dialog .people-facts dd { margin: 0; font-size: 12.5px; font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body dialog .people-facts-note { grid-column: 1 / -1; margin: 2px 0 0; color: #6b7280; font-size: 11.5px; }
.panel-body dialog .people-pay-history { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.panel-body dialog .people-pay-history li { display: grid; grid-template-columns: 130px auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 23px; font-size: 12.5px; }
.panel-body dialog .people-pay-history li span:last-child { color: #6b7280; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .panel-body dialog .people-facts { grid-template-columns: minmax(0, 1fr); } .panel-body dialog .people-pay-history li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* The record's tabs, first in the pop-up, across it. */
.panel-body dialog .people-record-top, .panel-body dialog .register-form > .people-record-lead { order: -1; grid-column: 1 / -1; display: grid; gap: 8px; }
.panel-body dialog .people-record-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #4b5563; font-size: 12.5px; }
.panel-body dialog .people-record-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e5e7eb; }
.panel-body dialog .people-record-tabs .row-action { height: auto; padding: 6px 10px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  color: #4b5563; font-size: 12.5px; font-weight: 600; }
.panel-body dialog .people-record-tabs .row-action.is-on { border-bottom-color: #0f7a4f; color: #0f7a4f; }
.panel-body dialog .people-extra a.row-action { justify-self: start; text-decoration: none; }

/* The Departments card: its button on one line, its Edit in the text's size. */
.panel-body .view #people-departments > header .row-action { white-space: nowrap; }
.panel-body .view .people-units .look-link { font-size: 12.5px; font-weight: 600; }
@media (max-width: 900px) { .panel-body .view .people-filters { flex-wrap: wrap; } }

/* The Dashboard's headcount by quarter: columns filling their space, the current one whole. */
.panel-body .view .people-quarters { display: block; width: 84px; height: 34px; }
.panel-body .view .people-quarters rect { fill: rgb(255 255 255 / .5); }
.panel-body .view .people-quarters rect.is-now { fill: #fff; }
.panel-body .view .people-access-link { font-size: 12px; font-weight: 700; }

/* The record's Leave: three figures across. */
.panel-body dialog .people-leave-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.panel-body dialog .people-leave { display: grid; justify-items: center; gap: 0; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center; }
.panel-body dialog .people-leave strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel-body dialog .people-leave span { color: #4b5563; font-size: 12px; font-weight: 600; }
.panel-body dialog .people-leave small { color: #6b7280; font-size: 11.5px; }

.panel-body .view .people-units li.is-board .people-unit-name, .panel-body .view .people-units li.is-leadership .people-unit-name { font-weight: 800; }

/* Access figures and the HR register use the same Employees canvas. */
#people-employees-work > .team-figures { grid-column: 1 / -1; }
.people-directory-filters { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
#people-employees-list table { min-width: 1300px; }
#people-employees-list .chip, #people-employees-list .marked, #people-employees-list .people-person strong { white-space: nowrap; }
.panel-body dialog #team-member button.danger { color: #fff; }
.panel-body dialog #team-member #member-status { margin: 4px 0; min-height: 20px; }
.panel-body dialog #team-member { grid-column: 1 / -1; min-width: 0; }
.panel-body dialog #team-member .page-head { min-height: 0; margin: 0; }
.panel-body dialog #team-member .member-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "permissions" "security" "record"; gap: 10px; }
.panel-body dialog #team-member .look-card { padding: 12px; }
.panel-body dialog #team-member h2, .panel-body dialog #team-member h3 { font-size: 14px; }
.panel-body dialog #team-member .team-rows div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.panel-body dialog #team-member .team-rows dd { min-width: 0; overflow-wrap: anywhere; }
.panel-body dialog #team-member .permission-table { width: 100%; table-layout: fixed; }
.panel-body dialog #team-member .permission-table td { overflow-wrap: anywhere; }

/* Modules/Sales/ui/sales.css */
/* Sales: what only this module uses. The heading, the tabs, the counts, the cards, the buttons and the dialogs are the
   pieces every page shares, in the panel's stylesheet. */
.sales-canvas > * { min-width: 0; }
.sales-canvas > .sales-leads { grid-column: 1 / -1; }
.panel-body .view .sales-leads { padding: 16px; }
.sales-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The search and filters above the board. */
.sales-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.sales-tools label { margin: 0; }
.sales-tools .sales-search { flex: 1 1 260px; }
.sales-tools input, .sales-tools select { height: var(--control); margin: 0; font-size: var(--control-font); }
.sales-tools select { width: auto; min-width: 150px; }
.sales-found { margin-bottom: 14px; }
.sales-found h3 { margin: 0 0 6px; font-size: 14px; }

/* The sources' colours above the board (George, 2026-10-19). */
.sales-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 16px; font-size: 13px; font-weight: 600; }
.sales-legend-title { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sales-legend-item { display: inline-flex; gap: 7px; align-items: center; }
.sales-legend-item > i { width: 15px; height: 15px; border-radius: 4px; background: var(--mark); }

/* The columns share the board's width, so every stage fits on a desktop screen (George, 2026-10-19); on a narrower one
   the board scrolls sideways inside its own box, and the page never does. */
.sales-board { display: flex; gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 8px; }
.sales-column { flex: 1 1 0; min-width: 176px; container: sales-column / inline-size; display: flex; flex-direction: column; gap: 12px; }

/* The waves of glass under a head's or a card's words (George's pictures, 2026-10-19). */
.sales-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.sales-waves .is-deep { fill: var(--wave-deep); opacity: .45; }
.sales-waves .is-light { fill: #ffffff; opacity: .2; }
.sales-waves .is-soft { fill: #ffffff; opacity: .16; }
.sales-waves .is-line { fill: none; stroke: #ffffff; stroke-width: 1.2; opacity: .45; }

/* A column's head: glass of its stage's colours, red at New to green at Completed (George, 2026-10-19), in two lines:
   the stage's drawing, name and count, then its value beside "Pipeline", with the drawing large and faint at its right
   (George, 2026-11-25: no number). */
.sales-column > header { --wave-deep: var(--stage-deep); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 8px; height: 112px; padding: 12px 14px; overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--stage-light) 55%, white); border-radius: 14px; color: var(--stage-text);
  background: linear-gradient(105deg, var(--stage-light) 0%, color-mix(in srgb, var(--stage-light) 50%, var(--stage-deep)) 60%, var(--stage-deep) 100%);
  box-shadow: inset 0 1px 0 rgb(16 24 40 / .45), 0 8px 18px -8px color-mix(in srgb, var(--stage-deep) 70%, transparent); }
.sales-column-top { display: flex; gap: 9px; align-items: center; min-height: 40px; }
.sales-column-count { flex: none; display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 9px; background: rgb(16 24 40 / .32); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .35); font-size: 15px; font-weight: 800; }
.sales-column-drawing { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--stage-icon, currentColor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sales-column-watermark { position: absolute; z-index: -1; right: 10px; bottom: 6px; width: 54px; height: 54px; fill: none; stroke: #ffffff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .34; }
.panel-body .view .sales-column h2 { flex: 1; min-width: 0; display: -webkit-box; margin: 0; overflow: hidden; color: inherit; font-size: clamp(15px, calc(15.4cqi - 18px), 20px); font-weight: 800; letter-spacing: 0; line-height: 1.1; text-transform: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* The name is 20px in a column of 248px and over, and smaller with the column, so it is never cut; a narrow column
   keeps it whole by giving up the small drawing, the large one staying behind. */
@container sales-column (max-width: 215px) {
  .sales-column-drawing { display: none; }
  .panel-body .view .sales-column h2 { font-size: clamp(13px, calc(15.4cqi - 13.5px), 16px); }
  .sales-column .sales-column-sum { font-size: 22px; }
  .sales-column .sales-column-label { font-size: 13px; }
}
.sales-column-value { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; margin-top: auto; }
.sales-column-sum { color: inherit; font-size: 26px; font-weight: 800; line-height: 1.1; }
.sales-column-label { color: inherit; font-size: 14px; font-weight: 500; opacity: .9; }
.sales-column-cards { flex: 1; display: flex; flex-direction: column; gap: 16px; min-height: 140px; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.sales-column.is-over .sales-column-cards { outline: 2px dashed var(--good); outline-offset: -2px; }

/* Where a lead came from, by its colours: a card's glass, its mark and its words, and the legend's squares. */
#sales .from-website { --tint: #e8dcfe; --deep: #c19af7; --mark: #8b3ee0; --mark-text: #5a07b7; }
#sales .from-whatsapp { --tint: #d4fcd2; --deep: #77e483; --mark: #1fb24a; --mark-text: #0b5a1f; }
#sales .from-instagram { --tint: #fcd6ee; --deep: #f499da; --mark: #e1306c; --mark-text: #c8146a; }
#sales .from-facebook { --tint: #d4dcfd; --deep: #9da1fa; --mark: #1d65e6; --mark-text: #0a2a9a; }
#sales .from-linkedin { --tint: #cee8fd; --deep: #7dc1f4; --mark: #0a72c0; --mark-text: #09549f; }
#sales .from-phone { --tint: #c1f3fc; --deep: #4cdbed; --mark: #06abc9; --mark-text: #00658e; }
#sales .from-referral { --tint: #fce6b1; --deep: #fac86b; --mark: #db8607; --mark-text: #a85401; }
#sales .from-other { --tint: #e2e9e7; --deep: #b6c2be; --mark: #5f716c; --mark-text: #3b4f4e; }
/* A card: glass of its source's colours with waves, the source's mark large and faint behind its words, and a second
   sheet under it. The source's name stays on the card, so nothing is told by colour alone. Every card is as tall as the
   others, each part in the same place: the value, the owner and the next step held at its foot (George, 2026-11-25). */
.sales-card { --tint: #e2e9e7; --deep: #b6c2be; --mark: #5f716c; --mark-text: #3b4f4e; --wave-deep: var(--deep); position: relative; isolation: isolate; container: sales-card / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; height: 214px; padding: 12px 12px 10px; overflow: visible;
  border: 1px solid color-mix(in srgb, var(--deep) 45%, white); border-radius: 14px; cursor: pointer;
  background: linear-gradient(110deg, color-mix(in srgb, var(--tint) 55%, white) 0%, var(--tint) 52%, var(--deep) 100%);
  box-shadow: inset 0 1px 0 rgb(16 24 40 / .7), 0 6px 0 -2px color-mix(in srgb, var(--tint) 70%, white), 0 6px 0 -1px color-mix(in srgb, var(--deep) 35%, transparent), 0 14px 22px -12px color-mix(in srgb, var(--deep) 80%, transparent); }
.sales-card > .sales-waves { border-radius: 13px; }
.sales-card:hover { border-color: color-mix(in srgb, var(--deep) 80%, white); }
.sales-card[data-selected] { border-color: var(--good); box-shadow: 0 0 0 2px var(--good); }
.sales-card[draggable="true"] { cursor: grab; }
.sales-card.is-dragging { opacity: .5; }
.sales-card-watermark { position: absolute; z-index: -1; top: 44px; right: 10px; width: 64px; height: 64px; opacity: .5; }
.sales-card-watermark.is-brand { fill: #ffffff; }
.sales-card-watermark.is-line { fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sales-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sales-source { display: inline-flex; gap: 7px; align-items: center; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgb(16 24 40 / .6); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .7), 0 1px 3px rgb(16 24 20 / .08); color: #ffffff; font-size: 13px; font-weight: 800; }
.sales-source-mark { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mark); }
.from-instagram .sales-source-mark { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sales-source-glyph { width: 14px; height: 14px; }
.sales-source-glyph.is-brand { fill: #ffffff; }
.sales-source-glyph.is-line { fill: none; stroke: #ffffff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* How long in the stage, in amber once idle; in Completed, the day it closed. */
.sales-card-age { color: #3d4842; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sales-card-age.is-idle { color: #9a5b00; font-weight: 800; }
.sales-card-head .sales-source { min-width: 0; }
.sales-card-head .sales-source-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* A narrow card keeps its words inside: "2d" without "in stage", the owner by initials. */
@container sales-card (max-width: 190px) {
  .sales-card-age-words, .sales-owner-name { display: none; }
}
.sales-card-name { display: -webkit-box; margin-top: 9px; overflow: hidden; color: #10150f; font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sales-card-under { overflow: hidden; color: #3d4842; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.sales-card-money { align-self: end; display: flex; gap: 8px; align-items: center; padding-bottom: 8px; }
.sales-card-value { color: #0b0f0d; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-card-value.is-none { color: #66706b; }
.sales-card-owner { display: flex; gap: 6px; align-items: center; min-width: 0; margin-left: auto; font-size: 13px; font-weight: 700; }
.sales-owner-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sales-card-owner.is-none { color: #66706b; font-weight: 600; }
.sales-avatar { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #133b2c; color: #fff; font-size: 10.5px; font-weight: 800; }
.sales-card-owner.is-none .sales-avatar { border: 1.5px dashed #8a948f; background: transparent; color: #66706b; }
/* The next step: the next open task, its day and who does it, coloured by its state (George, 2026-11-25). */
.sales-card-next { --next-bg: rgb(255 255 255 / .55); --next-line: rgb(16 24 40 / .18); --next-ink: #24302b;
  display: flex; gap: 9px; align-items: center; min-height: 46px; padding: 6px 9px; border: 1px solid var(--next-line); border-radius: 11px; background: var(--next-bg); color: var(--next-ink); }
.sales-card-next > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sales-card-next > span { display: grid; min-width: 0; line-height: 1.25; }
.sales-card-next strong { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.sales-card-next small { overflow: hidden; font-size: 12px; font-weight: 600; opacity: .9; white-space: nowrap; text-overflow: ellipsis; }
.sales-card-next.is-today, .sales-card-next.is-won { --next-bg: rgb(22 163 74 / .16); --next-line: rgb(22 163 74 / .45); --next-ink: #0f5130; }
.sales-card-next.is-overdue { --next-bg: rgb(220 38 38 / .15); --next-line: rgb(220 38 38 / .5); --next-ink: #8a1515; }
.sales-card-next.is-none { --next-bg: rgb(245 158 11 / .18); --next-line: rgb(217 119 6 / .55); --next-ink: #7a4300; }
.sales-card-next.is-lost { --next-bg: rgb(16 24 40 / .08); --next-line: rgb(16 24 40 / .2); --next-ink: #4b2020; }
.view .chip.sales-idle { background: var(--warn-bg); color: var(--warn); }

/* The panel of an open record lies over the board at its right, under the top bar, at every width. */
.panel-body .view .sales-panel { position: fixed; z-index: 2; top: 84px; right: 0; bottom: 0; width: min(460px, 100vw); overflow-y: auto; border-radius: 0; box-shadow: -16px 0 40px rgb(16 24 20 / .18); }
@media (max-width: 760px) { .panel-body .view .sales-panel { top: 0; z-index: 3; } }
.sales-panel-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.panel-body .view .sales-panel-head h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.sales-panel h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 800; }
.sales-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.sales-rows div { grid-template-columns: 112px minmax(0, 1fr); }
.sales-rows dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.sales-link { padding: 0; border: 0; background: none; color: var(--good); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; }
.sales-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sales-move { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.sales-move label { margin: 0; font-size: 14px; }
.sales-move select { flex: 1 1 140px; width: auto; height: var(--control); margin: 0; font-size: var(--control-font); }
.sales-tasks, .sales-links, .sales-timeline { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sales-tasks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sales-tasks li > .row-action { grid-row: 1 / 3; grid-column: 2; height: var(--control); }
.sales-tasks small, .sales-links small, .sales-timeline small { color: var(--muted); font-size: 12px; }
.sales-tasks .is-late small { color: var(--bad); }
.sales-tasks .is-done span { color: var(--muted); text-decoration: line-through; }
.sales-links li { display: grid; gap: 2px; }
.sales-timeline li { display: grid; gap: 2px; padding: 8px 0 8px 12px; border-left: 3px solid var(--line); }
.sales-timeline li.is-change { border-left-color: var(--good-bg); }
.sales-timeline p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* The forms. */
#sales textarea { width: 100%; margin-bottom: 24px; padding: 12px 16px; border: 1px solid #b8c7bd; border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
#sales dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.sales-choice { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.sales-choice legend { padding: 0 6px; font-weight: 800; }
.sales-choice label, #merge-found label, .sales-check { display: flex; gap: 10px; align-items: center; margin: 6px 0; font-weight: 600; }
.sales-choice input, #merge-found input, .sales-check input { width: auto; height: auto; margin: 0; }
.sales-settings { width: min(100% - 32px, 640px); }
.sales-settings h3 { margin: 18px 0 6px; font-size: 16px; }
.sales-setting { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sales-setting input { flex: 1 1 160px; height: var(--control); margin: 0; font-size: var(--control-font); }
.sales-setting input.sales-small { flex: 0 0 80px; }
.sales-setting .row-action { height: var(--control); }
#stages-stage-add, #stages-reason-add { margin-bottom: 8px; }

/* A phone number with its country: the country's flag and code beside the number. */
.sales-phone { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 8px; }
.sales-phone select, .sales-phone input { margin-bottom: 24px; }
/* The open lead that already holds this email or mobile, asked inside the form (George, 2026-11-25). */
.sales-match { display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid rgb(217 119 6 / .55); border-radius: 10px; background: rgb(245 158 11 / .12); color: #7a4300; font-size: 14px; line-height: 1.45; }
.sales-match p { margin: 0; }
.sales-match-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* The lead's panel in parts, each edited in place by its pencil (George, 2026-11-25): the next action on top, then
   Person, Company, Conversation (in rounds), Proposal and Lead, then the timeline. */
.sales-panel-under { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sales-section { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.sales-section.is-editing { margin-inline: -10px; padding: 12px 10px; border-radius: 10px; background: #fbfcfb; box-shadow: inset 0 0 0 1px var(--line); }
.sales-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.panel-body .view .sales-panel .sales-section-head h3 { margin: 0; }
.sales-pencil { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.sales-pencil:hover { border-color: var(--line); background: var(--panel-2, #f6f8f7); color: inherit; }
.sales-pencil:focus-visible { outline: 2px solid var(--accent, #0d6a50); outline-offset: 2px; }
.sales-pencil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sales-rows dd.is-empty { color: #98a2ad; }
.sales-part-note { margin-top: 8px; font-size: 12px; }
.sales-edit { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 10px; align-items: center; margin-top: 10px; }
.sales-edit > label { margin: 0; color: var(--muted); font-size: 14px; }
.sales-edit > input, .sales-edit > select, .sales-edit > textarea { width: 100%; margin: 0; }
.sales-edit > textarea { resize: vertical; line-height: 1.5; }
.sales-count { grid-column: 2; justify-self: end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sales-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.sales-edit .dialog-status { grid-column: 1 / -1; margin: 0; }
.sales-edit .dialog-status:empty { display: none; }
.sales-next .sales-card-next { margin-top: 8px; }
.sales-next .sales-card-next > .row-action { flex: none; margin-left: auto; }
.sales-due { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); background: rgb(16 24 40 / .06); }
.sales-due.is-near { color: #7a4300; background: rgb(245 158 11 / .16); box-shadow: inset 0 0 0 1px rgb(217 119 6 / .5); }
.sales-due.is-late { color: #8a1515; background: rgb(220 38 38 / .13); box-shadow: inset 0 0 0 1px rgb(220 38 38 / .45); }
.sales-rounds { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.sales-round { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sales-round:last-child { border-bottom: 0; }
.sales-round-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #101828; color: #fff; font-size: 12px; font-weight: 800; }
.sales-round:first-child .sales-round-n { background: #0d6a50; }
.sales-round-n.is-new { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.sales-round-body { min-width: 0; }
.sales-round-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.sales-round-body > small { color: var(--muted); font-size: 12px; }
.sales-round-body > p { margin: 6px 0 0; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.sales-round .sales-edit { grid-template-columns: minmax(0, 1fr); }
.sales-round .sales-edit > label { margin-top: 2px; }
.sales-round .sales-count { grid-column: 1; }

/* Modules/Security/AccessReviews/reviews.css */
/* Security & Compliance › Access reviews (reviews.js): a line's decision, its reason and its button in one cell; the
   rest is the registers' and the new look's (Registers/registers.css, Shell/look.css). */
.register-view .reviews-decide { display: grid; grid-template-columns: 110px minmax(160px, 1fr) auto; gap: 6px; align-items: center; }
.register-view :is(.reviews-decision, .reviews-note, .reviews-period) { min-height: var(--control); padding: 0 8px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px;
  font: inherit; font-size: var(--control-font); color: var(--glass-text); background: rgb(16 24 40 / .06); }
.register-view :is(.reviews-decision, .reviews-period) option { color: #111; }
.panel-body .view .register-canvas #security-reviews-list .view-table { min-width: 1080px; }

/* Modules/Security/AuditLog/auditlog.css */
/* Security & Compliance › Audit log: what only this page uses. The canvas, the figures, the glass, its tables and the
   side panel are the pieces every redesigned page shares (Shell/look.css). */
.audit-canvas > * { min-width: 0; }
.audit-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
.panel-body .view .audit-canvas #audit-lines .table-wrap { overflow-x: auto; }
.panel-body .view .audit-canvas #audit-lines .view-table { min-width: 940px; }
.panel-body .view .audit-canvas #audit-lines td:nth-child(1), .panel-body .view .audit-canvas #audit-lines td:nth-child(3),
.panel-body .view .audit-canvas #audit-lines td:nth-child(7) { white-space: nowrap; }
.panel-body .view .audit-canvas .audit-board { grid-column: 1 / -1; }
.panel-body .view .audit-canvas .audit-board > .look-card { height: 100%; }
.panel-body .view .audit-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.panel-body .view .audit-filters .audit-filter { width: 100%; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18); border-radius: 8px;
  font: inherit; font-size: var(--control-font); color: var(--glass-text); background: rgb(16 24 40 / .06); }
.audit-view .audit-filter option { color: #111; }
.audit-view tbody tr[data-line] { cursor: pointer; }
.audit-view tbody tr[data-line]:hover td, .audit-view tbody tr[aria-selected] td { background: rgb(16 24 40 / .06); }
.audit-view tbody tr[data-line]:focus-visible { outline: 3px solid #16a34a; outline-offset: -3px; }
.audit-view .audit-line-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audit-view .audit-line-head h2 { margin: 0; }
.audit-view .audit-small { margin: 4px 0 14px; color: var(--glass-muted); font-size: 13px; }
.audit-view .audit-line dd { overflow-wrap: anywhere; }

/* Modules/Settings/settings.css */
/* Settings: what only this section uses. Colours come from the panel's
   variables, and the heading, the card, the white button, the tick and the
   cross from the pieces every section shares, in the panel's
   stylesheet. The build joins this file to it. */

#settings-status { min-height: 22px; margin: 12px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

/* Details span two tracks; sign-in settings use the third. */
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "details details security" "policies policies policies"; grid-template-rows: auto; gap: 16px; align-items: start; }
.settings-details { grid-area: details; }
.settings-security { grid-area: security; }
.settings-grid > .view-card { min-width: 0; }
#settings .view-card h2 { margin-bottom: 16px; }
#settings .view-card h3 { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }

/* Fields, two to a line; a wide one takes the line. */
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.settings-wide { grid-column: 1 / -1; }
#settings label { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
#settings input { height: 42px; margin: 0; padding: 0 12px; font-weight: 500; }
#settings input:disabled { background: var(--panel-2); opacity: 1; color: var(--muted); }
.settings-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-line { min-height: 20px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
#settings .sign-in { width: auto; height: var(--control); padding: 0 10px; font-size: var(--control-font); }
#settings button:disabled { opacity: .6; }

/* The second step. */
.settings-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--panel-2); font-size: 14px; }
.settings-state span { color: var(--muted); }
.settings-enrol { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-qr { display: block; width: 180px; height: 180px; margin: 12px 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.settings-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 14px; font-size: 13px; }
.settings-key span { color: var(--muted); }
.settings-key code { font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "security" "policies"; grid-template-rows: auto; }
}
@media (max-width: 600px) {
  .settings-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Policies (12d): each policy in force, its text on request, and its acknowledgement. */
.settings-policies-card { grid-area: policies; }
.settings-policies { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.settings-policy { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.settings-policy-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.settings-policy-text summary { cursor: pointer; margin-top: 8px; font-weight: 600; }
.settings-policy-body { margin-top: 8px; max-height: 320px; overflow-y: auto; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }

/* Modules/Solutions/Dashboard/dashboard.css */
/* Solutions › Dashboard: what only this page uses. Since 2026-10-24 it is drawn in Admin's new look (phase F2): the
   canvas, the figures, the glass, the bars and the tables are the pieces every redesigned page shares (Shell/look.css). */
.sold-canvas > * { min-width: 0; }
.sold-canvas .view-table { min-width: 640px; }
.sold-canvas .view-table td { vertical-align: top; overflow-wrap: anywhere; }
/* The mark of the test account, and of an account deleted this month, under its name. */
.sold-view .sold-test { display: block; color: var(--glass-muted); font-size: 12px; font-weight: 400; }
.sold-address { overflow-wrap: anywhere; color: var(--glass-muted); font-size: 13px; }

/* Modules/Solutions/SmartAgents/solutions.css */
/* Solutions › SmartAgents: what only this page uses. Since 2026-10-24 it is drawn in Admin's new look (phase F2): the
   canvas, the figures, the glass, the bars, the tables and the states in a word are the pieces every redesigned page
   shares (Shell/look.css). */
.solutions-canvas > * { min-width: 0; }
.solutions-view #solutions-agents .view-table { min-width: 720px; }
.solutions-view .look-card .solutions-note { margin: 0 0 14px; }
.solutions-view .look-card .table-wrap + .solutions-note { margin: 14px 0 0; }
.solutions-view .look-card .solutions-list { margin: 0; padding-left: 20px; color: var(--glass-text); font-size: 14px; line-height: 1.7; }
.solutions-view .look-card .look-pill { white-space: nowrap; }
/* The number each agent may run a month, and the state of an agent beside its button. */
.solutions-view .solutions-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 14px; }
.solutions-view .solutions-form label { display: grid; gap: 6px; font-size: 13px; color: var(--glass-muted); }
.solutions-view .solutions-form input { box-sizing: border-box; width: 160px; max-width: 100%; height: var(--control); margin: 0; padding: 0 10px; border: 1px solid rgb(16 24 40 / .18);
  border-radius: 8px; background: rgb(16 24 40 / .06); color: var(--glass-text); color-scheme: dark; font: inherit; font-size: var(--control-font); }
.solutions-view .solutions-form input:focus-visible { outline: 2px solid #16a34a; outline-offset: 1px; }
.solutions-view .solutions-form .row-action { height: var(--control); }
.solutions-view .solutions-status-line { margin: 10px 0 0; }
.solutions-view .solutions-status-line:empty { display: none; }
.solutions-view .look-card .solutions-status-line[data-error="true"] { color: #dc2626; }
.solutions-view .solutions-state { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.solutions-view .look-card .solutions-subtitle { margin: 20px 0 8px; color: var(--glass-text); font-size: 15px; font-weight: 700; }

/* Modules/Support/Tickets/tickets.css */
/* Support › Tickets (tickets.js): what only this page draws. The canvas, the figures, the glass, the table and the side
   panel with its form are the pieces every redesigned page and every register share (Shell/look.css). */
/* The board: a lane per state, side by side; two on a medium screen, one on a phone. */
.support-view .support-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.support-view .support-lane { min-width: 0; padding: 10px; border-radius: 12px; background: rgb(16 24 40 / .03); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .07); }
.support-view .support-lane h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--glass-text); }
.support-view .support-cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.support-view .support-card { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: rgb(16 24 40 / .05); box-shadow: inset 0 0 0 1px rgb(16 24 40 / .09); }
.support-view .support-card[aria-current] { box-shadow: inset 0 0 0 2px #16a34a; }
.support-view .support-card small { color: var(--glass-muted); font-size: 12px; overflow-wrap: anywhere; }
.support-view .support-card .register-link { white-space: normal; }
.support-view .support-card-marks { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
/* On a card a state may take two lines, between its words; the board is as tall as its lanes, not as the panel beside it. */
.support-view .support-card .look-pill { white-space: normal; max-width: 100%; }
.support-view .support-card { min-width: 0; overflow: hidden; }
.panel-body .view.support-view .register-canvas .register-board > #support-board-card { height: auto; }
.support-view #support-tickets-board { align-self: start; }
/* The table: words break between words, a state in a word never; at a narrow width the table scrolls inside its card. */
.panel-body .view.support-view .register-canvas .register-board .view-table { min-width: 1180px; }
.support-view .register-canvas .view-table td { overflow-wrap: normal; word-break: normal; }
.support-view .look-pill { white-space: nowrap; }
/* The side: the ticket's facts, then its conversation, the client's at the left, ours at the right, a note in amber. */
.support-view .support-meta { margin: 6px 0 0; color: var(--glass-muted); font-size: 13px; }
.support-view .support-conversation { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(16 24 40 / .1); }
.support-view .support-conversation[hidden] { display: none; }
.support-view .support-conversation h3 { margin: 0 0 10px; font-size: 13px; color: var(--glass-text); }
.support-view .support-thread { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; margin: 0; padding: 0 2px 0 0; list-style: none; }
.support-view .support-message { max-width: 88%; padding: 9px 12px; border-radius: 12px; background: rgb(16 24 40 / .06); }
.support-view .support-message.is-client { justify-self: start; box-shadow: inset 0 0 0 1px rgb(96 165 250 / .35); }
.support-view .support-message.is-staff { justify-self: end; box-shadow: inset 0 0 0 1px rgb(52 211 153 / .35); }
.support-view .support-message.is-note { justify-self: stretch; max-width: none; background: rgb(245 184 46 / .1); box-shadow: inset 0 0 0 1px rgb(245 184 46 / .35); }
.support-view .support-message small { color: var(--glass-muted); font-size: 12px; }
.support-view .support-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--glass-text); }
.support-view .support-compose { display: grid; gap: 12px; margin-top: 14px; }
.support-view .support-compose-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.support-view .support-side .register-field :is(input, select) { font-size: 13px; padding: 6px 8px; }
@media (max-width: 1100px) { .support-view .support-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .support-view .support-lanes { grid-template-columns: minmax(0, 1fr); } }

/* Modules/Welcome/welcome.css */
/* The Welcome page (George's drawing, 2026-10-26): light cards on the centre's ground, the news across the page,
   the tiles and two lists on the left, Stationery & Brand and the birthdays on the right, the highlights across the foot. */
.panel-body .welcome-view { display: grid; gap: 16px; color: #101828; }
.panel-body .welcome-view svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-body .welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin-bottom: 4px; }
.panel-body .welcome-hello { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #4b5563; font-size: 20px; }
.panel-body .welcome-sun svg { width: 26px; height: 26px; color: #f2b21a; display: block; }
.panel-body .welcome-view h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.panel-body .welcome-lead { margin: 6px 0 0; color: #6b7280; font-size: 17px; }
.panel-body .welcome-today { display: grid; justify-items: end; gap: 8px; padding-top: 6px; color: #4b5563; font-size: 13px; }
.panel-body .welcome-today p { margin: 0; }
.panel-body .welcome-weather { display: inline-flex; align-items: center; gap: 8px; }
.panel-body .welcome-weather svg { width: 20px; height: 20px; color: #f2b21a; }

/* The news: a dark card with its picture, its words on the left and its dots. */
.panel-body .welcome-news { position: relative; overflow: hidden; min-height: 196px; border-radius: 12px; background: #0b0d10; color: #fff; }
.panel-body .welcome-news img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-body .welcome-news::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(8 9 11 / .96) 0%, rgb(8 9 11 / .88) 38%, rgb(8 9 11 / .25) 70%, rgb(8 9 11 / 0) 100%); }
.panel-body .welcome-news-words { position: relative; z-index: 2; max-width: 560px; padding: 22px 34px 24px; }
.panel-body .welcome-eyebrow { margin: 0 0 6px; color: #f2b21a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel-body .welcome-news h2 { margin: 0 0 12px; color: #fff; font-size: 29px; font-weight: 800; letter-spacing: -.01em; }
.panel-body .welcome-news-words > p:not(.welcome-eyebrow) { margin: 0 0 16px; color: #e5e7eb; font-size: 15px; line-height: 1.55; }
.panel-body .welcome-news-action { display: inline-flex; align-items: center; gap: 8px; height: var(--control); padding: 0 10px; border: 0; border-radius: 8px; background: #f2b21a; color: #111; font: inherit; font-size: var(--control-font); font-weight: 700; cursor: pointer; }
.panel-body .welcome-news-action svg { width: 16px; height: 16px; }
.panel-body .welcome-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; gap: 10px; transform: translateX(120px); }
.panel-body .welcome-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .55); cursor: pointer; }
.panel-body .welcome-dots button[aria-selected="true"] { background: #f2b21a; }

/* The cards of a row keep one height, also when one has little to show (George, 2026-10-27). */
.panel-body .welcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) 376px; gap: 16px; align-items: stretch; }
.panel-body .welcome-main, .panel-body .welcome-side { display: grid; gap: 16px; }
.panel-body .welcome-main { grid-template-rows: auto 1fr; }
.panel-body .welcome-side { grid-template-rows: 1fr 1fr; }
.panel-body .welcome-card { padding: 18px 22px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.panel-body .welcome-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-body .welcome-card h2 { margin: 0; font-size: 19px; font-weight: 800; }
.panel-body .welcome-all { display: inline-flex; align-items: center; gap: 6px; color: #2563eb; font-size: 14px; text-decoration: none; }
.panel-body .welcome-all svg { width: 15px; height: 15px; }
.panel-body .welcome-view ul { margin: 0; padding: 0; list-style: none; }

/* Six ways to ask for something. */
.panel-body .welcome-ways { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.panel-body .welcome-way { display: grid; justify-items: center; gap: 10px; padding: 14px 6px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #111827; font-size: 14px; text-align: center; text-decoration: none; }
.panel-body a.welcome-way:hover { border-color: #f2b21a; }
.panel-body .welcome-way.is-soon { cursor: default; }
.panel-body .welcome-way-picture { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
.panel-body .welcome-way-picture svg { width: 24px; height: 24px; }
.panel-body [data-tone="blue"] .welcome-way-picture, .panel-body [data-tone="blue"] .welcome-figure-picture { background: #e8f0fe; color: #2563eb; }
.panel-body [data-tone="purple"] .welcome-way-picture, .panel-body [data-tone="purple"] .welcome-figure-picture { background: #f1eafe; color: #7c3aed; }
.panel-body [data-tone="green"] .welcome-way-picture, .panel-body [data-tone="green"] .welcome-figure-picture { background: #e3f6ea; color: #16a34a; }
.panel-body [data-tone="yellow"] .welcome-way-picture, .panel-body [data-tone="yellow"] .welcome-figure-picture { background: #fdf3d7; color: #e0a106; }
.panel-body [data-tone="red"] .welcome-way-picture { background: #fde8e8; color: #e11d48; }

.panel-body .welcome-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* What is new. */
.panel-body .welcome-post { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 6px 0; color: inherit; text-decoration: none; }
.panel-body .welcome-post:hover strong { text-decoration: underline; }
/* The post's cover in its own shape, 1200 by 630, so it is never cropped (George, 2026-10-27). */
.panel-body .welcome-cover { width: 112px; aspect-ratio: 1200 / 630; height: auto; border-radius: 6px; object-fit: cover; background: #eef0f3; }
.panel-body .welcome-new-words { display: grid; gap: 2px; min-width: 0; }
.panel-body .welcome-new-words strong { font-size: 14px; }
.panel-body .welcome-new-words span:not(.welcome-tag) { color: #6b7280; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panel-body .welcome-post .welcome-tag { background: #fdf3d7; color: #b45309; }
.panel-body .welcome-new time, .panel-body .welcome-birthdays time { color: #6b7280; font-size: 12.5px; white-space: nowrap; }
.panel-body .welcome-tag { justify-self: start; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.panel-body .welcome-tag[data-tone="blue"] { background: #e8f0fe; color: #2563eb; }
.panel-body .welcome-tag[data-tone="purple"] { background: #f1eafe; color: #7c3aed; }
.panel-body .welcome-tag[data-tone="green"] { background: #e3f6ea; color: #15803d; }
.panel-body .welcome-tag[data-tone="yellow"] { background: #fdf3d7; color: #b45309; }
/* What is coming. */
.panel-body .welcome-events li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 26px; align-items: center; padding: 5px 0; border-bottom: 1px solid #eef0f3; }
.panel-body .welcome-events li:last-child { border-bottom: 0; }
/* Birthdays. */
.panel-body .welcome-birthdays li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 5px 0; }
.panel-body .welcome-face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.panel-body .welcome-initials { display: grid; place-items: center; background: #1f2937; color: #f2b21a; font-weight: 800; }
.panel-body .welcome-name { font-size: 14px; }
.panel-body .welcome-view .welcome-quiet { display: block; padding: 8px 0; color: #6b7280; font-size: 14px; }
/* The month's highlights. */
.panel-body .welcome-highlights { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px 14px 22px; }
.panel-body .welcome-highlights-head h2 { margin-bottom: 6px; }
.panel-body .welcome-highlights-head p { margin: 0 0 6px; color: #6b7280; font-size: 13px; }
.panel-body .welcome-figures { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.panel-body .welcome-figure { display: flex; align-items: center; gap: 22px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; }
.panel-body .welcome-figure > div { display: grid; gap: 2px; }
.panel-body .welcome-figure-picture { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 10px; }
.panel-body .welcome-figure-picture svg { width: 26px; height: 26px; }
.panel-body .welcome-figure-label { color: #4b5563; font-size: 13px; }
.panel-body .welcome-figure strong { font-size: 18px; }
.panel-body .welcome-change { display: inline-flex; align-items: center; gap: 4px; color: #6b7280; font-size: 13px; }
.panel-body .welcome-change svg { width: 13px; height: 13px; }
.panel-body .welcome-change.is-up { color: #16a34a; }
.panel-body .welcome-change.is-down { color: #e11d48; }

@media (max-width: 1200px) {
  .panel-body .welcome-grid, .panel-body .welcome-highlights { grid-template-columns: minmax(0, 1fr); }
  .panel-body .welcome-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-body .welcome-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .panel-body .welcome-pair, .panel-body .welcome-figures { grid-template-columns: minmax(0, 1fr); }
  .panel-body .welcome-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-body .welcome-head { flex-direction: column; }
  .panel-body .welcome-today { justify-items: start; }
  .panel-body .welcome-view h1 { font-size: 32px; }
}

/* Stationery & Brand (14e; George, 2026-10-30): the four most used on the card, each downloaded; View all, a large pop-up,
   the latest version of each, Stationery as a list and Brand as pictures. */
.panel-body .welcome-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.panel-body .welcome-library { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.panel-body .welcome-library-item, .panel-body .welcome-library-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f2f4; }
.panel-body .welcome-library-item:last-child, .panel-body .welcome-library-line:last-child { border-bottom: 0; }
.panel-body :is(.welcome-library-item, .welcome-library-line) > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-body :is(.welcome-library-item, .welcome-library-line) strong { overflow: hidden; color: #101828; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.panel-body :is(.welcome-library-item, .welcome-library-line, .welcome-library-tile) small { color: #6b7280; font-size: 12px; }
.panel-body .welcome-said { margin: 6px 0 0; color: #b91c1c; font-size: 12.5px; }
.panel-body .welcome-said:empty { display: none; }
.panel-body dialog.look-dialog.welcome-library-box { width: min(1000px, calc(100vw - 32px)); padding: 24px 28px; }
.panel-body .welcome-library-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.panel-body .welcome-library-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.panel-body .welcome-library-head p { margin: 4px 0 0; font-size: 13px; }
.panel-body .welcome-library-part { padding: 12px 0; border-top: 1px solid #e5e7eb; }
.panel-body .welcome-library-part h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #101828; }
.panel-body .welcome-library-lines { margin: 0; padding: 0; list-style: none; }
.panel-body .welcome-library-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.panel-body .welcome-library-tile { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.panel-body .welcome-library-face { display: grid; place-items: center; height: 110px; border-radius: 8px; background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; overflow: hidden; }
.panel-body .welcome-library-face img { max-width: 100%; max-height: 100%; object-fit: contain; }
.panel-body .welcome-library-kind { color: #6b7280; font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.panel-body .welcome-library-tile-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-body .welcome-library-tile-words strong { overflow: hidden; color: #101828; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.panel-body .welcome-library-tile .doc-download { align-self: flex-end; }
